Delegate a bounded coding task to the local opencode2 CLI, then verify it. Trigger: delegar a opencode2, opencode-admin.
65
77%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./ywai/skills/delegate-opencode2/SKILL.mdA cold agent on this machine. It gets a prompt and a repo, nothing else — everything it needs must be in the prompt or at a path the prompt names.
Load when the user asks to hand a bounded coding task to opencode2 or names an opencode-admin/* model. Do NOT load for a one-file edit you already understand, a quick state check, or work that depends on context only this session holds: a cold agent re-derives it and costs more than doing it yourself.
~/.opencode/bin/opencode2. opencode (v1) is a different tool.--auto. Without it the agent blocks on a permission prompt nobody can answer and the run dies.| Task shape | Route |
|---|---|
| 2+ non-trivial files, or a new endpoint/service | delegate |
| Cross-repo work | one agent per repo, parallel |
| Same repo, dependent steps | sequential, never parallel |
| Follow-up on work an agent just did | --session <id> — do not relaunch cold |
| Model | When |
|---|---|
opencode-admin/glm-5.3-flash | default for coding tasks |
opencode-admin/grok-4.5 | the task needs real search or multi-step reasoning; flash models stall on these |
| any other | Error: Transport twice running — the provider is failing, not your prompt |
Write the prompt to a file first; never inline a long prompt in the shell.
cd <repo>
nohup ~/.opencode/bin/opencode2 run --auto --standalone --format json \
--model opencode-admin/glm-5.3-flash --title "<short>" \
"$(cat <prompt-file>)" > <log> 2>&1 &
echo $! > <log>.pid--standalone runs a private server instead of joining the shared background service, so one job cannot disturb another's session.--format json gives you a parseable result and the session id, instead of scraping prose out of a log.--agent <name> picks a configured agent when you want its system prompt and permissions rather than a bare model.Wait on that process, not on the program name:
while kill -0 "$(cat <log>.pid)" 2>/dev/null; do sleep 10; donepgrep opencode2 matches every opencode2 on the machine, including jobs you did not launch — it will report done while yours is still running, or hang on someone else's.
The report is a claim. Verification is yours:
git checkout -- on uncommitted work.Two measurement traps in your own review: git stash without -u leaves new files behind, so the "clean" baseline is contaminated; and a mutation that breaks compilation makes the runner execute fewer suites and still report green — a lower test count is not a pass.
Found a bug while reviewing? Continue the same session with --session <id> and pin the finding as evidence. The agent still has the context; a cold relaunch does not.
Files changed · which claims you verified yourself · which mutations were caught and which survived · the exact test output. State plainly anything the agent reported that you could not confirm.
Prompt anatomy, worked traps, and failure modes: prompt-recipe.md.
36f5af5
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.