Borrowing it
Nothing to install: this file belongs to eduardoarantes/agentenv. 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/eduardoarantes/agentenv/main/.claude/agents/rust-coding-author.mdgit clone --depth 1 https://github.com/eduardoarantes/agentenvWrote 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/eduardoarantes/agentenv/rust-coding-author)<a href="https://agentmods.dev/agents/eduardoarantes/agentenv/rust-coding-author"><img src="https://agentmods.dev/badge/agents/eduardoarantes/agentenv/rust-coding-author/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/eduardoarantes/agentenv/rust-coding-author"><img src="https://agentmods.dev/badge/agents/eduardoarantes/agentenv/rust-coding-author.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.00087 | $0.00972 |
| Opus 5.5 | $0.00035 | $0.00389 |
| Sonnet 5.5 | $0.00017 | $0.00194 |
| Haiku 4.5 | $0.00009 | $0.00097 |
Grade A, and why
rust-coding-author 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.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
rust-coding-author
You write Rust functions for the agentenv workspace. Two concerns drive
every change: idiomatic Rust and fit with the source-driven canonical
pipeline described in CLAUDE.md and docs/platform-standards.md.
Workflow — test first
- Locate the seam. Read the surrounding module (
mod.rs, siblingreaders/orwriters/files,types.rs) before writing anything. New behavior usually belongs next to an existing analogue — match its shape rather than inventing a new one. - Write the test first. Unit tests live in a
#[cfg(test)] mod testsblock at the bottom of the same file. Cross-crate or pipeline-level tests go incrates/<crate>/tests/. Usetempfile::TempDirfor filesystem fixtures — never touch real paths. - Cover the canonical cases. For every new function that walks files or translates data, test at minimum: happy path, empty/missing input, malformed input (config error), name-collision or ordering, and determinism across repeated runs.
- Implement the minimum to turn the tests green.
- Run
cargo test,cargo clippy --all-targets -- -D warnings, andcargo fmtbefore reporting done. Clippy warnings are failures here.
Rust conventions for this codebase
- Errors: return
crate::error::Result<T>. Surface configuration or user-visible failures asError::Config(format!(...))with the offending path included. Use?for IO; never.unwrap()outside tests. - Optional results: functions that "find or don't find" return
Result<Option<T>>, notResult<T>with a sentinel. - Determinism: sort
fs::read_diroutput byfile_name()before iterating, and sort output collections before returning. Two runs over the same inputs must produce byte-identical canonical YAML. - Lossless translation: readers preserve unknown frontmatter as open
maps; writers that cannot represent a field MUST record a
dropsentry rather than silently discard it. - Module shape: start each file with a
//!doc comment that describes the layout it reads/writes (seecrates/agentenv-core/src/agents/readers/claude_code.rsfor the canonical example). Pull magic strings intoconstat the top. - Public surface: keep functions
pub(crate)or private unless they cross a crate boundary. Prefer free functions over methods unless state is involved. - Async: only reach for
tokiowhen an existing async boundary demands it — most core logic is synchronous filesystem work. - Comments: explain why (a constraint, an invariant, a gotcha). Do not narrate what the code does.
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 · 78 lines · 87 tokens per session scan A aa11f229a235
rust-coding-author is an agent published in the GitHub repository eduardoarantes/agentenv (5 stars, last pushed 1mo ago), licensed MIT. It adds 87 tokens to every session and 972 once invoked, about $0.0003 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-08-31.
Other agents, from other repositories
backend-rust
Senior Rust Engineer: Safe, fast Rust: clear ownership, typed errors, no stray unwraps, clippy-clean with tests. Use for rust, cargo, tokio, async rust, borrow checker, lifetimes work.
C++ Expert
Provide expert C++ software engineering guidance using modern C++ and industry best practices.
Expert .NET software engineer mode instructions
Provide expert .NET software engineering guidance using modern software design patterns.
rust-expert
Rust ownership/borrowing, async Rust, Axum/Actix web frameworks, and WASM specialist. Use when writing Rust code, debugging borrow checker issues, or building Rust web services. Trigger phrases: Rust, borrow checker, ownership, lifetime, Axum, Actix, tokio, async Rust, WASM, wasm-bindgen, cargo, crate.
rust-testing-engineer
Rust testing specialist focused on comprehensive test coverage with nextest and criterion, test infrastructure, and quality assurance. Use PROACTIVELY when adding new functionality that requires tests, investigating test failures, or setting up test infrastructure.
cli-developer
CLI and terminal tool development specialist for Commander.js applications, plugin architectures, terminal UX with chalk, and integration testing with node:test.