Where do the tokens go? A month of MegaOpus usage measurements
Status 10 Nov 2026. All figures were measured in MegaOpus with its own instructions and tools. They show how MegaOpus’s agents consume tokens, not how Claude Code or Codex consume them in general.
At the beginning of October, the weekly quota filled up in the middle of the week. When it was reset, the reset quota was almost used up again within a day. The case has its own article. The cause was found by measuring: the agents’ conversation histories grew to hundreds of thousands of tokens, and every call read the whole history again. This article brings together all the usage measurements made so far, compares them with each other and goes through which changes have actually affected usage.
In short: the average context of the terminal agents has dropped from about 300,000 tokens to about 142,000 tokens, and the price of a call has fallen by 20–37%, depending on how the amount of work is counted. Almost the whole change comes from one thing: compacting the context in time.
How it was measured
- Source. MegaOpus stores the tokens of every model call of every agent in its own database: new input, read from cache, written to cache and output. Logging for the terminal agents (coord, dev, debugger) began on 15 Oct 2026 and logging for Ohjaamo turns on 4 Oct 2026.
- Cost. The dollar amounts are estimates at Anthropic’s and OpenAI’s API list prices. MegaOpus is used with a monthly subscription, so the sums are not paid invoices. They are a measure of what consumes the quota.
- Context. The context of a call is the amount of text the model reads on the call: instructions, tools and the whole conversation up to that point.
- Effective usage. Some measurements use one weighted figure: read from cache × 0.1, written to cache × 2, new input × 1 and output × 5. The same weighting is used in all comparisons.
- The whole history was rerun on 10 Nov. The earlier measurements were made on different days and partly from different sources. For the comparison, the whole stored history was now calculated at once in the same way.
- Days are in Finnish time. 10 Nov is included only for the night, until three o’clock.
Measurements in chronological order
| Day | Measurement | Main result |
|---|---|---|
| 1–2 Oct (measured afterwards on 10 Nov) | The quota running out | In about 31 hours, 4,661 Claude Code calls in three projects, with an average context of 548,000 tokens per call. The agents read more tokens than they now do in a whole week. The case has its own article. |
| 2 Oct | Observation of the agents’ histories | The weekly quota had been reset by hand the day before, and within a day it was almost used up again. The agents’ conversations had grown large: about 737,000 tokens for the debugger, 672,000 for dev and 640,000 for coord, and every call read the whole conversation. |
| 4 Oct | First Ohjaamo turn measured, compared with a claude.ai conversation | Ohjaamo turn: context about 45,000, cost $0.27. The context of the claude.ai conversation directing the agents was about 375,000 tokens per round. |
| 22 Oct | Ohjaamo and terminal agents from the agents’ own logs | A terminal agent’s call cost 43,000–56,000 tokens effectively, an Ohjaamo call 19,000. The terminal agents compacted only at 570,000–700,000 tokens, and coord’s context grew to 518,000 in one session. About 28% of coord’s usage came from old MegaOpus tool results. |
| 24 Oct | Code Mode experiment, 14 runs | Code Mode used 44% more tokens (1,942,842 vs. 1,345,389), but the cost estimate was 10% lower and the answers were as good or better. |
| 1–2 Nov | Comparison of roles | One Codex coord made thousands of calls with very small output (a waiting loop). Codex’s Ohjaamo turn read 0.9–1.5 million tokens, Claude Code’s 0.3–0.4 million. |
| 9 Nov | Five days of usage per role | About $983 at API prices. Dev 30%, debugger 24%, coord 19%, Ohjaamo 15% and dev-2 12%. The upper limit of the context stayed at about 217,000 every day. |
| 10 Nov | The whole history again with one method | This article. |
Comparison: Claude Code terminal agents by period
| Period | Calls per day | Average context | Largest context | Price / call | Effective / call | Output / call |
|---|---|---|---|---|---|---|
| 17–19 Oct | 1,521 | 271,000 | 962,000 | $0.097 | 37,800 | 966 |
| 20–25 Oct | 1,091 | 321,000 | 966,000 | $0.115 | 44,600 | 912 |
| 26–30 Oct | 726 | 289,000 | 967,000 | $0.097 | 38,500 | 866 |
| 31 Oct–2 Nov | 2,964 | 145,000 | 224,000 | $0.107 | 33,800 | 1,534 |
| 3–9 Nov | 2,308 | 142,000 | 223,000 | $0.067 | 23,600 | 729 |
| 10 Nov (night) | 454 | 116,000 | 188,000 | $0.057 | 19,900 | 692 |
Two things are visible in the table right away:
- The context halved at once on 31 Oct. Before that, the average context was 270,000–320,000 and the largest almost a million tokens. Since then, the average has stayed at 142,000–145,000 and the upper limit at about 220,000 every day.
- The price fell only a week later. In the transition period 31 Oct–2 Nov, a call was still expensive, because the agents compacted exceptionally often (25 compactions per thousand calls) and produced a lot of output. In the settled period 3–9 Nov, a call cost $0.067, which is 37% less than in 17–30 Oct ($0.105).
Calculated with the same weighting, the effective usage per call dropped from 44,600 in the 20–25 Oct period to 23,600 (−47%). The figure matches the log measurement of 22 Oct (43,000–56,000), even though that was made from a different source, so the old and the new measurement are comparable.
How much did this save? The number of calls alone does not tell the amount of work done. That is why the saving is worth calculating in two ways:
- Per call: at October’s price, the calls of 3–9 Nov would have cost about $1,700. They cost $1,075, which is about 37% less.
- Per output: a thousand output tokens cost $0.114 in October and about $0.091 in 3–9 Nov, which is about 20% less.
The real saving is probably between these: about $270–620 per week at API prices for the same amount of work.
Changes that concerned usage
| Day | Change | What it does |
|---|---|---|
| 6 Oct | Ohjaamo session context limit 130,000 | Ohjaamo starts a new session when the limit fills up. |
| 8 Oct | Compaction instruction for Ohjaamo’s reports | Ohjaamo answers the agents’ reports more concisely. |
| 14 Oct | Skill as a startup argument | The agent’s instruction is given as a system prompt and not written into the terminal. |
| 15 Oct | Context lightening | In start and continuation messages, references to reports instead of whole reports, a short Oppos list and repetitions removed from the descriptions of MegaOpus tools. |
| 25–26 Oct | Compaction limit (phase 1) | The agent is given its own compaction window of 250,000, and MegaOpus requests compaction after the turn ends when the context exceeds the limit (initially 200,000). Before this, Claude Code’s window was a million tokens, and the agents compacted only after being idle for about an hour. |
| 26 Oct and 28 Oct | Trimming the starting context (phase 2) | Connections and skills synced from claude.ai removed from the agents, and reader roles get only the tools they need. |
| 26 Oct | Oppos agent (part 1) | Oppos work with compact tools and in its own session, so that Oppos readings do not stay in coord’s context. |
| 31 Oct | Command output limit (phase 3) | The maximum length of command output as a setting (default 30,000 characters). |
| 31 Oct | Compact MCP responses (phase 4) | Nine MegaOpus tools return a compact response by default and the full one only on request. |
| 26 Oct–1 Nov | New session for every task (phase 6) | A per-role option that clears the agent’s conversation before a new task. Off by default. |
| 31 Oct–1 Nov | Compaction fixes | The compaction request is sent reliably. |
| 6 Nov | Seven-line report format | The agents’ reports in a short standard format, the full report in a file. |
| 8 Nov | Oppos agent in a new session on every call | The Oppos background role answers the caller from an empty session. |
| 9 Nov | Compaction limit 200,000 → 150,000 | Compaction happens earlier. |
Did the changes have an effect?
Clear effect: the compaction limit. This is the only change that shows unambiguously in the figures. In October, the agents compacted about five times per thousand calls, and in the log measurement on 22 Oct the context was on average 340,000–440,000 tokens. In November, there are about twelve compactions per thousand calls, and they happen at about 214,000 tokens. This results in a halved average context and in no call carrying a history of almost a million tokens anymore. Although the setting was taken into use on 25–26 Oct, the full effect began only on 31 Oct–1 Nov, when the obstacles to the compaction request had been fixed. This is a good reminder that a change is done only when it shows in the measurement.
Probable effect: trimming the starting context. The smallest measured starting context was about 68,000–95,000 tokens in 17–22 Oct and about 52,000–68,000 after 25 Oct. The fixed starting part measured on 22 Oct was about 54,000 tokens, of which the skills synced from claude.ai were about 4,500. In the smallest values, the difference is about 15,000–25,000 tokens on every call. The exact share of the total saving cannot be separated, because the compaction fix came at almost the same time.
Cannot be separated: compact MCP responses and the command output limit. Both were taken into use on 31 Oct, the same day as the compaction breakthrough, so their share cannot be separated from the total figures. The default command output value of 30,000 characters is the same as Claude Code’s own default, so no change was expected with the default. The effect arises only when a shorter level is chosen for a project or a role.
Not visible in the total figures: a new session for every task, the Oppos agent and the report format. The new session is off by default and in use only for separately set roles. The Oppos agent’s share of all calls is small. Output per call fell from about 900 to about 730, but the fall began already on 3 Nov, that is, before the report format of 6 Nov. The cause may also be the kind of work, so it cannot be credited to the report format.
No point of comparison: the changes of 6–15 Oct. Agent-specific measurement began on 15 Oct. Before that there was only a per-project minute meter, so the changes before it cannot be compared with their own data. Ohjaamo’s starting context (daily median 52,000–78,000 for the whole measurement period) shows no change after the lightening of 15 Oct.
Too early: the 150,000-token limit. The first hours of 10 Nov show an average context of 116,000 tokens and $0.057 per call. The amount of data is still small, and the direction will be checked with a repeat measurement.
The structure of the costs changed
When the context became smaller, what the cost consists of changed too:
| Period | Reading from cache | Writing to cache | Output |
|---|---|---|---|
| 17–30 Oct | 56% | 26% | 17% |
| 31 Oct–2 Nov | 26% | 45% | 29% |
| 3–9 Nov | 42% | 36% | 22% |
In October, the largest cost item was reading the long history from the cache on every call. Now writing to the cache is an almost equally large item. After compaction, the new, shorter conversation is written to the cache, and writing costs twice as much as new input. In the transition period, there were almost twice as many writes per call as in October. In the settled period, there were already fewer of them than in October (about 3,000 vs. 3,500 tokens per call).
This leads to the most important question of the next phase. A lower limit reduces the reading cost of every call, but increases compactions and their writing cost. At some point these cancel each other out. The measurement of the 150,000-token limit will tell whether we are already close to that point.
Ohjaamo
Ohjaamo’s usage has stayed steady throughout the measurement period: a turn costs $0.21–0.28, and the context of the last call is on average about 97,000 tokens. The reason is that Ohjaamo has had a session limit of 130,000 tokens since 6 Oct, that is, for almost the whole measurement period. An Ohjaamo turn contains several model calls, so the price of a turn cannot be compared directly with the price of a terminal agent’s call. The latest week, 3–9 Nov, was Ohjaamo’s cheapest, about $0.21 per turn.
Claude Code and Codex
Codex agents did a significant part of the work in 15–26 Oct, and after that their use practically ended on 2 Nov. Codex’s own compaction kept the context at an average of about 130,000–230,000 tokens already in October, so Codex did not have the same problem as Claude Code with its million-token window. In Ohjaamo, the difference was the opposite: Codex’s Ohjaamo turn read 0.9–1.5 million tokens, while Claude Code’s turn read about 0.3–0.4 million. Codex’s costs cannot be compared in dollars, because some of the Codex models had no known price.
Code Mode
Code Mode is a separate experiment: the agent writes code that calls MegaOpus’s tools instead of calling them one at a time. In the first measurement of 14 runs on 24 Oct, it used 44% more tokens, but the cost estimate was 10% lower and the answers were as good or better. The causes of the extra tokens were found: the runs started with unnecessary searches, the agent guessed the project name wrong, and filtering of the results worked in only one task. The instruction has been fixed, and a repeat measurement is in progress.
What next
- 150,000-token compaction limit: a repeat measurement in about a week. It will measure whether the price of a call keeps falling or whether cache writes grow.
- Code Mode: a repeat measurement with the same seven tasks and 14 runs.
- Comparison test: two identical small projects are built with Claude Code and Codex, and with ordinary MCP tools and Code Mode. The test has been prepared, but the runs have not been made yet.
The measurements continue, because one thing has already been proven: when a change was made without measuring, its effect went unseen. The compaction decision made on 15 Oct was not carried out, and this was noticed a week later, on 22 Oct, only because usage was measured.
There is a follow-up article on how changing the model affects usage: The price of a token is not the price of the work.
