Files
SubMiner/AGENTS.md
T
sudacode f0a11c2c99 chore: remove Backlog.md task system and backlog directory
- Delete Backlog.md and all backlog/ task files
- Remove Backlog.md MCP workflow instructions from AGENTS.md
- Drop "backlog history" from change-verification shim compatibility note
2026-05-12 23:37:31 -07:00

2.5 KiB

AGENTS.MD

Internal Docs

Start here, then leave this file.

docs-site/ is user-facing. Do not treat it as the canonical internal source of truth.

Quick Start

  • Init workspace: git submodule update --init --recursive
  • Install deps: make deps or bun install plus (cd vendor/texthooker-ui && bun install --frozen-lockfile)
  • Fast dev loop: make dev-watch
  • Full local run: bun run dev
  • Verbose Electron debug: electron . --start --dev --log-level debug

Build / Test

  • Runtime/package manager: Bun (packageManager: bun@1.3.5)
  • Default handoff gate: bun run typecheck bun run test:fast bun run test:env bun run build bun run test:smoke:dist
  • If docs-site/ changed, also run: bun run docs:test bun run docs:build
  • Prefer make pretty and bun run format:check:src

Change-Specific Checks

  • Config/schema/defaults: bun run test:config; if template/defaults changed, bun run generate:config-example
  • Launcher/plugin: bun run test:launcher or bun run test:env
  • Runtime-compat / dist-sensitive: bun run test:runtime:compat
  • Docs-only: bun run docs:test, then bun run docs:build

Sensitive Files

  • Launcher source of truth: launcher/*.ts
  • Generated launcher artifact: dist/launcher/subminer; never hand-edit it
  • Repo-root ./subminer is stale; do not revive it
  • bun run build rebuilds bundled Yomitan from vendor/subminer-yomitan
  • Do not change signing/packaging identifiers unless the task explicitly requires it

Release / PR Notes

  • User-visible PRs need one fragment in changes/*.md
  • CI enforces bun run changelog:lint and bun run changelog:pr-check
  • PR review helpers:
    • gh pr view --json number,title,url --jq '"PR #\\(.number): \\(.title)\\n\\(.url)"'
    • gh api repos/:owner/:repo/pulls/<num>/comments --paginate

Runtime Notes

  • Use Codex background for long jobs; tmux only when persistence/interaction is required
  • CI red: gh run list/view, rerun, fix, repeat until green
  • TypeScript: keep files small; follow existing patterns
  • Swift: use workspace helper/daemon; validate swift build + tests