npx claudepluginhub enoqv/rust-ai-leanSpend fewer tokens on Rust: working rust-analyzer LSP, quiet cargo, outline/crate-src/diag tools, and a doctor that checks it all
Spend fewer tokens when an AI coding agent works on Rust. rust-ai-lean is a Claude Code plugin plus a small CLI:
rust-toolchain.toml work without per-toolchain setup.CARGO_TERM_QUIET=true for every session: no Compiling lines, dots instead of one line per passing test, failures in full.rust-ai-lean outline prints signatures with line ranges, crate-src finds a dependency's source for the exact locked version, and diag prints compiler errors in full with warnings one line each./rust-ai-lean:doctor checks all of the above and offers each fix.Output of scripts/bench.sh (characters the agent would read):
| Scenario | Variant | Output | vs. baseline |
|---|---|---|---|
cargo test, 300 pass + 1 fail | default | 8972 chars | 100% |
CARGO_TERM_QUIET=true | 836 chars | 9% | |
cargo check, 2 errors + 25 warnings | default | 6477 chars | 100% |
--message-format=short (drops help/notes) | 3615 chars | 55% | |
rust-ai-lean diag check | 2440 chars | 37% | |
Read src/outline.rs | cat -n | 17247 chars | 100% |
rust-ai-lean outline | 1302 chars | 7% |
diag keeps every error's help: and note: lines; --message-format=short does not.
Requirements: Linux or macOS, rustup (recommended) or rust-analyzer on PATH, and cargo.
claude plugin marketplace add enoqv/rust-ai-lean
claude plugin install rust-ai-lean@rust-ai-lean
Start a new Claude Code session in a Rust project and run:
/rust-ai-lean:doctor
Doctor reports what is missing and asks before running each fix. Typical fixes:
rustup component add rust-analyzer --toolchain stablecargo install --git https://github.com/enoqv/rust-ai-lean --tag v0.1.0 --lockedclaude plugin disable rust-analyzer-lsp@claude-plugins-official (otherwise two rust-analyzer servers are registered for .rs)rust-ai-lean outline src/ # signatures + line ranges, no bodies
rust-ai-lean outline --docs src/lib.rs
rust-ai-lean crate-src serde # exact locked version, features, source dir
rust-ai-lean crate-src serde --path-only
rust-ai-lean diag check -p my-crate # errors in full, warnings one line each
rust-ai-lean diag clippy --full-warnings -- --all-targets
CARGO_TERM_QUIET=false in the environment you start Claude Code from. The plugin never overrides a value you set.cargo.targetDir = true (its own target subdirectory, so it never blocks your builds) and checkOnSave = false (no workspace-wide cargo check after every edit).A project's rust-analyzer.toml does not override these. To change them, or to add settings such as numThreads, install the plugin from a local clone (claude plugin marketplace add /path/to/rust-ai-lean) and edit initializationOptions in plugin/.claude-plugin/plugin.json.
outline does not see items generated by macros.claude plugin uninstall rust-ai-lean@rust-ai-lean
claude plugin marketplace remove rust-ai-lean
cargo uninstall rust-ai-lean
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.