Docs
Documentation
Everything you need to benchmark a compaction method locally, then get it ranked.
Guides
- Getting started
Install CompactBench, run a built-in method on the Practice suite and read the results.
- Writing a compactor
Write your own compaction method: one class, one async method, any model.
- Forget less: what Season 1 says about compaction instructions
What Season 1 says about compaction instructions, as copy-paste prompts for Claude Code, Codex, LangChain and LlamaIndex.
- Check your method in CI
Fail a pull request when your agent starts forgetting more: compactbench check and the GitHub Action.
- Integrations
Benchmark the LangChain or LlamaIndex compaction you already have, with thin adapters.
- Elite program
The ranked Elite track: tiers, what stays hidden, and how seasons keep it fair.
- Elite governance
How families, suites and seasons are versioned, retired and reviewed.
- FAQ
Common questions about what CompactBench measures and how to use it.
- Related work
Other benchmarks for compaction, memory and long context, and where each one fits.
Reference
- Methodology
How cases are built, how the compaction loop runs and how answers are scored.
- Failure families
The eight kinds of compaction failure every case mixes together.
- Failure gallery
Real failures from public Practice runs, with what the conversation said.
- Submitting
Get a ranked score: sign in with GitHub, upload your method, bring your keys.
- Datasheet
What the benchmark contains, how it was made, and its known limits.
- Data & API
JSON, CSV, OpenAPI, llms.txt and the MCP server.