Borrowing it
Nothing to install: this file belongs to bug-ops/mcpls. 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/bug-ops/mcpls/main/.github/instructions/rust-config.instructions.mdgit clone --depth 1 https://github.com/bug-ops/mcplsWrote 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/instructions/bug-ops/mcpls/rust-config)<a href="https://agentmods.dev/instructions/bug-ops/mcpls/rust-config"><img src="https://agentmods.dev/badge/instructions/bug-ops/mcpls/rust-config/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/instructions/bug-ops/mcpls/rust-config"><img src="https://agentmods.dev/badge/instructions/bug-ops/mcpls/rust-config.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.00375 | $0.00375 |
| Opus 5.5 | $0.00150 | $0.00150 |
| Sonnet 5.5 | $0.00075 | $0.00075 |
| Haiku 4.5 | $0.00038 | $0.00038 |
Grade A, and why
mcpls rust-config.instructions.md 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 2mo 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.
What it actually says
Type safety and idiomatic config
Config option enums must derive Default with #[default] on the intended default
variant rather than implementing Default manually. This keeps the default co-located
with the type definition and is less error-prone.
Boolean config fields that represent a choice between more than two states should be
enum, not bool. A bool cannot be extended without a breaking change; an enum can
gain variants under #[non_exhaustive].
New #[serde(default)] fields must have a test that deserialises a config with the
field omitted and asserts the default value. Cover both JSON and TOML — parsers can
behave differently on edge cases like empty strings and absent vs. null keys.
Enum config options must have a round-trip test for every variant. A typo in
#[serde(rename_all = "...")] silently changes the on-disk format and breaks existing
user configs without a compile error.
MSRV and dependencies
When introducing a new dependency, check whether the functionality is already available
in std for the current MSRV. Prefer std over external crates to reduce
compile time and supply-chain surface.
New crates require a license check in the same PR. Add the license to deny.toml
before merging — cargo deny check licenses fails fast and blocks the pipeline.
If a new stable Rust API (e.g. OnceLock at 1.70 replacing once_cell::sync::OnceCell)
makes an existing dependency redundant, suggest removing the dependency and bumping
rust-version instead. Document the bump in CHANGELOG.
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.
- 2mo ago First seen · 35 lines · 375 tokens per session scan A 58a29e09fa8c
mcpls rust-config.instructions.md is an instructions file published in the GitHub repository bug-ops/mcpls (81 stars, last pushed 2d ago), licensed Apache-2.0. It adds 375 tokens to every session, about $0.0015 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.
mcpls rust-config.instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcpls rust-config.instructions.mdbug-ops/mcpls | Instructions file | 81 | 2d ago | Apache-2.0 | A | 375 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |