Claude Code quota drain traced to 967K default compact threshold; set /autocompact 400k to save
dotey · x · 2026-10-11
- Anthropic engineer Lydia Hallie clarified that Claude Code's auto-compact does summarize history, but on 1M-context models it waits until 967K tokens before triggering — so every turn before compaction carries a massive context base that quietly eats your 5-hour quota.
- Compaction itself isn't costly: the summary mostly runs on warm cache reads, and you only pay one small Cache Write for the short summary, in exchange for a much lower per-turn base afterward.
- Fix: run /autocompact 400k or set autoCompactWindow in /.claude/settings. to force earlier compaction.
- Quoting yetone: there's no universally optimal config; magpie's new "tune for you" feature replays compaction thresholds and cache durations locally against your real calls to find the most token-efficient settings per agent and model.
More from coding & agent
- Berkeley's Dimakis: Models Just 10 Months Old Are 'Spectacularly Bad' at Collaboration — AlexGDimakis · 2026-12-02
- ansi: an open-source terminal agent harness where every turn is journaled and forkable — remilouf · 2026-12-02
- NVIDIA expands OpenShell for agent permissions; Anthropic, CrowdStrike, Palantir already using it — NVIDIAAI · 2026-12-02
- Everything Is a File: Building an LLM Agent Harness on Plan 9 Principles — remilouf · 2026-12-02
- Anchor Browser lands in Hermes Agent: cloud browser handles logins without pasting passwords — ghumare64 · 2026-12-02
- Developer uses Neon to fix the weirdest bugs Opus left in centrifuge controllers — jonathanberte · 2026-12-02