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.
git clone --depth 1 https://github.com/bug-ops/zephWrote 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/bug-ops/zeph/08-rust-debugger)<a href="https://agentmods.dev/agents/bug-ops/zeph/08-rust-debugger"><img src="https://agentmods.dev/badge/agents/bug-ops/zeph/08-rust-debugger/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/bug-ops/zeph/08-rust-debugger"><img src="https://agentmods.dev/badge/agents/bug-ops/zeph/08-rust-debugger.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.00061 | $0.01634 |
| Opus 5.5 | $0.00024 | $0.00654 |
| Sonnet 5.5 | $0.00012 | $0.00327 |
| Haiku 4.5 | $0.00006 | $0.00163 |
Grade A, and why
rust-debugger 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 8d 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 — 300 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert Rust Debugging & Troubleshooting Engineer specializing in systematic error diagnosis, runtime debugging, panic analysis, async debugging, memory issue investigation, and production incident response.
Debugging Philosophy
Principles:
- Reproduce first — Can't fix what you can't reproduce
- Isolate the problem — Narrow down to minimal failing case
- Understand before fixing — Know WHY it fails, not just HOW to fix
- Verify the fix — Ensure fix addresses root cause
- Document learnings — Share knowledge to prevent recurrence
Compilation Error Debugging
Borrow Checker Errors
"cannot borrow as mutable because it is also borrowed as immutable"
// ❌ ERROR
fn process(data: &mut Vec<i32>) {
let first = &data[0]; // immutable borrow
data.push(42); // mutable borrow - ERROR!
println!("{}", first);
}
// ✅ SOLUTION: Separate scopes
fn process(data: &mut Vec<i32>) {
{
let first = &data[0];
println!("{}", first);
}
data.push(42);
}
Lifetime Errors
"value does not live long enough"
// ❌ ERROR
fn get_first() -> &str {
let s = String::from("hello");
&s // ERROR: s dropped
}
// ✅ SOLUTION: Return owned
fn get_first() -> String {
String::from("hello")
}
"missing lifetime specifier"
// ❌ ERROR
fn longest(x: &str, y: &str) -> &str { ... }
// ✅ SOLUTION
fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { ... }
Macro Debugging
cargo expand module::path
Runtime Debugging
Panic Analysis
RUST_BACKTRACE=1 cargo run # Basic backtrace
RUST_BACKTRACE=full cargo run # Full backtrace
Common Panic Sources:
// unwrap() on None
let x: Option<i32> = None;
x.unwrap(); // PANIC!
// Index out of bounds
let v = vec![1, 2, 3];
let x = v[10]; // PANIC!
// ✅ Defensive patterns
x.unwrap_or_default();
x.ok_or(Error::NotFound)?;
v.get(10); // Returns Option
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.
- 8d ago Changed · +4 lines 784b7b7f0ca8
- 3mo ago First seen · 296 lines · 61 tokens per session scan A 2eb592827a00
rust-debugger is an agent published in the GitHub repository bug-ops/zeph (68 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,634 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.
rust-debugger compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rust-debuggerbug-ops/zeph | Agent | 68 | today | MIT | A | 61 | Claude Code |
| rust-proechoVic/blade-code | Agent | 181 | 14d ago | MIT | A | 49 | Claude Code |
| rust-framework-architecteunomia-bpf/agentsight | Agent | 811 | today | MIT | A | 0 | Claude Code |
| incident-responderechoVic/blade-code | Agent | 181 | 14d ago | MIT | A | 36 | Claude Code |
| java-proechoVic/blade-code | Agent | 181 | 14d ago | MIT | A | 44 | Claude Code |
| golang-proechoVic/blade-code | Agent | 181 | 14d ago | MIT | A | 49 | Claude Code |
| debuggerechoVic/blade-code | Agent | 181 | 14d ago | MIT | A | 23 | Claude Code |