Skip to content

feat: add Grok as a --guest runtime for Codex $cc commands (v1.7.3) - #36

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

feat: add Grok as a --guest runtime for Codex $cc commands (v1.7.3)#36
CBEPX wants to merge 1 commit into
mainfrom
feat/grok-guest-1.7.3

Conversation

@CBEPX

@CBEPX CBEPX commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

Same Grok-guest surface as #19, rebased onto v1.7.3 (cbepx/main).

Codex can run Grok instead of Claude Code via --guest grok or CC_GUEST=grok. Default guest remains claude.

  • $cc:review, $cc:adversarial-review, $cc:rescue, $cc:setup accept --guest.
  • Grok turns spawn grok --prompt-file … --output-format json --always-approve, not claude -p and not codex exec.
  • Reviews keep the isolated git worktree and restrict Grok to read_file,grep,list_dir,web_search,web_fetch.
  • --user-mcp-tool / --allow-project-mcp-servers stay Claude-only.
  • $cc:design and $cc:research stay 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/960
  • npm run typecheck
  • npm run lint
  • Live $cc:review --guest grok --wait not run here (paid API)

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

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.
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