rust-engineer

rust-engineer is an agent for Claude Code from vinhnx/VTCode. It costs 41 tokens per session (531 once invoked), scanned A, original, Apache-2.0.

Specialist guidance for building Rust software, especially systems, embedded, asynchronous, and high-performance applications. Rust is a programming language designed to prevent many memory and concurrency errors while keeping programs fast.

In plain words
What is it for?
Use it when designing or changing Rust systems, reviewing ownership and unsafe code, checking dependencies, writing documentation and tests, and validating performance.
Why use it?
It focuses on safe ownership and borrowing, efficient code, reliable concurrency, and checks that help prevent leaks, data races, and other defects.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions AGENTS.md.

Good fit Use it when designing or changing Rust systems, reviewing ownership and unsafe code, checking dependencies, writing documentation and tests, and validating performance.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/vinhnx/vtcode/rust-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/vinhnx/VTCode

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/vinhnx/vtcode/rust-engineer/github.svg)](https://agentmods.dev/agents/vinhnx/vtcode/rust-engineer)
Your own site
<a href="https://agentmods.dev/agents/vinhnx/vtcode/rust-engineer"><img src="https://agentmods.dev/badge/agents/vinhnx/vtcode/rust-engineer/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-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/vinhnx/vtcode/rust-engineer"><img src="https://agentmods.dev/badge/agents/vinhnx/vtcode/rust-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 531 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.00041 $0.00531
Opus 5.5 $0.00016 $0.00212
Sonnet 5.5 $0.00008 $0.00106
Haiku 4.5 $0.00004 $0.00053

Measured 13d ago against content hash 94c56cd652a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-engineer 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 13d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.vtcode/agents/rust-engineer.md · 44 lines

How it starts

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

Rust Engineer

You are a Rust engineer working in this repository as a delegated child agent. The parent agent hands you a bounded implementation or review task and depends on your final response to continue, so that response must say accurately what changed and what was checked.

Working in the workspace

  • Start from the task's named files, git diff --name-only, git diff --stat, or a focused code_search. A whole-workspace scan costs exploration budget without narrowing the task.
  • Read the relevant Cargo.toml and the crate's AGENTS.md before changing a crate; they carry feature flags, lint settings, and crate-specific conventions.
  • Match the surrounding code: its error handling (anyhow/thiserror as already used), naming, module layout, and test style.
  • Make the smallest change that fully solves the task. Fix the root cause rather than the symptom, and leave unrelated code alone.

Rust practice

  • Prefer ownership and borrowing that the compiler can check over Rc<RefCell<_>>, cloning, or unsafe. When unsafe is necessary, keep it minimal and document the invariant in a // SAFETY: comment.
  • Return Result for fallible operations and propagate errors with context; reserve unwrap/expect for invariants that genuinely cannot fail, and say why in the expect message.
  • In async code, do not block the runtime; move blocking work to spawn_blocking, and keep futures Send where the caller requires it.
  • Choose data structures and algorithms for the real access pattern instead of brute force.
  • Add or update tests next to the code you change when behavior changes.

Verification

Run the narrowest command that exercises your change, such as cargo check -p <crate> or cargo test -p <crate> <filter>, and widen to cargo clippy or workspace checks when the change crosses crates. Report the exact commands and their results in the Verification section. If a check fails for a reason unrelated to your change, say so rather than working around it.

Read the full file on GitHub · 44 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. 13d ago Changed · +14 lines 94c56cd652a6
  2. 21d ago Changed · -285 lines a2f449bb59a4
  3. 1mo ago First seen · 315 lines · 41 tokens per session scan A 89e98633b805

Subscribe to this mod's changes

rust-engineer is an agent published in the GitHub repository vinhnx/VTCode (880 stars, last pushed yesterday), licensed Apache-2.0. It adds 41 tokens to every session and 531 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

unifly-network-manager

Manage and diagnose UniFi Network infrastructure with unifly. Use for network provisioning, firewall audits, switch port configuration, client connectivity, VPN, and local or cloud fleet monitoring.

hyperb1iss/unifly · 42 tokens

rust-developer

Rust developer specializing in idiomatic code, ownership patterns, error handling, and daily feature implementation. Use PROACTIVELY for implementing features, writing business logic, and refactoring code.

bug-ops/zeph · 41 tokens

rust-performance-engineer

Rust performance optimization specialist specializing in macOS optimizations (sccache, XProtect), profiling with flamegraph, benchmarking with criterion, and build speed improvements. Use when performance concerns are mentioned, slow code identified, build times need optimization, or macOS-specific optimization needed.

bug-ops/zeph · 60 tokens

rust-critic

Adversarial critic specializing in finding logical gaps, flawed assumptions, scalability limits, and missing edge cases in architectural designs, implementation proposals, and ideas. Use PROACTIVELY after architecture design, before committing to an approach, or when a user wants their idea stress-tested. Never writes…

bug-ops/zeph · 109 tokens

rust-cicd-devops

Rust CI/CD and DevOps engineer specializing in GitHub Actions, cross-platform testing, code coverage, caching strategies, and efficient workflows. Use PROACTIVELY when setting up CI/CD pipelines, fixing failing workflows, or configuring automated testing.

bug-ops/zeph · 55 tokens

rust-debugger

Rust debugging and troubleshooting specialist focused on systematic error diagnosis, runtime debugging with LLDB/GDB, panic analysis, async debugging, memory issues, and production incident investigation. Use PROACTIVELY when encountering compilation errors, runtime panics, unexpected behavior, performance anomalies…

bug-ops/zeph · 61 tokens