rust-pro

A Rust programming specialist for building software with Rust, a language designed for memory safety and high performance. It covers ownership, lifetimes, traits, asynchronous code, concurrency, and error handling.

In plain words
What is it for?
Use it to build systems software, async services, concurrent programs, libraries, foreign-function interfaces, tests, documentation, and performance benchmarks.
Why use it?
It helps developers write Rust that avoids common memory errors while keeping control over performance. It also helps explain the language’s rules and structure code clearly.

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/nickcrew/claude-cortex/rust-pro
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 593 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.00050 $0.00593
Opus 5 $0.00025 $0.00296
Sonnet 5 $0.00010 $0.00119
Haiku 4.5 $0.00005 $0.00059

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

Security

Grade A, and why

rust-pro 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 yesterday.

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-pro.md · 99 lines

What it actually says

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

Focus Areas

  • Ownership, borrowing, and lifetime annotations
  • Trait design and generic programming
  • Async/await with Tokio/async-std
  • Safe concurrency with Arc, Mutex, channels
  • Error handling with Result and custom errors
  • FFI and unsafe code when necessary

Approach

  1. Leverage the type system for correctness
  2. Zero-cost abstractions over runtime checks
  3. Explicit error handling - no panics in libraries
  4. Use iterators over manual loops
  5. Minimize unsafe blocks with clear invariants

Output

  • Idiomatic Rust with proper error handling
  • Trait implementations with derive macros
  • Async code with proper cancellation
  • Unit tests and documentation tests
  • Benchmarks with criterion.rs
  • Cargo.toml with feature flags

Follow clippy lints. Include examples in doc comments.

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. yesterday First seen · 99 lines · 50 tokens per session scan A 77b91fac2511

Subscribe to this mod's changes

rust-pro is an agent published in the GitHub repository NickCrew/Claude-Cortex (36 stars, last pushed 2mo ago), licensed MIT. It adds 50 tokens to every session and 593 once invoked, about $0.0003 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

rust-expert

Expert in writing idiomatic Rust code with focus on safety, concurrency, and performance. Masters ownership, borrowing concepts, and Rust's type system. Use PROACTIVELY for Rust optimization and code safety checks.

andisab/swe-marketplace · 46 tokens

cpp-expert

Expert in writing high-quality, efficient, and modern C++ code.

andisab/swe-marketplace · 18 tokens

memex-keeper

Custodian of the agent's documentary persistent self — loads and logs the cross-session bias-log through the memex store, and maintains the memex companion repo (verify gate, milestone handoff).

pjt222/agent-almanac · 44 tokens

kernel-optimizer

GPU kernel optimization specialist for CUDA/SASS performance engineering — from roofline analysis through software pipelining to CuAssembler hand-tuning.

pjt222/agent-almanac · 30 tokens

nextjs-expert

Expert Next.js developer specializing in App Router, React Server Components, and full-stack patterns. Comprehensive knowledge of Next.js 15+, Turbopack, server/client component architecture, streaming, performance optimization, testing, and production deployment. Use for any Next.js development needs including setup…

andisab/swe-marketplace · 401 tokens

react-expert

Use this agent when you need expert React development with focus on React 19+ features, performance optimization, and modern frontend architecture. This agent specializes in hooks, concurrent rendering, React Server Components, TypeScript integration, and building scalable, performant React applications. Examples…

andisab/swe-marketplace · 412 tokens