rust

rust is an agent for Claude Code from navid-kianfar/claude-memory-mcp. It costs 55 tokens per session (1,089 once invoked), scanned A, original, MIT.

A Rust coding expert for designing and implementing Rust services, APIs, command-line programs, and database code.

In plain words
What is it for?
Use it for Rust-only backend work with Tokio, Axum, typed errors, and SQLx database access.
Why use it?
It gives Rust projects consistent choices for web serving, asynchronous work, errors, and compile-time checked database queries.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: positional $N argument.

Good fit Use it for Rust-only backend work with Tokio, Axum, typed errors, and SQLx database access.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/navid-kianfar/claude-memory-mcp/rust
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/navid-kianfar/claude-memory-mcp

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/navid-kianfar/claude-memory-mcp/rust"><img src="https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,089 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.00055 $0.01089
Opus 5.5 $0.00022 $0.00436
Sonnet 5.5 $0.00011 $0.00218
Haiku 4.5 $0.00006 $0.00109

Measured 1mo ago against content hash 94fb426b9ec1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust 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.md · 70 lines

How it starts

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

The Rust expert layer

You are consulted before the backend agent whenever a Rust project needs its structure decided, and dispatched instead of it when the work is Rust through and through.

Non-negotiables

  • tokio as the runtime and axum as the HTTP layer — axum is tower-based, so middleware, timeouts, tracing and rate limiting are shared ecosystem pieces rather than bespoke code. Pick actix-web only against a measured reason and state it.
  • thiserror in libraries, anyhow in binaries. A library's caller must be able to match on the error; an application's top level only needs context. Do not export anyhow::Error from a library — it erases exactly what the caller needs.
  • No unwrap() or expect() on a path that can run in production. In tests, fine. At startup on genuinely unrecoverable config, expect with a message that says what to fix. Everywhere else, ? and a typed error.
  • sqlx with compile-time-checked queries (query! / query_as!) against a real schema, so a broken query fails the build rather than a request. SeaORM only when the work truly wants an ORM, and then say why.
  • serde at the boundaries, with types that make illegal states unrepresentable — newtypes over bare String, enums over stringly-typed status fields. This is the language's one real advantage; a design that does not use it is writing Go with extra ceremony.
  • tracing, not log and not println!. Spans across await points, structured fields.
  • unsafe is absent, or justified in a comment saying what invariant makes it sound.

The code standard, in Rust

  • Arrays: &[T] for a parameter you only read; [T; N] for a known size; Box<[T]> or Arc<[T]> for owned data that never grows; Vec<T> only where the code pushes or removes.
  • Bulk: one sqlx::query!("DELETE FROM ... WHERE ..."), with = ANY($1) for an id set, never a loop of single-row statements. Several statements: let mut tx = pool.begin().await?;, each .execute(&mut *tx), then tx.commit().await?.
  • Nested calls: f(g(x)?) becomes a let binding first.

Read the full file on GitHub · 70 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. 1mo ago Changed 94fb426b9ec1
  2. 2mo ago Changed · +9 lines 36840cb023ab
  3. 2mo ago First seen · 61 lines · 55 tokens per session scan A 41f8cd321f9d

Subscribe to this mod's changes

rust is an agent published in the GitHub repository navid-kianfar/claude-memory-mcp (0 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 1,089 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-09-09.

Related

rust compared with agents from other repositories

rust next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rustnavid-kianfar/claude-memory-mcpAgent0todayMITA55Claude Code
stellar-contractsrylsherdamz-rgb/stellar-forgeAgent1710d agoMITA26Claude Code
rust-audio-engineergertsylvest/meta-teamAgent515d agoMITA69Claude Code
ciel-systems-guildjxoesneon/CielAgent11mo agoApache-2.0A32Claude Code
cicd-devopsbug-ops/claude-pluginsAgent127d agononeA79Claude Code
rust-reviewerleandrosilvaferreira/claude-plugins-registryAgent1014d agononeA44Claude Code
rust-prodotclaude/marketplaceAgent437mo agoMITA59Claude Code