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§
- Executor
Outcome - Executor
Snapshot - Open
Code Executor - Spawned
Task - Handle to a live OpenCode process.
status/result/cancelare implemented bycrate::task::TaskRuntime, which owns this handle.
Enums§
Traits§
- Executor
- Local coding agent that may write files and run commands inside the workspace.
Functions§
- find_
executable - Locate
commandon 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