By Michael Lip · Updated 28 November 2026 · Runs 100% client-side in your browser.
Long coding sessions degrade well before hitting the 200K token wall. As stale diffs and old errors accumulate, context rot triggers hallucinations, circular edits, and wasted developer time. Model your exact rework tax and optimal /compact threshold below.
Interactive calculator
Context Band
Peak Tokens
Est. Rework Rate
Wasted API / Mo
Wasted Dev Time / Mo
Frequently asked questions
What is context window rot in coding agents?
Context rot is the steady drop in instruction adherence and edit precision as a session fills with stale file reads, superseded diffs, and noisy terminal logs.
At what token count should I run /compact or start a new session?
Most engineering teams see peak accuracy below 60K to 80K tokens (30% to 40% of a 200K window). Starting a clean handoff before 100K avoids circular debugging.
Why is /handoff better than waiting for auto-compaction?
Auto-compaction triggers near the ceiling after accuracy has already degraded. A structured /handoff preserves exact file paths, test results, and constraints in under 1,000 tokens.