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.
npx claudepluginhub apoapps/swarm-code-plugin --plugin swarm-codeThis skill uses the workspace's default tool permissions.
<!-- Made by Alejandro Apodaca Cordova (apoapps.com) -->
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.
Delegates coding tasks to OpenAI Codex CLI in background via bash execution, retrieving results from temp files. Triggers on Codex/OpenAI mentions for second opinions or parallel runs.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Share bugs, ideas, or general feedback.
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.