Skip to main content

A Grok Bot skill pack runs local Codex jobs in isolated worktrees and audits the diff

GitHubGitHubsemantic-craft2026-11-24

Code and reposSource read in fullRead first
GitHubGitHubsemantic-craft2026-11-24

Open original

Overview

Developers who want a host between chat and GPT/Codex can install a Grok Bot skill to assign bounded codex/dsh tasks in isolated git worktrees and audit commands and diffs.

Workflow

  1. What it is: A skill pack for a host agent to manage local coding CLIs. A skills/codex-use/SKILL.md skill and zero-dependency Python 3.10+ skills/codex-use/scripts/drive.py put shell-capable Grok Bot, Antigravity, DSH or Claude Code ahead of official headless codex and dsh. The host writes briefs, manages isolated git worktrees and parses actual JSONL command streams for audit and rework. Users get plain summaries and verified diffs. The README calls it lightweight and customizable.
  2. Grok Bot parts used: Local plugin, skill and local execution. .grok-plugin/plugin.json points skills at ./skills and has no MCP servers. Install locally. Grok Bot loads skills/codex-use/SKILL.md and follows skills/codex-use/hosts/grok-bot.md. Enable Execution on this computer so drive.py can reach local repos and worker CLIs. No x.ai/bot template, Routines or connectors. Not part of Grok Bot: The local codex/dsh CLIs and model access such as --model gpt-6.2-astra, Python and local git. Non-Grok hosts include Antigravity / DSH / Claude Code.
  3. You need: A local computer with the toolchain. Install local codex and/or dsh. Account or paid plan: Not stated in the source. Use Python 3.10+ stdlib only, a local git repo and Grok Bot Execution on this computer. No self-hosted server or API key in Grok Bot.
  4. Install: Clone and connect according to host.
    • Step 1: git clone https://github.com/semantic-craft/Codex-use.git Codex-use
    • Step 2 (any host using SKILL.md): Run mkdir -p ~/.agents/skills, then symlink Codex-use/skills/codex-use as ~/.agents/skills/codex-use. The README uses ln -s with the actual clone path.
    • Step 3 (Grok Bot): Install as a local plugin (.grok-plugin/plugin.json) and enable Execution on this computer. Per hosts/grok-bot.md, stop and ask for local execution when cloud preflight fails. Never recreate the repo in the cloud sandbox.
    • Step 4 (preflight): Run python3 skills/codex-use/scripts/drive.py preflight --worker codex --cwd /path/to/repo and the repo tests python3 -m unittest discover -s tests -v.
  5. After install: Grok Bot manages coding jobs.
    • Trigger with a natural-language development request. Split into bounded slices per SKILL.md.
    • scout is read-only call tracing, reproduction and planning, with no edits, branches or pushes.
    • ship writes one slice in an isolated git worktree under an exclusive lock. Brief from templates/ship-task.md / templates/bugfix-task.md, with completion contract, forbidden actions, quantitative diff budget, one check command and JSON receipt.
    • drive.py parses the --json JSONL stream into an AuditSummary of actual commands, exit codes, changed files and receipt validation. The host reviews git diff and reruns checks locally. On failure it uses same-thread resume for up to two retries and escalates with diff and checks if still failing.
    • Product behavior, external contracts and irreversible actions require ask-user. Silence and timeouts never count as consent.
  6. Did the author run it: The repository has no run records from the author. No history, event logs or results tables. README comparisons are promotional illustrations and commands are install checks. tests/test_drive.py unit-tests drive.py. The source does not say whether the author ran the full Grok Bot flow.

Key points and results

  • Maturity: At fetch on 2026-11-25, just over one day old, created 2026-11-23, 21 commits, last pushed 2026-11-24, zero stars, forks and open issues or PRs, MIT. The README calls it light and customizable.
  • Permissions and boundaries: Local execution is required for repo and CLI access. No extra worker worktrees, pushes, PRs or irreversible external actions. Product behavior, contracts and irreversible changes require ask-user. Silence or timeouts do not approve. ship uses an exclusive lock, exit 3 on collision. scout is strictly read-only.
  • Known limits: macOS/Linux only by default, using POSIX fcntl and local CLIs. Windows needs changes such as msvcrt. review doesn’t support dsh (exit 1). drive.py rejects --effort ultra before launch. Cloud preflight fails without the local repo or binary. Enable local execution and never recreate the repo in cloud. Escalate after at most two reworks.
  • Worth borrowing: The three-part ship check in skills/codex-use/SKILL.md: lock goals, non-goals and one verification command, work in an isolated worktree, and audit logs, diff and local re-run. The five briefing sections in templates/ship-task.md cover completion contract, forbidden actions, diff budget, resource etiquette and JSON receipt. Parse --json JSONL to report actual commands and exit codes rather than self-reports (SKILL.md).

Source

Platform
GitHub
Author
semantic-craft
Published
Categories
Code and repos

What this evidence label means

Source read in full

We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.