feat: add Grok as a --guest runtime for Claude /codex commands - #4
Open
CBEPX wants to merge 1 commit into
Open
Conversation
Claude Code can now run Grok instead of Codex via `--guest grok` or `CC_GUEST=grok`. The default guest remains Codex. Grok turns use `grok --prompt-file` with `--output-format json` and a read-only tool allowlist for reviews. Codex app-server stays the default path.
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 idea as cc-plugin-codex #36, but for the Claude Code host.
/codex:review,/codex:adversarial-review,/codex:rescue, and/codex:setupaccept--guest grok(orCC_GUEST=grok). Default guest remains codex.grok --prompt-file … --output-format json --always-approve, not Codex app-server.read_file,grep,list_dir,web_search,web_fetch).sparkare not applied to Grok.Please review with Codex and Claude. Do not merge until both reviews land.
Test plan
npm test: 261/261/codex:review --guest groknot run here (paid API)Hermetic coverage:
tests/guest.test.mjs,tests/grok-cli.test.mjs,tests/grok-guest-cli.test.mjs.