Context Window Rot Cost Calculator

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 BandPeak TokensEst. Rework RateWasted API / MoWasted 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.

All calculations run 100% locally in your browser with zero external API calls. Pricing and rate limits reflect published 2026 provider rate cards.