feat: add Grok as a --guest runtime for Codex $cc commands (v1.7.3) - #36
Open
CBEPX wants to merge 1 commit into
Open
feat: add Grok as a --guest runtime for Codex $cc commands (v1.7.3)#36CBEPX wants to merge 1 commit into
CBEPX wants to merge 1 commit into
Conversation
Rebase the Grok guest path onto v1.7.3. Codex can run Grok instead of Claude Code via `--guest grok` or `CC_GUEST=grok`. The default guest remains Claude. `$cc:design` and `$cc:research` stay Claude-only. Grok turns use `grok --prompt-file` with `--output-format json` and a read-only tool allowlist for reviews. Claude MCP tools stay Claude-only.
This was referenced Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Same Grok-guest surface as #19, rebased onto v1.7.3 (
cbepx/main).Codex can run Grok instead of Claude Code via
--guest grokorCC_GUEST=grok. Default guest remains claude.$cc:review,$cc:adversarial-review,$cc:rescue,$cc:setupaccept--guest.grok --prompt-file … --output-format json --always-approve, notclaude -pand notcodex exec.read_file,grep,list_dir,web_search,web_fetch.--user-mcp-tool/--allow-project-mcp-serversstay Claude-only.$cc:designand$cc:researchstay Claude-only. Peer workflows are not wired to Grok in this PR.Supersedes #19 (that branch was cut from v1.6.1 and is DIRTY against current main).
Please review with Codex and Claude. Do not merge until both reviews land.
Test plan
npm test: 960/960npm run typechecknpm run lint$cc:review --guest grok --waitnot run here (paid API)Hermetic coverage:
tests/guest.test.mjs,tests/grok-cli.test.mjs,tests/grok-guest-cli.test.mjs.