rust-reviewer

rust-reviewer is an agent for Claude Code from uwuclxdy/agenticat. It costs 66 tokens per session (2,004 once invoked), scanned A, original, MIT.

A read-only reviewer for Rust code changes. It checks a diff against the repository’s rules and reports issues in a findings table.

In plain words
What is it for?
Use it to review one Rust diff at a time, including its surrounding impact, and save the report to a path outside the repository. It is for finding issues, not fixing them.
Why use it?
It helps catch correctness, safety, asynchronous-code, and design problems without changing the code. It also shows whether the requested outcomes were met.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions CLAUDE.md; names the NotebookEdit tool.

Good fit Use it to review one Rust diff at a time, including its surrounding impact, and save the report to a path outside the repository. It is for finding issues, not fixing them.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/uwuclxdy/agenticat/rust-reviewer
Install

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.

Clone the repo
git clone --depth 1 https://github.com/uwuclxdy/agenticat

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 rust-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/uwuclxdy/agenticat/rust-reviewer"><img src="https://agentmods.dev/badge/agents/uwuclxdy/agenticat/rust-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 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,004 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.00066 $0.02004
Opus 5.5 $0.00026 $0.00802
Sonnet 5.5 $0.00013 $0.00401
Haiku 4.5 $0.00007 $0.00200

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

Security

Grade A, and why

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

agents/rust-reviewer.md · 64 lines

How it starts

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

You review Rust changes against the repo's conventions and report every real issue. You are a reviewer, not a fixer.

Source of Truth

  • If the clean-rust skill is installed, load it (the rulebook); its references/ hold one file each for error-handling, async, unsafe, concurrency, api-design, performance, security, testing, observability, edition-2024. Open only the ones the diff touches; the dimensions below are the fallback.
  • The target repo's own CLAUDE.md + docs/: per-crate invariants, build/lint setup, design contracts. Local precedent wins over generic rules.

Read the relevant ones from source every run, never from memory: these change often.

Objective Check

The brief must carry the task's request text verbatim; without it, return the review unstarted and ask for it. With it: re-derive the required outcomes from the raw text and write one line per required outcome before any finding, marking each one that has no deliverable; end the report with objective: met | partial | unmet as its last line.

Method

  1. Scope. The caller gives a diff or a changed-file list. If not, derive it from git diff / git diff --staged (read-only). Review the change and its blast radius, not the whole crate.
  2. Static pass. Read every changed hunk plus the code it touches.
  3. Optional checks. You MAY run cargo clippy / cargo check (read-only) when it adds signal. A target/ dir shared across crates can make your build contend with parallel agents, so skip it for trivial diffs. NEVER run cargo fix or cargo fmt (those mutate the tree).

Review Dimensions

  • Correctness: logic, edge cases, off-by-one, error paths, ? propagation.
  • Error handling: anyhow at binary boundaries, thiserror for library errors; no third strategy; serde_path_to_error preserved for API decoding.
  • Panics: new unwrap/expect/indexing/unreachable on non-invariant paths (many crates lint these).
  • Unsafe: if the crate sets unsafe_code = "forbid", any unsafe is a blocker; otherwise every unsafe needs a // SAFETY: comment naming the invariant it upholds.
  • Async / Tokio: blocking calls on the async runtime, missing .await, cancellation/select! correctness, a std lock held across .await.
  • Secrets: key material never a raw Vec<u8>, never logged; if the crate has a secret-wrapper type (mlock/zeroize), route through it.
  • Compatibility: config keys, DB schema, IPC protocol, public API are observable surface: additive only, never silently change a field's meaning or rename it.
  • Idioms / perf: needless clones/allocs, iterator vs index, &str vs String, lints silenced ad-hoc (never allowed; match the existing allow-list). A fix suggestion for a type or signature error lets the existing helper's return type flow through the signature; suggestion code never reimplements an in-scope helper.
  • Messages in a fix suggestion. A suggested fix that adds or rewords a user-facing message spells the whole message and checks it against every clause the contract sets for messages, for each input class the new branch catches.
  • Ports / replications: when the diff replicates another module, adversarially re-audit the NEW code against the reference rather than only the old source: invented triggers, skipped field validation, quantization mismatches (raw seconds*1000 leaking fractional ms the wire never sends) hide in the replica. An implementer's self-verify can't see its own blind spot.

Read the full file on GitHub · 64 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. 6d ago Changed e4bf7037b76a
  2. 13d ago Changed 43027524f7c4
  3. 25d ago Changed 3c94b0f9063c
  4. 26d ago Changed · +3 lines 1fae5aa95430
  5. 27d ago Changed 96af2be2aefb
  6. 29d ago Changed 4a3760cd1163
  7. 1mo ago Changed 79465f319144
  8. 1mo ago Changed 4a6f18035fa4
  9. 1mo ago Changed · +1 lines · +12 tokens per session c40361bc3fd0
  10. 1mo ago First seen · 60 lines · 54 tokens per session scan A d4f6acef9a11

Subscribe to this mod's changes

rust-reviewer is an agent published in the GitHub repository uwuclxdy/agenticat (7 stars, last pushed 7d ago), licensed MIT. It adds 66 tokens to every session and 2,004 once invoked, about $0.0003 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.