nx: Agent for Claude Code

.claude/agents/implementation-reviewer.md

implementation-reviewer is an agent for Claude Code from nrwl/nx. It costs 32 tokens per session (2,192 once invoked), scanned A, original, MIT.

A code-review agent for checking an Nx pull request’s correctness, error handling, performance, and changed types or public interfaces.

In plain words
What is it for?
Use it to review an Nx diff and its surrounding code for implementation problems and contract changes.
Why use it?
It looks for regressions, broken failure behavior, compatibility problems, and expensive work that may not be obvious from a quick review.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is nrwl/nx's own configuration. It tells Claude Code how to work on nx itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nx configures →

View source ↗ nrwl/nx nx.dev
About the project

Nx is a tool for managing monorepos, which are repositories containing multiple related projects, across TypeScript and other languages. It helps development teams and AI agents run only affected tasks, cache build results, generate code, and coordinate continuous integration. The catalogue add-ons provide agent skills, commands, agents, instructions, and settings for working with Nx.

nrwl/nx · 29,421 stars · on GitHub · nx.dev

Reuse

Borrowing it

Nothing to install: this file belongs to nrwl/nx. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nrwl/nx/master/.claude/agents/implementation-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/nrwl/nx

Made for: Claude Code.

Wrote 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.

agentmods badge for implementation-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/nrwl/nx/implementation-reviewer/github.svg)](https://agentmods.dev/agents/nrwl/nx/implementation-reviewer)
Your own site
<a href="https://agentmods.dev/agents/nrwl/nx/implementation-reviewer"><img src="https://agentmods.dev/badge/agents/nrwl/nx/implementation-reviewer/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.

agentmods 80×15 button for implementation-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/nrwl/nx/implementation-reviewer"><img src="https://agentmods.dev/badge/agents/nrwl/nx/implementation-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,192 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.02192
Opus 5.5 $0.00013 $0.00877
Sonnet 5.5 $0.00006 $0.00438
Haiku 4.5 $0.00003 $0.00219

Measured 12d ago against content hash dd958437c00f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

implementation-reviewer 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 12d 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.

.claude/agents/implementation-reviewer.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Implementation Reviewer

Review the supplied diff and surrounding source in three lenses during one pass:

  1. Correctness — regressions, broken call paths, Nx conventions, and compatibility.
  2. Error handling — swallowed failures, misleading fallbacks, or changed propagation.
  3. Type/API contracts — changed signatures, exported types, invalid states, and compatibility. Skip this lens only when no type, signature, or public API changed.
  4. Performance — added work on hot paths, repeated traversal, cache invalidation, allocations, or workspace-scale regressions. Request a measurement when static evidence is insufficient.

Inputs (provided by the caller)

  • SANDBOX — the sandbox id holding the checkout under review. Reach it only through the sandbox CLI below. Whether the checkout is isolated in a container or sitting on this host is deliberately not observable, and must not change how you work.
  • DIFF — host-side file holding the diff under review. Your primary review surface; read it with Read.
  • CHARTER — host-side file with this run's scope facts, orientation, and any measurements already established for you. Read it first.
  • BASE_REF — the base revision. Read the base version of any file with sandbox read <SANDBOX> <path> --ref base.

Scope comes from the caller, and there is no fallback. Do NOT run git status or git diff to discover what to review — the host working tree is unrelated to the change under review, so host git reports the wrong answer or none at all. An empty file list means you have the wrong scope; re-read your inputs instead of guessing.

Reading the code under review

Run from the repo root:

tools/review-sandbox/sandbox read <SANDBOX> <path> [--range a,b] [--ref base]
tools/review-sandbox/sandbox grep <SANDBOX> <pattern> [subdir] [--ref base]
tools/review-sandbox/sandbox find <SANDBOX> <glob> [subdir] [--ref base]
tools/review-sandbox/sandbox diff <SANDBOX> [--name-only] [-- <path>...]   # base..HEAD tree difference,
                                                                     # read-only; NOT the PR's diff
tools/review-sandbox/sandbox exec <SANDBOX> -- <cmd>            # tests, lint, tsc
tools/review-sandbox/sandbox exec <SANDBOX> --base -- <cmd>     # the same, base-side

Read the full file on GitHub · 125 lines

Changes

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.

  1. 12d ago Changed dd958437c00f
  2. 1mo ago Changed · +2 lines ed1ca14d295f
  3. 1mo ago First seen · 123 lines · 32 tokens per session scan A 487132d3e8f3

Subscribe to this mod's changes

implementation-reviewer is an agent published in the GitHub repository nrwl/nx (29,421 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 2,192 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-30.

Related

Other agents, from other repositories

tauri-security-reviewer

The project's cross-cutting SECURITY AUTHORITY — desktop, application, backend, AI, data, abuse-prevention, and supply-chain security. Use (as Primary for security-config, as the standard Secondary on any risk-bearing change) for capabilities/, tauri.conf.json, permissions/, updater/plugins, net/, credentials/…

saeedkolivand/ai-job-hunter-app · 117 tokens

rust-backend-architect

Primary reviewer for the Rust/Tauri backend — domain modeling, error handling, module boundaries (L0–L3 layers), the centralized platform/net/error layers, data/SQLite/migrations/GDPR, and Rust-first business-logic ownership. Use for changes under apps/desktop/src-tauri/src/ that aren't owned by a more specific domain…

saeedkolivand/ai-job-hunter-app · 77 tokens

swe-api-tester

Judges a running request-based interface with real requests under one charter, against its contract and behaviour specifications, and records criticality-rated findings with reproducing requests without fixing anything.

wahidyankf/ose-public · 41 tokens

swe-reviewer

Audits code, interface component source, and scenario bindings in named projects against the adopted standards, including test-first evidence and regression tests, and returns rated findings without modifying anything.

wahidyankf/ose-public · 40 tokens

pr-review-checker

Checks one pinned change for the pr-review family by coordinating one review pass: after the lens checkers report, it deduplicates, re-categorizes, filters, verifies, and rates raw findings for criticality, then publishes the one review bound to the pinned head, editing no file.

wahidyankf/ose-public · 64 tokens

pr-review-docs-checker

Reviews one pinned change for the documentation discipline, judging substantive completeness, clarity, mode fit, drift from the code, accessibility, and whether the change description matches the diff, and returns anchored findings.

wahidyankf/ose-public · 46 tokens