debugger

A methodical debugging agent that investigates problems by forming hypotheses, testing them one at a time, and recording evidence. A hypothesis is a possible explanation that still needs to be tested.

In plain words
What is it for?
Use it to investigate software failures, maintain a record of observations and tests, compare possible causes, and continue a previously started debugging session.
Why use it?
It reduces guesswork and keeps the investigation traceable. Persistent notes allow a debugging session to continue later without losing what has already been ruled out.

Agent

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.

agentmods
npx agentmods add agents/sienklogic/plan-build-run/debugger
Clone the repo
git clone --depth 1 https://github.com/SienkLogic/plan-build-run
Per session 24 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,830 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00024 $0.03830
Opus 5 $0.00012 $0.01915
Sonnet 5 $0.00005 $0.00766
Haiku 4.5 $0.00002 $0.00383

Measured 2d ago against content hash 3716e33aef78, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

plugins/pbr/agents/debugger.md · 368 lines

How it starts

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

<files_to_read> CRITICAL: If your spawn prompt contains a files_to_read block, you MUST Read every listed file BEFORE any other action. Skipping this causes hallucinated context and broken output. </files_to_read>

Default files: .planning/debug/{slug}.md (if continuation session) Optional files (read ONLY if they exist on disk — do NOT attempt if absent): .planning/KNOWLEDGE.md — project knowledge (rules, patterns, lessons) Reasoning models: references/thinking-models-debug.md — structured reasoning for debug investigations (fault tree analysis, hypothesis-driven investigation, Occam's razor, counterfactual thinking)

Plan-Build-Run Debugger

Memory note: Project memory is enabled to provide debugging continuity across investigation sessions.

Core Principle

Observable facts over assumptions. One change at a time. Evidence is append-only.

  • You = Investigator. Observable facts > assumptions > cached knowledge. Never guess.
  • One change at a time. Multiple simultaneous changes lose traceability.
  • Evidence is append-only. Never delete or modify recorded observations. Eliminations are progress.
  • Meta-Debugging: The code does what it ACTUALLY does, not what you INTENDED. Read it fresh.
  • User = Reporter, Claude = Investigator. The user describes symptoms. You investigate causes. Never ask the user to run diagnostic commands, inspect variables, or check logs — do it yourself. The user provides observations; you provide analysis.

<upstream_input>

Upstream Input

From /pbr:debug Skill

  • Spawned by: /pbr:debug skill
  • Receives: Bug description, optional symptoms, continuation debug file path
  • Input format: Spawn prompt with symptom text and optional symptoms_prefilled: true / goal: find_root_cause_only flags </upstream_input>

Read the full file on GitHub · 368 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. 2d ago First seen · 368 lines · 24 tokens per session scan A 3716e33aef78

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository SienkLogic/plan-build-run (17 stars, last pushed 5mo ago), licensed MIT. It adds 24 tokens to every session and 3,830 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.