Commit af2b0dc
fix(profile): recommender stops pushing trims + doctor flags explicit trimmed profile (26b)
Root of the recurring 'read_range/read_for_edit doesn't exist' pain: the
profile-recommender suggested TOKEN_PILOT_PROFILE=nav (or edit) for read-heavy
usage and printed an 'apply to .mcp.json' snippet. Users applied it; the next
edit session then hit trimmed edit-tools the rules/hooks still demand → dead
'No such tool available' → Read fallback. Past usage doesn't predict future
edits, and this contradicts the v0.45.0 full default (trimming is
penny-wise-pound-foolish).
- recommendProfile now always recommends ; the nav/edit reasons explain
why trimming is risky (minimal stays a self-serve, warned opt-in).
- formatRecommendation no longer prints the 'apply nav/edit to .mcp.json' trap.
- token-pilot doctor v0.44.0
Install mode: npm / npx
Node.js: v20.9.0 ✓
config: /Users/mhershahinyan/www/token-pilot/.token-pilot.json ✓
git repo: yes ✓
── token-pilot ──
installed: 0.44.0
latest: 0.44.0 ✓ (up to date)
── ast-index ──
installed: 3.47.0 (bundled: /Users/mhershahinyan/.nvm/versions/node/v20.9.0/lib/node_modules/@ast-index/cli/bin/ast-index)
latest: 3.47.1 (update available!)
run: npx token-pilot install-ast-index
auto-update: disabled (set updates.autoUpdate=true in .token-pilot.json)
── context-mode ──
detected: no
setup: npx token-pilot init
── Claude Code env knobs (savings tips) ──
⚠ CLAUDE_CODE_SUBAGENT_MODEL not set to haiku — add `"CLAUDE_CODE_SUBAGENT_MODEL": "haiku"` under `env` in ~/.claude/settings.json to route subagents to Haiku (~80% cheaper).
⚠ MAX_THINKING_TOKENS unset (defaults to 32000) — add `"MAX_THINKING_TOKENS": "10000"` under `env` in ~/.claude/settings.json to cap hidden reasoning tokens (~70% saving).
⚠ CLAUDE_AUTOCOMPACT_PCT_OVERRIDE unset — add `"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "50"` under `env` in ~/.claude/settings.json to compact context earlier (healthier sessions).
── .claudeignore ──
not present — run `npx token-pilot init` to add sensible defaults
── CLAUDE.md hygiene ──
⚠ /Users/mhershahinyan/www/token-pilot/CLAUDE.md has 72 non-empty lines (threshold: 60).
This file loads into every Claude Code message — splitting into docs/*.md and loading on-demand saves tokens per turn.
── ecosystem coverage ──
✓ caveman Output compression (terse-speak skill) — cuts ~75% of Claude's response prose
✓ context-mode Sandbox executor — runs shell/python/js, only stdout enters context
○ cavemem missing — Cross-session memory — remember context across restarts
install: see https://github.com/JuliusBrussee/cavemem
token-pilot owns INPUT tokens. Each tool above owns a different
half of a session — they do not overlap. See docs/ecosystem.md.
── statusline badge ──
⚠ statusline points at tp-statusline.sh directly but caveman is
installed — switch to statusline-chain.sh so both badges show.
── runtime health ──
errors: 3 recent (top codes):
3× unknown
drill-in: token-pilot errors --tail=20
stale hooks: none ✓
tp-* agents: 25/25 ✓
cwd: /Users/mhershahinyan/www/token-pilot ✓ now LOUDLY flags an explicit TOKEN_PILOT_PROFILE=trim,
names the hidden tools, and tells the user to remove it / set full.
Live-verified: doctor warns on nav. 1391 tests (recommender tests rewritten).
tsc clean. No version bump — 0.45.0.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 67adf44 commit af2b0dc
3 files changed
Lines changed: 62 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1520 | 1520 | | |
1521 | 1521 | | |
1522 | 1522 | | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
1523 | 1548 | | |
1524 | 1549 | | |
1525 | 1550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
71 | | - | |
72 | | - | |
| 78 | + | |
| 79 | + | |
73 | 80 | | |
74 | 81 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | | - | |
89 | | - | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| |||
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
118 | | - | |
119 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | | - | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
128 | | - | |
129 | | - | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
0 commit comments