Skip to content

Fix swarm grok compat with grok CLI 0.2.101#32

Merged
gering merged 1 commit into
mainfrom
task/fix-grok-45-compat
Jul 15, 2026
Merged

Fix swarm grok compat with grok CLI 0.2.101#32
gering merged 1 commit into
mainfrom
task/fix-grok-45-compat

Conversation

@gering

@gering gering commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • grok CLI 0.2.101 renamed the schema-capable model (grok-buildgrok-4.5) and dropped the max effort tier, breaking every /swarm:review grok leg ("grok failed" on all reviews; --max profile errored too)
  • Pin grok-4.5 (verified drop-in: identical envelope/structuredOutput shape, --single unchanged) and cap grok effort at high
  • The adapter now defensively maps --effort xhigh/maxhigh for grok, mirroring codex's maxxhigh mapping, so stale callers degrade instead of erroring
  • Patch release: swarm 0.4.1 → 0.4.2

Changes

  • scripts/agents.shGROK_DEFAULT_MODEL="grok-4.5", effort down-mapping in run_grok, comment/header sweep (probed version now 0.2.101)
  • workflows/swarm-review.js — grok voice sends plain --effort high (its ceiling on both profiles), label grok-build:fullgrok:full, balance MODEL_LABELgrok-4.5, meta/--max comments
  • Docs — READMEs (incl. backend table), skills/review/SKILL.md (--max description), docs/pipeline-blueprint.md, CLAUDE.md
  • Knowledge — swarm-backend-adapter.md (verified CLI facts: model pin + effort ladders), swarm-review-pipeline.md (--max profile)
  • CHANGELOG.md 0.4.2 entry; version bump in plugin.json + marketplace.json

Readiness

  • ✅ Tree clean, branch pushed, up-to-date with main
  • ✅ README / version / changelog / knowledge all updated in this diff
  • check-structure.py green (0 errors; 3 pre-existing description-length warnings)
  • ➖ No linter/build (declarative plugin repo)

Test plan

  • E2E against grok 0.2.101: agents.sh run grok --effort high --prompt-file <fenced prompt> returns schema-enforced {"findings":[...]}, exit 0
  • agents.sh run grok --effort max succeeds via the new down-mapping (exit 0)
  • Workflow script parses as an async function body (top-level return context)
  • Optional: full /swarm:review smoke run (grok leg verified with the exact command the workflow builds)

🤖 Generated with Claude Code

https://claude.ai/code/session_01VcgtcycuY5NaMjbqCiJfYw

@gering gering force-pushed the task/fix-grok-45-compat branch from 9e4daa6 to e8598d1 Compare July 15, 2026 21:40
grok 0.2.101 renamed the schema-capable model and trimmed the effort
ladder, breaking every /swarm:review grok leg:

- Pin GROK_DEFAULT_MODEL to grok-4.5 (grok-build no longer exists;
  verified drop-in: same envelope/structuredOutput, --single unchanged)
- grok's effort ladder is now low|medium|high — the adapter maps
  xhigh/max down to high (mirror of codex's max→xhigh), so stale
  callers degrade instead of erroring; the workflow's --max profile
  sends plain high (grok's ceiling on both profiles)
- Rename the fan-out voice label grok-build:full → grok:full and set
  the balance MODEL_LABEL to grok-4.5
- Doc sweep (READMEs, SKILL.md, blueprint, CLAUDE.md) + knowledge
  update (verified CLI facts: model id, effort ladders)
- swarm 0.4.1 → 0.4.2 (plugin.json + marketplace.json), CHANGELOG entry

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VcgtcycuY5NaMjbqCiJfYw
@gering gering force-pushed the task/fix-grok-45-compat branch from e8598d1 to 30ad082 Compare July 15, 2026 21:51
@gering gering merged commit beaf2b7 into main Jul 15, 2026
1 check passed
@gering gering deleted the task/fix-grok-45-compat branch July 15, 2026 21:52
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