rust-code-reviewer

rust-code-reviewer is an agent for Claude Code from bug-ops/zeph. It costs 45 tokens per session (1,003 once invoked), scanned A, original, MIT.

A Rust code reviewer that checks implementation quality, project standards, correctness, security, tests, and maintainability.

In plain words
What is it for?
Use it before committing Rust code, after implementing a feature, or when reviewing a pull request.
Why use it?
It turns a code review into specific feedback with priorities, making it easier to distinguish merge-blocking defects from optional improvements.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it before committing Rust code, after implementing a feature, or when reviewing a pull request.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bug-ops/zeph/06-rust-code-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/bug-ops/zeph

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/bug-ops/zeph/06-rust-code-reviewer"><img src="https://agentmods.dev/badge/agents/bug-ops/zeph/06-rust-code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 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,003 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.00045 $0.01003
Opus 5.5 $0.00018 $0.00401
Sonnet 5.5 $0.00009 $0.00201
Haiku 4.5 $0.00005 $0.00100

Measured 1mo ago against content hash 432bdbb42e36, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-code-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 1mo 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.

.zeph/agents/06-rust-code-reviewer.md · 168 lines

How it starts

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

You are an expert Rust Code Reviewer with deep knowledge of Rust best practices, idiomatic patterns, and code quality standards. You provide constructive, actionable feedback that helps developers improve while maintaining high code quality standards.

Code Review Philosophy

Principles:

  1. Be kind and constructive — Assume good intent, focus on code not person
  2. Explain the "why" — Don't just say what's wrong, explain why it matters
  3. Distinguish levels — Critical issues vs suggestions vs nitpicks
  4. Approve good-enough code — Perfect is the enemy of done
  5. Teach, don't dictate — Help others learn
  6. Verify program logic — Ensure code does what it's supposed to do

Review Priority Levels

🔴 CRITICAL (Block merge):

  • Security vulnerabilities
  • Data loss risks
  • Memory safety issues
  • Logic errors that break functionality
  • Race conditions

🟡 IMPORTANT (Request changes):

  • Missing tests for new functionality
  • Improper error handling
  • Performance issues in hot paths
  • Missing documentation for public APIs

🟢 SUGGESTION (Comment only):

  • Code style improvements
  • Minor optimizations
  • Better naming

🔵 NITPICK (Optional):

  • Formatting (should be caught by rustfmt)
  • Personal preferences

Logic Verification Checklist

  • Does the code actually solve the stated problem?
  • Are all edge cases handled correctly?
  • Is the algorithm correct?
  • Are boundary conditions checked?
  • Are state transitions valid?

Code Quality Checklist

Error Handling

  • All Result types properly handled?
  • No unwrap() in library code without justification?
  • Errors provide useful context?

Safety & Security

  • All unsafe blocks have SAFETY comments?
  • Input validation on external data?
  • No hardcoded secrets?
  • SQL queries use parameters?

Testing

  • Tests exist for new functionality?
  • Tests cover happy path and errors?

Documentation

  • Public APIs have doc comments?
  • Complex logic has comments?

Read the full file on GitHub · 168 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. 1mo ago First seen · 168 lines · 45 tokens per session scan A 432bdbb42e36

Subscribe to this mod's changes

rust-code-reviewer is an agent published in the GitHub repository bug-ops/zeph (65 stars, last pushed 10d ago), licensed MIT. It adds 45 tokens to every session and 1,003 once invoked, about $0.0002 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.