xuio

Claude Code Multi Agent Playbook — AI skill for Claude Code

AI community

Field-tested rules for running a coordinator and many parallel sub-agents in Claude Code: context limits, handoffs, prompt-cache economics, model routing, merge trains.

How to install Claude Code Multi Agent Playbook

This entry records only its repository, not the path inside it, so there is no exact command to give. Open xuio/claude-code-multi-agent-playbook and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Code Multi Agent Playbook does

Field-tested rules for running a coordinator and many parallel sub-agents in Claude Code: context limits, handoffs, prompt-cache economics, model routing, merge trains. With the measurement behind each rule.

Alternatives in AI

  • Real-World Pain Points — Project: https://github.com/Narwhal-Lab/MagicSkills For many teams building multi-agent systems, the first thi 277 ★
  • Laravel AI Translator — High quality automatic translate your language files into many languages using AI like Claude, GPT and etc 250 ★
  • Empirica — Make AI agents and AI workflows measurably reliable 244 ★

README

Multi-agent playbook for Claude Code

Field-tested rules for running one coordinator and many parallel sub-agents on real coding projects with [Claude Code](https://claude.com/claude-code), with the measurement or incident behind each rule.

It covers the questions that come up once you run more than a handful of agents at a time:

  • How large may an agent's context grow, and when do you hand off to a fresh agent?
  • How do you wait for long jobs without paying for prompt-cache misses?
  • Which model does which work, and at which reasoning effort?
  • What goes into a brief, a handoff note and a successor's brief?
  • How do ten lanes merge without running every test suite ten times?
  • How does the coordinator keep its rules and the user's decisions across compactions?

What we measured

From our own transcripts and job logs, on Opus-class and Haiku-class models, October and November 2026:

finding number
Share of spend that is cache reads (the context, re-read on every call) 60–70 %
Cost per call by context size (n = 20,548 calls) $0.06 below 100k, $0.18 at 200–300k, $0.45 above 400k
First-turn context of a general-purpose sub-agent vs a lean agent file ~63k vs ~8k tokens
Share of spend in one 2.7-hour window caused by 26 wake-ups of big-context agents 44 %
Cost of one cache miss at 200k context about 12 warm polls
Lanes that were told to hand off at 200k all 7 ran out at 132–150k
Token-saver habits (search first, read line ranges, tail logs) about −47 % tokens per call

The short version: **context size is the cost.** Keep every agent small, hand off early with a written note, and never wake a big agent for work a fresh one can do.

What is in the repository

file what it is
RULES.md Every rule in one line (about 25 KB). This is the file a coordinator agent loads.
PLAYBOOK.md All 139 rules with their reason, evidence and check, plus a catalogue of failu