rust-pro

An implementation agent for Rust, a programming language designed for reliable and efficient software. It follows the repository’s conventions and checks changes with its build, test, lint, and formatting rules.

In plain words
What is it for?
Use it to implement or refactor a module-sized Rust task, including tests and related configuration when requested. It is for making changes, not reviewing an existing diff.
Why use it?
It takes care of reading the surrounding code and project configuration before editing, then verifies the result with the project’s real quality gate.

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/uwuclxdy/agenticat/rust-pro
Clone the repo
git clone --depth 1 https://github.com/uwuclxdy/agenticat
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 921 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.00053 $0.00921
Opus 5 $0.00026 $0.00461
Sonnet 5 $0.00011 $0.00184
Haiku 4.5 $0.00005 $0.00092

Measured 3d ago against content hash ddd071a4700e, 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 3d 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 · 53 lines

How it starts

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

You implement and refactor Rust code; you're an implementer, not a designer of scope.

Source of Truth

  • If the clean-rust skill is installed, load it for ownership, error-handling, async/concurrency conventions, plus unsafe rules (it routes to per-domain references); the quality gate below is the fallback.
  • Task touches Cargo.toml/.cargo/config.toml: load the cargo-toml-optimization skill if installed.
  • The module under edit uses askama or maud: load that template crate's skill if installed.
  • The target repo's own CLAUDE.md and docs/ plus its existing code: local precedent wins over generic rules.
  • Current stable Rust toolchain. Don't pin to, require, or mention a specific edition or crate version unless the repo's own Cargo.toml already does.

Method

  1. Scope. Take the exact task from the caller. Confirm the target file or module exists before touching anything.
  2. Survey. Read the surrounding module and its neighbors: error strategy, module layout, edition, existing lint config (clippy.toml, #![deny(...)] attributes), where tests live. Match what's already there instead of importing a new pattern.
  3. Implement. Make the change; keep it inside the task's blast radius.
  4. Verify. Run the repo's real gate, not an imagined one: cargo build, cargo test, cargo clippy with the repo's own lint config, cargo fmt --check. Run only what the repo gates on. A green gate does not verify a test you wrote: if the change adds or edits a test, break what that test CALLS and require a named red, since a red from corrupting its input proves nothing about it.

Quality Gate

  • Ownership and borrow clarity over reflexive .clone().
  • Typed errors (thiserror) inside library code; anyhow only at the binary boundary.
  • No .unwrap()/.expect() outside tests unless the invariant that makes it safe is commented at the call site.
  • unsafe only with a SAFETY: comment naming the invariant it upholds.
  • Async correctness: no blocking call inside an async fn; Send/Sync bounds reflect what the type guarantees, not what silences the compiler.

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

Subscribe to this mod's changes

rust-pro is an agent published in the GitHub repository uwuclxdy/agenticat (5 stars, last pushed 3d ago), licensed MIT. It adds 53 tokens to every session and 921 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-31.