Repository navigation
Build a missing code map on the first trail query - #704
Conversation
🌱 graft blast radius3 areas changed → 3 areas can be affected. 8 dependent symbols, depth 2. flowchart TB
A0(("Claude Hook Integration<br/>4 symbols"))
A1(("MCP Server<br/>2 symbols"))
A2(("CLI Entry Point<br/>2 symbols"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0,A1,A2 reached;
Who knows this code — 4 people across 6 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no All 8 dependent symbols, grouped by areaClaude Hook Integration — 4 symbols in 2 files
MCP Server — 2 symbols in 2 files
CLI Entry Point — 2 symbols in 1 file
Test signal per changed area — 1 ✓ · 2 ✗Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
4 test suites also reference this code4 symbols, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
…st-use # Conflicts: # src/claude/hook-io.ts # src/claude/hooks.ts
A repo on trail that this machine never built answered every trail query with learnings and no code, so Claude went back to grep for the rest of the session. Now the first query there starts a full build in the background and waits up to 90s for it.
.trail/cache). Graft repos, a--dirmap and the home folder still build nothing.claude/sync-run.jswith a 10-minute limit instead of the end-of-turn 2 minutes. Queries that arrive meanwhile wait on the same lock.GRAFT_FIRST_BUILD_WAIT_MS=0, so the prompt hook starts the build and answers within its budget.Tried on NanoNets/assign (8.5k files, no map): the query that came back empty built the map in 72s and returned the task feed code.
Moves: share of trail
queryevents withhit=no. 7.8% on 2026-10-27 (12,798 of 164,008 queries that report a hit, last 7 days), PostHog Postgres (Metabase db 11):SELECT properties->>'hit', count(*) FROM posthog_event_full_view WHERE event = 'query' AND properties->>'cli_name' = 'trail' AND timestamp >= now() - interval '7 days' GROUP BY 1Tests: 5 new.
trail check: no conflicts. The full suite has 3 failures that also fail on main on a machine with trail installed globally: two expect no trail on PATH, one expects "graft is now Trail-code".🤖 Generated with Claude Code