Context tokens sent to the model, with and without Hexum

Last updated 12 September 2026

A coding agent that is about to patch one function still has an incentive to read everything. Missing a file is a failed turn. Dumping the tree is a larger bill and a dumber prompt, but it rarely looks like a bug in the editor. That is why the default is eighteen thousand tokens for a three thousand token job.

Hexum sits on that path as MCP. The agent calls hexum_shrink before it reads widely. The model is sent this task, not every file. When it needs a full function it calls hexum_expand for that name. Hexum is not a new editor and not a compressor brand. Efficient is one of five products.

The published card

Study I, TR-2026-08-29. GPT-5.6 Sol. Official unit tests. Method: methodology. Interactive table: /benchmarks. CSV: results.csv.

Study I · tokens sent to the model
SuiteWithoutWith HexumCutTests
MBPP87,58612,97385.2%12 / 12
HumanEval132,80714,37989.2%12 / 12
Combined220,39327,35287.6%24 / 24

Combined: 220,393 → 27,352 (−87.6%). 24/24 pass. Say 87.6% when you have 87.6%. Do not round it to 90%.

Estimator: ceil(utf8_bytes / 4). That is tokens sent to the model, not a cloud invoice and not Hexum’s bill. Hexum’s invoice is what the agent sent Hexum. Dashboard “tokens saved” is the cut. Details: what tokens saved means.

Tiny prompts save little

That is in the write-up on purpose. Hexum is for the turn where the agent was about to paste eighteen thousand tokens and three thousand would have passed the tests. Greenfield authoring cannot be shrunk. A focused agent that already opens four files can still beat a whole-repo shrink. Those cases are in Study II on /benchmarks.

Install

  1. Get a key at the dashboard. First 2M tokens this month need no card.
  2. Paste Hexum into Cursor or Claude Code.
  3. Ask the agent to shrink this repo, then check architecture.hexum.
What to paste
{
  "mcpServers": {
    "hexum": {
      "serverUrl": "https://hexum.dev/mcp",
      "headers": { "Authorization": "Bearer hexum_live_…" }
    }
  }
}

Compared with sending every file: repo dump vs Hexum. Architecture check that does not call a model: architecture.hexum.

FAQ

How does Hexum cut what I pay the model?

Your agent stops dumping the whole repo into the prompt. Hexum sends this task, not every file. On the published card, MBPP context dropped 85.2% and the combined 24-task cut is 87.6%, with 24/24 tests still passing. Tokens are ceil(utf8_bytes/4), not a provider invoice. See /benchmarks.

What does the dashboard mean by tokens saved?

How much smaller the reply was than what the agent sent, when that is a cut. Your invoice is still based on what the agent sent Hexum, not on the savings.

What is Hexum?

Hexum is a developer ecosystem for coding agents in Cursor, Claude Code, and the rest. One API key. Five products and twelve tools today: spend less on each prompt, block bad imports, review pull requests, stop the agent looping, and only keep building when checks pass. We do not keep your code.

How do I add Hexum to Cursor?

Create a key at /app, paste the one-sentence prompt into Cursor, and let the agent write the MCP config. Starter works until two million tokens this month. Details: /cursor.

Does Hexum replace Cursor or Claude Code?

No. You keep Cursor, Claude Code, Antigravity, Codex, or Grok. Hexum is not an editor and not a model. You paste a key into the agent you already use.