Engineering
One spec → four CLI worktrees → one lint/typecheck/test gate
Jumping between coding CLIs burns focus; nothing owns the quality gate.
What hurt
Anderson Lima (@andersonlimadev) lets Grok Bot orchestrate four CLIs on his Mac in parallel worktrees: Claude Code (architecture/plan → worktree/plano), Codex (general dev → worktree/feature), AGY (Gemini→Claude → worktree/agy), mcode (simple tasks → worktree/ajustes). One quality gate runs lint, typecheck, tests, build (local + Vercel preview); failures return to the same CLI; then merge/PR and clean worktrees. Not affiliated with xAI.
What to install or create
Bot splits the spec; CLIs code in worktrees; shared gate before PR.
Bots
Orchestrator
Splits the spec across CLI worktrees and watches the quality gate.
Plugins
GitHub
Required
Routines
None on the first run. Watch one manual pass first.
The prompt
This is a tip, not a pasteable system prompt. The author did not publish one. Follow the first-run steps.
First run
- 1Read https://x.com/andersonlimadev/status/2111543420690813244 (credit @andersonlimadev).
- 2Install the CLIs you use and create matching git worktrees.
- 3Tell Grok Bot it orchestrates: split the spec, assign each CLI a worktree.
- 4Require one gate — lint, typecheck, tests, build — before merge/PR.
- 5On failure, send the task back to the same CLI; clean worktrees when done.
Approval fence
You still merge the PR. Failed gates go back to the CLI that owns the task.
What to tweak
Steal orchestrator + parallel worktrees + one quality gate.
Source
Anderson Lima @andersonlimadev · Original post
Not affiliated with xAI. We did not write this prompt. Third-party template terms still apply.
Pro pack
Want the full setup, not just the idea?
Pro packs give you the job text, prompts, schedules and pitfalls for popular use-cases.