← All insights

AI agents

Where the tokens go in a real agent team

When a team of AI agents burns through its allowance, the first guess is always the same: they wrote too much. We read two real fleets call by call. The output was never the story. In the larger fleet, almost all token traffic was input, mostly read from cache.

4 min readGuildBuild Team
AI agentsMulti-agent systemsLLM cost optimizationPrompt cachingAgent orchestrationCodexClaude
In this article

A Codex fleet: 28,600 calls and 98.1% cached input

One fleet of 20 sessions made 28,600 calls.

Codex fleet token counts across 28,600 calls
Token categoryTokens
Input, all3,675,632,277
Of which read from cache3,605,212,416
Fresh input70,419,861
Output13,854,848

98.1 percent of the input was cache reads. Output was under half a percent of what moved, counting input plus output. These are token shares, not shares of billed cost.

That is the pattern in a long session: later calls can include the conversation accumulated so far. The cache makes each re-read cheaper, but the count of re-reads still adds up.

The load was not spread evenly. In the first count of that fleet, six of the 20 chats carried about three quarters of the fresh input plus output. The leader alone carried 22 percent, and sent 696 of the 2,167 messages between agents. A leader that sits in every loop pays for every loop.

Figure 01Field measurement

Nearly all token traffic was input

Tokens moved

Cached input
3,605,212,41697.72%
Fresh input
70,419,8611.91%
Output
13,854,8480.38%

Across 28,600 calls in 20 sessions, output was about 0.376% of 3,689,487,125 tokens moved. Cache reads made up 98.1% of input alone. Billing depends on the applicable rates.

A Claude team: one seat versus eight subagents

Subagents look like free parallel hands. We ran the same small task two ways: one seat alone, and eight subagents.

The eight used 2.4 times the weighted tokens and took 3.6 times the wall-clock time. The solo seat's output was slightly better.

The repeated startup context was a likely contributor. The team had a 58 KB shared instruction file, and every spawned subagent booted all of it: about 47,000 tokens each, before any work.

In one earlier run the same pattern went wide: 31 subagents fanned out over about 189 repositories and used about 70 percent of a weekly allowance in 39 minutes.

Even so, across that fleet subagents were only 4.3 percent of tokens. The bigger token volume was still the main threads re-reading long sessions. Subagents can be costly when the fan-out is wide and the shared block is big. Shrink the block and the answer changes.

Figure 02Field measurement

Eight subagents took longer on this small task

Weighted tokens

times solo
One seat1×
Eight subagents2.4×

Wall-clock time

times solo
One seat1×
Eight subagents3.6×

Each approach ran once. Weighted token counts use the study’s reported metric. The shared instruction file was about 47,000 tokens per subagent before task work.

Skills: the quiet cost of loaded instructions

On this team, each skill's name and description loaded at every start. That is the carrying cost. The benefit is a skill being called.

Across 2,743 tool calls in six sessions, one called a skill.

How a description gets a skill triggered is a separate question. Ours is only the count: on one team, the shelf was carried on every call and used once.

What it means for multi-agent AI cost optimization

  1. Look at reads first. In this Codex fleet, output was under half a percent of token movement. Apply the relevant rates before drawing cost conclusions.
  2. Long sessions are the main line. Compact them, or hand off.
  3. Keep the leader out of routine loops.
  4. Price a subagent as the shared block plus its work, and cap the fan-out.
  5. Count skill calls against skills carried.

If you want one agent workflow set up on your own repository, see the agent team setup sprint.

How we know: sources and limitations

  1. The Codex numbers are whole-call counters from the fleet's own logs, September 2026. The 98.1 percent is from the corrected count; the six-chat share is from the first count, before the correction.
  2. The subagent test is one task, 8 lines long, run once each way. “Weighted tokens” is the experiment's reported metric; its weighting formula is not supplied here.
  3. The skill count is one team's six sessions.
  4. These counts show where tokens went. They do not show what was waste: that needs the job each call was doing.