OptionaleffortThe CLI drops an effort suffix of the model and runs the variant of a separately passed
effort (agy), so the user's model rules see that variant (EffortRun in contracts/models.ts).
Unique backend identifier.
Human-readable backend name.
Executes a prompt in a read-only sandboxed CLI process. options.model is the model the
controller selected; an adapter refuses a turn without one rather than let the CLI choose.
Optionaloptions: ExecutionOptionsOptionalinheritedReads, without a model call, the MCP servers and plugins of the user's CLI configuration
that its turns offer the model and the adapter cannot disable (CUR-002). Called only
by doctor; undefined when the CLI cannot say.
Optionalcontext: BackendReadContextOptionalinspectReads measured native quota without a model call, for adapters whose probe does not include it.
Called by native quota diagnostics; ordinary routing reuses cached measurements.
Never called by execute.
Optionalprobe: AdapterProbeResultOptionalcontext: BackendReadContextOptionallistReads the models the installed CLI offers, without a model call. Called when a turn selects or checks a model, and by doctor; undefined when the CLI cannot say.
Optionalprobe: AdapterProbeResult
The current probe, for the version and executable it found.
Optionalcontext: BackendReadContextOptionalobserveAsks the CLI, without a model turn, which concrete model it runs for a requested name, or
without one, for CLIs that resolve names themselves (Claude Code aliases, its account
default). The controller passes the answer to execute, so consent and the turn name
the same model. Undefined when the CLI cannot say.
Optionalrequested: stringOptionalprobe: AdapterProbeResultOptionalcontext: BackendReadContextProbes the environment to verify CLI presence, version, and auth status.
Optionalcontext: BackendReadContext
Unified contract implemented by all CLI backend adapters.