You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add provider-specific headless transport support for grok-cli and opencode-cli while preserving ACP as the default. The implementation must not assume that the two CLIs have identical flags or output framing.
Acceptance criteria
--transport acp remains the default for both CLIs.
--transport headless is explicit and uses a provider-specific command/argument builder.
--transport auto is accepted only for local runs and tries ACP before headless.
CI never performs silent ACP-to-headless fallback.
Headless output is normalized to the same versioned JSON envelope as ACP.
Provider-specific framing, exit codes, version requirements, and unsupported capabilities are represented in the registry.
Headless mode receives the same environment, timeout, cancellation, redaction, context, and tool-denial policy as ACP.
Offline fixtures cover valid output, logs around output, malformed output, timeout, cancellation, and unsupported version.
Existing Codex and Claude adapters are not changed to use headless behavior accidentally.
Diagnostics identify provider, transport, version, and reason for any fallback.
Parent
#37
What to build
Add provider-specific headless transport support for
grok-cliandopencode-cliwhile preserving ACP as the default. The implementation must not assume that the two CLIs have identical flags or output framing.Acceptance criteria
--transport acpremains the default for both CLIs.--transport headlessis explicit and uses a provider-specific command/argument builder.--transport autois accepted only for local runs and tries ACP before headless.Blocked by
Files and references
src/grok-cli-adapter.tssrc/opencode-cli-adapter.tssrc/provider-registry.tstest/cli-smoke.test.mjsNotes
Do not implement a generic arbitrary-command adapter. A provider is supported only when its headless framing is fixture-tested.