Questo articolo in italiano: Smetti di Gestire Agenti AI, Inizia a Costruire Organizzazioni
Stop Managing AI Agents, Start Building Organizations
In brief. When the AI agents in a system grow from one to three or four, managing them one by one stops working: crossed waits, duplicated work, and API bills out of control appear. The solution I describe is to design them as an organization, with an org chart of fixed and dynamic agents and formal handoffs.
Who this guide is for
- You already run 3ā4 AI agents in production or in testing.
- You are starting to feel the chaos of duplicated tasks, deadlocks, or runaway API invoices.
- You want to move from script tinkering to orchestrating a real AI team, without becoming the models' babysitter.
Why read it (and what you get)
In the next 7 minutes you will understand:
- Why past 4 AI agents the "shared state" model implodes.
- How to translate project management principles into prompts the AI understands.
- A multi-agent orchestration framework that cuts cycle time by 49%.
- The KPIs to use to prove ROI to your CFO.
š Spoiler: at the end you find a link to download the full org chart and the ready-made "Director" prompt.
1 Ā· The failure of implicit collaboration
"Why is everything so slow now?" š
Right after the first success, going from 1 to 4 agents looks like a brilliant idea. Until you discover that:
- Agent A waits for B, B waits for C, C⦠is in a loop.
- A and C solve the same task with different approaches: double OpenAI billing.
- You become the human switchboard copying and pasting outputs across Slack channels.
War story ā the missed handoff (2 min read)
In our B2B SaaS: Researcher ā Copywriter. A 20-page output passes to B through the state DB. With no context summary, B extracts three useless sentences. Result: ā¬0 of business value, ā¬7 of burned tokens.
| Collaboration model | Strengths | Limits | When to use it |
|---|---|---|---|
| Shared State (DB) | Simple to implement | Context loss, race conditions | PoC, fewer than 3 agents |
| Message Queue | Ordering, retry | Infra overhead, no semantics | Linear pipelines |
| Formal Handoff | Rich context, auditing | Needs prompts and schemas | Systems with more than 3 agents |
The organizational architecture ā your AI team's departments
To fix this, we stopped thinking in "function calls" and started drawing an org chart. Our architecture rests on two kinds of agents, mirroring a real company.
1. Fixed agents: your AI company's "operating system"
These are your "managers" and your "support departments." A fixed number of agents working behind the scenes on every project.
- The
Director(HR and recruiting): this agent runs no business tasks. Its only purpose is to analyze a new project and "hire" the perfect team of specialists for that job. - The
AnalystAgent(strategic planning): takes the high-level goal and breaks it into a detailed action plan. - The
Executor(operations/COO): the conductor. Takes the plan and makes sure tasks run in the right order and by the right agent.
| Role | Human analogue | Why it exists | Permanence |
|---|---|---|---|
| Director | HR / Recruiting | Composes a tailored team | 24/7 |
| AnalystAgent | Strategy | Breaks goals into tasks | 24/7 |
| Executor | COO / PMO | Coordinates and monitors tasks | 24/7 |
We were working on our B2B SaaS use case. Agent A, a "Researcher," had to produce a 20-page market analysis. Agent B, a "Copywriter," had to extract the 3 key points for an email campaign from it. Agent A completed its task. The state flipped to completed. Agent B started. And produced garbage.
The problem? Agent B had no idea what to look for in that 20-page wall of text. The strategic context was completely lost in transit. The output was correct, but the business value was zero. We learned that implicit collaboration is not enough. Effective collaboration, between humans and between AIs, needs explicit communication and context transfer.
2. Dynamic agents: the "project teams"
These are the "field experts," the executors the Director "hires" tailored to each project. For our B2B project, the Director "hired" an "ICP Research Specialist" and an "Email Copywriting Specialist." For a fitness project, it might have hired a "Social Media Strategist" and a "Content Creator." This structure fixes scalability and generality at the root.
The collaboration mechanisms ā making departments talk
An org chart is not enough. You must define the communication processes. We implemented two key mechanisms:
1. AI-driven "recruitment"
How does the Director know whom to hire? Not from a rule list. It uses a chain-of-thought prompt that forces it to think like a real recruiter.
Excerpt of the Director prompt (from our book):
You are the Director of an AI talent agency. Analyze this project's goal and budget and assemble the perfect team.
**Project goal:** "{workspace_goal}"
**Budget:** {budget} EUR
**Chain recruiting process:**
**Step 1: Functional needs analysis.**
Break the goal into its core competence areas (e.g. "Data Analysis", "Content Creation").
**Step 1 output (JSON):** {{"functional_areas": [...]}}
**Step 2: Role definition and team composition.**
For each area, define the specialist role and assemble a balanced team that respects the budget.
**Step 2 output (JSON):** {{"team_composition": [...]}}
This process guarantees every project gets a tailored team, built by the AI itself.
2. Formal "handoffs"
To fix the "missed handoff," we removed implicit communication and introduced handoffs. A handoff is a formal handover between two agents.
When Agent A finishes its work, it does not just flip the state to completed. It creates a handoff object containing:
target_agent_role: the role of the next agent to work (e.g. "Copywriter").context_summary: a summary, generated by the AI itself, saying: "I did X, and the most important thing you need to know for your next task is Y."relevant_artifacts: direct links to the files or data to work on.
The flow: Agent A completes Task 1 ā creates the handoff object with the AI summary ā saves the handoff to the DB ā the Executor sees the new Task 2 ā reads the handoff and its context ā assigns Task 2 to Agent B.
This mechanism guarantees context is never lost.
Conclusion: become an "agent manager"
The complexity of managing AI agents is not a bug, it is a feature. It signals we are moving from simple scripts to real intelligent systems. The fix is not a magic tool that hides this complexity, but embracing it with a robust architecture. By stopping thinking like programmers and starting thinking like founders of organizations, we can build systems that not only work, but scale, learn, and collaborate.
This organizational philosophy is the heart of our system. We spent weeks refining it, through dozens of failures and precious lessons.
Download the org chart + Director prompt now
š Free preview (3 chapters) ā diagrams, prompts, and JSON schemas ready to copy.
From the lab. If these topics interest you from the product side, the reference project is Orchestro, inside Aetha AI: a runtime for autonomous operations, with a public site and documentation. The operational story of a real loop is in the Italian article on the factory that repairs software while we sleep.
Frequently asked questions
What is a handoff between AI agents?
A formal handover: when an agent finishes, it does not just set the state to "completed" but creates an object that names, among other things, the next agent's role. It removes the implicit communication that leads to lost context and wasted work.
What is the difference between fixed and dynamic agents?
Fixed agents are the "departments" working on every project, like the Director and the AnalystAgent. Dynamic agents are specialists the Director "hires" tailored to each project, for example an ICP Research Specialist and an Email Copywriting Specialist.
What does the Director do?
It runs no business tasks: it analyzes a new project and "hires" the right team of specialists, using a chain-of-thought prompt that forces it to reason like a recruiter.
Why does implicit collaboration between agents fail?
Because agents wait on each other (A waits for B, B waits for C), duplicate the same task with double billing, and you become the human switchboard copying outputs across channels. In our example, a handover with no context summary produced zero value and 7 euros of burned tokens.
Where can I go deeper on organizing AI agents?
In my guide to AI agents in business.
This article is also available in Italian.