I recently open-sourced cospan, an asynchronous orchestration adapter across coding agents that connects Antigravity (agy), Codex, Claude Code, and DeepSeek Harness (dsh), letting agents inside different clients dispatch work to one another in the background.

Why build this tool? It grew mainly out of two problems I kept running into while practicing Multi-Agent Orchestration in day-to-day development:
- Reusing my other subscriptions and each model's strengths directly from my primary client: Day to day, I mainly work in our internal
agy(still rough around plenty of edges right now, though it iterates quickly internally), while also holding subscriptions to Codex and Claude. After writing code, I often want Codex to run a pass of code review right fromagy(for example,Solreasons a bit slowly, but it is very thorough at catching edge cases), or hand frontend UI work over to Claude. Even withinagyitself, having Flash-tierHydrogeninvokeCarbondirectly is not supported: the built-in subagent only exposes abstract tiers such asflashandpro, without letting you specify an exact model and reasoning effort (when I tested it at the time, for instance, theprotier actually pointed toHydrogen-Extraand could not reachCarbon). - Cross-client multi-agent orchestration mostly relies on manually copying handoff prompts: Different models excel at different tasks inside their native harnesses. Previously, combining them into a single workflow meant keeping several windows open and pasting handoff prompts back and forth, which easily breaks your train of thought and makes context hard to maintain.
Here is a demo video generated with Gemini Carbon:
Once the plugin is installed, you neither need to leave your current terminal or IDE nor write low-level commands by hand. In conversation, you simply name the target client, model, and task via /cospan-<harness> (/cospan:<harness> in Claude Code, $cospan:<harness> in Codex):
/cospan-codex Use sol (high effort) to review the changes in src/webhook/, focusing on edge cases and concurrency issues.
Upon receiving the instruction, the current Host Agent automatically frames the necessary context, launches the corresponding native CLI in the background (send), waits non-blockingly for the result (wait), and resumes the exact same session (continue) whenever follow-up questions or further edits are needed.
1. Why the Minimal Unit of Orchestration Is Model × Harness
When trying to get multiple models working together on a task, another path comes naturally to mind: wire every provider's model API into one shared harness (such as Cursor) and schedule the underlying Model directly. Choosing the full Model × Harness pair as the minimal unit of orchestration in cospan comes down largely to personal preference. There is an Anthropic engineering principle I really like:
"We don't invent a spaceship if all we need is a bicycle."
From this perspective, orchestrating existing Model × Harness units directly brings two practical benefits:
First, it avoids the cost of providing and maintaining a centralized harness of our own. Scheduling raw Model APIs across providers at the bottom layer means building a general-purpose centralized harness in the middle: reimplementing and maintaining file I/O, edit matching, shell sandboxing, permission controls, and context compaction over the long run (Agent Loops, where Pi Agent has already set a strong precedent). Treating each mature Model × Harness as a whole and invoking it locally through its official CLI is structurally much simpler. On top of that, Skills plus Shell work seamlessly across any agent, so you can use whichever harness you prefer as your central workspace.
Second, it aligns with where official clients are already heading, so rough edges tend to get fixed upstream. On one hand, mainstream coding agent CLIs are steadily improving their non-interactive headless execution modes. On the other hand, as observed earlier in agy-staff Bench v1, frontier models tend to behave more reliably inside the native harnesses they were co-designed with, while also letting us reuse capabilities unique to each client (such as calling Codex's Terra from Claude Code to open a real browser and test local UI interactions, or asking agy to analyze bug screen recordings and audio directly). Even if a particular client still has rough edges today, those issues usually get resolved naturally through routine official releases, without requiring extra adaptation logic in the middle layer.

As the diagram above illustrates, I also wanted to keep the product form restrained: rather than spinning up a new centralized workbench that forces users to switch interfaces, cospan plugs into the primary client you already use as a lightweight, decentralized plugin. Orchestration is driven primarily by the Host Agent inside your current conversation (though you can also invoke targets explicitly), dispatching tasks in the background and collecting results whenever needed.
2. Async Delegation and Progressive Disclosure
Since cospan invokes external CLI processes rather than native tools built into the host, the next question is how to design the tool interface so that cross-client orchestration feels close to a native subagent (which is equivalent to designing a set of Agent-Native Async Tools).
My most basic intuition for orchestration comes from imagining how a team collaborates day to day (still a fairly rough way of thinking about it): once task boundaries are split clearly, the core actions in collaboration are dispatching tasks and reviewing results. When you hand a concrete piece of work to a teammate, you do not need them reporting every intermediate detail in real time, down to each file read or tool call. Most of the time, you only need to review the deliverable and a brief report once they finish, while remaining able to ask about current progress whenever a task runs longer than expected or hits an open question.
Mapping that collaborative pattern onto Agent Tools design (building on earlier explorations in Notes on Iterating agy-staff) leads directly to two principles: Async Delegation and Progressive Disclosure.

Around those two principles, cospan narrows the cross-client lifecycle down to a few core operations:
- Background dispatch and result collection (
send/wait): Once the main agent prepares the task context,sendlaunches the subtask in a detached background process so the main conversation stays unblocked and can continue local edits or fan out multiple subtasks in parallel. When it is time to collect results,waitretrieves the final report and workspace diff summary, while the worker's full trajectory stays out of the repo tree under~/.cospan/trajectories/. (The tricky part here is that different harnesses vary in how well they support long-running background tasks, so getting this smooth required dedicated optimization.) - Session continuation (
continue): After reviewing the result, if the main agent wants to verify an edge case or have the peer agent apply fixes directly from the review findings, callingcontinueon the same job resumes the underlying native session, reusing both its established code context and its Prompt Cache. - On-demand progress inspection (
observe): As analyzed in Why Is Codex Always Auto-Compacting?, a major reason to introduce subagents is to isolate noisy intermediate exploration. If the main agent repeatedly reads large chunks of child output while waiting, it pulls that exploration noise right back into the main context. Accordingly,cospan's Skill guidance defaults to waiting quietly for completion; only when a single wait window expires while the job is still running, or when the user explicitly asks about status, does the main agent callobserveto read a bounded (<= 8 KiB) snapshot of recent agent activity and decide whether to keep waiting, adjust instructions, or cancel the job.

