Data & API
Use the data
Everything on the leaderboard is available as plain files. No key, no sign-up, no rate limit beyond fair use. Licensed Apache 2.0.
JSON
/api/leaderboard.json— every published row: scores, intervals, per-family and per-compaction scores, settings./api/families.json— the failure families./api/season.json— the current season's pinned settings./api/methods/<slug>.json— one row, the same slug as its/methods/<slug>page./api/leaderboard.csv— the leaderboard as CSV, one column per family./api/openapi.json— an OpenAPI 3.1 description of all of the above.
For AI assistants
/llms.txtand/llms-full.txt— a map of the site, and every page in one file.- Every content page has a Markdown twin:
/methodology.md,/leaderboard.md, … - A remote MCP server at
https://compactbench.com/mcp(Streamable HTTP, read-only) with toolsget_leaderboard,get_method,compare_methods,list_familiesandexplain_metric. - A self-test for AIs, on the same server:
selftest_list,selftest_turns,selftest_questionsandselftest_score. An assistant compacts a public CompactBench conversation with its own model, cycle by cycle, answers multiple-choice questions from its memory, and gets a score overall, after each compaction and per failure family, with what it missed. Scoring is mechanical, so nothing runs on our side. It's self-reported practice, not a leaderboard result.
# Add it to Claude Code
claude mcp add --transport http compactbench https://compactbench.com/mcp
# Then ask, for example:
# Take the CompactBench self-test quick-decision-override, compacting the way you
# normally would, and tell me what you forgot.Run it yourself
The benchmark is a Python package. Results files hold scores and settings only, so they're safe to share; traces hold everything and stay wherever you write them.
pip install compactbench
compactbench run --method built-in:hierarchical-summary --suite practice \
--provider anthropic --model claude-haiku-5-5 --reader-effort high --controls- The public suites as a dataset on Hugging Face:compactbench/compactbench(
load_dataset("compactbench/compactbench", "practice")). - A Claude Code plugin with skills to write compact instructions and to benchmark a compaction method:
/plugin install compactbench --marketplace compactbench/compactbench. compactbench checkand a GitHub Action that fail a pull request when your method starts forgetting more, on your own keys.