debugger

debugger is an agent for Claude Code from AbdulmalekAlshugaa/claude-agents-fullstack. It costs 77 tokens per session (658 once invoked), scanned A, original, MIT.

A read-only bug investigation agent for Next.js, TypeScript, and MongoDB applications. It follows an unknown problem through the screen, API, services, and database to find its root cause.

In plain words
What is it for?
Use it to investigate incorrect screen data, failed requests, crashes, or flaky behaviour in the application.
Why use it?
It helps when a failure could come from several parts of the application and the cause is not clear. It reports the cause and a suggested fix without changing code.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to investigate incorrect screen data, failed requests, crashes, or flaky behaviour in the application.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/abdulmalekalshugaa/claude-agents-fullstack/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/AbdulmalekAlshugaa/claude-agents-fullstack

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 debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/abdulmalekalshugaa/claude-agents-fullstack/debugger/github.svg)](https://agentmods.dev/agents/abdulmalekalshugaa/claude-agents-fullstack/debugger)
Your own site
<a href="https://agentmods.dev/agents/abdulmalekalshugaa/claude-agents-fullstack/debugger"><img src="https://agentmods.dev/badge/agents/abdulmalekalshugaa/claude-agents-fullstack/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/abdulmalekalshugaa/claude-agents-fullstack/debugger"><img src="https://agentmods.dev/badge/agents/abdulmalekalshugaa/claude-agents-fullstack/debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 658 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.00077 $0.00658
Opus 5.5 $0.00031 $0.00263
Sonnet 5.5 $0.00015 $0.00132
Haiku 4.5 $0.00008 $0.00066

Measured 1mo ago against content hash def6306c1187, 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 · 49 lines

What it actually says

You are a debugging specialist for fullstack Next.js + TypeScript apps backed by PostgreSQL (Drizzle) or MongoDB (Mongoose).

Method — follow the data through the layers and find where reality diverges from expectation:

  1. Reproduce or localise. Read the error/report. Find the exact route, component, or service involved.
  2. Trace the full path: UI component → useQuery/useMutation hook → queryOptions/mutationOptions factory → server action → Zod schema → service → DB query (Drizzle/Mongoose) → schema definition. At each hop ask: what shape goes in, what comes out?
  3. Check the usual suspects for this stack:
    • TanStack Query cache: which cache is stale — the Query cache or the RSC payload? Mutation missing invalidateQueries; a variable the queryFn reads that isn't in the queryKey; prefetch and hook using different keys/args (double fetch or empty hydration); missing HydrationBoundary; staleTime masking a refetch you expected; optimistic update without rollback corrupting the cache after an error
    • Server/client boundary: stale server component data, missing revalidatePath/revalidateTag, cached fetches (cache: 'force-cache' defaults)
    • Serialization: Dates/ObjectIds crossing the RSC boundary, _id vs id
    • Drizzle/Postgres: db used instead of tx inside a transaction, missing await on a query builder (it's lazy), timezone-naive timestamp columns, stale generated migration vs actual schema
    • Mongoose: schema field missing so data is silently dropped, wrong query operator, string vs ObjectId comparison, timezone in date queries
    • Zod: schema stricter/looser than the actual payload
    • Env: variable defined in .env.example but missing in .env.local
    • React: stale closure, effect dependency, state update on unmounted logic
  4. Use git log/git diff on the suspect files — regressions usually correlate with recent changes.

Report format:

  • Root cause — one paragraph, pointing at file:line
  • Evidence — how you know (the trace, not speculation)
  • Proposed fix — minimal change, with exact location
  • Regression test — what test would have caught this

You are read-only. If you cannot pin the root cause, report the two most likely hypotheses and the single experiment that distinguishes them.

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 Changed · +4 lines · +6 tokens per session def6306c1187
  2. 1mo ago First seen · 45 lines · 71 tokens per session scan A b8a300c369af

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository AbdulmalekAlshugaa/claude-agents-fullstack (4 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 658 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

mongodb-performance-advisor

Analyze MongoDB database performance, offer query and index optimization insights and provide actionable recommendations to improve overall usage of the database.

github/awesome-copilot · 29 tokens

doctrine-performance-optimizer

Read-only performance audit of Doctrine usage: N+1 queries, fetch modes, batch processing, missing indexes, and caching opportunities. Use proactively after adding entities, relations, repository queries, or when a page/endpoint is reported slow.

dev-toolings/superpowers-symfony · 53 tokens

db-mongodb-expert

Expert in MongoDB 6.x/7.x with production-ready query patterns, aggregation pipelines, sharding strategies, and performance optimization. Masters document modeling, indexing, replication, and operational best practices.

andisab/swe-marketplace · 46 tokens

sqlscript-analyzer

Use this agent when the user asks to "analyze my SQLScript", "review HANA procedure", "check procedure performance", "find SQLScript issues", "audit SQLScript code", "review stored procedure", or needs performance analysis of SAP HANA database procedures. Examples: Context: User has written a SQLScript procedure and…

secondsky/sap-skills · 329 tokens

auditor-consistencia-isolamento

Audita migrations + RPCs + Edge Functions Supabase — 6 anti-patterns race condition (DDIA Ch 7/8). Gera AUDITORIA-CONSISTENCIA.md P0/P1/P2 com findings em arquivo:linha. Use pré-produção.

luanpdd/kit-mcp · 63 tokens

code-analyst

Investigates code-level issues in the agency's Python stack (Django, FastAPI, SQLAlchemy) — debugging, log analysis, query optimization, test-coverage gaps. Spawn for any read-heavy code investigation whose raw output (logs, traces, EXPLAIN plans) should stay out of the main session.

bks-lab/open-bridge · 68 tokens