
63% of the tokens in our multi-agent run were the same opening block

By Krishnal
In late November 2026 we ran a large redesign of a client’s web app with Claude Code. One orchestrator session planned the work and steered 13 other sessions over eight days. Between them they started 765 subagents. The whole run processed about 5.2 billion context tokens — everything the models read across all their calls.
The work landed: 77 of the 78 pull requests were merged, and merging stayed with the engineer, never the agents. But when we measured the run, one number stood out:
About 63% of those tokens, roughly 3.3 billion, were the opening block of each session, sent again on every call.
The opening block is everything already in the context window before the agent does any work: the system prompt, the definitions of every tool it could call, lists of skills, and our own instruction files. Some of that is needed. A large part was not, and this post is about that part.
What was in the window before any work
On the orchestrator’s first call the window already held about 97K tokens. Our split is approximate, because we can only divide it by text size:
| Part | Share |
|---|---|
| Tool definitions (51 tools) | about half |
| System prompt | 16% |
| List of 77 skills | 10% |
| Our instruction files | 8% |
| Names of tools that could be loaded later, and other notes | 16% |
It grew from there. Tools loaded during the session were never unloaded, so the starting load reached about 117K.
By our estimate, up to a third of the first call was tools that belong to the desktop app: publishing a page, driving a browser pane, running a phone simulator. No session in this run used the page-publishing tool or the simulator. We ran long sessions from the desktop app and never checked what came with it.
The biggest cost: subagents that carried tools they never used
Our implementer and reviewer subagents started every call at about 70K tokens. Our explorer and chores subagents started at 15K to 17K.
The difference was one line in each agent’s definition. The cheap pair listed the tools they were allowed to use. The expensive pair listed the tools they were not allowed to use, so they received everything else the parent session had.
Those implementer and reviewer agents made about 26,000 calls. Their opening block alone came to about 1.8 billion tokens. We estimate 1.2 to 1.35 billion of that — about a quarter of the whole run — was for tools they never called.
Four smaller costs
Very little room to work. We had capped the window at 200K tokens on purpose, to keep the orchestrator small. When the window fills, Claude Code summarises the conversation and carries on. That started at about 168K. After each summary the session restarted at about 138K, which left about 29K of room. The orchestrator was summarised 192 times, after a median of 17 calls, and the 14 sessions 525 times in all. Each one took about two and a half minutes: 8.1 hours for the orchestrator alone.
The orchestrator ran the CI checks itself. Our hosted CI minutes ran out on day three. The orchestrator built a local replacement and then kept starting it and checking on it. About half of its 2,307 shell commands were that. The calls involved processed up to 169 million tokens.
Interruptions that changed nothing. Every time a child session finished a turn, the orchestrator was notified. Of 603 notifications, 335 led to no change. Handling them took between 32 and 87 million tokens.
Old content came back after every summary. The planning instructions from the first hour were re-added after all 192 summaries, along with recently touched files. That took about 9K of the 29K of room.
What the summaries did and did not cost
They cost time, and they cost re-orientation: after each one the orchestrator re-read its task list and state before doing anything useful. We looked for signs that it lost facts and made mistakes because of that, and found none in the orchestrator. We have not checked the child sessions.
What worked
This was not our first post-mortem. About seven weeks earlier we had reviewed a week of agent coding sessions across two client projects. That review found different problems: subagents reading whole plan documents, sessions carrying huge command outputs in their windows, and most work going to a generic agent with no defined role. We changed our rules after it.
Those fixes held. In this run briefs were short, no session dumped huge tool results into its window, and every subagent had a defined role. Implementer subagents made a median of 41 calls each, against 82 per subagent in the largest session of the earlier review.
State files worked. Each session wrote down where it was and picked up from that file after a summary, so the engineer almost never had to type “continue”. A goal check that was meant to stop sessions ending early only half worked: it caught one false “done”, and it also looped when its goal depended on something only the engineer could do.
And merging stayed with a person.
What we are changing
None of this is applied yet. Each change has a check, and we will measure again afterwards.
- Give the build agents a list of allowed tools. The check: an implementer’s first call is under 25K, and it still does the same work and finds the same problems.
- Turn off tools the workspace never uses. The page-publishing tool is the largest single definition, and one setting removes it.
- Plan in one session, then orchestrate in a new one. Tools and instructions loaded for planning should not ride along for eight days. We expect about 13K more room per cycle.
- Take CI off the orchestrator. A script queues the checks and writes one result line per pull request.
- Children report by writing to a file. They message the orchestrator only when they are blocked.
- Fix how the work is delivered. One integration branch per phase, and no goal the agent cannot reach on its own.
One correction along the way is worth sharing. Our first list of allowed tools was the six obvious ones. When we checked what the agents had really called, 124 of 476 implementers had used a tool that list left out. It would have broken them. Check what was used before you cut.
What this means for anyone running agents at this scale
- Look at the first call. Average context size hides the problem if every call starts 100K deep.
- List what an agent may use, not what it may not. Tool definitions are large, and a deny-list inherits all of them.
- Keep planning and long-running execution in separate sessions.
- Keep polling, CI and notifications out of the session that makes decisions.
- Measure before and after. A smaller review one week before this run had already shown us how little room each session had. It had not shown us why.
You only see these costs once you instrument a real multi-day run. At Olensys we do that at the end of every agent programme, and the next one starts from what it showed.
Related articles
More on building with AI and proving it works.
AI-native deliveryOCT 26, 2026
AI-native deliveryOCT 26, 2026The engineer's job moved up a level. Most teams measure the old one.