rust-build-resolver

rust-build-resolver is an agent for coding agents from hmj1026/dhpk. It costs 122 tokens per session (1,132 once invoked), scanned A, original, MIT.

A Rust and Cargo build-fixing assistant. Rust is a programming language, and Cargo is its tool for building projects, running tests, checking code, and resolving dependencies.

In plain words
What is it for?
Use it when cargo build, cargo test, cargo clippy, or dependency resolution fails because of types, ownership, lifetimes, traits, asynchronous tasks, macros, or Cargo.toml version conflicts.
Why use it?
It helps identify the root cause of compiler errors, test-build failures, code checks, and conflicting package versions without hiding the problem or making unnecessary changes.

Agent

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the dhpk plugin — 19 commands, 36 agents shipped together

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.

agentmods
npx agentmods add agents/hmj1026/dhpk/rust-build-resolver
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Or install dhpk, the plugin that ships this one along with the rest of its 19 commands, 36 agents.

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-build-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/hmj1026/dhpk/rust-build-resolver.svg)](https://agentmods.dev/agents/hmj1026/dhpk/rust-build-resolver)
Your own site
<a href="https://agentmods.dev/agents/hmj1026/dhpk/rust-build-resolver"><img src="https://agentmods.dev/badge/agents/hmj1026/dhpk/rust-build-resolver.svg" alt="Measured on agentmods" height="20"></a>
Per session 122 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00122 $0.01132
Opus 5 $0.00061 $0.00566
Sonnet 5 $0.00024 $0.00226
Haiku 4.5 $0.00012 $0.00113

Measured 3d ago against content hash 4299d670d531, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rust-build-resolver 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 3d 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/rust-build-resolver.md · 86 lines

How it starts

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

Rust Build Resolver

Get a broken Cargo build green with surgical changes. rustc's diagnostics are precise — read the error and its help: line, fix the root cause, re-run, repeat. Never paper over a borrow / lifetime error with a stray .clone() or unsafe.

Before a fix that changes a signature or a public name, gauge its blast radius with gitnexus_impact (or cx references --name X) — optional tools, fall back to Grep when absent. See ${CLAUDE_PLUGIN_ROOT}/rules/tool-routing.md.

Build unit: a Cargo.tomlcargo build / cargo test. Use cargo build --message-format=short 2>&1 for a dense error list, then drill into one error at a time with the full output.

When NOT

  • Python ruff / mypy / pytest toolchain failures → python-build-resolver
  • Swift / Xcode / SwiftPM toolchain failures → swift-build-resolver

Diagnose

cargo build 2>&1 | head -60
cargo clippy --all-targets 2>&1 | head -40
cargo test --no-run 2>&1 | head -40     # compile tests without running them
cargo tree -d 2>&1 | head -40           # duplicate / conflicting deps
rustc --version; cargo --version
sed -n '1,60p' Cargo.toml               # deps, edition, features

Error -> likely cause -> fix

rustc error (substring) Cause Surgical fix
cannot find type/value ... in this scope Missing use / typo Add the use path / fix the name
cannot borrow ... as mutable Aliasing conflict Narrow the borrow scope, split borrows, or restructure ownership
borrowed value does not live long enough Lifetime too short Extend the owner's scope, or store an owned value — not a leaked 'static
the trait bound ... is not satisfied Missing impl / bound Add the bound, derive, or impl the trait honestly
... cannot be sent between threads safely (Send / Sync) Non-Send across thread / task Use Arc / Mutex correctly, or keep the value on one task — not unsafe impl Send
future cannot be sent between threads safely Non-Send held across .await Drop the guard before .await, or scope it in a { } block
mismatched types Type mismatch Fix the value / signature; avoid blanket as casts that truncate
no method named ... found Trait not in scope use the trait, or fix the receiver type
unresolved import / version conflict Cargo.toml mismatch Align / relax the version, dedupe via cargo update -p <crate>

Read the full file on GitHub · 86 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. 3d ago First seen · 86 lines · 122 tokens per session scan A 4299d670d531

Subscribe to this mod's changes

rust-build-resolver is an agent published in the GitHub repository hmj1026/dhpk (2 stars, last pushed 4d ago), licensed MIT. It adds 122 tokens to every session and 1,132 once invoked, about $0.0006 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-08-31.

Related

Other agents, from other repositories

spec-compliance-reviewer

Reviews a Wave's implementation against requirements.md and tasks.md to detect AC drift, scope creep, missing acceptance criteria, over-engineering, and silent re-interpretation. Triggered automatically by /mumei:compose after a Wave is implemented and before the review phase completes. Does NOT review code quality…

iroha924/mumei · 78 tokens

issue-validator

Re-validates a single finding produced by another reviewer with fresh context. Returns valid / invalid / unsure. Triggered by /mumei:compose after the 3 reviewers complete (spec-compliance / security / adversarial) — invoked once per finding in parallel for severity=HIGH/CRITICAL findings. Filters false positives…

iroha924/mumei · 74 tokens

memory-curator

Independent evaluator that scores a candidate memory entry from a reviewer agent against a 7-axis rubric (generality, recurrence, longevity, coveragegap, actionability, density, confidence) and decides ADD / UPDATE / SKIP. Triggered by /mumei:compose Phase 5 Stage 6 and /mumei:peruse after each review-pipeline…

iroha924/mumei · 111 tokens

bash-script-reviewer

Reviews the quality of the mumei plugin's hooks/.sh and hooks/lib/.sh. Checks shellcheck convention compliance, the KISS principle, error handling, consistent mumei prefixing, ${CLAUDEPLUGINROOT} usage, jq null safety, BSD awk compatibility, and the stdin/stdout/stderr separation principle. Use on newly added or…

iroha924/mumei · 119 tokens

architect

Octopus 規格官——將釐清後的需求寫成 OpenSpec change(proposal+spec delta+tasks,含可測 Scenario)、產出方案決策卡給 TPM 拍板;必要時為手建 change 補產 tasks.md。.

SatoruoGojoo/octopus · 58 tokens

builder

Octopus 實作官——從 Locked change 與 tasks 實作 code+測試,每完成一條 task 出一則 task 回報。純執行層:只做被指派的、回報做過的;一律在 feature branch 工作,絕不碰主幹。.

SatoruoGojoo/octopus · 69 tokens