r/ClaudeCode • u/scoop05333 • 5h ago
Help/Question I built agents that check and improve their own work, and they work, but they eat tokens. Where would you look first?
I run a small UK BBQ affiliate site, and over the last few weeks I've built a set of Claude agents to look after it, using CoWork. Each one is set up the same way. A generator does the job, a separate checker marks it against an answer key that gets a new row every time a mistake slips through, and a coach reads the failures and suggests fixes. I approve the changes. It works. The agents have got noticeably better and they catch things I'd have missed.
The problem is that it's heavy. My first run of the SEO page check cost about 191,000 tokens for one page. The site copy agent's first run cost 1.5m! The daily manager agent that reports on all the others is running at roughly 350,000 to 490,000 tokens a day. I hit 10% of my weekly allowance by Wednesday morning.
So I spent a couple of days trying to cut it. What I tried, in order:
- Having a script fetch the page and work out everything countable, then handing the agent one prepared file. 191k went to 122k.
- Using a stripped-down subagent type that starts with only a couple of tools. That went to about 82k. A plain empty subagent costs about 55k before it does anything.
- Capping the file reads to fixed ranges so the agent can't wander. About 67k.
- Cutting the prompt by 23%. That saved about 6%. The brief wasn't where the tokens were.
- Putting the script's results into the prompt so the agent doesn't count them. That made it more expensive, because the agent copies them out and output tokens cost more.
The part that surprised me was running the same check on cheaper models through OpenRouter. A cheap model (DeepSeek flash) on the same prompt found the same main problem as Sonnet on all four pages I tried, for about $0.004 against $0.24. It does miss things on its own, so I let scripts do every row that can be counted or checked exactly, and the cheap model only does the judgement rows. With planted faults, the scripts caught 8 of 8 page problems and the cheap model got 6 of 6 on made-up claims once I added a rule for weak matches. For writing the actual page copy, every cheap model I tried made things up, so that stays on Sonnet.
What I'd like to know from anyone who's been here:
- Where do the tokens actually go in your multi-agent setups? Mine seem to be the subagent startup, the reading, and the writing back out, and the instructions are the smallest part.
- Is a script doing the checkable parts and a cheap model doing the rest a sensible pattern, or am I fooling myself with a handful of test pages?
- Has anyone made the separate-checker setup cheaper without losing the independent second look?
- Is it worth caching the shared brief and answer key, and does that work through OpenRouter?
- What would you redesign first?
I'll happily share the test setup if it's useful.
