Expand description
Primitive live-runtime contracts and the Codex app-server reference adapter.
These APIs control harness-native sessions; they do not emulate terminal keystrokes and do not claim to attach to an arbitrary already-running TUI.
Structs§
- AcpRuntime
Backend - Generic ACP v1 client backend for any ACP agent command.
- Claude
Code Runtime Backend - Claude Code live-runtime backend using bidirectional stream-json print mode. It can create/resume sessions and cancel the running turn through the stream-json control channel; the print-mode protocol still exposes no permission-response primitive to this adapter.
- Codex
Runtime Backend - Codex live-runtime backend using the official
codex app-serverJSONL protocol (initialize,thread/start|resume,turn/start|interrupt). - Harness
Event - Protocol-neutral envelope around a native live event.
- Hosted
Harness Connection - SDK connection to a hosted native runtime. Closing it shuts down the owner runtime; terminal HTTP attachments are non-owning frontend leases.
- Hosted
Harness Runtime - Shared owner of a single harness-native runtime.
- Open
Code Runtime Backend - OpenCode live-runtime backend using its official HTTP API and SSE event
stream.
OpenCodeRuntimeBackend::connectcan join the server embedded in an already-running TUI when that TUI was launched with a known host/port. - PiRuntime
Backend - Pi live-runtime backend using
pi --mode rpcJSONL. - Runtime
Attach Request - Request to resume or attach through a new adapter connection.
- Runtime
Capabilities - Mechanical facts an adapter can guarantee.
- Runtime
Handle - Identity returned after a live session is started or resumed.
- Runtime
Input - User input accepted by a live runtime.
- Runtime
Launch - Executable configuration used to launch one adapter endpoint.
- Runtime
Start Request - Request to create a fresh runtime session.
- Supercode
Http Runtime Backend - Adapter that joins one authenticated Supercode SDK runtime without taking ownership of the process or creating a second model loop.
Enums§
- Runtime
Endpoint - Observable endpoint backing a runtime connection.
Traits§
- Runtime
Backend - Factory for starting, resuming, and (where the native protocol permits it) joining one harness’s already-running runtime endpoint.
- Runtime
Connection - One connected harness-native runtime session.