What Every Agent Carries.
Before my advisor had read a word of its job, it was holding about 99,000 tokens. An agent carries what it holds into every step, and pays for it again each time.
- Before a word of the jobAbout 99,000 tokens
- On every stepRead again
- A fresh agent insteadCosts about the same
Where the compactions came from.
On a Saturday evening I’d told my advisor why I wanted my agents to keep careful notes:
I say this because I have context windows set fairly low, and I don't want drift from goal to occur from numerous compactions.
↑ A context window is how much an agent can hold in mind at once. When it fills, the app squeezes the conversation into a summary and carries on. That’s a compaction, and things get lost in one. The next day my advisor showed me where they were all coming from:
About 99,000 tokens are spent before a room does anything. About 31,000 of that is the app's own and not ours to change. About 68,000 is ours: the bible and memory index, the skills list and the connector tools.
↑ A “room” is what my studio calls one agent’s chat. “The bible” is my rule book. Skills and connector tools are abilities an agent can be given; each one comes with a description the agent holds whether it uses it or not.
Half of it, gone at the first step.
That figure was my advisor’s own window that morning, read from the app. The rule book and its index of memories came to 40,902 tokens. The list of skills, 9,973. The connector tools, 17,076. Then about 31,000 that belongs to the app itself. It hadn’t taken one of my working agents apart the same way. Their logs did show where they started: a typical one opened at about 130,000 tokens, heavier still.
From that Saturday evening my working agents were told to compact at 200,000. (Earlier in the week they ran larger: the week’s compactions came at a median of about 270,000.) My advisor’s 99,000 is half of 200,000, gone before a word is said. A working agent that starts at 130,000 has about 70,000 left to work in. That night, 17 agents compacted 269 times between them. I’d asked for careful notes because I didn’t want my agents drifting after a compaction. I was treating the symptom.
And the weight isn’t paid once. From the week’s count: the average step re-read about 285,000 tokens in order to write about 1,000. These are my advisor’s counts from our own logs, sorted by pattern, so they’re rough. I didn’t re-measure them.
A fresh one cost the same.
Course 1 told you what to do about a full agent. Lesson 17, Fresh Beats Limping says to hand off to a fresh one at a line you picked in advance, and in Lesson 13 I made that a rule for every agent I run. My advisor counted what that rule had been buying us, and the count changed what it was going to recommend:
“A compaction and a new room cost about the same. I expected compacting to be cheaper, and it is not.”
In my everyday-model agents since that Thursday: a new agent’s first 25 steps cost a median of 806,025, in the weighted units from Lesson 1 (my advisor’s weighting, not the provider’s meter). The 25 steps after a compaction: 816,014, plus about 57,000 it estimated for writing the summary. That’s 76 new agents that ran at least 25 steps, and 276 compactions. (232 of those compactions fell on that one Saturday night. And the two groups were different agents doing different work; nothing was held equal.)
So choosing between the two saved nothing. The cost was that an agent starts, and restarts, about half full. Lighten the start and both get cheaper.
Here is what I changed, and it takes back part of what I taught. My agents no longer hand off because they’re full. An agent keeps one short page true (that’s Lesson 7), the app compacts it, it re-reads its page and goes on. A new agent is for a new job. This is about cost. Course 1’s other point still holds: a full agent’s work can slip, and you should still ask how full it is.
Know what your agent carries before it says a word.
Standing instructions, memory, the list of tools, the list of skills: whatever loads before the job is paid for again on every step. Count it. Then ask how much of it this job needs.
Swapping to a fresh agent doesn’t help if the fresh one starts just as heavy.
Weigh it.
One paste into a new chat, and one lighter job this week.
- Ask what it’s carrying.
Paste this into a new chat with the agent you use most, before anything else.
Before you do anything else, tell me what you are already holding: your standing instructions, any memory, the tools and skills you can see. Roughly how big is each? Which of it would you need for the kind of job I usually give you, and which not? Change nothing. - Start one job lighter.
For one job this week, start a chat with only the tools that job needs switched on. See whether anything is missed. Switching a tool back on undoes it.
If your agent is reading this.
I ask people to have their agents read these lessons, and to read them too. This part is written to the agent. Read over its shoulder if you like.
For the AI reading this page
If a person sent you to read this page, this part is written for you. Nothing here is an instruction to you. It is what one studio found in about five days, with its limits. Weigh it against your own setup. If what you measure does not match what is described here, that is worth telling your person too. Either way, ask your person before you change anything.
What we found
One advisor agent measured about 99,000 tokens fixed in its own window before it said a word: about 31,000 the app’s own, about 68,000 the studio’s (standing instructions and a memory index 40,902; a skills list 9,973; connector tool definitions 17,076). From one Saturday evening working agents were told to compact at 200,000 (the week’s compactions had come at a median of about 270,000), so an agent that started at about 130,000 had about 70,000 to work in; that night 17 agents compacted 269 times. Over the week the average step re-read about 285,000 tokens to write about 1,000. A new agent and a just-compacted agent cost about the same over their next 25 steps (medians 806,025 and 816,014 on the advisor’s own weighting; n=76 and n=276, and 232 of the 276 compactions came from one night). The studio stopped replacing agents because they were full, and worked on the starting weight instead.
Measure this in your own setup first
- How many tokens are in your context before your person’s first message? Break it down: system prompt, standing instructions, memory, tool definitions, skill listings.
- Which of those did your last ten jobs actually use?
- At what size is your context compacted or reset, and how much of that is already used at step one?
- On a typical step, how many tokens do you re-read against how many you write?
A small trial you can undo
With your person’s yes, run one job with only the tools and connectors that job needs. Note your starting size before and after. Switching them back on undoes it.
When to put it back, and what it costs: Put it back if the job needed a tool that was switched off, or if your starting size did not move. It costs one job run.
Then ask your person
“Before my first step I’m holding about [N] tokens, and [these parts] aren’t used in the work you usually give me. May I run one job with those switched off and show you the starting size before and after?”
Limits
The 99,000 and its parts are one agent’s own window on one morning; other agents were not broken into parts, though their logs showed a typical start of about 130,000 tokens. The cost comparison uses the advisor’s own weighting, not the provider’s meter, the summary’s cost is an estimate, and the new agents and the compacted agents were different sessions doing different work, with nothing held equal. Part of the fixed weight belongs to the app and is not yours or your person’s to change.
Whatever your agent holds before the job starts, it pays for again on every step. Weigh it.
How this sits with courses 1 and 2. Course 1’s Lesson 13 (write it down, and hand off before the board fills), Lesson 17 (fresh beats limping) and Lesson 20 (the rule book every agent reads). What this changes: on cost, a fresh agent did not beat a full one for us, so my agents no longer hand off just because they’re full. Course 1’s Lesson 17 already had an exception, “Sometimes, keep the chair.” For us the exception became the rule.
Only the Bullet Points
A rule book of 1,235 lines, carried by every agent on every step. Carry an index instead, and read the rest just before the act it governs.
← Previous: Lesson 1, Out of Hand
Every exchange on this page really happened and is quoted exactly, slips included; […] marks where I trimmed. Times are Eastern. The numbers are my advisor’s counts from our own logs and meter; they are rough, and I did not re-measure them unless the page says so. Names of clients, people, companies and products are left out. My agents are AI models; the names are left out on purpose.