Claude Code Advisor Tool Triples /compact Costs by Breaking Cache
motonari728 · ghdev · 2026-08-22
A GitHub issue reveals a cost bug in Claude Code's /compact command. When the Advisor tool is enabled, the internal fork request uses a different tools array and system prompt, preventing it from reusing the prompt-cache prefix written by the main loop. This causes the entire conversation body to be re-processed as a cache write on every compaction. Benchmarks show a 3.5x cost increase (approx. 54k tokens re-billed) compared to disabling the Advisor. Setting CLAUDECODEDISABLEADVISORTOOL=1 restores cache hits.
More from coding & agent
- Agentic coding accessibility will reshape understanding of software complexity — pixlpa · 2026-08-24
- Devin Agent bypasses Slack block by finding emails in git logs — sandylikesfrogs · 2026-08-24
- Developer habits shift: Agents become collaborators from simple tools — latticecut · 2026-08-24
- Dev bottleneck shifts from writing to reading code: exe.dev co-founder — thursdai_pod · 2026-08-24
- The biggest AI mistake: trying to reinvent the wheel instead of using tools — Tired40s · 2026-08-24
- DeepPaperNote turns research papers into Obsidian notes — tom_doerr · 2026-08-24