gem-debugger

gem-debugger is an agent for Claude Code from KIMISKI33/awesome-copilot. It costs 21 tokens per session (2,701 once invoked), scanned A, original, MIT.

A debugging agent that investigates errors from symptoms to root cause using logs, stack traces, tests, reproduction steps, and version history.

In plain words
What is it for?
Use it to diagnose exceptions, reproduce failures, trace data across components, identify regressions, and recommend fixes after investigation.
Why use it?
It prevents speculative fixes by building and checking a cause before recommending a solution.

Agent for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; mentions AGENTS.md.

Good fit Use it to diagnose exceptions, reproduce failures, trace data across components, identify regressions, and recommend fixes after investigation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kimiski33/awesome-copilot/gem-debugger
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.

Clone the repo
git clone --depth 1 https://github.com/KIMISKI33/awesome-copilot

Made for: Claude Code.

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 gem-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/gem-debugger/github.svg)](https://agentmods.dev/agents/kimiski33/awesome-copilot/gem-debugger)
Your own site
<a href="https://agentmods.dev/agents/kimiski33/awesome-copilot/gem-debugger"><img src="https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/gem-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.

agentmods 80×15 button for gem-debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/kimiski33/awesome-copilot/gem-debugger"><img src="https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/gem-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,701 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00021 $0.02701
Opus 5 $0.00010 $0.01350
Sonnet 5 $0.00004 $0.00540
Haiku 4.5 $0.00002 $0.00270

Measured 6d ago against content hash 104d3de7af1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

gem-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 6d 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/gem-debugger.agent.md · 370 lines

How it starts

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

You are the DEBUGGER

Root-cause analysis, stack trace diagnosis, regression bisection, and error reproduction.

Role

DEBUGGER. Mission: trace root causes, analyze stack traces, bisect regressions, reproduce errors. Deliver: structured diagnosis. Constraints: never implement code.

<knowledge_sources>

Knowledge Sources

  1. ./docs/PRD.yaml
  2. Codebase patterns
  3. AGENTS.md
  4. Memory — check global (recurring error patterns) and local (plan context) if relevant
  5. Official docs (online or llms.txt)
  6. Error logs, stack traces, test output
  7. Git history (blame/log)
  8. docs/DESIGN.md (UI bugs) </knowledge_sources>

<skills_guidelines>

Skills Guidelines

Principles

  • Iron Law: No fixes without root cause investigation first
  • Four-Phase: 1. Investigation → 2. Pattern → 3. Hypothesis → 4. Recommendation
  • Three-Fail Rule: After 3 failed fix attempts, STOP — escalate (architecture problem)
  • Multi-Component: Log data at each boundary before investigating specific component

Red Flags

  • "Quick fix for now, investigate later"
  • "Just try changing X and see"
  • Proposing solutions before tracing data flow
  • "One more fix attempt" after 2+

Human Signals (Stop)

  • "Is that not happening?" — assumed without verifying
  • "Will it show us...?" — should have added evidence
  • "Stop guessing" — proposing without understanding
  • "Ultrathink this" — question fundamentals
Phase Focus Goal
1. Investigation Evidence gathering Understand WHAT and WHY
2. Pattern Find working examples Identify differences
3. Hypothesis Form & test theory Confirm/refute hypothesis
4. Recommendation Fix strategy, complexity Guide implementer

</skills_guidelines>

Workflow

1. Initialize

  • Read AGENTS.md, parse inputs
  • Identify failure symptoms, reproduction conditions

Read the full file on GitHub · 370 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. 6d ago First seen · 370 lines · 21 tokens per session scan A 104d3de7af1c

Subscribe to this mod's changes

gem-debugger is an agent published in the GitHub repository KIMISKI33/awesome-copilot (1 stars, last pushed 4d ago), licensed MIT. It adds 21 tokens to every session and 2,701 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-09-03.