Skip to main content

Module executor

Module executor 

Source
Expand description

OpenCode executor adapter.

AgentBridge is not a coding agent. This module starts a local OpenCode CLI process against the configured workspace, captures exit status, and returns a compact result. Internal model reasoning is discarded.

Structs§

ExecutorOutcome
ExecutorSnapshot
OpenCodeExecutor
SpawnedTask
Handle to a live OpenCode process. status / result / cancel are implemented by crate::task::TaskRuntime, which owns this handle.

Enums§

ExecutorError

Traits§

Executor
Local coding agent that may write files and run commands inside the workspace.

Functions§

find_executable
Locate command on PATH (Windows-aware). Absolute paths from config are allowed.
kill_process_tree
opencode_version
process_is_alive
run_spawned
Wait for OpenCode, honouring cancel. Returns a compact outcome (no reasoning).
validate_executor_type