Divide work only where the boundary is real
Several agents help when tasks can progress independently, need different context or benefit from different permissions. A product review can separate evidence collection, usability analysis and verification. A change to one tightly coupled code path usually has less coordination overhead with one owner. Before adding an agent, describe the output it can complete without waiting for someone else's judgment.
Define the coordinator's job
A coordinator divides an approved objective into bounded assignments, passes each worker enough evidence, receives its result and resolves conflicts. Useful assignments name the files or records to inspect, the expected response format, the completion check and actions that require approval. Make the coordinator responsible for stitching the results together and recording any assignment that did not finish.
Use Claude Code subagents for a dedicated context
Claude Code supports project-level agent definitions in .claude/agents. A definition can describe the kinds of tasks the agent handles and restrict which tools it receives. For example, a documentation reviewer can inspect selected Markdown files and return broken assumptions and references without editing them. Test the definition on a small request before relying on automatic delegation.
Use a pipeline when outputs depend on one another
A documentation workflow might first gather current behavior, then draft instructions from that evidence, then verify the draft against the application. Each stage should declare its inputs and acceptance checks. If gathering finds a missing fact, keep that gap visible and route it to a person instead of allowing the writing stage to turn it into an assertion.
Agree on a shared record format
For a file-based handoff, specify the path, writer, schema and when the reader can trust the output is complete. For many concurrent jobs, use a store that records assignment ID, status, timestamps and result references. Give workers separate write locations when practical. Preserve provenance and summarize large output before copying it into another worker's context.
Control permissions by assignment
A research worker may need local read access. An editor may need to change only a few tracked files. A reviewer can work from a diff and test reports. Keep shared credentials out of worker responses and use narrowly scoped identities where external services are involved. A worker encountering a required action outside its authority should return the blocker for the coordinator to resolve.
Try an isolated code-review workflow
Supply the same captured diff and base revision to one reviewer focused on interface contracts and another focused on missing tests. Ask both for a location, observed evidence and a single meaningful verification step per finding. A coordinator deduplicates results and checks them against the repository. The final review should distinguish verified findings from questions and leave any change or publication to the authorized workflow.
Measure the coordination cost
Record time to usable result, tokens per completed assignment, rate limits, retries and time spent reconciling contradictory output. Compare the same representative workload with a single agent. Limit concurrency to what the application and tools can support, keep an upper bound on delegated work, and use the smallest reliable setup for the job.
Source documentation
Related reading
Model Context Protocol (MCP): The Universal Standard for AI Tool Integration
Agent Skills: Teaching Claude Your Workflows, Once and For All