hexum_shrink sends this turn instead of the repository

Last updated 29 August 2026

Not a CLI. Not a browser IDE. Tool arguments: hexum_shrink contract. Method: how those percentages were measured.

FAQ

How does Hexum reduce tokens?

The agent calls hexum_shrink before it reads widely. The model is sent this turn, not the repository. On MBPP, measured context dropped about 85% with the same tests passing. Example turn: 18.2k → 3.1k tokens, 41 files → 6. See /benchmarks and /methodology.

What is Hexum?

Hexum is an MCP server for Cursor, Claude Code, and other coding agents. It sits between the agent and the model: hexum_shrink sends this turn instead of the repository, hexum_check fails the turn when architecture.hexum is broken, and you keep your editor. On MBPP, context dropped about 85% with the same tests passing.

What is tokens saved?

Tokens in minus tokens out, when that is positive. Stripe is billed on tokens saved. Calls that do not save tokens still increment calls and the in/out counters.