Multi-Agent Runtime
Use this guide when you run parallel, task-run, team-run, or any workflow that coordinates Codex, Claude, and Antigravity under the orchestrator.
Supported Runtime Agents
Current runtime agents:
codexclaudeantigravity
Gemini CLI is no longer a supported runtime target. Antigravity now replaces the previous Gemini collaboration lane for local CLI review, verification, triad audit, and fallback routing. Hermes remains an install surface for the portable skill package, but it is not a full orchestrator runtime.
Safety Boundary
qiongli_task_run defaults to preview mode. It launches local agents only when all of these are true:
- the MCP caller sends JSON boolean
run_agents: true doctorpasses for the local runtime- the task packet has a concrete
task_id,paper_type,topic, and artifact root
Preview mode should be used first for normal planning, review, or routing decisions.
Required Local Runtime
Full local execution needs:
python3
codex
claude
antigravityAuthentication:
- Codex:
OPENAI_API_KEYor an existing supported Codex/ChatGPT login - Claude:
ANTHROPIC_API_KEYor an existing supported Claude Code login - Antigravity: existing local Antigravity CLI login/configuration
Run a health check before launching agents:
python3 -m bridges.orchestrator doctor --cwd .Preview-First Flow
Use the MCP route tool, then inspect the generated task plan before execution:
python3 -m bridges.orchestrator task-plan \
--task-id F3 \
--paper-type empirical \
--topic ai-in-education \
--cwd .
python3 -m bridges.orchestrator task-run \
--task-id F3 \
--paper-type empirical \
--topic ai-in-education \
--cwd .Only add execution flags after the preview is acceptable:
python3 -m bridges.orchestrator task-run \
--task-id F3 \
--paper-type empirical \
--topic ai-in-education \
--cwd . \
--run-agentsRuntime Routing
Use these fields when you need explicit ownership:
--execution-mode solo|duo|triad
--controller codex|claude|antigravity
--primary codex|claude|antigravity
--reviewer codex|claude|antigravity
--verifier codex|claude|antigravity
--solo-role-gates strict|standard|offtriad now uses Antigravity as the preferred distinct third runtime when primary and reviewer are Codex/Claude. If no distinct runtime remains available, the orchestrator records a routing note and reuses an available runtime instead of silently dropping the audit.
Parallel And Team Runs
Use parallel when you want independent Codex/Claude/Antigravity analysis followed by synthesis:
python3 -m bridges.orchestrator parallel \
--prompt "Review this methods section for causal overclaiming and missing robustness checks." \
--cwd . \
--summarizer claudeUse team-run for fanout/fanin task packets:
python3 -m bridges.orchestrator team-run \
--task-id H3 \
--paper-type empirical \
--topic acceptance-probe \
--cwd .Team runs should record skipped or failed workers explicitly and should not silently treat a missing runtime as a completed review.
Worker Adapter Routing
When task-run includes a worker_plan, adapter names describe dispatch mechanics, not task quality:
generic_prompt: portable worker packet for any supported runtime or manual dispatchcodex_subagent: Codex-native subagent dispatch when availableclaude_cowork: Claude-native coworker dispatch when available
Adapter fallback must be recorded in routing notes so reviewer handoff and merge decisions remain auditable.
Troubleshooting
If execution is blocked:
- run
doctor --cwd . - confirm
codexandclaudeare onPATH - confirm the relevant auth environment or logged-in session exists
- rerun
task-runwithout--run-agentsto inspect the preview packet - check
.qiongli/trace/for local guidance and routing notes