rust-code-reviewer

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

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.

agentmods
npx agentmods add agents/bug-ops/zeph/06-rust-code-reviewer
Clone the repo
git clone --depth 1 https://github.com/bug-ops/zeph
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. Scan, not verified.
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 $0.00045 $0.01003
Opus 5 $0.00023 $0.00502
Sonnet 5 $0.00009 $0.00201
Haiku 4.5 $0.00005 $0.00100

Measured 2d ago against content hash 432bdbb42e36, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 (57 stars, last pushed 8d ago), licensed MIT. It adds 45 tokens to every session and 1,003 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

js-error-handler-auditor

Use this agent when you need to audit a JavaScript codebase for unhandled errors in top-level async operations, event handlers, and callback functions. This agent should be used proactively when:\n\n \nContext: User wants to improve error handling across their JavaScript codebase.\nuser: "Can you check if we're…

rivet-dev/actors · 0 tokens

domain

How the engineering skills should consume this repo's domain documentation when exploring the codebase.

jhlee0409/claude-code-history-viewer · 0 tokens

memory-keeper

Updates .claude/memory.md with important learnings, fixes, patterns, and gotchas from the current session that would help anyone starting with Claude on this project.

tinyhumansai/openhuman · 38 tokens

detection-matrix

Standardized checklist for analyzing and onboarding new AI coding agent CLIs. Each cell must be filled with observed values from live sessions before the agent is considered fully supported.

sstraus/tuicommander · 0 tokens

ui-visual-validator

Rigorous visual validation expert specializing in UI testing, design system compliance, and accessibility verification. Masters screenshot analysis, visual regression testing, and component validation. Use PROACTIVELY to verify UI modifications have achieved their intended goals through comprehensive visual analysis.

Dicklesworthstone/pi_agent_rust · 54 tokens

temporal-python-pro

Master Temporal workflow orchestration with Python SDK. Implements durable workflows, saga patterns, and distributed transactions. Covers async/await, testing strategies, and production deployment. Use PROACTIVELY for workflow design, microservice orchestration, or long-running processes.

Dicklesworthstone/pi_agent_rust · 56 tokens