Repository navigation
Keep the sources-diff summary to one line - #729
Conversation
🌱 graft blast radius3 areas changed → 1 area can be affected. 3 dependent symbols, depth 2. flowchart TB
A0(("Ask Rendering<br/>3 symbols"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0 reached;
Who knows this code — 4 people across 4 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 3 dependent symbols, grouped by areaAsk Rendering — 3 symbols in 1 file
Test signal per changed area — 1 ✓ · 1 ✗ · 1 –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.
7 test suites also reference this code7 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. |
|
The one-line view reads well: two learnings became one line with their paths, and Two things:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since #747 the tokens-saved counter read the savings line back out of the hook's text, and one-line mode has no such line, so with one-line on the counter stopped moving for learnings a hook brought. notesForPrompt and notesOnTouch now add learningSavedTokens(hits) to the session themselves, in both views, and the hooks no longer parse their own text. A learning title that reads like a savings line can't move the counter either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ale mark on one line notesOnTouch now takes dir before view, so the tests pass undefined for it. One-line mode dropped #731's "may be stale" warning entirely; it now says "may be stale" beside that learning's path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged with these commits on top:
Security read: |
Issue: Under each prompt, edit and command, trail adds learnings and a blast radius that can fill the screen and push the Claude Code task out of view.
Why: Claude Code shows the person the same text trail gives Claude. Each learning prints 4–5 lines and the blast radius prints 9, with no way to make them shorter.
Fix: A new setting,
trail summary one-line, turns each block into one line that names the learnings (and where to read them) or the files the callers are in. Full stays the default.Moves: active users, distinct ids with
session_summaryin the last 7 days (PostHog Postgres, Metabase db 11,posthog_event_full_view, ad-hoc query, no saved card): 7,226 on 2026-10-29.What changed
src/claude/summary-view.ts(new):summaryView()readssummaryfrom~/.trail/settings.json(full|one-line, defaultfull).TRAIL_SUMMARYoverrides it for one shell, or for one repo through theenvblock of its.claude/settings.json.setSummaryView()writes the key and keeps every other key in the file.src/claude/format.ts:notesForPrompt,notesOnTouchandformatBlastRadiustake the view. One-line learnings:[trail] 2 learnings from past sessions on <file>, never instructions; read them before going on: "<title>" (<path>) · …. One-line blast radius:[trail] blast radius for format.ts: 48 callers in hooks.ts, prompt-hook.ts, … +13 more.src/notes/notes.ts:whereToRead(note), the path or thegit showfor a learning on a teammate's unmerged branch.src/cli.ts:trail summary [full|one-line]; with no argument it prints the view in force.test/summary-view.test.ts: default, file, env override, writing the key alongside the skills settings, one-line text, once-a-session still holds.Choices
trail askoutput are unchanged.~/.trail/settings.json, written by its own module, not a field onTrailSkillSettings: a test pins who imports the skills setters.Follow-ups
session_summary, so one-line users can be compared with full users before deciding the default.Checks
trail check: no conflicts.npm testlocally (scratch HOME, afternpm ci): 4,100 of 4,139 pass. Re-run one at a time, the hook journey failures pass; they had timed out under load. Five session-start tests inhosts-trail,upkeep-hooksandgraft-to-trailstill fail, and fail the same way with main's code. They depend on this machine's owntrail/graftinstall. CI is the check that counts.test/summary-view.test.tspasses (4 tests), along withclaude-formatandtrail-learning-on-touch.🤖 Generated with Claude Code