Cutting multi-agent token burn: a board that costs 0 tokens, workers that disappear, and checks that are code

2026-12-05来源 dev.toEnglish

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

I keep a rule that any number I publish has to be checkable by a stranger. For example, 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.

Code and essays: https://github.com/xgbtxy/ap and https://xgbtxy.github.io/

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

原文:https://www.a8q9.cn/en/article/cutting-multi-agent-token-burn-a-board-that-costs-0-tokens-workers-that-disappea-561cac.html

相关文章