Borrowing it
Nothing to install: this file belongs to Softleif/seqair. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Softleif/seqair/main/.agents/agents/rust-refactor.mdgit 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/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.
<a href="https://agentmods.dev/agents/softleif/seqair/rust-refactor"><img src="https://agentmods.dev/badge/agents/softleif/seqair/rust-refactor.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00034 | $0.00460 |
| Opus 5.5 | $0.00014 | $0.00184 |
| Sonnet 5.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 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.
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.
- 1mo ago First seen · 38 lines · 34 tokens per session scan A 8875ebd2f93b
rust-refactor is an agent published in the GitHub repository Softleif/seqair (31 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 460 once invoked, about $0.0001 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-04.
Other agents, from other repositories
stellar-contracts
Rust smart contracts on Soroban — storage patterns, auth, WASM compilation, testnet/mainnet deploys.
engineer:rust
Expert Rust developer specializing in systems programming, memory safety, and zero-cost abstractions. Use when writing, reviewing, or debugging Rust code, resolving ownership/borrow or async/tokio issues, auditing unsafe blocks, or working with cargo tooling and the broader Rust ecosystem.
ciel-systems-guild
CIEL's elite systems engineering guild. Specializes in Rust, C++, Go, Elixir, and high-performance architecture.
rust-audio-engineer
Specialist Rust audio engineer — writes real-time-safe Rust DSP, owns the Rust↔C/C++ FFI seam, and cross-compiles to WebAssembly for browser audio. Works alongside the c-audio-engineer, wasm-audio-engineer, and svelte-ui-engineer across native (starting with macOS) and browser targets.
testing-engineer
Testing specialist for Rust, TypeScript, and Luau/Lua projects focused on comprehensive test coverage, test infrastructure, and quality assurance. Applies the project's language rules from the stack profile. Use PROACTIVELY when adding new functionality that requires tests, investigating test failures, or setting up…
cicd-devops
CI/CD and DevOps engineer for Rust, TypeScript, and Luau/Lua projects, specializing in GitHub Actions, cross-platform testing, code coverage, caching strategies, release automation, and efficient workflows. Applies the project's language rules from the stack profile. Use PROACTIVELY when setting up CI/CD pipelines…