Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/xzawed/claude-grok-build-pluginWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/xzawed/claude-grok-build-plugin/review)<a href="https://agentmods.dev/commands/xzawed/claude-grok-build-plugin/review"><img src="https://agentmods.dev/badge/commands/xzawed/claude-grok-build-plugin/review/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/xzawed/claude-grok-build-plugin/review"><img src="https://agentmods.dev/badge/commands/xzawed/claude-grok-build-plugin/review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.00875 |
| Opus 5.5 | $0.00005 | $0.00350 |
| Sonnet 5.5 | $0.00003 | $0.00175 |
| Haiku 4.5 | $0.00001 | $0.00088 |
Grade A, and why
review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Post-delegation quality gate. Use after grok_build_delegate / verify / resume
(or when the user asks to review Grok's work).
Steps
- If you do not already have the last result, call
grok_build_usagewith projectcwdand noterecent[0]/lastSession/ insights. Do not inventsessionIds. - Inspect working tree diff for the files Grok touched (
filesChangedfrom the tool result, orgit status/git diffin the project). Prefer the listed paths; if worktree isolation was used, usegrok_build_worktreediff/apply as needed.committed: trueon the result → grok committed (this plugin never does): the edits are in that commit, not the working tree. The result'smessagenames the folder whose HEAD moved and the commit it moved from — review with thegit -C '<folder>' log --stat <before>..HEADit gives, in that folder only (a command without the folder, run in the project, would show the user's own commit when grok worked in a worktree or a resumed session's folder), and relay how to undo it. When the folder's name has a single-quote character (',‘,’,‚,‛) or an ASCII control character (U+0000–U+001F, U+007F), the notice puts no folder in the command and says to run it inside that folder — run it there, never in another folder. An emptyfilesChangeddoes not mean nothing changed; an absentcommittedmeans the run could not be checked, not "no commit".resumedCwdon the result → the resumed session belongs to that directory and grok worked there: review the diff inresumedCwd, not in thecwdthat was passed.- A completed result can also carry a
message— show it whenever there is one: besides the notices above, it can say that the prompt, with any files it @-mentions or skill it invokes, was too long for grok (its request to the model left out part of the prompt or of what grok added to it) — then review against the whole task, not only what the summary covers.
- Check billing on the last Grok tool result:
- SuperGrok / X Premium+ sessions should show
billing: "subscription". - Unexpected
metered_api→ the server is running withGROK_BUILD_AUTH_MODE=api; that setting alone decides the tag (subscription mode strips the API-key vars before spawn). billingCaveaton the result → show itsmessage. The tag cannot see grok'sconfig.toml: a model given its own key there, or one it inherits from[model_providers.<id>], may be billed to that key,billing: "subscription"or not. Report it; it is not a reason to stop the review.
- SuperGrok / X Premium+ sessions should show
- Adversarial review (Claude owns this — do not re-delegate the review itself):
- Correctness vs the original task
- Security / secrets / dangerous defaults
- Tests or docs left incomplete
- Scope creep outside the request
- Present a short verdict: accept / fix-with-Claude / fix-with-Grok (
/grok:resume) / discard (worktree remove if isolated). - Never commit or open a PR unless the user explicitly asks after the review.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago Changed · +4 lines df7ee3329d6e
- 16d ago Changed · +1 lines 3166883e243b
- 27d ago Changed · +11 lines 81ec1e6c8b12
- 1mo ago Changed · +3 lines aa6096f7d51a
- 1mo ago First seen · 33 lines · 13 tokens per session scan A e6fb55e4665a
review is a command published in the GitHub repository xzawed/claude-grok-build-plugin (3 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 875 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
merge
Finish a PR properly: every check green, every review addressed — human and bot — then merge and clean up.
pr
Prepare and open a pull request the senior way: gate, template, scrubbed, everything visible.
spec
Spec-first design: a gap-closing interview that produces a complete spec, with a quality controller that blocks until every section is answered and every question resolved.
plan
Turn an approved spec into an implementation plan an engineer with zero context could execute — with a quality controller that blocks placeholders and hollow tasks.
backlog
The project layer: milestones, epics, and user stories with refusing controllers — spec-seeded, sprint-ready.
copilot-leak
Copilot's auto-review escapes: find them since the last look, sanitise them, and turn each one into a lesson.