omp packages

@omp-provider-capabilities/opencode-harness0.1.1

OpenCode harness adapter using @opencode/sdk

efrancisco Published 10 days ago MIT ~466 downloads/mo

Built for omp

The author tagged this package omp-package.

Did it work for you?

Result

One report per person. A new report replaces your old one.

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 HarnessEvent types
  • 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