Repository navigation
Description
This proposes a direct, like-for-like port of gstack's existing /codex
skill to the official Grok CLI. Its primary job is to give developers another
independent outside voice for code and plan review. It preserves the complete
/codex experience, including adversarial challenge, consultation and
session continuity, with only the changes required by the provider.
Status: The implementation is complete on a contributor branch. All
Grok-specific tests, host generation, build and skill checks pass. Paid live
reviews passed through both Grok OAuth subscription access and API-key access.
The evidence summary is below, and the PR will include sanitized receipts and
the relevant provider transcript excerpts.
Why another outside review voice helps
Different model families notice different risks, question different assumptions
and suggest different approaches. That variety is useful on consequential
changes. Agreement raises confidence; disagreement shows the developer where
more investigation or judgment is needed.
Today, using Grok for the same review requires an ad hoc prompt and a separate
workflow. /grok would let a developer ask Grok to review the current diff,
challenge a plan or continue a repository-aware consultation without leaving
their coding agent or learning a new interface.
Because this is a faithful /codex port, developers already know how it works.
The scope controls, output order, synthesis and gates stay consistent while the
review judgment comes from a different provider. It works from every host that
gstack supports, so the additional outside voice is available regardless of
which coding agent started the review.
Proposed user experience
/grok reviewreviews the current diff, branch, commit or requested focus.
It shows the complete Grok response before the calling agent's synthesis and
applies the same finding and verification gates as/codex./grok challengeasks Grok to attack the assumptions in a plan or proposed
approach./grok consultsupports repository-aware questions, plan consultation and
explicit follow-up continuity.- Automatic mode selection, model and reasoning controls, authentication
checks, repository access, read-only execution, structured output, timeouts,
logs and failure handling retain the/codexcontract.
How it fits gstack
The implementation began by copying the complete codex/ skill directory to
grok/. The copy changes only the pieces required by the official Grok CLI.
The existing Codex skill remains unchanged.
The port reuses gstack's current templates, mode sections, host generation,
installation, review evidence, test tiers, evaluation registry and catalog
rules. Grok is a provider skill rather than a gstack host, so the skill is
generated and installed for all supported hosts using their normal naming
conventions.
This scope does not add a provider framework or change automatic outside-review
routing. Grok review evidence keeps its own provider identity and cannot
silently satisfy a required Codex or Claude review.
Real usage evidence
The completed contributor implementation has been exercised against the
official Grok CLI 1.0.41 with grok-4.7.
| Authentication | Revision | Result | Duration |
|---|---|---|---|
| OAuth subscription | a260a270 |
1/1 passed | 152 seconds |
| API key, final implementation revision | c210f49e |
1/1 passed | 239 seconds |
- Both paid
/grok reviewevaluations passed and found the seeded security
defects while preserving the complete Grok answer and expected review gate. - A resumed consultation retained a planted value across separate invocations.
- Grok could inspect the repository while an attempted source write was denied
and the repository remained unchanged. - Generated output covers all ten registered hosts. Build, generation, skill
health and focused Grok tests pass.
The raw evaluation receipts retain the complete host and provider transcripts.
Before attaching them to the PR, contributor-machine metadata and local paths
will be removed while the revision, test identity, result, timing, model output
and gate evidence remain intact. No credential values appear in the receipts.
The official CLI's native read-only profile did not start reliably on the
qualification Mac because its Docker socket check rejected the system symlink.
The port preserves the read-only contract with Grok's workspace sandbox, a
disposable working directory and the repository outside writable roots.
Repositories inside those writable roots fail closed. This provider difference
is documented and tested.
The contribution also registers a periodic live Grok review evaluation so the
external integration is checked over time. The workflow uses the repository's
normal secret mechanism and never commits credentials.
Scope boundaries
- Preserve the complete review, challenge and consultation behavior of
/codex. - Keep the existing
codex/skill and its behavior unchanged. - Add no Grok host, general provider dispatcher or automatic routing change.
- Keep credentials private and keep Grok evidence distinct from other
providers.
Request
Would the maintainers accept /grok as a portable, review-focused Grok CLI
port of /codex? If accepted, I will submit the completed implementation with
live Grok evaluation receipts, generated files and the full validation report.
Activity
simonaltit commentedon Sep 29, 2026
@garrytan
capy-ai commentedon Oct 11, 2026
Thanks @simonaltit for the idea. In the Oct 11 triage we grouped the open feature requests by theme so related asks get built together instead of one at a time. This one is part of the Provider pluralism theme in TODOS.md (https://github.com/garrytan/gstack/blob/50d020ad9/TODOS.md#L54-L69), tracked as a whole in #3138. Closing it here so the open list stays actionable; it isn't rejected, and the theme credits every linked reporter when it's picked up.
capy-ai commentedon Oct 25, 2026
Reopened under the
parkedlabel: this is tracked in the Provider pluralism theme in TODOS.md and tracking issue #3138 (https://github.com/garrytan/gstack/blob/main/TODOS.md#p3-feature-themes-from-the-wave-9-triage-filed-2026-10-11), and what fixes it is one provider seam for outside voices, image providers and review bots, which these requests then plug into. Closed-but-tracked read as closed, so parked issues now stay open until they ship, are duplicates, or are declined (https://github.com/garrytan/gstack/blob/main/docs/triage.md).capy-ai commentedon Oct 31, 2026
Thanks for putting this together, @simonaltit. A /grok skill would be a third near-copy of /codex for a single provider, which adds upkeep we'd rather not carry. An earlier PR for this, #2241, was closed for the same reason. Closing as not planned.