From swarm-code
Spawns 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/swarm-code:opencode-runtimeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- Made by Alejandro Apodaca Cordova (apoapps.com) -->
Spawn a Haiku subagent that relays your task to OpenCode via bash. Progress shows in Claude's native agent panel.
Agent(
subagent_type="swarm-code:opencode-worker",
model="haiku",
prompt="<your full task with all context inline>"
)
The Haiku worker will:
bash oc-run.sh "<prompt>" → calls opencode run --model <m> "<prompt>"Workers CANNOT read files. Include all context inline:
## Task
Review this function for bugs.
## Code
<paste the actual code here>
## Output Format
Bullet list: [SEVERITY] file:line — description. Max 5 findings.
Run /swarm-code:init once per project to configure the OpenCode model.
The worker automatically uses the configured model — no manual override needed.
npx claudepluginhub apoapps/swarm-code-plugin --plugin swarm-codeDelegates 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.
Use when the user asks to run Claude Code CLI (`claude`, `claude resume`) for review, analysis, implementation, refactoring, debugging, or follow-up specifically through Claude Code.
Runs OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Useful when you want a different AI model's perspective.