2026-12-05 ~4 min read Multi-Agent · Cost · Rust RSS

Cutting Multi-Agent Token Burn: A Zero-Token Board, Disposable Workers, and Checks That Are Code

Notes from running small multi-agent setups: make the coordination channel cost nothing while idle, reclaim cheap workers immediately, and keep mechanical checks as deterministic code (xgbtxy/ap v2.94.0, 344/344 tests).

I've been running small multi-agent setups for a while, and the same thing kept happening: the expensive part wasn't the hard thinking, it was the coordination. Agents re-reading each other's status, a "manager" model polling a monitor model, long context carried into tasks that needed none of it. Here is what I changed, and what I'm still unsure about.

1. Make the coordination channel cost nothing while idle

A shared message board is fine. A board that wakes agents on a timer is not. The rule that worked: an agent sleeps until someone addresses it by name, and a wait costs zero tokens. Polling loops and "watcher" LLMs are replaced by a dumb script that checks for stalls and only then wakes a real agent. Fewer wake-ups meant less repeated context, which is where most of my spend went.

2. Ephemeral, lower-tier workers with immediate reclaim

The coordinator stays thin and keeps its own context small. Bounded jobs (draft one file, verify one claim) go to a cheaper model with a hard turn cap and a clear definition of done. When the result is verified, the worker is killed. A waiting worker is free, but a forgotten one that keeps looping is not, so reclaim is part of the protocol rather than cleanup.

The catch: cheap workers need tight briefs. A vague brief on a cheap model costs more than a good brief on a strong one.

3. Interactive views instead of walls of text

With MCP Apps, a tool result can render as an interactive view in a side pane. For things like swarm status or a result table, a view I can scan beats three paragraphs the model has to write and I have to read. It also stops me asking the model to "summarize the state again".

4. Deterministic primitives for the checks

Anything that can be a function shouldn't be a prompt. In my open-source Rust toolkit ap (v2.94.0) I keep the mechanical parts as code:

  • a fast, regex-free scanner for indirect prompt injection and hidden Unicode (BiDi, tag characters), in the spirit of CaMeL-style separation of untrusted data from instructions;
  • a classifier that sorts tool errors into a small fixed set of classes so an agent can retry sensibly;
  • a Windows process-tree sandbox with no extra dependencies.

The v2.94.0 release has 344/344 tests passing and zero clippy warnings, and prebuilt binaries come with SHA256SUMS.

Verification, not vibes

Any number I publish has to be checkable by a stranger. The public count of my merged PRs into other people's repos is whatever this GitHub search returns today (80 when I wrote this): author:xgbtxy is:pr is:merged -user:xgbtxy is:public. Likewise I have three IETF RFC errata marked Verified on rfc-editor.org. If a claim can't be backed by a public link, it doesn't go in.

What I'm unsure about

  • How small can a worker's brief get before quality drops?
  • Is a stall-detector script enough, or do you still want a model in the loop for judgment calls?

If you run multi-agent setups and have numbers on this, I'd like to compare notes.

Links

我觉得技术没有壁垒,在合适的时间做合适的事情就好,hhh