Skip to content

feat: add Grok as a --guest runtime for Claude /codex commands - #4

Open
CBEPX wants to merge 1 commit into
mainfrom
feat/grok-guest
Open

feat: add Grok as a --guest runtime for Claude /codex commands#4
CBEPX wants to merge 1 commit into
mainfrom
feat/grok-guest

Conversation

@CBEPX

@CBEPX CBEPX commented Sep 3, 2026

Copy link
Copy Markdown
Owner

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:setup accept --guest grok (or CC_GUEST=grok). Default guest remains codex.

  • Grok turns spawn grok --prompt-file … --output-format json --always-approve, not Codex app-server.
  • Reviews stay read-only (read_file,grep,list_dir,web_search,web_fetch).
  • Codex aliases such as spark are not applied to Grok.

Please review with Codex and Claude. Do not merge until both reviews land.

Test plan

  • npm test: 261/261
  • Live /codex:review --guest grok not run here (paid API)

Hermetic coverage: tests/guest.test.mjs, tests/grok-cli.test.mjs, tests/grok-guest-cli.test.mjs.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant