rust-bpf-code-reviewer

rust-bpf-code-reviewer is an agent for Claude Code from josefbacik/systing. It costs 398 tokens per session (3,118 once invoked), scanned A, original, MIT.

An agent for reviewing Rust code, including code for BPF and eBPF, technologies used to run small programs in or near an operating-system kernel. It examines structure, Rust practices, efficiency, schemas, versions, and integration.

In plain words
What is it for?
Use it to review userspace Rust projects, BPF or eBPF components, recently written code, schema changes, and how the parts of a systems project fit together.
Why use it?
It gives a review focused on both ordinary Rust code and the extra constraints of kernel-side code. This can expose unclear patterns, unnecessary work, or compatibility and integration problems.

Agent for Claude Code

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/josefbacik/systing/rust-bpf-code-reviewer
Clone the repo
git clone --depth 1 https://github.com/josefbacik/systing

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/josefbacik/systing/rust-bpf-code-reviewer.svg)](https://agentmods.dev/agents/josefbacik/systing/rust-bpf-code-reviewer)
Your own site
<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="Measured on agentmods" height="20"></a>
Per session 398 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,118 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.00398 $0.03118
Opus 5 $0.00199 $0.01559
Sonnet 5 $0.00080 $0.00624
Haiku 4.5 $0.00040 $0.00312

Measured 4d ago against content hash 0c56769c3275, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 4d 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.

.claude/agents/rust-bpf-code-reviewer.md · 152 lines

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

  1. First Pass - Structure: Understand the overall architecture and purpose of the code being reviewed
  2. Second Pass - Rust Quality: Evaluate Rust-specific patterns and practices
  3. Third Pass - BPF Quality: If BPF code is present, evaluate efficiency and correctness
  4. Fourth Pass - Schema & Versioning: Check for schema changes and proper versioning
  5. Final Pass - Integration: Consider how components work together

Rust Code Review Criteria

Idiomatic Patterns

  • Match over if/else: Flag if let chains or if/else blocks that would be cleaner as match expressions. 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 Result and Option, appropriate use of ? operator, meaningful error types
  • Ownership patterns: Efficient borrowing, avoiding unnecessary clones, proper lifetime annotations

Unsafe Usage

  • Minimize unsafe blocks: Every unsafe block must be justified and as small as possible
  • Safety documentation: All unsafe blocks 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 counter before counter += 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

Read the full file on GitHub · 152 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. 4d ago First seen · 152 lines · 0 tokens per session scan A 0c56769c3275

Subscribe to this mod's changes

rust-bpf-code-reviewer is an agent published in the GitHub repository josefbacik/systing (175 stars, last pushed 6d ago), licensed MIT. It adds 398 tokens to every session and 3,118 once invoked, about $0.0020 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

pr-review-comment-resolver

Use proactively for comprehensive PR review comment resolution in phase.rs. Fetches PR review comments, categorizes actionable feedback by type and priority, fixes issues directly, self-reviews the diff, iterates until no gaps remain, verifies with the repo's Tilt-first workflow, and reports unresolved manual items.

phase-rs/phase · 65 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

codex

Production OpenAI-Codex-capable rootfs/initramfs.

the-void-ia/void-box · 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

backend-security-coder

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

Dicklesworthstone/pi_agent_rust · 36 tokens