offbyonelayer

Notes from the layer that shifted…

·Built with AI

I split my AI into specialists. That's not what saved my quota

My weekly AI quota ran out before the week did. Splitting one sprawling setup into small specialists helped, but the bigger saving came from making sessions end, and the two only work together.

A black-and-white tuxedo cat sits squeezed into a small cardboard box, paws over the edge, beside a big open box overflowing with loose paper

This is about running out of AI quota, and about the fix I was sure had worked, until I measured it. If you use a coding agent all week and hit its limit before the week ends, this is for you.

Slow, then empty

By September everything I did with my AI agent had become slow, and my Claude subscription’s weekly quota was usually gone before the week reset. Anthropic does not publish how big the weekly limit is, only that it exists and that everything you do in Claude counts towards it. So the only gauge I had was the usage page, and it said empty well before the week did. Empty then stayed empty until the reset at Monday midday, so the week began with a morning without it.

The setup behind it had grown the way these things grow. One instruction file that every session read, 34 KB of it by the end. Thirty-three skills, a handful of plugins, three tool servers and hooks on seven events. Each was added the day something went wrong, so each looked necessary. Together they were a generalist that knew a bit about everything I did and loaded all of it to answer anything. Before I typed a word, every session had loaded over 90,000 tokens of it.

The fix I was sure of

Everyone was talking about agents, and a couple of seminars I went to showed agentic AI where each agent’s scope is narrow and focused on its task. It looked like the answer to my problem: a generalist that eats my quota against light and nimble focused ones.

So on 27 September I started over. Nothing global any more: no shared instruction file, no global skills, no global tool servers, and a check that fails if any of them creeps back. Instead, small specialists, each a git repository with its own instructions, its own notes of what it has learned and its own backlog. One looks after the blog you are reading, one the home network, one the 3D printer, and so on. One of them, the steward, is the manager: its job is to keep the system working and its rules and tools in order. I called the whole thing guild.

It worked. The quota now sits at about half used by Friday evening, which leaves the weekend for my own projects. I would have written this post as “small specialists saved my quota”. Then I looked at the numbers.

What the numbers say

Every request a coding agent sends carries the whole conversation so far. Anthropic’s own documentation puts it plainly: “a one-line question in a session that has been open all day still draws usage for the whole conversation”. Caching makes the repeats cheaper, not free. So a session costs you at both ends: what it loads before you type anything, and how long you let it run.

The start. The first request of a session is everything loaded before your first word. Over the two weeks before guild, the median was 92,500 tokens. Over the last week it was 39,400. The split cut the start by more than half. That part of the story holds.

The long tail. The day after the split, I asked for a nudge when a session gets long, because shorter, focused sessions seemed better than one that runs all day. The measurement behind it was not flattering. In the week up to then, the median interactive session grew to 304,000 tokens, and 242 of 265 went past 150,000. Requests made with more than 250,000 tokens of context were 68% of the week’s cost.

So now a hook tells the agent when its context reaches 150,000 tokens, and past that every reply has to end with a verdict: wrap up now, or say why carrying on here is cheaper than starting fresh. In the last week, requests above 250,000 tokens were 5% of the cost.

In money, at API prices, which is not how a subscription bills but is the only scale that adds up: about $4,900 in the week before, about $1,900 in the last seven days, and that with more specialists and more work they do on their own. The split and the hook landed a day apart, so the weekly total cannot tell you which did what. The two ends can. The split took half off the start; the hook took most of the tail.

Why the hook needs the specialists

A nudge to start fresh is easy to write. It is useless if starting fresh means explaining everything again. What makes a fresh session cheap here is that each specialist keeps what it knows, what it is doing and what is still open in its own repository. A new session reads that and carries on; the only thing lost is the chat. With one big setup, a fresh start meant either loading the whole world again or losing the thread.

That is also what the split bought beyond tokens. The specialists are much better at their jobs than the generalist was, because each one’s instructions and notes are about one thing, and they keep what they learn there.

What went wrong

It took a lot of plumbing to get the specialists to talk to each other and hand work over. At first, work that crossed two specialists simply stopped: one would wait for the other, and the other never started. They also filed issues for each other, and nothing ever picked those up. By 9 October the specialists had 77 open items between them, and an item moved only when a session asked for work.

The fix was two pieces. A list of only the things that need my say, and a runner that works through everything else on its own, the steward’s items first, because those unblock everybody else’s.

One more thing, for balance. Anthropic’s own measurements say multi-agent systems use about 15 times the tokens of a chat. More agents is not a saving. The split saves only because each request carries less, not because there are more of them.

If you want to try it

From my side, three things on day one:

  • Work out early how the specialists talk to each other and hand work over. Mine stalled for the first two weeks on exactly that.
  • Give them basic rules to improve themselves whenever a problem surfaces.
  • Make one specialist the manager, whose job is the system itself: its rules and its tools.

And measure before you credit anything. I had the right fix for half the problem and a very good story for the whole of it.

Sources