AI Compass / Knowledge cards
Router and workers
separating conversation from work
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
- 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.
- 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.
- 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.
- Set up the router as its own agent. In Claude Code, that is a Markdown file under
.claude/agents/, started withclaude --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. - 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. - 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.
- Start small: two or three tickets in a test project, and measure tokens and time against a single session. Only then scale up.
Limits
- More tokens: Each worker has its own context. In DeepSeek’s experiment, the router setup read about four times as many tokens from the cache as a single session (according to the summary by Anima). On a subscription with a usage limit, you will notice this.
- Thin evidence: DeepSeek’s experiment was simulated, with a tool that only uses up time standing in for the programming work. What was measured was the distribution of work, not the quality of the code, and DeepSeek itself calls the results only indicative. AI LABS shows a single run with three tickets.
- Permissions: So that workers can work without asking, they usually run in auto mode. According to AI LABS, team members in Claude Code get the same tools as the session that starts them. So only its instructions keep the router from writing. In DeepSeek’s prototype, router and workers run with all the permissions of the user account, according to Anima. So try it in a test project first, with no credentials within reach.
- Outside input: If the router accepts tasks from chats or GitHub comments, an injected instruction can become a job. According to Anima, DeepSeek itself calls this the open security question.
- Agent teams, that is, workers that coordinate with each other, are experimental according to the docs and switched off by default.
Links
- Long runs and parallel work: the built-in tools for parallel runs, including worktrees and auto mode.
- Separate building and checking: The acceptance criterion in the ticket is the basis for an independent checker.
- Let Claude work until the goal is met – with /goal: a queue of spec files for a single session, the simpler solution.
- Checks the agent cannot bypass: There, every sub-agent starts with fresh context.
- Model choice – cost per task: how to measure whether the extra tokens pay off.
- Vet third-party skills before they run: Third-party instructions are third-party code, even when they arrive as a ticket.
Sources
- AI LABS: Deepseek Just Released The Greatest Claude Code Workflow Ever, 5 Nov 2026, 0:33–3:16, 3:48–6:28, 7:44–10:16, 12:26–12:58. Sponsored by Mobbin (6:49–7:44), plus self-promotion for the paid community
- DeepSeek: dsh-superagent-prototype, README, MIT licence, retrieved 6 Nov 2026
- Anima: DeepSeek Super-Agent: What It Is, How It Works, and What Is Still Missing, 2 Nov 2026, retrieved 6 Nov 2026. Summarises DeepSeek’s article “Exploring Super-agent Design”, which I have not read myself
- Claude Code docs: Subagents, CLI reference (
--agent), Agent teams, retrieved 6 Nov 2026
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