@omp-provider-capabilities/harness0.3.1
Harness infrastructure for OMPv1 — HarnessDriver contract, normalized event types, session management, ACP protocol client, and JSON-RPC transport. Library dependency — install individual adapter packages (claude-code, codex, …) as extensions.
Built for omp
The author tagged this package omp-package.
Reports 0
No reports yet.
Readme
@omp-provider-capabilities/harness
Shared harness infrastructure — driver contract, normalized event types, session management, protocol clients, and harness adapters.
What this package provides
Core Infrastructure
HarnessDriver— Unified interface for controlling external coding agentsHarnessCapabilities— Capability model for feature detectionHarnessSession— Session lifecycle and state managementHarnessEvent— Normalized event types across all protocolsSessionManager— Session tracking, state transitions, usage accumulation
Protocol Layer
AcpClient— Shared ACP (Agent Client Protocol) client for JSON-RPC 2.0 over stdioJsonRpcTransport— JSON-RPC 2.0 transport layer for stdio communication
Individual Harness Adapter Packages
Each harness adapter is now a separate independently installable package. Install only what you need:
| Harness | Package | Protocol |
|---|---|---|
| Claude Code | @omp-provider-capabilities/claude-code |
SDK (@anthropic-ai/claude-agent-sdk) |
| OpenAI Codex | @omp-provider-capabilities/codex |
SDK (@openai/agents) |
| Antigravity | @omp-provider-capabilities/antigravity |
SDK (@google/adk) |
| GitHub Copilot | @omp-provider-capabilities/copilot |
SDK (@microsoft/copilot-sdk) |
| Muse Code | @omp-provider-capabilities/muse-code-harness |
SDK (@muse-code/sdk) |
| OpenCode | @omp-provider-capabilities/opencode-harness |
SDK (@opencode/sdk) |
| Grok Build | @omp-provider-capabilities/grok-build |
ACP (shared client) |
| DeepSeek Harness | @omp-provider-capabilities/dsh |
ACP (shared client) |
| Kimi Code | @omp-provider-capabilities/kimi-code |
ACP (shared client) |
| Kiro | @omp-provider-capabilities/kiro-harness |
ACP (shared client) |
| Kilo Code | @omp-provider-capabilities/kilo-code |
ACP (shared client) |
Each harness package registers 3 OMP tools automatically: *_spawn, *_status, *_cancel.
Important: ACP Adapters Require Active stdio Connection
ACP-based adapters are not detached services. They require the orchestrator (OMP) to maintain an active stdio connection to the agent process. This is by design — ACP is the Agent Client Protocol, intended for IDE-to-agent integration where the parent process manages the agent's lifecycle.
What this means:
- The agent process runs as a child of the orchestrator
- If the orchestrator dies, the agent process is terminated
- The agent cannot run independently as a background service
- Streaming events flow through stdio in real-time
When to use ACP adapters:
- ✅ IDE integration (editor drives the agent)
- ✅ Tool integration (another tool orchestrates the agent)
- ✅ Real-time streaming with live steering
- ✅ Multi-turn interactive sessions
When NOT to use ACP stdio adapters:
- ❌ Detached background execution — use the provider's headless or WebSocket server mode
- ❌ CI/CD pipelines — use
grok -pordsh --profile headless - ❌ Fire-and-forget tasks — use headless mode with
--output-format json - ❌ Agent should outlive orchestrator — use
grok agent serve(WebSocket server mode)
Headless and Server Mode Alternatives
For scenarios that don't require real-time stdio streaming:
| Provider | Mode | Command | Output |
|---|---|---|---|
| Grok Build | Headless | grok -p "prompt" --output-format json |
Single JSON result |
| Grok Build | Headless streaming | grok -p "prompt" --output-format streaming-json |
NDJSON stream |
| Grok Build | WebSocket server | grok agent serve --bind 127.0.0.1:2419 --secret <token> |
Persistent server |
| Grok Build | WebSocket relay | grok agent headless --grok-ws-url wss://relay |
Remote access |
| DeepSeek | Headless | dsh --profile headless "job" --json |
NDJSON events |
| DeepSeek | Headless resume | dsh --profile headless "job" --session-id <id> |
Resume session |
Why no CLI wrapper adapters?
The original 23 CLI wrapper adapters were removed because they were subprocess-based CLI wrappers that duplicated what OMP already provides natively via direct API integrations:
| Provider | OMPv1 Native | Lines | What it does |
|---|---|---|---|
| Cursor | cursor.ts |
7,599 | Full protobuf API, HTTP/2 bidi streams, MCP tools |
| Devin | devin.ts |
906 | Protobuf-based API, JWT auth, Connect protocol |
| Antigravity | antigravity-cli.ts |
~600 | ACP sessions, credential staging, conversations |
Our CLI wrappers were strictly less capable than OMP's native providers. The remaining ACP adapters use a standardized protocol rather than parsing CLI output.
Installation
Install via OMP plugin manager:
omp plugin install @omp-provider-capabilities/harness
Install from GitHub:
omp plugin install https://github.com/blyzer/omp-provider-capabilities/tree/main/packages/harness
Link a local checkout:
omp plugin link /path/to/omp-provider-capabilities/packages/harness
Load the extension source for one invocation:
omp -e /path/to/omp-provider-capabilities/packages/harness/src/index.ts
License
MIT