Skip to content

AI Compass / Knowledge cards

Router and workers

separating conversation from work

Checked Automation Prompting

If you hand several tasks to coding agents in parallel, you have to keep track of which session is doing what. According to DeepSeek, that only works up to about three to five sessions. In the router and workers pattern, you talk to just one session, the router. It takes on tasks, distributes them and reports results back to you, but it writes no code itself. The workers each take one task in their own context and report back to the router. Unlike a main agent with subagents, the router does not break a task down into sub-steps. It only distributes.

What it is for

You no longer jump back and forth between sessions. The router only comes to you when a decision is due, and your messages do not interrupt any running work.

Steps

  1. Check whether it fits: you regularly have more than three tasks open at once, and each one can be fully described in advance. For a single task, one session is enough.
  2. Create each task as a ticket: a folder with one file for the requirement (what gets built, what stays untouched) and one for the acceptance criterion (how you can tell it is done). Settle open questions beforehand, because workers do not ask.
  3. Keep a board as a simple file: for each ticket, its status (draft, ready, done) and what it depends on. Only tickets with the status “ready” are handed out.
  4. Set up the router as its own agent. In Claude Code, that is a Markdown file under .claude/agents/, started with claude --agent <name>. Its instructions say: only distribute, do not write anything yourself, check every result against the acceptance criterion. According to DeepSeek, a lighter model is usually enough for this.
  5. Set up the workers: one agent per ticket, each in its own worktree, that is, a separate working copy of the repo. According to the docs, you set this with isolation: worktree. A mid-range model is enough if the ticket describes everything.
  6. Add a watchdog. At fixed intervals, it checks whether a worker is stuck or two are waiting on each other, and reports this to the router. Without it, nobody notices a worker that has quietly stopped.
  7. Start small: two or three tickets in a test project, and measure tokens and time against a single session. Only then scale up.

Limits

Sources

Status

Checked 6 Nov 2026 · Maturity new (pattern described, the prototype is research code, the benefit has only been measured in a simulation)

You can try this with your team in the AI Lab. See the AI Lab