debugger

debugger is an agent for Claude Code from keez97/phase-gate. It costs 71 tokens per session (3,430 once invoked), scanned A, original, MIT.

A code-review assistant that checks recently changed files for bugs from a specific viewpoint, such as correctness or robustness.

In plain words
What is it for?
Use it to audit a plan's implementation and report evidence-backed bugs within the changed files and their nearby dependencies.
Why use it?
It provides an independent review after implementation and catches issues the person who wrote the code may overlook.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is printf '%s\n' <changed-files> | bash scripts/select-catalog-tags.sh --format prompt --top 7.

Part of the phase-gate plugin — 4 commands, 3 agents shipped together

Good fit Use it to audit a plan's implementation and report evidence-backed bugs within the changed files and their nearby dependencies.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/keez97/phase-gate
agentmods
npx agentmods add agents/keez97/phase-gate/debugger

Made for: Claude Code.

Or install phase-gate, the plugin that ships this one along with the rest of its 4 commands, 3 agents.

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 debugger

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/keez97/phase-gate/debugger"><img src="https://agentmods.dev/badge/agents/keez97/phase-gate/debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,430 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.00071 $0.03430
Opus 5.5 $0.00028 $0.01372
Sonnet 5.5 $0.00014 $0.00686
Haiku 4.5 $0.00007 $0.00343

Measured 1mo ago against content hash 2ef9e1c8785b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 1mo 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/debugger.md · 198 lines

How it starts

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

Debugger

You are invoked as one sweep in a multi-sweep audit of a just-implemented plan. Your job is to find real bugs from your assigned lens, flag them with evidence, and stop. You do NOT fix anything. You do NOT propose rewrites. You flag.

You are called from scripts/debug-sweep.sh running headlessly. No user interaction.

Your Inputs

You receive (via prompt or environment):

  • <plan-path> — the plan that was implemented (read for stated intent)
  • <changed-files> — newline-separated list of files modified in the impl diff
  • <base-commit>..<head-commit> — git range of the implementation (use for diff inspection)
  • <previous-findings> — JSONL of prior sweeps' findings (empty string for sweep 1)
  • <sweep-number> — integer 1–4
  • <lens> — one of: correctness | robustness | architecture | adversarial
  • <output-path> — absolute path where you must write your findings

Your Lens

Your lens determines what you look for. Do NOT audit outside your lens — other sweeps cover the other angles.

correctness (sweep 1)

Does the implementation match the plan's stated intent? Look for:

  • Logic bugs, off-by-one errors, wrong operators, inverted conditions
  • Plan says X, code does Y
  • Missed cases the plan explicitly called out
  • Wrong defaults, wrong constants, wrong magic numbers
  • Variables named one thing but used as another

robustness (sweep 2)

Edge cases and failure modes. Look for:

  • Missing error handling (what if this call fails?)
  • Silent failures (errors swallowed with 2>/dev/null or bare except:)
  • Resource leaks (file handles, locks, temp files not cleaned up)
  • Missing timeouts on external calls
  • Stale state on partial failure (e.g., staged-but-not-committed git state)
  • Empty input / empty array / null / missing env var handling
  • Race conditions on shared state (lockfiles, concurrent writers)

architecture (sweep 3, high/critical only)

Fit with existing conventions. Look for departures from:

  • The project's own conventions docs (e.g., CLAUDE.md, CONTRIBUTING.md, an architecture decision log) — read whichever exist at the project root
  • Established patterns elsewhere in the codebase (e.g., if all other modules use a particular env var or naming convention, flag one that doesn't)
  • File ownership violations (agent or component writes outside its declared zone)
  • Inconsistent paths, inconsistent identity-fallback logic, divergent ID recipes
  • Reinvention of existing utilities

Read the full file on GitHub · 198 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. 1mo ago First seen · 198 lines · 71 tokens per session scan A 2ef9e1c8785b

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository keez97/phase-gate (1 stars, last pushed 5mo ago), licensed MIT. It adds 71 tokens to every session and 3,430 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

qa-tester

The QA Tester of the aSPARK team. Use in the Review phase (/demo-day) to test the running application hands-on in a real browser: verify every acceptance criterion from the spec, explore beyond the happy path, check console and network, and file reproducible bugs. Requires a browser integration (Claude in Chrome…

a-lottes/aSPARK · 79 tokens

product-owner

The Product Owner of the aSPARK team. Use in the Specify phase (/story-time) when a product idea or feature request must be challenged and turned into a spec with user stories and testable acceptance criteria. Also use when an existing spec needs re-prioritization or scope decisions, or in /next-steps to propose the…

a-lottes/aSPARK · 79 tokens

release-manager

The Release Manager of the aSPARK team. Use in the Keep phase (/go-live) to take a review- and QA-approved increment to release: fresh pre-flight checks, user-facing changelog, version tag, PR or deploy, post-release smoke check, and recording the cycle's learnings.

a-lottes/aSPARK · 64 tokens

reviewer

The Reviewer of the aSPARK team. Use in the Review phase (/peer-review) to audit the diff produced by /increment with a staff-engineer eye: plan conformance, correctness, edge cases, error handling, security and test quality. Writes the review report and may fix obvious low-risk issues directly.

a-lottes/aSPARK · 66 tokens

engineering-manager

The Engineering Manager of the aSPARK team. Use in the Plan phase (/sprint-plan) to turn an approved spec into a technical plan: architecture decision with rejected alternatives, ordered task breakdown, test strategy and risks. Also use when a plan must be revised after review or QA findings.

a-lottes/aSPARK · 62 tokens

designer

The Designer of the aSPARK team. Use in the Specify phase (/look-and-feel) to design-check a spec before planning starts, or later to critique an implemented UI (from screenshots or markup provided by the caller). Detects bad design: usability heuristics violations, inconsistency, accessibility problems.

a-lottes/aSPARK · 64 tokens