ClawTrust LogoClawTrust
Opencode Acp Control

Opencode Acp Control

by bjesuiter · v1.0.0

Productivity
ClawHub
7.6
/ 10
1 evaluations
3.7k Downloads

Overview

Bridge an OpenClaw-style agent to the OpenCode IDE via the Agent Client Protocol (ACP), enabling the agent to start and manage OpenCode ACP processes, send prompts, stream/read responses, resume past sessions, and orchestrate OpenCode version checks/updates.

Key Advantages

1.Full lifecycle control of OpenCode ACP: start, initialize, prompt, stream responses, cancel, and stop processes.
2.Explicit JSON-RPC 2.0 interaction model with concrete examples, including message ID handling and polling strategy.
3.Support for long-lived and resumable coding sessions via session/new and session/load, preserving conversation and project context across restarts.
4.Well-documented workflows for session management, error handling, and timeout behavior, making it easier for agents to implement robust flows.
5.Built-in version management pattern for OpenCode, including checking the installed version against GitHub releases and guiding update flows.

Use Cases

  • Integrating OpenCode as a remote coding backend for an agent, allowing programmatic prompting and response streaming from within a project directory.
  • Resuming long-running OpenCode coding sessions (e.g., large refactors, multi-day tasks) by listing existing sessions and loading the selected one.
  • Automating OpenCode environment maintenance: checking current vs. latest version and orchestrating restarts so OpenCode can auto-update.
  • Using OpenCode’s capabilities (file edits, terminal usage via ACP) indirectly through an agent that follows the described JSON-RPC and polling protocol.
  • Managing multiple OpenCode ACP instances tied to different projects or workdirs, tracking per-process and per-session IDs for each.

Evaluation Scores

7.6
/ 10
Reliability
7.0
Functionality
8.5
Usability
7.8
Safety
6.8
Performance
7.5
Compatibility
7.8

Based on 1 evaluation · Latest: 3/19/2026

Download Trend

Loading...

Evaluation History (1)

7.6/103/19/2026
▼
OS: win32-x64LLM: deepseek/deepseek-v3.2
**Judgement:** A strong, well-documented integration skill for controlling OpenCode via ACP, best suited for environments where OpenCode is already installed and generic process/bash/webfetch tools are available. It offers rich functionality (sessions, streaming, resume, and update workflows) but requires careful protocol adherence by the agent. **Key strengths:** - Clearly specified JSON-RPC 2.0 contract (initialize, session/new, session/prompt, session/update notifications, session/cancel, session/load). - Concrete polling and timeout strategy, with examples for full end-to-end interactions. - Thoughtful handling of session persistence and resumption, supporting long-lived coding workflows. - Version-check and update orchestration pattern using `opencode --version` and GitHub releases. **Main risks and limitations:** - **Environment dependencies:** Assumes the presence of the `opencode` CLI and of tools like `bash`, `process.write/poll/kill`, `process.list`, and `webfetch`. In environments lacking these, the skill is non-functional. - **Protocol complexity:** Requires the agent to correctly manage message IDs, newline-delimited JSON-RPC messages, polling intervals, and stop conditions; mis-implementation can lead to hangs or lost responses. - **Process management risk:** Background `opencode acp` processes must be tracked and killed correctly; poor handling can leave orphaned processes or prematurely terminate active sessions. - **Update flow sensitivity:** The update workflow involves killing all OpenCode processes and relying on OpenCode’s auto-update; if misapplied, it can interrupt active work. The documentation also suggests a `curl | bash` manual update command, which is powerful and should be recommended cautiously. **Recommended scenarios:** - You want to treat OpenCode as a powerful coding backend that your agent can drive programmatically via ACP. - You need to resume and continue existing OpenCode sessions from an agent, preserving full conversation history and context. - You operate in a controlled dev environment (e.g., local dev box or dedicated server) where spawning and managing background OpenCode processes is acceptable and monitored. **Less suitable when:** - The runtime cannot guarantee availability of the `opencode` CLI or the required process/network tools. - You require a very simple, one-shot code generation tool without the overhead of ACP sessions, polling, and process management. - Strict operational policies disallow automated process control or system-level update flows initiated by an AI agent.

Comments (0)

Post a Comment

No comments yet. Be the first!