keli-wen/cospan ↗★ 1

cospan

Orchestrate every model in its native harness — unified async delegation across Antigravity, Codex, Claude Code, and DeepSeek Harness.

套件
cospan
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年11月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:keli-wen/cospan

COSPAN

English | Simplified Chinese

Antigravity: plugin Codex: plugin Claude Code: plugin DeepSeek Harness: plugin

license: MIT

Orchestrate every model in its native harness. Unified async delegation across Antigravity, Codex, Claude Code, DeepSeek Harness, and more harnesses coming soon.

Cospan orchestration adapter connecting Antigravity, Codex, Claude Code, and DeepSeek Harness

Why Cospan · Core CUJs · Install · Harnesses · References

Why Cospan

Frontier coding models perform best inside the native harnesses they were co-trained with—so the real unit of orchestration is Model × Harness, and different ecosystems bring distinct strengths: Gemini 4 Carbon (agy) for architecture and planning, GPT-6.1-Sol (codex) for deep bug-hunting review, GPT-6.1-Terra (codex) for live GUI and browser computer use, and Claude (claude) for frontend craft. Combining them unlocks massive leverage; humans can bridge harnesses manually with handoff prompts today, but orchestration belongs to the agents themselves.

Inspired and battle-tested by agy-staff, Cospan turns cross-harness delegation into an async, progressively disclosed protocol behind one unified adapter: your host dispatches peer Model × Harness units in the background, stays unblocked with a clean context window, and pulls live status or full execution traces only when needed—forming a clean foundation for next-generation multi-agent collaboration.

Why Cospan minimalist line-art diagram: moving from manual handoff ("You are the router") to Cospan ("Agents orchestrate peers") across Model × Harness units with async progressive disclosure

Core CUJs

Basic dispatch: one command, zero plumbing

Invoke /cospan- (or /cospan: in Claude Code, $cospan: in Codex) and specify any target model, reasoning effort, or timeout right in your prompt:

/cospan-codex Use sol (high effort, 20m timeout) to review src/webhook/ and flag real edge cases.

[!TIP] Handled automatically under the hood (no need to manage this yourself): Your host agent autonomously frames context (inline text or --prompt-file), launches a detached background session (send), monitors progress non-blockingly (wait / bounded observe, inspecting full trajectory logs only if needed), and collects the result—or resumes the same session (continue) for follow-up turns.

Cross-ecosystem workflows

  • Build with Carbon, fan out parallel Sol reviews (Antigravity → 2× Codex) — Finish coding on Gemini 4 Carbon, then fan out multiple GPT-6.1-Sol reviewers across slices (webhook/ & retry/) without blocking your host—Carbon keeps running local tests while staggered background results merge cleanly on wakeup:

    /cospan-codex "Fan out 2 sol reviews across webhook/ and retry/ for real bugs."

    Animated multi-agent demo: Gemini 4 Carbon fans out 2 parallel GPT-6.1-Sol reviewers non-blockingly, continues local tests, and merges staggered async results on wakeup

  • Bring in Carbon as a second brain for Astra (Codex ⇄ Antigravity) — Driving a complex migration on GPT-6-Astra in Codex? Consult Gemini 4 Carbon from a second model family to stress-test assumptions, propose an alternative route, and verify edge cases across multiple turns in the same session:

    $cospan:agy "Ask carbon to stress-test docs/plan.md, propose a cleaner route, and verify crash recovery."

    Animated multi-turn second-brain demo: GPT-6-Astra in Codex consults Gemini 4 Carbon in Antigravity across two resumed turns while auditing SQL callers locally

  • Delegate computer use from Claude Code to Terra (Claude Code → Codex) — Keep main code orchestration in Claude Code, and hand off live browser or GUI computer-use workflows to GPT-6.1-Terra while Claude keeps writing unit tests locally:

    /cospan:codex "Have terra open the local app and walk through the checkout coupon flow."

    Screen Studio style computer-use demo: camera zooms into Claude Code dispatching GPT-6.1-Terra, pans and zooms onto the desktop browser as Codex Terra controls the cursor to apply SAVE20 and test 375px mobile layout, catches a sticky banner overlap, and pulls back as Claude receives the async report

  • Offload parallel cross-ecosystem sidecars (Claude Code → Antigravity + DeepSeek Harness) — Protect scarce flagship context and quota (like Claude Fable) by fanning out fast repo surveys to Gemini 4 Hydrogen and independent concurrency checks to DeepSeek V4.1 Flash simultaneously:

    "Map auth token refresh with hydrogen and verify 401 race conditions with v4.1-flash."

    Animated cross-ecosystem fan-out demo: Claude Fable dispatches Gemini 4 Hydrogen and DeepSeek V4.1 Flash in parallel, merging staggered async findings on wakeup

Install

Requires Node.js >= 20 plus the CLIs for whichever harnesses you want to connect (agy, claude, codex, dsh). Install the native plugin into the harness(es) you drive from:

Antigravity (agy)

git clone https://github.com/keli-wen/cospan.git ~/.cospan/repo
node ~/.cospan/repo/bin/cospan.mjs install --host agy

Claude Code (claude)

claude plugin marketplace add keli-wen/cospan
claude plugin install cospan@cospan

OpenAI Codex (codex)

codex plugin marketplace add https://github.com/keli-wen/cospan
codex plugin add cospan@cospan

DeepSeek Harness (dsh)

dsh plugin --profile desktop add github:keli-wen/cospan

(Or in the DeepSeek Harness desktop app: Plugins → install from github:keli-wen/cospan.)

Restart Claude Code or Codex afterwards so the plugin loads (/cospan-… in Antigravity and DeepSeek Harness, /cospan:… in Claude Code, $cospan:… in Codex—or describe what you want in plain language).

Harnesses

HarnessEcosystemBuilt-in model shortcuts
Antigravity (agy)Google · Gemini & Claudeflash, carbon, argon, hydrogen, opus, sonnet
Codex (codex)OpenAI · GPTsol, terra, astra, luna, spark
Claude Code (claude)Anthropic · Claudesonnet, opus, haiku, fable
DeepSeek Harness (dsh)DeepSeek & custom providersv4.1-flash, flash, pro, chat, reasoner, `
/`

More harnesses are on the way—Cospan's driver layer is designed to plug in additional coding agent CLIs cleanly.

References

  • agy-staff — Hire Google's Antigravity CLI (agy) as a fast worker and second brain across Claude Code, Codex, DeepSeek Harness, Pi, and OpenCode. Cospan generalizes the async jobs protocol and progressive disclosure architecture first pioneered and benchmarked in agy-staff (Bench v1 Tech Report).

License

MIT © 2026 Keli Wen · Architecture & contributor guide in AGENTS.md.