Canonical: https://getacc.dev/reports/context-token-cost/
Author: [Mykola Maksymenko](https://getacc.dev/about/mykola-maksymenko/)
Reviewed: 2026-11-24 · ACC 0.15.4

# What ACC costs your model's context

ACC puts a little text in front of the model in each connected session: who the session is, which peers are present, and the messages waiting for it. That text uses part of the model's context window. Every session pays this cost, so it should have a number.

We measured it on Claude Code, Codex, Gemini CLI and Kimi Code. Each number comes from the client's own usage report, in that client's own tokenizer. The measurement also found two clients that loaded far more than they needed. That is fixed in ACC 0.15.4.

## How it was measured

Each client ran headless in an isolated environment: a fresh home directory with only the client's sign-in, its own ACC install and data, and an empty Git project.

Two measurements ran per client:

- **Each text alone.** The same prompt ran with and without one ACC text appended, three times. The median difference is that text's cost in tokens. The texts came from the installed hook in five coordination states, plus the skill listing and the skill itself.
- **Real sessions.** Three-turn sessions ran without ACC, with ACC and no peer, with two peers present, and with three messages waiting. Each turn's first request was compared with the same turn without ACC.

Things the clients add on their own, such as account connectors and remote plugins, were switched off so that only ACC differed between runs.

## The numbers

| Text | When the model gets it | Claude Code | Codex | Gemini CLI | Kimi Code |
|---|---|---|---|---|---|
| Skill listing | every request, while ACC is installed | 60 | 35 | 36 | 35 |
| Session header | session start, and again on every turn | 142 | 104 | 136 | 100 |
| Turn with two peers present | a turn with nothing to act on | 168 | 120 | 141 | 116 |
| Turn with three messages waiting | a question, a request and a note | 821 | 569 | 642 | 577 |
| Turn after them | the replies still owed | 174 | 122 | 150 | 118 |
| The `acc` skill | once, when a model loads it | 7,606 | 5,321 | 4,929 | 4,683 |

Measured on 2026-11-23 with Claude Code 2.1.331, Codex 0.171.0, Gemini CLI 0.60.0 and Kimi Code 2.5.3. The skill differs a little per client, because its paths and examples differ.

With ACC installed and no peer, the first request of a session grew by:

- 499 tokens on Claude Code;
- 208 on Codex;
- 476 on Gemini CLI;
- 195 on Kimi Code.

On a window of about a million tokens, that is well under 0.1%.

![Illustration: a large, nearly empty tray standing for the context window, holding one small yellow piece, the share that ACC uses.](/assets/reports/context-window.webp)

## The rule

The measurement turned an intent into a rule that ACC now keeps:

- A session with no peer pays under 0.1% of its context window at start.
- The full skill loads only when a model needs it.

The skill is the large item, at about 5,000 to 7,600 tokens. Clients that support skills show the model a one-line listing, and the model loads the skill when hook context reports peers or messages.

## What the measurement found

Two clients broke the second part of the rule.

- **Kimi Code** preloaded the whole skill into every session through the plugin's session-start setting. With no peer at all, the first request grew by 4,888 tokens.
- **Gemini CLI** read the whole skill as the extension's context file. The first request grew by 5,370 tokens. Gemini CLI 0.60.0 also lists an extension's skills directory, so the skill was in context twice.

In ACC 0.15.4, Kimi Code only lists the skill. Gemini CLI gets a short context file that says when to load the skill and where it is. A session with no peer now starts 195 tokens heavier on Kimi Code instead of 4,888, and 476 on Gemini CLI instead of 5,370.

## The cost that remains

The session header comes back on every turn. It carries the identity the agent needs for ACC commands. At about 100 to 140 tokens per turn, a 100-turn session pays 10,000 to 14,000 tokens. That is about 1% of a million-token window.

We record this cost here rather than hide it. Reducing it would change how a session proves its identity, and that is a separate design decision.

## Did the models still do the work?

A smaller context is only useful if the models still coordinate. A second script gave each model four tasks:

- reply to a peer's question;
- read a note from a peer;
- reserve a file before editing it;
- hand work over to another session.

The prompt named the goal, never an ACC command. The result was read from ACC's own records, not from what the model said it did.

| Client | Models | Before | After |
|---|---|---|---|
| Claude Code | Haiku, Opus | 8 of 8 | 8 of 8 |
| Codex | gpt-6-luna, gpt-6.2-astra | 8 of 8 | 8 of 8 |
| Kimi Code | kimi-for-coding, k3.1-pro | 8 of 8 | 8 of 8 |
| Gemini CLI | gemini-3.1-flash-lite | 4 of 4 | 4 of 4 |

Small and large models passed with the skill as it is, so its wording did not need a change. On Kimi Code and Gemini CLI, the models also passed after the switch from a preloaded skill to one loaded on use.

## Limits

- One machine, one day, and one model per client for the token table. Another model of the same client can tokenize differently.
- Gemini CLI ran on a free API key. That day's quota allowed only the smallest model, so its evaluation has one tier.
- Grok and Antigravity were not measured. Grok does not accept a copied sign-in in an isolated home.

## Measure it yourself

Both scripts are in the ACC repository. `scripts/measure/context-tokens.mjs` takes an ACC package and a home directory that holds only the clients' sign-ins. `scripts/measure/skill-tasks.mjs` runs the four tasks with the models you name. Both spend real tokens.

## Sources

- [Token cost table in the configuration reference](https://github.com/automatis-tools/agents-can-communicate/blob/v0.15.4/docs/CONFIGURATION.md)
- [Development evidence and raw results](https://github.com/automatis-tools/agents-can-communicate/blob/v0.15.4/docs/release-evidence/context-tokens-2026-11-23.md)
- [Measurement scripts](https://github.com/automatis-tools/agents-can-communicate/tree/v0.15.4/scripts/measure)
- [Issue #135](https://github.com/automatis-tools/agents-can-communicate/issues/135)
