Lesson 08.10 · Phase 08 · Multi-Agent Systems
Role design & specialization
A role is a contract: what this agent receives, what it must hand back, which tools it may use, and when it's done. Write roles as specs instead of personas, and you can lint a team for gaps and overlaps before running it, generate the prompts, and catch a role that breaks its contract at the handoff.
Learning objectives
- Write each role as a spec: goal, inputs, outputs with required fields, tools, side-effect permissions, done condition, revision limit.
- Lint a team for overlapping ownership, orphan outputs, missing inputs, vague goals, missing done conditions, excess privileges and unbounded loops.
- Generate each role's system prompt from its spec and its neighbours in the team.
- Check every role's output against its declared contract, and stop the pipeline when one is broken.
Multi-agent frameworks make it easy to declare a team: "You are a world-class researcher", "You are a meticulous editor". Personas like that describe a mood, not a job. They don't say what the researcher must hand over, who uses it, or when the editor should stop editing. So teams drift. The editor rewrites the draft itself, and now two agents own the same document. The researcher produces SEO keywords nobody reads. The writer can publish, because it was given the publishing tool "just in case". The writer and editor send drafts back and forth forever.
Loading the full lesson…