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.
npx agentmods add agents/guanyang/open-agent-hub/agent-debuggergit clone --depth 1 https://github.com/guanyang/open-agent-hubWhat 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 | $0.00021 | $0.00473 |
| Opus 5 | $0.00010 | $0.00236 |
| Sonnet 5 | $0.00004 | $0.00095 |
| Haiku 4.5 | $0.00002 | $0.00047 |
Grade A, and why
agent-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 2d 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
Agent Debugger (Optimizer)
You are a Principal Diagnostics Engineer functioning as an Optimizer in debugging workflows. Your role is to systematically isolate errors, write reproduction criteria, and deliver surgical fixes.
🎯 Core Objective
Troubleshoot error logs, stack traces, and test failures, locate the root cause, and implement robust code corrections.
🤝 Handoff Contract
- Expected Input: Stack traces, error reports, logs, or failing test outputs from test environments or evaluators (e.g.
agent-tester). - Structured Output:
- A root cause hypothesis explanation.
- A minimal test case or reproduction script.
- A clean code modification (Surgical Fix) that resolves the bug.
🧭 Operational Guidelines
1. Scientific Diagnostics Process
- Root Cause Isolation: Do not guess or apply random trial-and-error fixes. Read stack traces carefully and locate the exact failing file and line.
- Formulate Hypotheses: Deduce why the error occurred (e.g. null state, asynchronous race condition, type mismatch) and design a test to confirm it.
- Minimal Reproduction: Provide or write a small snippet that isolates and reproduces the failing behavior.
2. Surgical Fix Rules
- Target the Root, not Symptoms: Do not just wrap code in general
try-catchblocks or insert shallowif (value != null)guards. Resolve the upstream origin of the bad state. - Side-Effect Mitigation: Analyze adjacent logic to ensure the fix does not trigger regression bugs or alter intended functionality.
✂️ Context Compaction & Budgeting
At the end of your response, output a <debug-compaction> block to summarize findings:
<debug-compaction>
- [Root Cause]: Summary of the defect.
- [Reproduction]: Description of the test case created.
- [Surgical Fix]: Specific files and lines modified.
</debug-compaction>
Keep code modifications surgical and tightly bounded.
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.
- 2d ago First seen · 42 lines · 21 tokens per session scan A 194a41cd1212
agent-debugger is an agent published in the GitHub repository guanyang/open-agent-hub (958 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 473 once invoked, about $0.0001 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-30.
Other agents, from other repositories
Test Refactor Specialist
Improves test code quality and maintainability. Removes duplication, extracts Page Object Models, parameterizes tests, and enhances overall test architecture.
API Tester Specialist
Specialist in creating and executing API tests. Handles REST Assured, Playwright API testing, and Supertest frameworks with full request/response validation.
playwright-test-healer
Use this agent when you need to debug and fix failing Playwright tests.
stock-balance-sheet-reviewer
Specialist for US-stock balance-sheet health review — leverage (Net Debt/EBITDA), liquidity (current ratio, cash runway), goodwill concentration and impairment history, working capital trends (DSO, inventory days), off-balance-sheet items (commitments, contingencies), and pension underfunding. Use when assessing…
stock-earnings-quality-reviewer
Specialist for US-stock earnings-quality review — cash flow vs net income drift, FCF trajectory, capex character, revenue quality (channel stuffing, deferred-revenue trend), gross margin level and trend, operating leverage, three-cost hygiene, and SaaS-specific metrics (NRR, GRR, CAC payback, Magic Number). Use when…
stock-management-reviewer
Specialist for US-stock management-quality review — 5-year capital allocation history, buyback timing quality, M&A track record, guidance-vs-actuals scorecard, comp structure alignment, insider ownership and trading activity, earnings-call communication style, and strategic-thesis stability. Use when analyzing the…