A Grok Bot skill pack runs local Codex jobs in isolated worktrees and audits the diff
Source read in fullRead first
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
- What it is: A skill pack for a host agent to manage local coding CLIs. A
skills/codex-use/SKILL.mdskill and zero-dependency Python 3.10+skills/codex-use/scripts/drive.pyput shell-capable Grok Bot, Antigravity, DSH or Claude Code ahead of official headlesscodexanddsh. 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. - Grok Bot parts used: Local plugin, skill and local execution.
.grok-plugin/plugin.jsonpointsskillsat./skillsand has no MCP servers. Install locally. Grok Bot loadsskills/codex-use/SKILL.mdand followsskills/codex-use/hosts/grok-bot.md. EnableExecution on this computersodrive.pycan reach local repos and worker CLIs. No x.ai/bot template, Routines or connectors. Not part of Grok Bot: The localcodex/dshCLIs and model access such as--model gpt-6.2-astra, Python and local git. Non-Grok hosts include Antigravity / DSH / Claude Code. - You need: A local computer with the toolchain. Install local
codexand/ordsh. Account or paid plan: Not stated in the source. Use Python 3.10+ stdlib only, a local git repo and Grok BotExecution on this computer. No self-hosted server or API key in Grok Bot. - 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 symlinkCodex-use/skills/codex-useas~/.agents/skills/codex-use. The README usesln -swith the actual clone path. - Step 3 (Grok Bot): Install as a local plugin (
.grok-plugin/plugin.json) and enableExecution on this computer. Perhosts/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/repoand the repo testspython3 -m unittest discover -s tests -v.
- After install: Grok Bot manages coding jobs.
- Trigger with a natural-language development request. Split into bounded slices per SKILL.md.
scoutis read-only call tracing, reproduction and planning, with no edits, branches or pushes.shipwrites one slice in an isolated git worktree under an exclusive lock. Brief fromtemplates/ship-task.md/templates/bugfix-task.md, with completion contract, forbidden actions, quantitative diff budget, one check command and JSON receipt.drive.pyparses the--jsonJSONL stream into anAuditSummaryof actual commands, exit codes, changed files and receipt validation. The host reviewsgit diffand reruns checks locally. On failure it uses same-threadresumefor 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.
- 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.pyunit-testsdrive.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.shipuses an exclusive lock, exit 3 on collision.scoutis strictly read-only. - Known limits: macOS/Linux only by default, using POSIX
fcntland local CLIs. Windows needs changes such asmsvcrt.reviewdoesn’t supportdsh(exit 1).drive.pyrejects--effort ultrabefore 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
shipcheck inskills/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 intemplates/ship-task.mdcover completion contract, forbidden actions, diff budget, resource etiquette and JSON receipt. Parse--jsonJSONL 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.