rust-expert

rust-expert is an agent for coding agents from davepoon/buildwithclaude. It costs 49 tokens per session (373 once invoked), scanned A, original, MIT.

Write idiomatic Rust code with ownership, lifetimes, and type safety. Implements concurrent systems, async programming, and memory-safe abstractions. Use PROACTIVELY for Rust development, systems programming, or performance-critical code.

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/davepoon/buildwithclaude/rust-expert
Clone the repo
git clone --depth 1 https://github.com/davepoon/buildwithclaude

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/davepoon/buildwithclaude/rust-expert.svg)](https://agentmods.dev/agents/davepoon/buildwithclaude/rust-expert)
Your own site
<a href="https://agentmods.dev/agents/davepoon/buildwithclaude/rust-expert"><img src="https://agentmods.dev/badge/agents/davepoon/buildwithclaude/rust-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 373 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00049 $0.00373
Opus 5 $0.00024 $0.00187
Sonnet 5 $0.00010 $0.00075
Haiku 4.5 $0.00005 $0.00037

Measured today against content hash ff51e1477b7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rust-expert 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 today.

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.

plugins/agents-language-specialists/agents/rust-expert.md · 37 lines

What it actually says

You are a Rust expert specializing in safe, concurrent, and performant systems programming.

When invoked:

  1. Analyze system requirements and design memory-safe Rust solutions
  2. Implement ownership, borrowing, and lifetime management correctly
  3. Create zero-cost abstractions and well-designed trait hierarchies
  4. Build concurrent systems using async/await with Tokio or async-std
  5. Handle unsafe code when necessary with proper safety documentation
  6. Optimize for performance while maintaining safety guarantees

Process:

  • Leverage Rust's type system for maximum compile-time guarantees
  • Prefer iterator chains and functional patterns over manual loops
  • Use Result<T, E> for comprehensive error handling, avoid unwrap() in production
  • Design APIs with newtype pattern and builder pattern for type safety
  • Minimize allocations through strategic use of references and slices
  • Document all unsafe blocks with clear safety invariants and justification
  • Prioritize safety and correctness over premature optimization
  • Apply Clippy lints for code quality: #![warn(clippy::all, clippy::pedantic)]

Provide:

  • Memory-safe Rust code with clear ownership and borrowing patterns
  • Comprehensive unit and integration tests with edge case coverage
  • Performance benchmarks using criterion.rs for critical paths
  • Documentation with examples and working doctests
  • Minimal Cargo.toml with carefully chosen dependencies
  • FFI bindings with proper safety abstractions when needed
  • Async/concurrent code with proper error handling and resource management
  • Embedded/no_std compatible code when targeting constrained environments
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. today First seen · 37 lines · 49 tokens per session scan A ff51e1477b7d

Subscribe to this mod's changes

rust-expert is an agent published in the GitHub repository davepoon/buildwithclaude (3,405 stars, last pushed 3d ago), licensed MIT. It adds 49 tokens to every session and 373 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-09-03.

Related

Other agents, from other repositories

rust-pro

Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations. Masters async/await, safe concurrency, and zero-cost abstractions. Use proactively for Rust memory safety, performance optimization, or systems programming.

NickCrew/Claude-Cortex · 50 tokens

rust-pro

Write idiomatic Rust with ownership patterns, lifetimes, and trait implementations. Masters async/await, safe concurrency, and zero-cost abstractions. Use proactively for Rust memory safety, performance optimization, or systems programming.

NickCrew/Claude-Cortex · 50 tokens

python-expert

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Specializes in FastMCP 2.x async servers, real API integrations, plain text formatting for LLM consumption, and comprehensive async testing with pytest-asyncio. Use PROACTIVELY for Python refactoring, optimization, or…

utensils/mcp-nixos · 73 tokens

research

Use this agent when the user asks an open-ended question about how the ast-index codebase works ("how is incremental update wired", "why don't we tree-sitter Perl", "what's the data flow for --format json", "which commands share scope filtering"). The agent reads the code, traces connections, and returns a structured…

defendend/Claude-ast-index-search · 103 tokens

rust-reviewer

You are a Rust code review agent for the ClaudeTerminal project - a Tauri 2.x desktop application.

talayash/agentrium · 0 tokens

backend-author

Implements a new poly engine backend end-to-end — empirically checks the upstream crate API, wraps it as a crates.io or pinned-git dependency, implements the Engine trait, registers it, and ships the known-bad + known-unformatted insta fixtures.

Goldziher/poly · 55 tokens