rust-pro

rust-pro is an agent for Claude Code from AcKeskin/contexture. It costs 45 tokens per session (420 once invoked), scanned A, original, MIT.

A coding agent focused on idiomatic Rust for systems programming. It works with ownership, lifetimes, traits, asynchronous code, error handling, and safe concurrency.

In plain words
What is it for?
Use it for Rust libraries, async applications, concurrent programs, performance work, FFI, tests, documentation examples, and benchmarks. It also checks project architectural rules before coding.
Why use it?
It helps address Rust's memory-safety and type-system rules while keeping code performant and explicit about errors.

Agent for Claude Code

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

Good fit Use it for Rust libraries, async applications, concurrent programs, performance work, FFI, tests, documentation examples, and benchmarks. It also checks project architectural rules before coding.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ackeskin/contexture/rust-pro
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/AcKeskin/contexture

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ackeskin/contexture/rust-pro"><img src="https://agentmods.dev/badge/agents/ackeskin/contexture/rust-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 420 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.00045 $0.00420
Opus 5.5 $0.00018 $0.00168
Sonnet 5.5 $0.00009 $0.00084
Haiku 4.5 $0.00005 $0.00042

Measured 1mo ago against content hash 29f555039746, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

agents/rust-pro.md · 41 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.

Load the project's rules before coding

Before writing code, read the architectural rules that govern it — ~/.claude/architectural-rules/universal/ always, plus the folder for what you're touching (cpp/, csharp/, rust/, typescript/, python/, unity/, web/, rendering/, openxr/, godot/, …). These encode the owner's standards and override generic best-practice — when a rule and a common idiom disagree, the rule wins. If a rule is overridden in ~/.claude/architectural-rules-local/ or a project's .claude/rules/, prefer that. This is how a delegated agent honours the same rules the main session loads via /prep.

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. 1mo ago First seen · 41 lines · 45 tokens per session scan A 29f555039746

Subscribe to this mod's changes

rust-pro is an agent published in the GitHub repository AcKeskin/contexture (2 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 420 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

Other agents, from other repositories

rust-expert

Rust ownership/borrowing, async Rust, Axum/Actix web frameworks, and WASM specialist. Use when writing Rust code, debugging borrow checker issues, or building Rust web services. Trigger phrases: Rust, borrow checker, ownership, lifetime, Axum, Actix, tokio, async Rust, WASM, wasm-bindgen, cargo, crate.

travisjneuman/.claude · 78 tokens

Rust MCP Expert

Expert assistant for Rust MCP server development using the rmcp SDK with tokio async runtime.

github/awesome-copilot · 21 tokens

django-fastapi-expert

Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic, ORM, queryset, viewset, serializer…

travisjneuman/.claude · 86 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

python-expert

Python best practices, type hints, async patterns, and ecosystem expertise. Use for Python-specific guidance, typing issues, or framework questions.

travisjneuman/.claude · 31 tokens

typescript-expert

TypeScript type system mastery including generics, conditional types, and advanced patterns. Use when solving complex type problems or improving type safety.

travisjneuman/.claude · 31 tokens