Skip to main content

Module runner

Module runner 

Source
Expand description

Headless runner implementations for different harnesses

This module provides the HeadlessRunner trait and implementations for running AI coding agents (Claude Code and OpenCode) in headless/non-interactive mode, parsing their streaming JSON output into unified StreamEvent types.

Structs§

ClaudeHeadless
Claude Code headless runner
CursorHeadless
Cursor Agent headless runner
OpenCodeHeadless
OpenCode headless runner
RhoHeadless
Rho CLI headless runner
SessionHandle
Handle to a running headless session

Enums§

AnyRunner
Enum-based runner that wraps concrete implementations
SessionProcess
Process backing a headless session - either an OS child process or a tokio task.

Traits§

HeadlessRunner
Trait for headless agent execution

Functions§

create_runner
Create a headless runner for the specified harness
parse_opencode_event
Parse a line of OpenCode JSON output into a StreamEvent

Type Aliases§

BoxFuture
Boxed async result type for dyn-compatible async trait methods