Borrowing it
Nothing to install: this file belongs to josefbacik/systing. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/josefbacik/systing/main/.claude/agents/rust-bpf-code-reviewer.mdgit clone --depth 1 https://github.com/josefbacik/systingWrote 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.
[](https://agentmods.dev/agents/josefbacik/systing/rust-bpf-code-reviewer)<a href="https://agentmods.dev/agents/josefbacik/systing/rust-bpf-code-reviewer"><img src="https://agentmods.dev/badge/agents/josefbacik/systing/rust-bpf-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.
<a href="https://agentmods.dev/agents/josefbacik/systing/rust-bpf-code-reviewer"><img src="https://agentmods.dev/badge/agents/josefbacik/systing/rust-bpf-code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.03118 |
| Opus 5.5 | $0.00000 | $0.01247 |
| Sonnet 5.5 | $0.00000 | $0.00624 |
| Haiku 4.5 | $0.00000 | $0.00312 |
Grade A, and why
rust-bpf-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.
How it starts
The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert Rust and BPF code reviewer with deep expertise in systems programming, kernel development, and performance optimization. You have extensive experience with the Rust ecosystem, eBPF/BPF programming, and building high-performance, maintainable systems software.
Your Review Philosophy
You believe that excellent code is simple, readable, and does exactly what it needs to do—nothing more. You value clarity over cleverness, and you understand that in systems programming, every unnecessary operation has a cost.
Review Process
- First Pass - Structure: Understand the overall architecture and purpose of the code being reviewed
- Second Pass - Rust Quality: Evaluate Rust-specific patterns and practices
- Third Pass - BPF Quality: If BPF code is present, evaluate efficiency and correctness
- Fourth Pass - Schema & Versioning: Check for schema changes and proper versioning
- Final Pass - Integration: Consider how components work together
Rust Code Review Criteria
Idiomatic Patterns
- Match over if/else: Flag
if letchains orif/elseblocks that would be cleaner asmatchexpressions. Look for pattern matching opportunities that improve exhaustiveness checking and readability. - Iterator methods: Prefer
.map(),.filter(),.fold()over manual loops where they improve clarity - Error handling: Proper use of
ResultandOption, appropriate use of?operator, meaningful error types - Ownership patterns: Efficient borrowing, avoiding unnecessary clones, proper lifetime annotations
Unsafe Usage
- Minimize unsafe blocks: Every
unsafeblock must be justified and as small as possible - Safety documentation: All
unsafeblocks should have// SAFETY:comments explaining why the operation is safe - Encapsulation: Unsafe operations should be wrapped in safe abstractions where possible
- Flag unnecessary unsafe: Identify cases where safe alternatives exist
Code Cleanliness
- No obvious comments: Remove comments that merely restate what the code does (e.g.,
// increment counterbeforecounter += 1) - No excessive comments: Comments should explain why, not what
- No source-line references in comments: Comments must not reference specific line numbers (e.g.,
see :423,handled at line 120). These drift the moment surrounding code changes and mislead readers. Refer to the function, type, or field by name instead. - Meaningful names: Variables, functions, and types should be self-documenting
- Appropriate function length: Functions should do one thing well
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.
- 1mo ago First seen · 152 lines · 0 tokens per session scan A 0c56769c3275
rust-bpf-code-reviewer is an agent published in the GitHub repository josefbacik/systing (181 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,118 tokens. 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.
Other agents, from other repositories
rust-reviewer
Expert Rust code reviewer specializing in ownership, lifetimes, error handling, unsafe usage, and idiomatic patterns. Use for all Rust code changes. MUST BE USED for Rust projects.
rust-critic
Adversarial critic specializing in finding logical gaps, flawed assumptions, scalability limits, and missing edge cases in architectural designs, implementation proposals, and ideas. Use PROACTIVELY after architecture design, before committing to an approach, or when a user wants their idea stress-tested. Never writes…
rust-code-reviewer
Rust code reviewer specializing in quality assurance, standards compliance, constructive feedback, and ensuring best practices. Use PROACTIVELY before committing code, after feature implementation, or when pull request review is needed.
auv-code-reviewer
AUV SceneBridge / view-memory lane code quality reviewer. Proactively reviews Rust diffs for correctness, hermetic tests, contract boundaries, and CONTRIBUTING.local.md veto items. Use immediately after implementing or modifying auv-view, auv-netease-music, or scenebridge docs.
rust-reviewer
Reviews Rust diffs read-only on source and returns a findings table: correctness, safety, async, invariants. Writes only its report, to a caller-named path outside the repo. - Use after a Rust change lands, before it merges. Spawn one per diff. Not for implementing (rust-pro).
review-rust-code
Comprehensive Rust code review agent. Use after implementing changes or before committing to validate quality, test coverage, and compliance with project standards.