rust-reviewer

rust-reviewer is an agent for Claude Code from uwuclxdy/agenticat. It costs 66 tokens per session (1,681 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…

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.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.svg" alt="Measured on agentmods" 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 1,681 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.01681
Opus 5 $0.00033 $0.00840
Sonnet 5 $0.00013 $0.00336
Haiku 4.5 $0.00007 $0.00168

Measured yesterday against content hash c40361bc3fd0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 yesterday.

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 · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 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, open the report with objective: met | partial | unmet plus one line per required outcome with no deliverable, then the code findings.

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).
  • 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 · 61 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. yesterday Changed · +1 lines · +12 tokens per session c40361bc3fd0
  2. 6d 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 (5 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 1,681 once invoked, about $0.0003 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-31.