seqair: Agent for Claude Code

.agents/agents/rust-refactor.md

rust-refactor is an agent for Claude Code from Softleif/seqair. It costs 34 tokens per session (460 once invoked), scanned A, original, Apache-2.0.

An agent for making targeted changes and refactoring Rust code. Rust is a programming language; the agent reads surrounding code, updates affected references and tests, then checks or tests the result.

In plain words
What is it for?
Use it for a specific Rust edit or refactoring when the required change is already clearly defined.
Why use it?
It keeps a narrowly defined Rust change from leaving broken imports, callers, types, or tests behind.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions CLAUDE.md; installed under .agents/ (shared by several agents).

This is Softleif/seqair's own configuration. It tells Claude Code how to work on seqair itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything seqair configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/Softleif/seqair/main/.agents/agents/rust-refactor.md
Clone the repo
git clone --depth 1 https://github.com/Softleif/seqair

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/softleif/seqair/rust-refactor/github.svg)](https://agentmods.dev/agents/softleif/seqair/rust-refactor)
Your own site
<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.

agentmods 80×15 button for rust-refactor

Your own site · 80×15
<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>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 460 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.00034 $0.00460
Opus 5.5 $0.00014 $0.00184
Sonnet 5.5 $0.00007 $0.00092
Haiku 4.5 $0.00003 $0.00046

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

Security

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.

.agents/agents/rust-refactor.md · 38 lines

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

  1. Understand the request — read the task description carefully. If it references specific files, types, or functions, locate them first.
  2. Read before editing — always read the relevant code before making changes. Understand the surrounding context, callers, and dependents.
  3. Make the change — execute the refactoring precisely. Update all call sites, imports, type references, and tests affected by the change.
  4. Verify — run cargo check (or cargo test if the task involves test changes) to confirm the code compiles and tests pass.
  5. 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_eyre for error handling, no unwrap()
    • No mod.rs files — use src/module_name.rs
    • No unnecessary comments or docstrings on unchanged code
    • No indexing operations — use .get() returning Option
  • 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_all in the Edit tool when renaming identifiers across a file
  • Run cargo check after changes to catch compilation errors early
  • If cargo check fails, fix the errors — don't leave broken code
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 · 38 lines · 34 tokens per session scan A 8875ebd2f93b

Subscribe to this mod's changes

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.

Related

Other agents, from other repositories

stellar-contracts

Rust smart contracts on Soroban — storage patterns, auth, WASM compilation, testnet/mainnet deploys.

rylsherdamz-rgb/stellar-forge · 26 tokens

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.

franzos/claude-plugins · 59 tokens

ciel-systems-guild

CIEL's elite systems engineering guild. Specializes in Rust, C++, Go, Elixir, and high-performance architecture.

jxoesneon/Ciel · 32 tokens

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.

gertsylvest/meta-team · 75 tokens

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…

bug-ops/claude-plugins · 137 tokens

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…

bug-ops/claude-plugins · 79 tokens