review-many-prs
Skill29k starsChanged 9 days agoMITView on GitHub
Fan `/review-pr` out over several nrwl/nx PRs at once. Each PR gets its own Claude Code instance in its own herdr tab in the current workspace, with at most three reviewing at a time. A slot is held from launch until that child parks at review-pr's Step 8.5 grill — at which point the expensive work is done and the findings are waiting for you. Requires HERDR_ENV=1. Use when the user passes more than one PR link/number to review, or says "review these PRs", "batch review", "review-many-prs".
Trending
More talk lately.about the whole repository
Who's talking about nrwl/nx
- Nx“Nx 17.0 Has Landed!!!”YouTube · Oct 24, 2023 · 8k views
- Nx“Nx 19.0 Has Landed!!”YouTube · May 8, 2024 · 5.9k views
- Nx“What's new in Nx 15.3?”YouTube · Dec 8, 2022 · 4.8k views
- Nx“Nx 15.8 - All you need to know!”YouTube · Mar 8, 2023 · 4.7k views
- Nx“Nx 17.2 Has Landed!!”YouTube · Jan 9, 2024 · 4.2k views
The biggest 5 of 93 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 93
Talked about on GitHub, YouTube, Stack Overflow, Bluesky and Hacker News (93 times).
On GitHub · 26
- Feb 8, 2024📈 Tracking: Flat Config support — eslint/eslint91 reactions · 100 comments
- Apr 24, 2024📈 Tracking: ESLint v9 support — eslint/eslint85 reactions · 60 comments
- Mar 20, 2026feat(oxlint): add oxlint labs plugin — nrwl/nx-labs29 reactions · 14 comments
- Oct 3, 2019Feature: Support NX workspace — stenciljs/core25 reactions · 8 comments
- Apr 14, 2026action-setup v6 renders invalid YAML file — pnpm/action-setup21 reactions · 10 comments
21 more on GitHub
- Mar 1, 2022`IDBIndex is not defined` runtime exception in Node.js when importing ESM — firebase/firebase-js-sdk21 reactions · 12 comments
- Oct 14, 2024feat(core): add support for community remote caching — Jordan-Hall/NXRC18 reactions · 2 comments
- Jul 19, 2022feat: nuxt3 support — ZachJW34/nx-plus6 reactions · 5 comments
- May 26, 2025feat: add support for angular 20 — thymikee/jest-preset-angular5 reactions · 1 comment
- Apr 15, 2026chore(deps-dev): bump nx from 20.8.2 to 22.6.5 — ModaLabs/moda-python4 reactions · 2 comments
- Apr 2, 2026chore(deps-dev): bump nx from 20.8.2 to 22.6.4 — ModaLabs/moda-python3 reactions · 4 comments
- Mar 25, 2026chore(deps-dev): bump nx from 20.8.2 to 22.6.1 — ModaLabs/moda-python3 reactions · 4 comments
- Mar 18, 2026chore(deps-dev): bump nx from 20.8.2 to 22.6.0 — ModaLabs/moda-python3 reactions · 3 comments
- Mar 11, 2026chore(deps-dev): bump nx from 20.8.2 to 22.5.4 — ModaLabs/moda-python3 reactions · 2 comments
- Mar 4, 2026chore(deps-dev): bump nx from 20.8.2 to 22.5.3 — ModaLabs/moda-python3 reactions · 3 comments
- Nov 13, 2024Handle nx monorepo setup — software-mansion/radon-ide3 reactions · 1 comment
- Jul 9, 2024chore: replace lage with nx for task(targets) orchestration — microsoft/fluentui3 reactions · 8 comments
- Mar 25, 2023Fix type plugin for NX workspaces — vercel/next.js3 reactions · 7 comments
- Jun 16, 2022Issue with TypeScript declaration files — nrwl/nx-examples3 reactions · 2 comments
- Dec 4, 2021feat: provide json schema for nx.json — nrwl/nx-console3 reactions · 3 comments
- Jun 9, 2021Angular : Update angular dependences to v12 — storybookjs/storybook3 reactions · 8 comments
- Oct 20, 2026build(deps): bump follow-redirects and nx — XRPLF/xrpl.js2 reactions · 1 comment
- Oct 12, 2026build(deps): bump brace-expansion and nx — XRPLF/xrpl.js2 reactions · 2 comments
- Oct 8, 2026build(deps): bump axios and nx — XRPLF/xrpl.js2 reactions · 1 comment
- Apr 1, 2026Bump minimatch and nx — cicero-im/browser-control-mcp2 reactions · 1 comment
- Jun 20, 2023fix: adapt processProjectGraph to work w/ Nx >= 16.3.0 — agmonks/nx-vue2 reactions
On YouTube · 25
- Oct 24, 2023Nx 17.0 Has Landed!!! — Nx - Grow your repos, not your build times8k views · 42 comments
- May 8, 2024Nx 19.0 Has Landed!! — Nx - Grow your repos, not your build times5.9k views · 33 comments
- Dec 8, 2022What's new in Nx 15.3? — Nx - Grow your repos, not your build times4.8k views · 25 comments
- Mar 8, 2023Nx 15.8 - All you need to know! — Nx - Grow your repos, not your build times4.7k views · 14 comments
- Jan 9, 2024Nx 17.2 Has Landed!! — Nx - Grow your repos, not your build times4.2k views · 18 comments
20 more on YouTube
- Jan 4, 2023Wrap any command with Nx Run-Commands — Nx - Grow your repos, not your build times4k views · 5 comments
- Dec 23, 2022Nx 15.4 is out! Here's all you need to know — Nx - Grow your repos, not your build times3.4k views · 22 comments
- May 24, 2021Nx Office Hours: Workspace Automation with Nx Devkit — Nx - Grow your repos, not your build times2.9k views · 4 comments
- Mar 7, 2023Ever tried to Delete or Move a Project in a Monorepo? — Nx - Grow your repos, not your build times2.3k views · 18 comments
- Dec 13, 2022Introducing the Nx Task Graph Visualization — Nx - Grow your repos, not your build times2.3k views · 3 comments
- Jun 8, 2023Caching is HARD. — Nx - Grow your repos, not your build times1.9k views · 2 comments
- Jan 24, 2022Let's chat! Monorepo & tools — Nx - Grow your repos, not your build times1.8k views · 3 comments
- Jan 18, 2023New Nx Console && Nx Cloud Integrations — Nx - Grow your repos, not your build times1.7k views · 3 comments
- Feb 10, 2023We Built An Example App With the tRPC Core Team!! — Nx - Grow your repos, not your build times1.7k views · 5 comments
- Sep 24, 2022Tune your monorepo! Automated autocompletion support with Nx Console #shorts — Nx - Grow your repos, not your build times1.6k views · 3 comments
- Aug 28, 2025Nx npm Malware Explained: AI Agent Hijacking — Snyk1.4k views · 5 comments
- Sep 9, 2022Why Nx is super fast! — Nx - Grow your repos, not your build times1.1k views · 1 comment
- Apr 26, 2021Nx Office Hours | Schema-Driven Workspaces w/ Bram Borggreve — Nx - Grow your repos, not your build times551 views
- Feb 7, 2023Isolating Task Logs w/ Nx Cloud — Nx - Grow your repos, not your build times519 views
- Jun 23, 2020Nx Office Hours: June 23, 2020 — Nx - Grow your repos, not your build times436 views
- Sep 8, 20261,700 Developers Got a Public Repo Full of Their Own Secrets — NikByte223 views
- Oct 16, 2026⚡ [Top 5 AI Repos This Week] nx: The Free Tool Taking Over GitHub! #shorts — githubrepo_cloud133 views
- Sep 5, 2024GitHub - nrwl/nx: Smart Monorepos · Fast CI — GitHub Daily Trend AI Podcast37 views
- Nov 17, 2026Nx | core: filter remote cache terminal output before storing and replaying it — Kill the Busywork16 views
- May 29, 2026An invisible commit on GitHub's own repo. 💀 — TheCyberTrend11 views
On Stack Overflow · 25
- Mar 18, 2019Could not find an NgModule. Use the skip-import option to skip importing in NgModule40 votes
- May 21, 2021eslint rule @nrwl/nx/enforce-module-boundaries fails29 votes · 2 answers
- May 28, 2021Add Angular Material to Nx Workspace23 votes
- Sep 25, 2022update an nx-angular project to a specific major version of angular11 votes
- Feb 23, 2022Rules inside NX workspace's root `.eslintrc.json` file not extending to project's `.eslintrc.json` file10 votes
20 more on Stack Overflow
- Jan 14, 2022Jest setup "SyntaxError: Unexpected token export"9 votes
- Aug 23, 2021concatLatestFrom with multiple selectors ngrx8 votes · 3 answers
- May 9, 2022How to test the Swiper library with Jest in an Angular Nx repo?7 votes · 2 answers
- Sep 13, 2021How to use d3.js v7 with jest and babel-loader?6 votes · 1 answer
- Jul 26, 2023How to fix "Error: Expected to be running in 'ProxyZone', but it was not found." in mocha testing?says it tested it5 votes
- May 17, 2022How to set up Jest w/ESM to recognize non-cjs modules in node_modules5 votes
- Jul 1, 2019How to import a component from a library (in nrwl/nx with Angular)5 votes
- Oct 20, 2018How to integrate firebase in Nrwl Nx5 votes
- May 22, 2024error: src/main.tsx: Cannot read properties of undefined (reading 'includes') Nx monorepo ios/ android app runtime error4 votes
- Jan 24, 2023How to create Nx 15 workspace with Karma/Jasmine instead of Jest/Cypress4 votes · 1 answer
- Dec 16, 2022VSCode is unable to detect the tsconfig that resides in the Next.js app created using NX4 votes
- Nov 16, 2022Nx 13 Migration failure: update-tasks-runner4 votes
- Nov 9, 2021nx - configure main/module for generated package.json4 votes
- Jul 19, 2021Module not found: Error: Can't resolve 'zlib'4 votes
- Aug 18, 2019Jest Unit Tests do not work started with WebStorm Jest Testrunner4 votes
- Jul 9, 2024Angular 17 ESBuild Configuration for environment variables3 votes · 1 answer
- Jun 23, 2024Vite - dist is not inside project root and will not be emptied. Use --emptyOutDir to override3 votes
- Jun 15, 2024How to trigger Nx Release on apps/* when changes made to dependent libs/* modules?3 votes
- Feb 20, 2024NX - how can I build and serve node application that depends on ESM libs3 votes
- Dec 30, 2020Now.sh build breaking due to: Support for the experimental syntax 'decorators-legacy' isn't currently enabled3 votes
On Bluesky · 11
- Nov 22, 2024Let it rain ✨ & celebrate OSS 🚀 Quote this post to keep the appreciation train going and 👉 list 3 OSS repos with links ⭐ star them on GH… — @juri.dev30 likes and reposts
- Feb 13, 2025📦 nrwl / nx ⭐ 24,552 (+36) 🗒 TypeScript Build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced… — @github-trending-js.bsky.social7 likes and reposts
- Jan 30, 2025Fixing something I should have done a while ago.... Didn't star @nx.dev before, but finally went around and did it. github.com/nrwl/nx — @mhartington.io6 likes and reposts · 2 replies
- Jul 11, 2026📦 nrwl / nx ⭐ 29,144 (+76) 🗒 TypeScript The Monorepo Platform that amplifies both developers and AI agents. Nx optimizes your builds,… — @github-trending-js.bsky.social4 likes and reposts
- Mar 14, 2025Tooling is essential, and I believe there is a gap in the tooling industry for monorepos. With great tooling, having a monorepo is… — @edolic.bsky.social3 likes and reposts
6 more on Bluesky
- Feb 1, 2024Bonjour et bon jeudi ! Si vous êtes sur une approche de développement axée monorepo, vous pourriez être intéressés par nx, un système de… — @ponceto91.bsky.social2 likes and reposts
- May 6, 2025Nxというツールは、モノレポでの開発において、影響のある箇所だけをビルド・テストする賢さとキャッシュ機能で、開発サイクルやCIを速くするらしい。 yug1224 starred nrwl/nx https://github.com/nrwl/nx — @yug1224.com1 likes and repost
- Sep 5, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 nrwl / nx ⭐ 23,152 (+104) 🗒 TypeScript Smart Monorepos · Fast CI — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Feb 1, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 nrwl / nx ⭐ 21,061 (+118) 🗒 TypeScript Smart Monorepos · Fast CI — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Apr 22, 20255. Nx - Build system optimized for monorepos Nx optimizes monorepos with AI-driven architecture, advanced CI features, and efficient task… — @madza.dev0 likes and reposts · 1 reply
- Jul 7, 2023🔥 Hot Repo! 🔥 (100+ new stars) 📦 nrwl / nx ⭐ 18,243 (+126) 🗒 TypeScript Smart, Fast and Extensible Build System — @github-trending-js.bsky.social0 likes and reposts · 1 reply
On Hacker News · 6
- Aug 27, 2025Malicious versions of Nx and some supporting plugins were published443 points · 433 comments
- Nov 1, 2019Extensible Web Dev Tools for Monorepos5 points
- Aug 28, 2025NX Hack: stolen GitHub credential used to turn private repositories public3 points
- Aug 27, 2025Malicious versions of Nx and some supporting plugins were published2 points
- Oct 21, 2024Nx Powerpack Moves Previously Free Feature Behind Paywall1 point · 1 comment
1 more on Hacker News
- Dec 14, 2020Nx 11.0.0 – Extensible Dev Tools for Monorepos1 point
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- author-migrationSkill
- check-docs-styleSkill
- deslopSkill
- dist-build-migrationSkill
- docs-website-updateSkill
- grill-meSkill
- multi-version-complianceSkill
- nx-gradle-plugin-version-bumpSkill
- nx-multi-repo-migrateSkill
- reproduce-issueSkill
- review-local-branchSkill
- review-many-prsSkill
- review-pending-pr-reviewsSkill
- review-prSkill
- run-nx-generatorSkill
- setup-review-sandboxSkill
- triage-issuesSkill
- triage-prsSkill
- triage-review-paneSkill
- update-cnw-templatesSkill
- author-migrationSkill
- check-docs-styleSkill
- deslopSkill
- dist-build-migrationSkill
- docs-website-updateSkill
- draft-security-advisorySkill
- grill-meSkill
- multi-version-complianceSkill
- nx-gradle-plugin-version-bumpSkill
- nx-multi-repo-migrateSkill
- reproduce-issueSkill
- review-local-branchSkill
- review-pending-pr-reviewsSkill
- review-prSkill
- run-nx-generatorSkill
- setup-review-sandboxSkill
- triage-issuesSkill
- triage-prsSkill
- triage-review-paneSkill
- update-cnw-templatesSkill
- vitest-migrationSkill
- ci-monitorSkill
- nx-generateSkill
- nx-pluginsSkill
- nx-run-tasksSkill
- nx-workspaceSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Run that through whatever your harness uses to background a long command (in Claude Code, Bash with run_in_background), so the batch …
- Very specific: line 55
If no review watch is running yet, start ONE and leave it running for the session.
- Distinctive: line 120
Every herdr wait is bounded.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
review-many-prs
The batch driver both /review-pr and /review-pending-pr-reviews already assume exists.
It owns scheduling only: every actual review is a real /review-pr run in its own Claude
Code session, so the review criteria live in exactly one place.
Everything below is done by scripts/review-many-prs.ts (run with tsx, the repo's
convention for scripts). Do not reimplement the loop
in the session — a batch runs for hours (~250k tokens and ~25+ min per PR), and an LLM
sitting in a poll loop costs tokens it does not need to spend and dies at a session limit.
Preconditions
test "${HERDR_ENV:-}" = 1Failing that, stop and say so. This driver creates herdr tabs; there is no fallback.
Run it
The driver needs herdr to create tabs for its CHILDREN. It does not need one for itself, and giving it one costs a tab that then has to be closed by hand. Launch it as a detached background process with its output on disk:
stamp=$(date +%Y%m%d-%H%M%S)
log=~/.nx-pr-reviews/.driver-$stamp.log
mkdir -p ~/.nx-pr-reviews
npx tsx .claude/skills/review-many-prs/scripts/review-many-prs.ts 36815 36806 36789 > "$log" 2>&1Run that through whatever your harness uses to background a long command (in Claude Code,
Bash with run_in_background), so the batch outlives the call that started it and you are
re-invoked when it exits. Report the log path to the user, then get out of the way. Do not
poll it. The driver's own progress is not the thing worth watching, the records are.
The stamp you compute is the same shape as the driver's internal batch id, and because both
come from local time at start they line up, so .driver-<batch>.log names the batch it
belongs to. That is a convenience, not a contract. Nothing reads the filename.
If no review watch is running yet, start ONE and leave it running for the session; do not
start another per batch.
For a quick sanity check first, --dry-run resolves heads and prints the plan without
launching anything. Run that one in the foreground.
Arguments are PR URLs, #36815, or bare numbers, in any mix. A non-nrwl/nx URL is a hard
error: /review-pr only reviews that repo. Drafts are skipped unless you pass
--include-drafts.
The pool and the argument parser have unit tests:
npx tsx .claude/skills/review-many-prs/scripts/review-many-prs.spec.tsWhat a slot means
A slot is held from herdr agent start until the child has produced a draft at
$TRIAGE_DIR/<PR>.md. That is review-pr's Step 8 output, written immediately before
the Step 8.5 grill — the moment the agents have finished, the sandbox work is done,
and the findings are waiting on you.
Slots are a SlotPool: acquire() returns a promise that resolves with a slot once
one of the N is free, and a freed permit is handed straight to the longest-waiting
caller rather than round-tripping through a counter, so acquisition is FIFO. Each PR
is one reviewOne task; all of them start at once and block on acquire(), which is
what bounds concurrency.
Releasing is one-way, structurally. reviewOne releases its slot in a finally,
by which point it has returned and nothing is left watching the child. So when you
answer the grill and the child goes back to working, there is no code path that
could reclaim the slot — the expensive part is already spent, and the remaining turns
only edit a draft that is already on disk.
A permission prompt is the opposite case and keeps its slot: no draft exists, so
no review has happened yet, and watch simply has not resolved.
How children are watched
By blocking on herdr, not polling it. Each running child gets a background waiter:
herdr agent prompt "pr-$N" "/review-pr $N" --wait --timeout "$SETTLE_TIMEOUT_MS"--wait is atomic submit-and-wait — it matches "the first matching state observed
after submission". That property is essential, and plain herdr agent wait does
not have it. Two races were measured on this machine (2026-08-28):
agent waitright afteragent promptreturns in 0 s reporting the stale pre-promptidle. Every child would be classified settled-with-no-draft the instant it launched.agent wait --until workingcan miss the transition entirely. If the agent has already passed throughworking, it blocks until timeout instead of returning.
So --wait opens the watch, and plain agent wait is only used afterwards, where the
state being waited for is genuinely in the future.
Each herdr call is an execFile wrapped in a promise, so "wait for this child" is a
plain await and "whichever settles first" needs no scheduler of its own. A setInterval
ticker covers only what herdr cannot signal — disk pressure, and a child wedged on
secreq's out-of-band gh consent, which reads as working forever and so produces no
lifecycle event at all.
Every herdr wait is bounded. This process does not own the herdr process it is blocked on, so an unbounded wait would outlive the driver as an orphan; on timeout the loop re-classifies, which is self-healing.
herdr reports errors as JSON on stderr with exit 1, so the wrapper parses stdout
or stderr and a vanished agent resolves to gone rather than an empty string.
Why the draft, and not blocked
herdr classifies terminal UI, so it can see that an agent wants input — never what for. Two consequences, both verified here:
blockedfires early. Claude Code's own permission dialogs areblockedtoo. A child that asks to run something 30 seconds in would surrender its slot having done no work.blockedalso misses.ghhere is shimmed throughsecreq, whose consent is out-of-band (a prompt window / linked device, seesecreq pending), not a TTY prompt. A child stalled awaiting gh approval reads asworking.
So the draft on disk is authoritative and herdr state only corroborates it:
| herdr state | draft written? | driver does |
settled (blocked/idle/done/gone) | yes | release slot → awaiting-grill, permanently |
blocked | no | hold slot, print NEEDS INPUT; resume on --until working |
idle / done, shell still running | no | hold slot and poll — it is waiting on its own background work |
idle / done / gone | no | only past the startup floor → failed, ready to re-run |
The idle-with-no-draft row is load-bearing: a review can die mid-run (session limit)
and review-pr writes no partial draft, so without it the scheduler waits on a corpse.
The record still exists in that case — review stage created it at launch — and moves to
status: failed, so a death is visible to review watch rather than being an absence.
A settled child is not always a dead one. Claude Code ends its turn while its own background
shells keep running, and the harness re-invokes the child when one exits. Most reviews hit
this, because the sandbox ships a published native binding that lags the PR and rebuilding it
takes minutes the child spends parked. So a settled child whose pane still reports a running
shell keeps its slot and gets polled, for SHELL_HOLD_MS measured from the last time it was
seen working. The match is deliberately narrow, because the transcript prints "Ran N shell
commands" on every tool call and matching that would hold every child forever.
The startup floor
A child that has not reached working yet produces the same herdr output as one that
died, so the failed rows above are wrong for the first minute of a child's life. Two
batches were lost to exactly that: 2026-08-31 killed 3/3 on a transient gone reached
through the agent_prompt_stalled check, and 2026-08-28 killed 2/2 on a transient
idle. No smarter reading of the status field separates the two cases — only elapsed
time does.
So a terminal-looking status is believed only once startupGrace returns 0, which
happens when either the child has been observed working at least once, or
MIN_RUN_SECS (90) has passed since agent start. The deadline is absolute rather
than a retry budget, so it can never re-arm and a flapping status cannot spin. Being
seen working is the stronger of the two conditions and is what covers a cold boot
that outlasts the floor.
blocked is deliberately NOT gated: a permission dialog during startup is real and
does need answering. It only gains the child's age in the log line, so it reads as a
startup prompt rather than as the grill.
The draft is matched on mtime newer than launch, not head_sha: the author can push
between the driver's triage read and the child's own Step 2, and a sha comparison would
then hold the slot forever. The strict head_sha test stays in the pre-flight skip, where
staleness is the actual question.
Parked children still hold a sandbox
Releasing the slot frees CPU, not disk. review-pr keeps its sandbox alive through the grill
on purpose — Step 8.5 answers "is this pre-existing?" by reading --ref base, and only Step 9
destroys it. So each parked child pins a sandbox until you finish with its tab.
That pin is far cheaper than it used to be. All the children share one host container and one
repo inside it, so a parked review holds its own subtree (~0.5 GB: two worktrees plus the part
of node_modules that cannot be hardlinked) rather than a container of its own (~4.9 GB). The
batch's fixed cost — the ~2.3 GB copy-up of the pnpm store out of the image layer — is paid by
whichever review starts first and by no one after it.
The driver measures free space on whatever backs the container store (on this Mac that is the
Lima VM's disk, not the host's) and refuses to launch a review that would eat into
DISK_RESERVE_GB, projecting the next sandbox's cost from what the live ones actually consumed.
It says so and keeps going with what is running rather than failing the batch. Note that
projection now reads a marginal review, not a whole container, so the first review of a cold
host is the expensive outlier rather than the typical case.
What the sharing costs: the host's --memory/--cpus/--pids-limit are one budget for the
whole batch instead of one per child, so a runaway test in one PR can starve its siblings.
Records, and the one watcher
Scheduling state is not a file of its own. Every scheduled PR gets a record through
.claude/tools/review, the same markdown-with-frontmatter drafts /review-pr already
writes, with a status: carried through the whole lifecycle:
queued -> running -> needs-input | throttled -> awaiting-grill -> posted | discarded
\-> failedreview stage creates one at launch and never overwrites an existing draft, so
re-running over a PR that already has a review leaves it alone. review set edits only
the frontmatter, because /review-pr's Step 8 rewrites the body wholesale and anything
else here would be lost on the next attempt. That is also why status: is part of
review-pr's frontmatter contract rather than something this driver bolts on.
Watch once, not per batch:
.claude/tools/review watch # one line per transition, for every batchOne long-lived review watch covers batches that do not exist yet, which is the point.
It snapshots existing records at startup and does not replay them, so a previous
round's draft cannot be reported as a fresh result — the failure mode every hand-rolled
per-batch watcher reproduced, most often by treating "mtime within the last N minutes"
as "new". Pass --replay when you deliberately want the current state emitted.
review list --pending is the queue. A record is
live until status: reaches posted or discarded, which /review-pending-pr-reviews
sets when it posts.
Afterwards
The driver prints a summary. For each parked PR:
herdr agent focus pr-36815 # jump into that child and answer its grillGrill it there, close the tab, then post through /review-pending-pr-reviews — which is the
gate that reaches GitHub. Nothing in this pipeline posts anything.
Re-running the driver over the same PRs is safe: anything already reviewed at the current head
by the current PIPELINE_VERSION is skipped without spending a tab, and a failed draft never
blocks a retry.
Configuration
Environment, all optional: CONCURRENCY (3), TRIAGE_DIR (~/.nx-pr-reviews; note the review
CLI reads the same directory as REVIEW_DIR, and the triage tool uses TRIAGE_DIR for something
else entirely — set them deliberately), NX_REPO_PATH
(~/repos/nx), TICK_SECS (30), SETTLE_TIMEOUT_MS (1 h), RESUME_TIMEOUT_MS (24 h — how long a
permission prompt may sit unanswered while holding its slot), DISK_RESERVE_GB (12),
SEED_SANDBOX_GB (6), PRUNE_AT_END (1), MIN_RUN_SECS (90 — the startup floor below
which a settled-looking child is re-checked instead of failed), SHELL_HOLD_MS (20 min — how
long a settled child with a background shell still running is excused before it is failed).
REVIEW_NONINTERACTIVE is deliberately not set by default: setting it makes children skip the
grill and run to completion, which gives up the slot model's handoff — the parking is how the
findings reach you. Set it only when nobody can answer a grill (a cron run, or an operator away from
the machine), and read the resulting drafts knowing Step 8.5 never filtered their pre-existing
findings. The driver forwards it to each child's pane at tab create, since a fresh pane inherits
nothing from the driver's own environment.
PIPELINE_VERSION is read out of review-pr/SKILL.md at startup rather than duplicated here, so
bumping it there cannot silently desync the skip logic.
Pre-flight happens once, on the host
gh auth status, sandbox doctor, and tools/review-sandbox/build-image.sh run once before the
first child. BuildKit would dedupe concurrent builds anyway, but doing it up front means three
children don't all sit through a cold image build — a stale image has cost ~25 min of package
downloads per review.
Heads are resolved with one gh pr view per PR, which also drops drafts, closed PRs, and
already-reviewed heads before they cost a tab. Each of those is a secreq consent prompt, so
expect a short burst of approvals at the start of a batch.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

