No slash command · from opencode
Internal helper for dispatching tasks to the opencode-companion runtime via a dispatch-and-poll loop. Used exclusively inside the opencode:opencode-rescue subagent.
Ships in opencode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill only inside the opencode:opencode-rescue subagent.
Primary helper:
node "${CLAUDE_PLUGIN_ROOT}/scripts/opencode-companion.mjs" task "<raw arguments>"Default dispatch pattern — dispatch-and-poll loop:
task --background --write "<prompt>" → capture task-id (grep from stdout).status <task-id> --json polls (each a short Bash call, sleep 30 && node ... status).status is terminal (completed / failed / cancelled), final result <task-id> → return that stdout unchanged.Do not use tail -f on the companion log file as a substitute for polling. The Bash tool caps at 10 minutes per call and the tail approach produces a vague fallback string when the task runs longer. The status-poll loop uses multiple short Bash calls that each fit well under the cap.
Execution rules:
result stdout.git, direct OpenCode CLI strings, or any other Bash activity.setup, review, adversarial-review, or cancel from the subagent. status and result are permitted only as part of the poll loop.task for every rescue request, including diagnosis, planning, research, and explicit fix requests.opencode-prompting skill to rewrite the user's request into a tighter OpenCode prompt before the task call.--agent unset unless the user explicitly requests a specific agent (build or plan).--model only when the user explicitly asks for one.Command selection:
task invocation per rescue handoff. Follow it with status polls and one final result call.--background or --wait, treat that as Claude-side execution control only. Strip it before calling task. The dispatch-and-poll loop always uses --background at the companion level internally.--model, pass it through to task.--agent, pass it through to task.--resume, strip that token from the task text and add --resume-last.--fresh, strip that token from the task text and do not add --resume-last.--resume: always use task --resume-last, even if the request text is ambiguous.--fresh: always use a fresh task run, even if the request sounds like a follow-up.Safety rules:
opencode:opencode-rescue unless the user explicitly asks for read-only behavior.result command exactly as-is.ERROR: companion dispatch failed (<reason>). Never return placeholder strings like "Monitor started" or "Waiting for completion" — they are failure modes, not results.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tasict/opencode-plugin-cc --plugin opencode3 skills in this plugin
Other plugins' skills for the same job