From swarm-code
Delegates code tasks like review, planning, Q&A, analysis to OpenCode Haiku subagents via bash. Single worker for focused tasks; parallel teams for complex ones. Token-efficient, no tmux needed.
How this skill is triggered — by the user, by Claude, or both
Slash command
/swarm-code:opencode-orchestrateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- Made by Alejandro Apodaca Cordova (apoapps.com) -->
Spawn Haiku subagents that call OpenCode via bash. Claude's agent panel shows progress — no custom UI needed.
| Situation | Pattern |
|---|---|
| One focused task (review, plan, Q&A) | Single worker |
| 2+ independent tasks (review + plan) | Parallel workers |
| Same task from multiple angles | Parallel workers |
Agent(
subagent_type="swarm-code:opencode-worker",
model="haiku",
prompt="<full task description with all context needed>"
)
The worker will ACK, call oc-run.sh (which runs opencode run), and SendMessage the result back.
TeamCreate(team_name="oc-team", description="<what the team is doing>")
Agent(
subagent_type="swarm-code:opencode-worker",
name="worker-review",
team_name="oc-team",
model="haiku",
prompt="<task A> — report result via SendMessage to team-lead"
)
Agent(
subagent_type="swarm-code:opencode-worker",
name="worker-plan",
team_name="oc-team",
model="haiku",
prompt="<task B> — report result via SendMessage to team-lead"
)
Workers run concurrently. Wait for both SendMessage results before synthesizing.
Workers call opencode run "<prompt>" headlessly. Prompt them with:
Always include the relevant code/context inline — workers can't read files themselves.
~70-80% fewer Claude tokens vs doing the analysis directly.
opencode-bridge.sh — that's deprecated, use oc-run.sh via the workernpx claudepluginhub apoapps/swarm-code-plugin --plugin swarm-codeSpawns Haiku subagent to run code reviews of diffs/files, implementation plans, technical questions, and analytical tasks via headless OpenCode execution. Shows progress in Claude's agent panel.
Orchestrates runtime teams of Claude Code agents for parallel code review, debate, planning, building, research via /orchestrate commands or team requests.
Coordinates multiple Claude Code instances as agent teams with shared tasks, inter-agent messaging, and management for parallel research, feature development, debugging, and cross-layer coordination.