@omp-provider-capabilities/opencode-harness0.1.1
OpenCode harness adapter using @opencode/sdk
Built for omp
The author tagged this package omp-package.
Reports 0
No reports yet.
Readme
@omp-provider-capabilities/opencode-harness
OpenCode harness adapter for OMPv1 using the official @opencode/sdk.
This package controls OpenCode as a coding agent via HTTP client — creating sessions, sending prompts, streaming events, and handling cancellation.
Features
- HarnessDriver Implementation: Full session lifecycle via
@opencode/sdk - Event Normalization: All events normalized to
HarnessEventtypes - Cancellation: AbortController-based cancellation
- Usage Tracking: Token usage and session metrics
Installation
Install via OMP plugin manager:
omp plugin install @omp-provider-capabilities/opencode-harness
OMP Tools
This package registers 3 OMP tools automatically:
| Tool | Description |
|---|---|
opencode_spawn |
Start a new OpenCode session |
opencode_status |
Check session status |
opencode_cancel |
Cancel a running session |
Prerequisites
@opencode/sdk >= 2.4.0(optional peer dependency)- OpenCode CLI installed and authenticated
Additional Modes
OpenCode also supports server mode (opencode serve), Web UI (opencode web), and attach to running server. See the harness README for details.
License
MIT