# CompactBench > The open benchmark for context compaction: long AI agent sessions compacted again and > again under a fixed token budget, scored mechanically on what survived. Current season: s1 (suite elite 2.0.1, 1024-token budget, 5 compactions). 8 failure families. Python package: `pip install compactbench`. ## Pages - [Methodology](https://compactbench.com/methodology.md) - [Submit a method](https://compactbench.com/submit.md) - [Failure families](https://compactbench.com/families.md) - [Leaderboard](https://compactbench.com/leaderboard.md) - [Datasheet](https://compactbench.com/datasheet.md) - [Privacy](https://compactbench.com/privacy.md) - [Submission terms](https://compactbench.com/submission-terms.md) ## Docs - [Getting started](https://compactbench.com/docs/getting-started.md): Install CompactBench, run a built-in method on the Practice suite and read the results. - [Writing a compactor](https://compactbench.com/docs/writing-a-compactor.md): Write your own compaction method: one class, one async method, any model. - [Forget less: what Season 1 says about compaction instructions](https://compactbench.com/docs/forget-less.md): What Season 1 says about compaction instructions, as copy-paste prompts for Claude Code, Codex, LangChain and LlamaIndex. - [Check your method in CI](https://compactbench.com/docs/ci.md): Fail a pull request when your agent starts forgetting more: compactbench check and the GitHub Action. - [Integrations](https://compactbench.com/docs/integrations.md): Benchmark the LangChain or LlamaIndex compaction you already have, with thin adapters. - [Elite program](https://compactbench.com/docs/elite-program.md): The ranked Elite track: tiers, what stays hidden, and how seasons keep it fair. - [Elite governance](https://compactbench.com/docs/elite-versions.md): How families, suites and seasons are versioned, retired and reviewed. - [FAQ](https://compactbench.com/docs/faq.md): Common questions about what CompactBench measures and how to use it. - [Related work](https://compactbench.com/docs/related-work.md): Other benchmarks for compaction, memory and long context, and where each one fits. ## Data - [Leaderboard JSON](https://compactbench.com/api/leaderboard.json): every published row - [Families JSON](https://compactbench.com/api/families.json): failure families - [Season JSON](https://compactbench.com/api/season.json): the current season's pinned settings - [Leaderboard CSV](https://compactbench.com/api/leaderboard.csv): one row per result, one column per family - [OpenAPI](https://compactbench.com/api/openapi.json): description of the JSON API, incl. /api/methods/.json ## MCP - Remote MCP server: https://compactbench.com/mcp (Streamable HTTP, read-only). Tools: get_leaderboard, get_method, compare_methods, list_families, explain_metric. - Self-test on the same server: selftest_list, selftest_turns, selftest_questions, selftest_score. Compact a public case with your own model, answer from your memory, and get a mechanical score overall, per compaction and per failure family (self-reported practice, not a leaderboard result). - [Contact](https://compactbench.com/contact): report a problem, suggest an idea, partnerships and press - [Support CompactBench](https://compactbench.com/donate): donations (Ko-fi) and what they fund ## Elsewhere - [Public suites on Hugging Face](https://huggingface.co/datasets/compactbench/compactbench): practice, starter and drills as JSONL configs - Claude Code plugin: /plugin install compactbench --marketplace compactbench/compactbench (skills forget-less and measure-compaction) ## Optional - [Everything in one file](https://compactbench.com/llms-full.txt) - [Source code](https://github.com/compactbench/compactbench)