cyberneticlibrary

Call Claude Code from external tools

opencode-claude-acpskillsetup L30
npm:opencode-claude-acp
What it does

Call Claude Code from shell with persistent sessions

Best for

Integrating Claude Code as a long-lived CLI service from other agents.

Inputs
  • · prompt text
  • · working directory
Outputs
  • · code changes
  • · final answer
  • · session metadata
Requires
  • · Node.js ≥18
  • · Agent Client Protocol (ACP)
  • · claude-agent-acp binary
Preconditions

Node.js ≥18 installed, Claude authenticated locally, agent binary available

Failure modes
  • · Agent spawn fails if not on PATH
  • · Auth errors if Claude credentials missing
  • · Session file corruption on unclean exit
Trust signals
  • · Two install paths documented (npm and git)
  • · Session persistence mechanism shown
  • · Flag table with 10+ options
  • · Troubleshooting section with specific error messages