Ten Agents Writing Code at the Same Time and Ten Agents Delivering a Project Are Two Different Things
Codex Subagents, Claude Code Agent Teams, and Antigravity Swarm have taken three paths. Starting ten Agents is only the beginning; division of labor, communication, acceptance, and recovery are what determine whether a team can deliver.
Running ten Agents at the same time is not hard. Making ten Agents into a team that can deliver is much harder.
Google Antigravity's built-in /swarm provides an example to observe. Looking at Codex's Subagents, Claude Code's Agent Teams, and Antigravity's Swarm together, all three are addressing multi-Agent collaboration, but they take three different routes in task scheduling, communication mechanisms, and lifecycle management.
A bit of context first. The Coding Agent discussed here refers to an agent that can read code, modify files, and run commands. A Subagent is usually spawned by a main Agent, has an independent context, and returns results to the main thread when the task is done. Agent Teams and Swarm go further by organizing multiple independent sessions into a team.
Codex Subagents: Hierarchical Task Delegation
Codex's multi-Agent collaboration is based on hierarchical delegation. The main Agent understands the requirements, breaks down tasks, creates sub-Agents with independent contexts, then assigns tasks to them, sends additional instructions, waits for results, and finally aggregates and delivers.
In Multi-Agent V1, this collaboration is connected through several core tools: spawn_agent creates a sub-Agent, send_input sends instructions to an existing Agent, wait_agent waits for execution results, and resume_agent and close_agent resume or close an Agent.
Multi-Agent V2 in the latest public source code begins to decouple message passing from task scheduling and identifies different Agents through hierarchical Task Paths. send_message is only responsible for delivering messages and does not directly start a new execution round; followup_task is responsible for assigning follow-up tasks to an existing Agent and restarting execution when necessary. V2 also introduces capabilities such as Mailbox message waiting, Agent list querying, and execution interruption. Whether specific tools are available depends on the model and runtime configuration.
Codex also allows models, reasoning effort, and sandbox policies to be configured for different roles. Cheaper models can handle code search, while complex logic and code review are left to stronger models. Overall, it has expanded from parent-child task delegation to more flexible communication and lifecycle management, suitable for codebase exploration, parallel review, and relatively independent subtasks.
Claude Code Agent Teams: Shared Task List and Member Mailboxes
Claude Code's Agent Teams introduces two key components on top of independent sessions: a Shared Task List and a Mailbox.
The whole team consists of four parts. The Team Lead is responsible for forming the team, breaking down tasks, and aggregating results. Teammates have independent sessions and contexts. The Task List maintains the status, ownership, and dependencies of shared tasks. The Mailbox is responsible for message passing between members.
After the Task series of tools is enabled, when members finish their current task, they can proactively claim new tasks from the shared list that have not yet been assigned and are not blocked by dependencies. Under the hood, File Locking handles races during concurrent claiming. As soon as a prerequisite task is completed, downstream dependencies are automatically unblocked.
The communication mechanism is also worth examining. Claude Code maintains an independent JSON inbox for each member:
~/.claude/teams/{team-name}/inboxes/{agent-name}.json
Members can send messages directly to other Agents through SendMessage, without all information having to be relayed by the Team Lead. If a frontend Agent finds that a backend API is missing a field, it can directly negotiate the change with the backend Agent. With Hooks such as TeammateIdle, TaskCreated, and TaskCompleted, developers can also connect tests and static checks into the task lifecycle and prevent a task from being completed when it does not meet standards.
In newer versions of Claude Code, ordinary named Subagents can also communicate directly. Some newer models do not provide the Task series of tools by default, and team members coordinate work directly through messages. The core of Agent Teams is not just letting Agents send messages to each other; it integrates independent sessions, member management, task status, and quality control into a collaboration mechanism. Claude Code Agent Teams is still in the Experimental stage.
Antigravity Swarm: Public Message Board, Independent Verification, and Sleep/Wake
Antigravity's /swarm takes another approach. After Swarm is started, the current session becomes the Coordinator, responsible for defining task boundaries, creating Workers, assigning responsibilities, and accepting results, while the actual technical work is executed by team members.
Each Worker also has an independent session and context. Unlike Claude Code's independent Mailbox, Swarm uses a public Shared Message Board. Task scope, prohibited modifications, completion criteria, as well as questions among members, code change summaries, and test results are all published in order on the same message board. Members communicate publicly through @name, @group, and @all; there are no private side conversations, and the entire collaboration process is visible to the team and the user.
Three aspects of Swarm's design deserve separate attention.
Sleep & Wake is event-driven. When a Worker has no task or is waiting for a reply, it can go to sleep and does not consume model Tokens during that time. When other members mention it through @, it is automatically woken up to continue execution. This avoids Agents repeatedly spinning and calling the model just to wait for messages.
Verifier is an independent verification mechanism. The Coordinator usually assigns one Verifier for every two to four Workers, specifically to check code changes, run tests, and feed problems found back to the corresponding Worker for fixing. Workers and Verifiers can also use different models, enabling cross-model code review and verification.
Monitor is responsible for monitoring collaboration stagnation. When the whole team has entered a waiting state but the task is not yet complete, Monitor proactively intervenes by sending messages to wake up the relevant members and trying to push the task forward.
In terms of workspace, Swarm shares a workspace by default, but it can also assign independent repository working copies to multiple Workers to reduce conflicts caused by parallel code changes. It even provides a Graph view to observe the communication relationships between Agents and replay the entire team's message interaction process. In the past, we could only see what Agents ultimately delivered; now, how they discuss, negotiate, verify, and fix problems is gradually becoming observable as well. Antigravity Swarm is still in the Preview stage.
Differences Among the Three Routes
In comparison, the design focus of the three is clear:
- Codex Subagents emphasizes hierarchical task delegation, sub-Agent lifecycle management, and message passing.
- Claude Code Agent Teams emphasizes shared task state, autonomous task claiming, and team member communication.
- Antigravity Swarm emphasizes a shared message board, event-driven scheduling, independent verification, and stagnation monitoring.
There is no strict iterative replacement relationship among the three. Swarm is also not a thoroughly decentralized architecture; it still needs a Coordinator to handle overall coordination. What is truly worth paying attention to is how they organize tasks, pass information, and determine that the whole team has completed the work.
Antigravity itself also retains different modes such as Subagents, Swarm, Boost, and Teamwork, respectively for independent subtasks, parallel development, repeated verification of complex problems, and long-cycle projects. Different types of tasks require different ways of organizing Agents, and not everything is worth spinning up a swarm.
When sharing Antigravity's /run-workflow, a user gave a boundary: tasks with a determined execution path, requiring batch distribution according to a file list, and strict validation and aggregation of structure should be handed to /run-workflow; tasks whose boundaries are not yet defined, requiring multiple roles to write and align interfaces as they go, and repeatedly rework and accept results, should be handed to /swarm. This division is very practical.
Multi-Agent Collaboration Is Encountering Classic Distributed Systems Problems
Some analyses compare multi-Agent orchestration systems to operating systems. Looking from Subagent and Agent Teams all the way to Swarm, it becomes clear that multi-Agent collaboration is increasingly touching classic designs from distributed systems:
- Subagent Delegation corresponds to hierarchical task scheduling
- Mailbox corresponds to point-to-point message passing
- Shared Message Board corresponds to a shared message log
- Shared Task List corresponds to a shared task queue
- File Locking corresponds to concurrency control
- Sleep & Wake corresponds to event-driven scheduling
- Git Worktree corresponds to workspace isolation
- Verifier corresponds to independent quality verification
- Monitor corresponds to system liveness monitoring
As the number of Agents increases, old problems such as communication overhead, resource contention, state consistency, task dependencies, and failure recovery will also emerge one by one.
Adding locks to task claiming does not mean code modifications achieve mutual exclusion; having independent context windows does not mean having independent file systems; multiple Workers reporting task completion does not mean the integrated code can pass tests. Once task dependencies are not correctly unblocked, or all Agents are waiting for replies from each other, the whole team may even fall directly into collaboration stagnation.
A user broke the problem down very directly: task completion and team delivery are two different things. Who is responsible for running tests on the merged code, and when it fails, who locates whether it is an interface contract issue or a change made by some Worker—if this step is not clearly defined, no matter how beautiful the earlier division of labor is, it can easily get stuck.
These hard problems have not yet been completely solved. And multi-Agent is never a case of the more the better. For highly coupled tasks, blindly adding Agents can instead bring higher communication overhead, duplicate reasoning, and Token consumption.
An increasingly clear judgment is that, in addition to the model's own capabilities and the refinement of the Agent Harness, how to organize multiple Agents with independent contexts, tools, and reasoning capabilities, and achieve reliable collaboration at controllable cost, will become a very key competitive direction for Coding Agents.
Making ten Agents write code at the same time and making ten Agents jointly deliver a complete project are two completely different things.
Reference links:
发布时间: 2026-11-27 10:32