v1.59.1.0 feat: add /grok skill for xAI second opinion from Claude Code#2016
v1.59.1.0 feat: add /grok skill for xAI second opinion from Claude Code#2016ljodea wants to merge 5 commits into
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
279f2f5 to
c65f308
Compare
Follow-up: CONTRIBUTING.md compliance passI opened this before reading
Verification (local):
No checks have run yet on the branch — looks like it's waiting on a first-time-contributor "Approve and run workflows." Could you kick that off when you get a chance? Thanks, and sorry for the process miss on the first pass. |
Mirror the /codex outside-voice contract for Grok Build CLI: review (pass/fail on [P1]), adversarial challenge, and consult with session resume. Runs read-only via --permission-mode plan with gstack-grok-probe for auth, timeout, and telemetry. Includes grok-review rows in the GSTACK REVIEW REPORT resolver, docs, and grok-hardening unit tests.
…ERSION/CHANGELOG The original PR was hand-opened before reading CONTRIBUTING.md and missed three CI-gating requirements: - Register /grok in AGENTS.md (skill-validation doc-inventory cross-check). - Refresh the three ship golden snapshots (claude/codex/factory) that the grok-review dashboard line in ship/SKILL.md regenerated — host-config golden-file regression tests. - Bump VERSION to the next free queue slot (1.59.1.0, via gstack-next-version) and add a CHANGELOG entry, matching every merged gstack PR. Verified: `bun run gen:skill-docs --host all` is clean across all hosts, and `bun test` is green except 5 pre-existing gstack-gbrain-detect failures that fail identically on origin/main (local gbrain tooling absent). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
bfae6ff to
e0eedb0
Compare
Resolve PR garrytan#2016 conflicts against current main: - VERSION / package.json: keep 1.59.1.0 (ahead of main's 1.58.5.0) - CHANGELOG.md: keep both 1.59.1.0 and 1.58.5.0 entries in order - gstack/llms.txt + rendered SKILL.md: regenerated via `bun run gen:skill-docs --host all` Pulls in main's first-run activation scaffold + gstack router front door. Known pre-existing issue (unchanged by this merge): the grok skill is not excluded from external (Codex) host output, so `gen-skill-docs.test.ts` "no ~/.claude/ paths in Codex output" fails. Tracked tree is unaffected (host outputs are gitignored); fix deferred. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pin every /grok headless invocation to -m grok-4.5 (still overridable via user -m). Update invocation contract, Model & Effort docs, and harden tests for the default.
Superseded by #2241Closing this PR in favor of a clean re-land. Why: The original was useful product-wise (and I've been using the fork skill daily), but it was opened before reading CONTRIBUTING fully, then drifted — VERSION/title behind the release queue, merge conflicts against main, deferred host-exclusion issues. Not a rejection of Grok support; maintainers already noted on #2028 that a What #2241 keeps: What stays out of both PRs: plan-review fallback chain (#1631), host registration (#2028). Thanks for any time spent looking at this one — the better packaging is in #2241. |
|
Superseded by #2241 (clean re-land on current main). |
Summary
Adds
/grok— the symmetric counterpart to/codexfor getting an independent second opinion from Grok Build CLI while working in Claude Code.Three modes, same contract as
/codex:[P1]/[P2]findings and pass/fail gate-r/-cRelationship to #1631
#1631 (stale, open since 2025-05-21) tackles a different but related problem: when Codex is broken/unavailable during automatic outside-voice steps in
/plan-*-reviewand/office-hours, the chain today falls through to a Claude subagent — losing cross-model independence.#1631 proposed Codex →
llmCLI (datasette/llm, e.g.llm-xai) → Claude subagent.This PR does not supersede #1631 entirely. It adds an explicit
/grokskill (like/codex) but does not wire Grok into the plan-review fallback chain. After merge, a natural follow-up is to revive #1631's intent using Grok Build CLI (grok --prompt-file,gstack-grok-probe) instead of datasettellm, reusing the probe/auth patterns from this PR.Implementation
grok/SKILL.md.tmpl— skill workflow (read-only via--permission-mode plan,--prompt-file,--max-turns,--effort)bin/gstack-grok-probe— auth (~/.grok/auth.json,$XAI_API_KEY), timeout wrapper, telemetrytest/grok-hardening.test.ts— probe unit tests + shell invocation invariants (no--reasoning-effort)scripts/resolvers/review.ts—grok-reviewrow in## GSTACK REVIEW REPORTdocs/skills.md,CLAUDE.mdUsage (after merge +
./setup)Requires
grokon PATH and auth viagrok loginor$XAI_API_KEY.Test plan
bun test test/grok-hardening.test.ts(10/10 pass)bun run gen:skill-docs+bun run gen:skill-docs --host allgrok --prompt-file ... --permission-mode plandiff review in temp repo