opencode-wave
Spawn and coordinate deterministic, collision-safe OpenCode leaf worker waves with high reasoning effort (--variant high), automated approvals (--auto)…
by anthony-chaudhary★ 50 GitHub stars
Install opencode-wave in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
/opencode-wave — High-Effort Deterministic OpenCode Multi-Agent Wave Dispatch
The campaign coordinator for running multi-issue resolution waves in OpenCode. It takes a cohort of tracked GitHub issues or ticket tranches, verifies pairwise tree-disjoint package boundaries, isolates concurrent workers in detached worktrees, spawns user-visible detached OpenCode processes (opencode run --variant high --auto), enforces direct leaf execution within package boundaries (prohibiting nested task calls to prevent depth limit recursion failures, #12028), and supervises execution through automated harvest and safe git landing.
Six Invariants of Deterministic OpenCode Wave Dispatch
- GitHub Issues & Tranche Grounding First: Every substantive unit of work must be tracked in a GitHub issue and grounded on ticket specifications before worker execution begins. When targeting companion repositories (e.g.
anthony-chaudhary/fak-private), explicitly bind candidate issues to the target repo and local ticket tranche (docs/tickets/.../INDEX.md). - Mandatory Worktree Isolation: Dispatched workers touching identical Go packages must execute in detached worker worktrees (
--worktree) or be partitioned into sequential waves. Concurrent edits to shared packages in the same working tree cause compilation cross-contamination and test failures. - Strict Ban on Loose Scripts (Modular Native Go Dispatch Only): Creating new PowerShell (
.ps1), Bash (.sh), or batch (.bat) scripts is prohibited. Wave planning, process spawning, and harvest reconciliation must run through first-class Go tooling (fak issue-orchestrator). - High-Reasoning Effort & Auto-Approve Flags: Dispatched child OpenCode sessions run with
--variant high --auto(or--dangerously-skip-permissions). This activates Gemini 3.8 Flash high reasoning mode for complex debugging, concurrency verification, and kernel implementation. - Leaf Worker Direct Execution (No Nested Subagents): Dispatched sessions act as depth-1 leaf workers focused on assigned lane and boundary paths. Workers execute deliverables directly within package boundaries, author reproduction tests, and run package verification without calling the
tasktool or attempting nested subagent delegation. The coordinator manages wave fan-out; leaf workers execute directly to prevent recursion depth limit failures (Subagent depth limit reached (1), #12028, #12029). - Automated Closed-Loop Supervision & Harvest: Waves do not stop at process launch. The coordinator supervises active workers, enforces the 4-state harvest protocol (
StateVerifiedCleared,StateResidualReview,StateQuietIncomplete,StateSpinningStalled), lands verified worktrees to trunk, and verifies GitHub comment receipts.
Execution Protocol
Phase 1: Intake & Issue Tranche Ingestion
Query candidate issues from the target repository and pipe directly into structured JSON:
# Ingest candidate issues from target repository (public fak or private companion)
gh issue list -R anthony-chaudhary/fak-private --limit 15 --json number,title,labels,body > _scratch/issues.json
When executing a local campaign tranche, reconcile against the ticket index:
# Verify ticket definitions and acceptance criteria
cat docs/tickets/<campaign>/INDEX.md
Phase 2: Tree-Disjoint Wave Partitioning & Lease Arbitration
Partition the candidate issue set into ordered, collision-free waves where no two concurrent issues in the same wave touch overlapping packages:
# Plan safe waves with pairwise tree-disjoint boundaries and lease verification
go run ./cmd/fak issue-orchestrator \
--workspace . \
--from-issues _scratch/issues.json \
--wave-size 4 \
--plan-waves \
--worktree \
--json
Verify that each planned wave respects lane leases (dos arbitrate) and isolates high-blast-radius core packages into single-worker waves.
Phase 3: Native Go Wave Dispatch
Launch detached OpenCode worker processes for the target wave using first-class native Go tooling:
# Dispatch Wave 1 with high reasoning effort and detached worktree isolation
go run ./cmd/fak issue-orchestrator \
--workspace . \
--from-issues _scratch/issues.json \
--spawn-opencode \
--spawn-wave 1 \
--wave-size 4 \
--variant high \
--worktree \
--json
For private platform components in fak-private, specify the companion workspace root:
go run ./cmd/fak issue-orchestrator \
--workspace ../fak-private \
--from-issues _scratch/issues.json \
--spawn-opencode \
--spawn-wave 1 \
--variant high \
--worktree \
--json
Phase 4: Live Supervision & Watchdog Monitoring
Audit running worker processes, session database registrations, and log streams:
# Check registered OpenCode database sessions
opencode session list
# Check running processes and resource utilization
powershell -Command "Get-Process -Name 'opencode' | Select-Object Id, Proces
Allowed tools
Tools this skill is permitted to call.
- 01
Read - 02
Edit - 03
Write - 04
Grep - 05
Glob - 06
Bash - 07
Task
FAQ
What does the opencode-wave skill do?
Spawn and coordinate deterministic, collision-safe OpenCode leaf worker waves with high reasoning effort (--variant high), automated approvals (--auto), mandatory detached worktree isolation (--worktree), pre-flight lane lease arbitration, and automated closed-loop harvest. Use when an operator asks for a wave of OpenCode leaf workers, or when a batch of issue-sized units should fan out to isolated high-effort OpenCode sessions and be harvested closed-loop.
How do I install the opencode-wave skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the opencode-wave skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…