Repository navigation
v0.21.0 — advisor trio (env tips, .claudeignore, Bash output)
Three advisor-class wins absorbed from the community usage-limit guide.
Added
- doctor: Claude Code env knobs tips (TP-c08) — surfaces the four env vars/settings fields that give 60-80% session savings with zero code change (
CLAUDE_CODE_SUBAGENT_MODEL=haiku,MAX_THINKING_TOKENS,CLAUDE_AUTOCOMPACT_PCT_OVERRIDE,model=sonnet). Pure advisory. .claudeignoregenerator + CLAUDE.md hygiene (TP-rtg) —token-pilot initoffers to create.claudeignorewith sensible defaults (node_modules, dist, lockfiles, source maps…). Non-destructive: carries a magic marker so we refresh our own file but never touch user-owned content.doctoralso warns whenCLAUDE.mdexceeds 60 non-empty lines — that file loads into every Claude Code message.- Bash output advisor (TP-jzh) — new
PostToolUse:Bashhook. When Bash stdout is large (~8000+ chars), appends a one-lineadditionalContexttip steering the next turn towardmcp__token-pilot__test_summaryand bounded commands. Claude Code's PostToolUse can't truncate in-flight output for non-MCP tools, so the value is behavioural: the agent learns not to repeat the expensive pattern.
Internals
.claude-plugin/hooks/hooks.jsonand the installer now register PostToolUse:Bash alongside Read/Edit/SessionStart; idempotent install, full uninstall.- 843 tests green, tsc clean,
npm pack --dry-runverified.
See CHANGELOG.md for the full entry.