Collaboration frameworks
Collaboration frameworks define the different ways we can interact with agents; from talking to them 1:1 or commanding a small army of 20 subagents.
Levels of delegation
From the creation of automated machines, to computers and then code, each technological advancement has taken us a level deeper into abstracting away the redundant aspects of work.
This same framework applies to agents. Now that you've learned how to wield a single agent effectively, we'll spend this chapter diving into the different ways you can work with multiple agents.
Frameworks of collaboration just refer to the different ways you can use agents outside of just a back-and-forth chatting partner. Things like parallelizing work or building agentic pipelines can allow you to 10x your output, or create systems of agents that run completely hands free!
Conductor
As a conductor, you work closely with one agent towards your outcome. Usually this just looks like opening up a session on Claude or Codex and talking to your agent 1:1.
An example of this could be refining body copy, asking your agent questions, updating code, ect..
Orchestrator
The orchestrator commands multiple agents. As the orchestrator, you might have multiple chat sessions running at once, each working on its own task.
The main goal of orchestration is to parallelize work: doing many tasks in tandem instead of doing them sequentially. Examples could include designing multiple iterations, building across different pages, etc.
Your agent can be an orchestrator too! Smarter agents such as Astra/Fable will (on their own) know when to use multiple subagents for larger tasks.
A subagent is just an instance of an agent that’s nested in a session. These agents start fresh, and are handed context and a task by you or an orchestrator agent. (Think threads in Slack.)
It’s important to note that using more or fewer agents doesn’t linearly equate to better outcomes. Again, understanding your task well and then appropriately distributing or converging on work renders the most fruitful results.
Orchestration patterns
There's a couple different ways to use multiple agents
Parallelization
Parallelization involves having multiple agents working in tandem towards a singular outcome. While their work may span different different tasks, the final outcome will be convergent.
An example of this could be conducting an accessibility audit on a product, where you would delegate one agent per page. While each subagent focuses on their own page, the collective result at the end will be a more accessible product.
Council
When you parallelize work, the goal is convergence on a singular outcome (a new website, a research paper, a multi-page accessibility audit..). Working with a council means the final goal is a divergent set of outcomes.
We do this to get a richer breadth of iteration, and to build baselines and inspiration for solutions you may not yet have thought of. Examples can include: "Give me 5 different prototypes of this item, rewrite this in 3 different tones, build 4 different solutions ect..."
While you can ask one agent to build 5 different outcomes, agents that share the same model tend to converge towards similar responses. To get more original answers, you nudge agents in different directions.
This can look like giving subagents personality traits, or different goals to advocate for (ie: 1 skeptical agent, 1 user advocate, 1 engineer). You can compound this by using different models from different companies (because their training weights are different!)
I personally have a anthropic fable, codex astra and muse wonder agent on my council. Sometimes I just give the council random tasks to compare each's output. though, this process requires having another agent (judge agent) + a rubric in order to grade the result, which is a bit too complicated to get into for this chapter. If your curious, check out this resource below: (Caleb link something here)
Pipeline
Sometimes your tasks might require several different steps, such as conducting deep research first to inform a better coding solution. Like we talked about in chapter 1, different models are better at different tasks. Opus is great for coding, Fable is great for research, Haiku is great for triaging.
When you create a pipeline, you build a sequential chain of agents, each with their own role! When one agent finishes a task, it hands it off to the next, and so on.
One of the first projects I ever built was a pipeline! Caleb JR is a slack bot that can talk to people on slack, and update/build websites from their messages.
Everyday, Caleb JR intakes all my slack messages, and then sends them to a haiku agent, which sorts them (since haiku is cheap). After sorting the tasks, the haiku agent hands them off to my Opus agent to start building. After building, another agent takes a screenshot and uploads it to slack as proof of completion.
Loops
Work in progressBoth the conductor and the orchestrator are dependent on you to kickstart work. When you make a loop, you create a systems for your agents to run on their own... (in a loop! lmao)
Loops are great for setting up hands off work. Wether that be long tasks or recurrent events, loops create environments for agents to work towards a task or goal without needing additional prompting from you to steer directionality.
To create a loop, you must define two things:
A finish line: how the agent knows it’s done (e.g. “all tests pass” or “the page matches the design”). Without one, it either stops too early or never stops.
Guardrails: a set of rules to make sure the agent doesn’t do anything unintended.
There are two types of loops:
Scheduled loops, which run the same job on repeat based on a timer, i.e., a daily report or a weekly email inbox clean.
Iterative loops, usually for longer work: you define a task for your agent to keep working towards until it completes it.
Linear has a good article (Linear loops).
When should I parallelize work?
Think of a kitchen. Two cooks make dinner faster if they’re on different dishes, and slower if they’re stirring the same pot.
Parallelize when:
Tasks don’t depend on each other’s results
They won’t edit the same files
You want several options to compare (e.g. three takes on a landing page)
There’s a lot of reading or research and you only need the conclusion
Don’t when:
Step B needs step A’s answer
The task is small (setting up helpers costs more than it saves)
You can’t realistically review all the results, because your attention is the real bottleneck