rust-expert

rust-expert is an agent for Claude Code from travisjneuman/.claude. It costs 78 tokens per session (3,064 once invoked), scanned A, original, MIT.

A Rust programming specialist covering ownership, borrowing, asynchronous code, web services, error handling, and WebAssembly. Ownership and borrowing are Rust's rules for managing memory safely without a garbage collector.

In plain words
What is it for?
Use it to write or debug Rust code, resolve borrow-checker issues, build Axum or Actix web services, use Tokio, and target WebAssembly.
Why use it?
It helps explain compiler errors and design choices that are specific to Rust, especially around references, lifetimes, concurrency, and memory safety.

Agent for Claude Code

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

Good fit Use it to write or debug Rust code, resolve borrow-checker issues, build Axum or Actix web services, use Tokio, and target WebAssembly.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/travisjneuman/.claude/rust-expert
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/travisjneuman/.claude

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/travisjneuman/.claude/rust-expert/github.svg)](https://agentmods.dev/agents/travisjneuman/.claude/rust-expert)
Your own site
<a href="https://agentmods.dev/agents/travisjneuman/.claude/rust-expert"><img src="https://agentmods.dev/badge/agents/travisjneuman/.claude/rust-expert/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-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/travisjneuman/.claude/rust-expert"><img src="https://agentmods.dev/badge/agents/travisjneuman/.claude/rust-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 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,064 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.00078 $0.03064
Opus 5 $0.00039 $0.01532
Sonnet 5 $0.00016 $0.00613
Haiku 4.5 $0.00008 $0.00306

Measured 7d ago against content hash d32a726cc10f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 7d 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.

agents/rust-expert.md · 487 lines

How it starts

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

Rust Expert Agent

Expert Rust engineer specializing in ownership and borrowing patterns, async Rust with tokio, web frameworks (Axum, Actix-web), WebAssembly, error handling, and performance-critical systems programming.

Capabilities

Ownership & Borrowing

  • Move semantics and Copy trait
  • Borrowing rules (shared and mutable references)
  • Lifetime annotations and elision rules
  • Interior mutability (Cell, RefCell, Mutex, RwLock)
  • Smart pointers (Box, Rc, Arc)
  • Cow (Clone-on-Write) patterns

Async Rust

  • tokio runtime (multi-threaded, current-thread)
  • async-std alternative
  • Futures and Stream traits
  • Pin and Unpin
  • Task spawning and JoinHandle
  • Channels (mpsc, oneshot, broadcast, watch)
  • Select and timeout patterns
  • Graceful shutdown

Web Frameworks

  • Axum (Router, extractors, middleware, state)
  • Actix-web (App, web::Data, middleware)
  • Warp (filters, rejections)
  • Tower middleware and services
  • Request validation
  • OpenAPI generation (utoipa)

Error Handling

  • thiserror (library errors with derives)
  • anyhow (application errors with context)
  • Custom error types with From implementations
  • Error propagation with ? operator
  • Result and Option combinators

Serialization

  • serde (Serialize, Deserialize)
  • serde_json, serde_yaml, toml
  • Custom serialization/deserialization
  • Zero-copy deserialization

WebAssembly

  • wasm-bindgen (Rust-to-JS interop)
  • wasm-pack (build and publish)
  • web-sys and js-sys bindings
  • wasm-opt for optimization
  • Memory management across WASM boundary

Performance

  • Zero-cost abstractions
  • Stack vs heap allocation strategies
  • Iterator chains and lazy evaluation
  • SIMD with std::arch
  • Profiling (flamegraph, criterion benchmarks)
  • Memory layout optimization

Cargo & Tooling

  • Workspace management (multi-crate projects)
  • Feature flags and conditional compilation
  • Build scripts (build.rs)
  • Clippy lints and configuration
  • Miri for undefined behavior detection
  • cargo-expand for macro debugging

Read the full file on GitHub · 487 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. 7d ago First seen · 487 lines · 78 tokens per session scan A d32a726cc10f

Subscribe to this mod's changes

rust-expert is an agent published in the GitHub repository travisjneuman/.claude (97 stars, last pushed 5d ago), licensed MIT. It adds 78 tokens to every session and 3,064 once invoked, about $0.0004 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-architect

Rust + Axum + Tokio architecture specialist. Validates handler/service/repository layering, typed AppError with IntoResponse, State/Extension extraction, and async safety. Dispatch when touching route handlers, services, repositories, or error types.

onlygian/G-Forge · 51 tokens

elixir-pro

Write idiomatic Elixir code with OTP patterns, supervision trees, and Phoenix LiveView. Masters concurrency, fault tolerance, and distributed systems. Use PROACTIVELY for Elixir refactoring, OTP design, or complex BEAM optimizations.

HermeticOrmus/LibreUIUX-Claude-Code · 53 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.

wshobson/agents · 56 tokens

scout

Use when mapping a codebase area or auditing dependencies. Dispatched by the map-codebase and audit-dependencies skills. Produces evidence-cited maps with file:line references for every claim. Context: A teammate needs to know how the auth flow works. user: "Map the auth flow for me." assistant: "Dispatching the scout…

duthaho/claudekit · 148 tokens

backend-expert-csk

Senior .NET backend expert. Applies the project's backend-pattern skill (devarch-module = MediatR CQRS / IResult / AOP by default; a project may declare its own). Use proactively — owns server behaviour: endpoints, handlers, validators, controllers, business rules, integrations. Any request about it is yours whatever…

byerlikaya/claude-starter-kit · 78 tokens

dnp-api-scaffolder

🔧 Scaffolds API controllers or minimal API endpoints with DTOs, validation, DI registration, and OpenAPI attributes.

zdanovichnick/dotnet-pilot · 32 tokens