ReadonlynameCLI name
ReadonlytransportTransport type
ReadonlycapabilitiesCapability profile
Executes a task on the CLI.
Task to execute
Optionaloptions: CliExecutionOptionsExecution options
Result with response or error
Performs a health check on the CLI.
Health status including version compatibility
Gets CLI version.
Version string
Initializes the adapter (e.g., MCP connection). Called before first use.
Cleans up resources (e.g., subprocess, MCP connection). Called on shutdown.
Optionallist(#2540) Optional: list models the underlying CLI installation/runtime has available. Implementations should cache for ~5 min and throw on failure so the caller can fall back. Adapters whose CLIs have no native list surface (claude, codex, gemini) leave this undefined.
CLI adapter interface. Abstracts CLI integration with transport-agnostic execution. (Source: cli-project_plan.md v2.1.0, Phase 2)