Files
ClaudeDo/docs/explore-notes
mika kuns c792765ed3 refactor(mcp): rewrite external MCP tool descriptions for trigger clarity
Every tool description now leads with what the tool does AND when to reach for
it, since MCP clients rank tools by that text. Per-parameter prose moved onto
the parameters as [Description], exhaustive result-shape enumerations and
design/history rationale dropped, and the repeated boilerplate clauses
(lean-task-ref, batch cap, refused-while-Running) pulled into McpToolDocs,
which also documents the style for future tools.

Tool-level description text: 20494 -> 13605 chars (-34%); combined with the new
parameter descriptions 18517 (-10%).

Closes gaps that caused wrong calls rather than just verbose ones:
- list_task_attachments returns metadata only, no file content
- run_task_now shares continue_task's single override slot and throws when busy
- list_runs is ordered oldest-first and feeds get_run
- workingDir on create_list/update_list is an existing local git repo path,
  unvalidated until the first task run
- get_task_worktree's behind=0 also means the main ref was unreachable

Removes get_task_status_values: a whole tool entry for static reference text.
GetTask's description is now the canonical place for status meanings.
2026-08-07 09:25:45 +02:00
..

Explore-notes

Distilled, reusable maps of complex subsystems, produced by deep code exploration. The goal: stop re-exploring the same subsystem from scratch in every new session.

These sit between the CLAUDE.md files and the code:

  • CLAUDE.md — high-level orientation, hand-maintained, always-loaded.
  • explore-notes — deeper subsystem detail (flows, who-calls-whom, invariants) that is too fine-grained for a CLAUDE.md but stable enough to be worth caching. Read on demand.
  • code — the only source of truth.

Index

Note Covers
worker-task-pipeline TaskRunner end-to-end: config resolution, worktree, CLI invocation, streaming, commit
usage-monitoring OAuth usage endpoint, gate, throttle, per-run token accounting, usage pill/modal
external-mcp The claudedo MCP tool surface + its two test-enforced conventions
review-merge Approve=merge-unit, verify gate, MergeCommit/revert, diff stack, conflict resolver
conpty-sessions Interactive/planning/list-handler launch specs + the arg-flattening gotcha
installer-preflight CLI version/login/auto-mode research, the ExecutableResolver/shim root cause, and the Installer's Checks/+SystemCheckPage implementation status

Rules

  • Only stable structure. Flows, responsibilities, entry points, invariants, relative file paths. No line numbers, no exhaustive symbol dumps — those rot fastest.
  • Verify before trusting. A note is a starting map, not authority. Always confirm against current code before acting on it. Each note records the commit it was verified against so you can diff for drift.
  • Not a substitute for CLAUDE.md. If a fact belongs in orientation, put it there.

Header every note must carry

> **Explore-note — verify before trusting.** Distilled map of a subsystem, not authoritative.
> Last verified against commit `<short-hash>` (<date>).
> Drift check: `git log --oneline <short-hash>..HEAD -- <paths this note covers>`
> Stable structure only (no line numbers). See docs/explore-notes/README.md.

Workflow

  1. Before deep-exploring a subsystem, check for a matching note here and read it first; explore only to fill gaps or confirm.
  2. After a deep explore, distill the durable findings into a new/updated note and bump its "verified against" commit line.
  3. If the drift check shows the covered paths changed a lot since the verified commit, treat the note as suspect and re-verify the parts you rely on.