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
- DHH cracks Linux deep sleep on Zenbook A16: 0.16W overnight draw — cgarciae88 · 2026-11-30
- Sakana AI open-sources Agentic Scientist, pushing toward self-improving AI researchers — SakanaAILabs · 2026-11-30
- Blogger migrates Ghost blog to self-hosting in hours with Claude — kevinakwok · 2026-11-30
- Business-prose model open-sourced: trained on a single 96GB GPU, all quant formats in one repo — IridiumEagle · 2026-11-30
- Devs say vibe-coding workflow is draining the joy of programming — weskambale · 2026-11-30
- Slipwing: Open-Source Windows MCP Server Lets Agents Drive Chrome and Desktop Apps in the Background — Sudden_Analysis8617 · 2026-11-30