Dispatch Opencode

Dispatch subagent tasks through opencode (https://opencode.ai) using the async .subagents/ lock-watch protocol. The agent writes a plan YAML, calls run-plan.sh to validate and dispatch, polls lockfiles on its own interval, reads FINAL_OUTPUT.md on completion, and calls subagent-cleanup.sh or subagent-abandon.sh to tear down. Use when you want to hand work off to a background subagent instead of doing it yourself — for example, dispatching a subagent into a worktree, parallelizing independent tasks, or running long-lived investigations. TRIGGER when: the agent would otherwise block on a subagent that could run in the background, or when worktree-isolated subagent dispatch is needed.

cristoslc f2196a4 34 files · 164.9 KB Updated

File contents

cristoslc/dispatch-opencode-skill/tree/main/skills/dispatch-opencode commit f2196a4339

Frequently asked questions

npx skillmds@latest add cristoslc/dispatch-opencode