Borrowing it
Nothing to install: this file belongs to gke-labs/kube-agents. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/gke-labs/kube-agents/main/.claude/commands/pr-review-batch.mdgit clone --depth 1 https://github.com/gke-labs/kube-agentsWrote 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/gke-labs/kube-agents/pr-review-batch)<a href="https://agentmods.dev/commands/gke-labs/kube-agents/pr-review-batch"><img src="https://agentmods.dev/badge/commands/gke-labs/kube-agents/pr-review-batch/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/gke-labs/kube-agents/pr-review-batch"><img src="https://agentmods.dev/badge/commands/gke-labs/kube-agents/pr-review-batch.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.00021 | $0.09186 |
| Opus 5 | $0.00010 | $0.04593 |
| Sonnet 5 | $0.00004 | $0.01837 |
| Haiku 4.5 | $0.00002 | $0.00919 |
Grade A, and why
pr-review-batch 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 6d 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 — 618 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Review these pull requests in gke-labs/kube-agents: $ARGUMENTS
PRs always live in that repo. Everything else — remote names, the base branch, the checkout location — is discovered at runtime, so this command works for any teammate in any clone regardless of what they called their remotes or where they cloned to.
Run Phase −1 in the main loop first, for every PR number, and wait for my answer. Then spawn one subagent per PR number that survives it, all in a single message so they run concurrently. Each subagent owns exactly one PR end to end and reports back a short structured result. Do not review any PR yourself in the main loop — your job is to pre-flight, fan out, then relay.
Give each subagent everything under Subagent instructions (per PR)
verbatim, with <N> replaced by its PR number, plus the PR's pre-flight verdict, the review mode I
chose for it, and the SHA that mode starts from when it is a narrowed one. Phase −1 is yours and
stops at that heading: it asks me a question, which a subagent cannot do, so handing it on would
either hang the subagent or have it answer on my behalf.
Phase −1 — Pre-flight: is this review already covered? (main loop)
Every PR here is read by kube-agents-bot on the way in, and the repo requires the author to have
run review-adversarial over their own diff and written the disposition into the body before
opening. When both of those happened and neither has gone stale, a third hostile read usually buys
nothing — so find that out before spending it.
This phase runs in the main loop, before any subagent exists, for two reasons. Its output is a question for me, and a subagent has no way to ask one. And it is pure GitHub API — no worktree, no fetch, no diff read — so it costs two calls per PR, plus one per merge sitting after the bot's review, which is nearly always none or one.
The two queries
The repo is named literally in both: Phase −1 runs before Phase 0 defines $REPO.
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.
- 6d ago Changed · +9 lines 148340a7b662
- 10d ago First seen · 609 lines · 21 tokens per session scan A b1daa2685b55
pr-review-batch is a command published in the GitHub repository gke-labs/kube-agents (53 stars, last pushed yesterday), licensed Apache-2.0. It adds 21 tokens to every session and 9,186 once invoked, about $0.0001 per session on Opus 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-30.
Other commands, from other repositories
sdd-init
Initialize SDD context — detects project stack and bootstraps persistence backend.
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
init
Install the formatters this repository needs, with every command visible before it runs.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
argos
A command for checking whether an implementation matches its design deliverables. Its Korean description compares the work to the design as part of a completion inspection.