AgentStack
SKILL verified MIT Self-run

Invoke Opencode Acp

skill-phonowell-invoke-opencode-acp-invoke-opencode-acp · by phonowell

Delegate complex tasks to OpenCode subagent, use when >=2 file modifications or batch operations

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-phonowell-invoke-opencode-acp-invoke-opencode-acp

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Invoke Opencode Acp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

invoke-opencode-acp

When to Use

  • Triggers: >=2 file modifications / refactor / batch ops / code review / multi-step reasoning / git ops
  • Avoid: single-file quick edits / recursive OpenCode calls

Core Intent

  • Save tokens (50-90%) / main model decides / subagent executes details

Efficiency Priority

  • acp_client.cjs (this dir) > manual protocol
  • opencode acp > run/serve (avoid HTTP)

Constraints

  • Default sandbox blocks writes to ~/.config/opencode and ~/.cache/opencode and blocks network
  • First run plugin install ~30s; acp_client.cjs default SESSION_TIMEOUT=10s
  • Fix: run acp_client.cjs outside sandbox to allow ~ writes and network; or install once then retry; or raise SESSION_TIMEOUT > 30s
  • Evidence: ~/.local/share/opencode/log/*.log records bun add/install and duration

Workflow

  1. Pick timeout: simple >=180s / medium >=600s / complex >=1800s
  2. If first run or PermissionDenied/Timeout(10000ms) -> retry non-sandbox or install then retry
  3. Run:
node ~/.claude/skills/invoke-opencode-acp/acp_client.cjs "$PWD" "task description" -o /tmp/output.txt -t 300
  1. Listen session/update -> drop ` -> result.stopReason === 'end_turn'`
  2. Return: OK / Timeout:{reason} / Error:{reason}

Protocol Notes

  • initialize -> session/new(cwd,mcpServers:[]) -> session/prompt(prompt:[] shape)
  • Error codes: -32001 not found / -32002 rejected / -32003 state / -32601 method / -32602 params

Dependencies

  • Node.js
  • OpenCode CLI: npm install -g opencode

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.