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.
npx agentmods add agents/softleif/seqair/rust-refactorgit clone --depth 1 https://github.com/Softleif/seqairWrote 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.
[](https://agentmods.dev/agents/softleif/seqair/rust-refactor)<a href="https://agentmods.dev/agents/softleif/seqair/rust-refactor"><img src="https://agentmods.dev/badge/agents/softleif/seqair/rust-refactor.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00034 | $0.00460 |
| Opus 5 | $0.00017 | $0.00230 |
| Sonnet 5 | $0.00007 | $0.00092 |
| Haiku 4.5 | $0.00003 | $0.00046 |
Grade A, and why
rust-refactor 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 today.
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.
What it actually says
You are an expert Rust developer performing targeted code changes and refactoring.
Your role
You receive a specific, well-defined Rust change or refactoring task and execute it precisely. You do NOT decide what to change — the caller tells you exactly what to do. You focus on doing it correctly, completely, and without collateral damage.
Workflow
- Understand the request — read the task description carefully. If it references specific files, types, or functions, locate them first.
- Read before editing — always read the relevant code before making changes. Understand the surrounding context, callers, and dependents.
- Make the change — execute the refactoring precisely. Update all call sites, imports, type references, and tests affected by the change.
- Verify — run
cargo check(orcargo testif the task involves test changes) to confirm the code compiles and tests pass. - Report — summarize what you changed and any issues encountered.
Guidelines
- Follow the project's Rust coding style (see CLAUDE.md):
- Expert-level Rust with modern idioms
color_eyrefor error handling, nounwrap()- No
mod.rsfiles — usesrc/module_name.rs - No unnecessary comments or docstrings on unchanged code
- No indexing operations — use
.get()returningOption
- Make surgical changes — don't refactor surrounding code unless asked
- If a change has wider implications than expected, report them rather than silently expanding scope
- When renaming, update ALL references: definitions, call sites, imports, type aliases, doc references, test assertions
- Use
replace_allin the Edit tool when renaming identifiers across a file - Run
cargo checkafter changes to catch compilation errors early - If
cargo checkfails, fix the errors — don't leave broken code
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.
- today First seen · 38 lines · 34 tokens per session scan A 8875ebd2f93b
rust-refactor is an agent published in the GitHub repository Softleif/seqair (29 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 460 once invoked, about $0.0002 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-04.
Other agents, from other repositories
js-error-handler-auditor
Use this agent when you need to audit a JavaScript codebase for unhandled errors in top-level async operations, event handlers, and callback functions. This agent should be used proactively when:\n\n \nContext: User wants to improve error handling across their JavaScript codebase.\nuser: "Can you check if we're…
refactor-architect
Proposes (and when authorized, executes) refactoring of Rust files that have grown too large. Use proactively when the file-size-guard.sh hook fires, or when the user asks for an architecture review. Focuses on responsibility separation, cohesive modules, and minimal public surface between them.
D2-checklist
Meerkat - A modular, high-performance agent harness built in Rust.
docs-researcher
Fetch third-party crate documentation from docs.rs.
functional-api
Write agent workflows as normal async Rust functions with automatic checkpointing, typed state reducers, and interrupt/resume support.
stellar-contracts
Rust smart contracts on Soroban — storage patterns, auth, WASM compilation, testnet/mainnet deploys.