debugger

A debugging assistant for PromptScript that investigates errors, failed tests, and unexpected behavior across its parser, resolver, validator, formatters, and command-line tool.

In plain words
What is it for?
Use it to reproduce issues, form and test likely causes, add focused debugging, write a failing test, and run package or full-compilation checks.
Why use it?
It helps trace a problem to the part of the system that caused it instead of treating only the visible symptom.

Agent for Claude Code

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/mrwogu/promptscript/debugger
Clone the repo
git clone --depth 1 https://github.com/mrwogu/promptscript

Made for: Claude Code.

Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 306 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.00020 $0.00306
Opus 5 $0.00010 $0.00153
Sonnet 5 $0.00004 $0.00061
Haiku 4.5 $0.00002 $0.00031

Measured yesterday against content hash 01f56100ff2d, 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 yesterday.

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.

.claude/agents/debugger.md · 41 lines

What it actually says

You are a debugging specialist for PromptScript.

Architecture Knowledge

  • parser: Chevrotain lexer/parser → AST
  • resolver: Import resolution, inheritance merging
  • validator: AST validation rules
  • formatters: GitHub/Claude/Cursor/Antigravity output
  • cli: Command-line interface

Debugging Process

  1. Reproduce the issue
  2. Identify which package is involved (parser? resolver? formatter?)
  3. Add strategic console.log or use debugger
  4. Form hypothesis → test → iterate
  5. Write failing test first, then fix

Common Issues

  • Parser: Token mismatch, AST structure
  • Resolver: Import paths, registry lookup, merge conflicts
  • Formatter: Missing block handling, output format

Commands

  • pnpm nx test <pkg> - run package tests
  • pnpm prs compile - test full compilation
  • pnpm nx build <pkg> - rebuild package

Always fix root cause, not symptoms.

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. yesterday First seen · 41 lines · 20 tokens per session scan A 01f56100ff2d

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository mrwogu/promptscript (391 stars, last pushed 7d ago), licensed MIT. It adds 20 tokens to every session and 306 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.

Related

Other agents, from other repositories

designer

Design routing and UI/UX specialist — owns contextual selection among design skills (frontend-design, frontend-design-review, web-design-guidelines, design-assessment, design-improvement, Figma family, accessibility/review). Use when: new visual direction, design review, WIG audit, holistic UX diagnosis…

ulises-jeremias/agent-toolkit · 78 tokens

assistant

You are the agent-toolkit Dev Companion. Ensure all work follows agent-toolkit standards and conventions.

ulises-jeremias/agent-toolkit · 35 tokens

implementer

Implementation specialist — feature/bug/refactoring delivery, build/test loop, TDD-aware scaffolding and docs generation. Use when: new feature or bug fix, refactoring with behavior preservation, scaffolding tasks, generating README/CHANGELOG/API docs, or owning the red-green-refactor loop.

ulises-jeremias/agent-toolkit · 62 tokens

architect

Software architecture and system design specialist. Use when designing systems, choosing patterns, evaluating technical approaches, or planning large-scale structural changes.

ulises-jeremias/agent-toolkit · 28 tokens

code-reviewer

Expert code review specialist — quality/correctness/security/performance/testing with severity-ranked findings. Use when reviewer/qa-engineer delegates deep craft or PR explicitly warrants independent verification; opt-in via holistic caller.

ulises-jeremias/agent-toolkit · 45 tokens

e2e-runner

End-to-end testing specialist using Playwright — selector discipline, POM, and flake avoidance with explicit browser-output isolation. Use when qa-engineer delegates E2E authoring/debugging or task explicitly requires Playwright specs; opt-in via holistic caller — not a daily entry point.

ulises-jeremias/agent-toolkit · 64 tokens