When several background tasks are running in parallel, we also sometimes want a quick glance at overall status without messaging the main agent. If you use agy or dsh, installing the plugin adds a unified task panel in the sidebar that aggregates live jobs across all four clients, Q&A summaries, and related runs across sibling Git worktrees of the same repository. I increasingly feel that dsh's plugin design philosophy is genuinely valuable for Agent Harnesses.
3. Practical Collaboration Workflows and Boundaries
In everyday development, there is no need to memorize command-line flags; you can simply name the target model (sol, astra, terra, carbon, neon, opus, v4.1-flash) and reasoning effort (effort) right in conversation. Here are a few collaboration patterns I use most often:
1. Independent review across model families (bringing in Sol / Astra)
After drafting a plan or modifying code in agy (or Claude Code), asking the exact same model to check its own changes often misses bugs because it follows the same reasoning path. With cospan, once I finish drafting a plan with Carbon in agy, I ask Astra for suggestions against best practices; once the code is written, I hand it over to GPT-6.2 Sol, which is very thorough at code review, for an independent audit. On larger changes, I also split modules across multiple background Sol instances in parallel:
2. Reusing native capabilities and model strengths across ecosystems
When staying in Claude Code to write frontend components and unit tests, mobile viewport overlaps or multi-step UI state bugs are hard to catch from static code reading alone. In those cases, I delegate "open the local app and walk through the coupon checkout flow at a 375px viewport" directly to Codex Terra, which supports native Computer Use:

