About
Why CompactBench exists
Every long-running AI agent eventually runs out of context and compacts: it replaces its history with a summary and keeps going. Whatever the summary drops is gone for good — a rule, a decision, who owns what, the exact number that mattered.
CompactBench measures that loss directly. It generates long working sessions, has a method compact them again and again under a fixed budget, and asks a fixed reader model what survived. Answers are checked mechanically, every score sits between its own ceiling and floor, and ranked runs use a hidden generator sampled fresh each time.
Principles
- Measure the loop. Compaction happens repeatedly; so does the test.
- No judge. Every answer is an option or an exact value.
- Hard but fair. Every question is answerable from the full conversation and not guessable from nothing.
- Open by default. The code, the public suites and the scoring are open source; only the ranked generator is private, so it can't be memorized.
Get involved
Benchmark your method with the public practice suite, submit itfor a ranked run, or contribute on GitHub. Questions and press: open an issue, or for anything private, send a private report.