This kind of cross-ecosystem complementarity is currently my most frequent use case. For instance, agy currently supports Computer Use only on the web, so whenever a task requires full desktop Computer Use to set up a page environment, simulate interactions, or gather data, I hand it straight to Codex's Terra; when generating illustrations, I can likewise invoke Codex to use GPT Image (whose output quality is still noticeably better than Nano Banana right now). Conversely, calling agy in reverse from Codex or other clients works very well too: because agy comes with Opus quota of its own, the current Host model can prepare all the necessary context upfront and then dispatch Opus inside agy via cospan to produce the response or design, which saves a lot of quota and makes good use of Opus's aesthetic taste.
3. Multi-model relay pipelines for R&D
For larger feature builds or experimental explorations, a workflow I use regularly goes like this: Carbon and Astra first clarify requirements together and lock down a concrete spec, then multiple Hydrogen workers launch in parallel to run experiments or implement code, an independent Sol session runs a final code review on the aggregated work, and finally Sol's findings go back to Hydrogen for a closing fix pass:
Once you run multi-stage orchestrations like this in practice, it becomes clear that they go beyond one-off point-to-point tool calls and are essentially fixed cross-harness Workflows.
When do you need cross-client orchestration (and when do you not)?
Based on day-to-day experience, cross-client orchestration is mainly worth introducing in two scenarios:
- Load-balancing across models and subscriptions: Spreading noisy repository exploration, batch experiments, or time-consuming jobs across separate subscription quotas and higher-throughput models while keeping intermediate exploration out of the main context window (for example, having
Neongather information first and then askingOpusinagyto handle the design, making efficient use ofOpus's aesthetic taste). - Borrowing specific capabilities and niches from other model families: Getting an independent review perspective outside the original context (such as
SolorAstra), or using native features unique to another client.
Coming back to "Do the simple thing that works" and the context coupling principle discussed in Thinking in Context: When Do You Need Multi-Agent Systems?, spawning an external CLI across processes and passing a handoff prompt carries fixed latency and context overhead. If a task can be solved one-shot by your current model, or involves localized, tightly coupled edits where every step depends on immediate feedback from the previous one, staying inside the current session remains the simplest and fastest choice (which also matches our evaluation findings on localized bug-fixing tasks in agy-staff Bench v1).
Reflections and Next Steps
After relying heavily on cospan in daily development for a while, combined with my earlier explorations around Long-Horizon Tasks, I have gained a more concrete sense of where the boundaries of multi-agent orchestration lie.
The main direction I plan to push next is moving from pure prompt-driven orchestration toward programmable, code-defined workflows (cospan-flow). Previously, I was quite enthusiastic about writing elaborate Long-Horizon Skills to drive multi-hour or even overnight runs. Repeated practice showed, however, that relying on natural-language Skills alone over long chains makes both process reliability and outcome reliability hard to guarantee. On one hand, as context grows longer, models easily forget earlier constraints or skip key steps; on the other hand, when execution and acceptance judgment live inside the same long session, running into obstacles easily triggers phenomena similar to Reward Hacking, such as bypassing slow real-world verification and reporting the task as finished, only to find after several hours that tokens were spent for nothing.
Ultimately, the Agent era demands more than good raw outputs; it places an even higher bar on usability and reliability, including giving humans a clear sense of control at key checkpoints. In most engineering scenarios, we already know what the right sequence looks like (for example, cross-reviewing to align on a plan, implementing in parallel, auditing in an independent session, and converging on fixes). Once that control flow is deterministic, rather than repeating instructions in long prompts, it makes more sense to follow the same shift tool use made toward Code Mode and lock down the orchestration design directly in a few lines of deterministic code. Official workflow features today remain confined to individual harnesses, so building a cross-ecosystem programmable workflow layer, cospan-flow, on top of cospan is the most natural next step.
One more observation stood out during daily use: in the Agent era, it is easy to open a dozen sessions over the course of a day, at which point human attention budget (bandwidth) runs out first (when you step away from your desk for two hours and come back, just remembering what each task did and where it stopped takes real effort). Around this problem, I also recently open-sourced Planar, a tool for tracking parallel session threads and time investment across clients, which I will share in a standalone post once I have accumulated more hands-on experience with it:
keli-wen / planarA shared map of the work you do with agents.cospan is currently at v0.1.3 and still actively evolving. Feedback, bug reports, and discussions are very welcome~
Appendix: Comparison with Related Approaches
Since sharing the project with the community, people have often asked how it differs from other open-source tools in neighboring spaces. The table below compares cospan against several representative categories:
| Category | Representative Projects | Core Approach & Focus | Key Difference from cospan |
|---|---|---|---|
| Centralized Agent Control Planes / Multi-Client Workbenches | Orca, T3 Code, Multica, Superset / Herdr | Provide a standalone desktop ADE, web task board, or dedicated terminal environment that hosts local Claude Code, Codex, and others inside unified Git worktree workspaces and approval UIs | Who orchestrates, and where the entry point lives: these tools mostly build a centralized workbench where humans in a new UI create sessions, assign tasks, and switch branches (even when a coordinator mode is included, it runs inside their own client); cospan does not take over the outer UI or ask you to leave your primary client, acting instead as a decentralized plugin invoked on demand by the Host Agent in your current session |
| CLI Reverse Proxies & Model Routing Gateways | CLIProxyAPI, claude-code-router | Wrap client credentials or upstream endpoints as compatible API servers so users can swap underlying models inside the same client shell | Reverse proxies strip a model out of its native harness, which easily runs into tool-calling incompatibilities, broken prompt caches, or account rate/risk controls, and forfeits native capabilities unique to the target client (such as Terra's browser control); cospan invokes official native headless CLIs locally, always scheduling the full Model × Harness |
| One-Way Worker Plugin (Predecessor) | agy-staff | Wraps agy as a fast background worker for Claude Code and Codex with built-in preset modes such as research, review, and implement | cospan carries forward the proven async background execution and progressive disclosure mechanics from agy-staff, drops fixed role templates, generalizes the protocol into symmetric peer-to-peer calls across four clients, and adds batch WaitAll plus the cross-worktree sidebar panel |
Put simply, if what you want is a new desktop client or team board to manage parallel workspaces and multi-device approvals in one place, Orca, T3 Code, or Multica will be a better fit. If you prefer staying inside the primary CLI or IDE you already use every day and want the Agent in your current conversation to dispatch other native clients on demand, that is the exact workflow cospan is built for. Looking ahead, as cospan-flow lands, it will also let you compose Model × Harness units across ecosystems into reusable cross-client workflows in a few lines of deterministic code while keeping its lightweight decentralized form, which is a distinct advantage over workflows locked to a single host or purely manual boards.
References
- cospan GitHub Repository · Source code, supported client matrix, and release notes
- agy-staff: Making Gemini a Staff Member for Codex / Claude Code · Original motivation behind the predecessor plugin
- Harness Optimization in Practice: Agent Tool Optimization | Notes on Iterating agy-staff · Evolution of background async waiting,
observesnapshots, and progressive disclosure - agy-staff Bench v1: Evaluating Agent Orchestration and Harnesses · Experiments on
Model × Harnesscoupling, async wake-up differences, and task graph structures - Why Is Codex Always Auto-Compacting? · Empirical analysis of context truncation and subagent exploration isolation
- Thinking in Context: When Do You Need Multi-Agent Systems? · Judging when to split into multi-agent workflows by context coupling
- One Poem Suffices: Just-in-Time Context · On-demand context retrieval and Do the simple thing that works
- Anthropic: Building effective agents · Distinguishing control flows between Workflows and Agents, starting from the simplest working solution
