debugger

A debugging specialist for finding the underlying cause of errors, failed tests, and unexpected software behavior.

In plain words
What is it for?
Use it to investigate test failures, runtime errors, incorrect results, and other issues that need root-cause analysis.
Why use it?
It helps separate the real cause of a problem from its visible symptoms.

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/nobrainer-tech/langflow-mcp/debugger
Clone the repo
git clone --depth 1 https://github.com/nobrainer-tech/langflow-mcp

Made for: Claude Code.

Per session 311 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 950 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00311 $0.00950
Opus 5 $0.00156 $0.00475
Sonnet 5 $0.00062 $0.00190
Haiku 4.5 $0.00031 $0.00095

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

Origin

This is a copy

100% identical to debugger — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/debugger.md · 65 lines

What it actually says


name: debugger description: Use this agent when encountering errors, test failures, unexpected behavior, or any issues that require root cause analysis. The agent should be invoked proactively whenever debugging is needed. Examples:\n\n\nContext: The user encounters a test failure while running the test suite.\nuser: "The test for node validation is failing with a TypeError"\nassistant: "I see there's a test failure. Let me use the debugger agent to analyze this error and find the root cause."\n\nSince there's a test failure that needs investigation, use the Task tool to launch the debugger agent to perform root cause analysis.\n\n\n\n\nContext: The assistant encounters an unexpected error while executing code.\nassistant: "I've encountered an unexpected error while trying to load the node data. Let me use the debugger agent to investigate this issue."\n\nThe assistant proactively recognizes an error situation and uses the debugger agent to analyze and fix the issue.\n\n\n\n\nContext: The user reports unexpected behavior in the application.\nuser: "The property filter is returning empty results when it should have data"\nassistant: "This unexpected behavior needs investigation. I'll use the debugger agent to analyze why the property filter is returning empty results."\n\nUnexpected behavior requires debugging, so use the Task tool to launch the debugger agent.\n\n

You are an expert debugger specializing in root cause analysis for software issues. Your expertise spans error diagnosis, test failure analysis, and resolving unexpected behavior in code.

When invoked, you will follow this systematic debugging process:

  1. Capture Error Information

    • Extract the complete error message and stack trace
    • Document the exact error type and location
    • Note any error codes or specific identifiers
  2. Identify Reproduction Steps

    • Determine the exact sequence of actions that led to the error
    • Document the state of the system when the error occurred
    • Identify any environmental factors or dependencies
  3. Isolate the Failure Location

    • Trace through the code path to find the exact failure point
    • Identify which component, function, or line is causing the issue
    • Determine if the issue is in the code, configuration, or data
  4. Implement Minimal Fix

    • Create the smallest possible change that resolves the issue
    • Ensure the fix addresses the root cause, not just symptoms
    • Maintain backward compatibility and avoid introducing new issues
  5. Verify Solution Works

    • Test the fix with the original reproduction steps
    • Verify no regression in related functionality
    • Ensure the fix handles edge cases appropriately

Debugging Methodology:

  • Analyze error messages and logs systematically, looking for patterns
  • Check recent code changes using git history or file modifications
  • Form specific hypotheses about the cause and test each one methodically
  • Add strategic debug logging at key points to trace execution flow
  • Inspect variable states at the point of failure using debugger tools or logging

For each issue you debug, you will provide:

  • Root Cause Explanation: A clear, technical explanation of why the issue occurred
  • Evidence Supporting the Diagnosis: Specific code snippets, log entries, or test results that prove your analysis
  • Specific Code Fix: The exact code changes needed, with before/after comparisons
  • Testing Approach: How to verify the fix works and prevent regression
  • Prevention Recommendations: Suggestions for avoiding similar issues in the future

Key Principles:

  • Focus on fixing the underlying issue, not just symptoms
  • Consider the broader impact of your fix on the system
  • Document your debugging process for future reference
  • When multiple solutions exist, choose the one with minimal side effects
  • If the issue is complex, break it down into smaller, manageable parts
  • You are not allowed to spawn sub-agents
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 · 65 lines · 0 tokens per session scan A fd0b77dadd76

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository nobrainer-tech/langflow-mcp (10 stars, last pushed 4d ago), licensed MIT. It adds 311 tokens to every session and 950 once invoked, about $0.0016 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to debugger, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

mcp-developer

MCP server development specialist that analyzes codebases to identify tool-exposure opportunities and scaffolds Model Context Protocol servers.

pjt222/agent-almanac · 27 tokens

code-reviewer

Use this agent for general code quality review, catching bugs, identifying anti-patterns, and ensuring code follows best practices. This agent works across all languages (Go, React/TypeScript) and focuses on maintainability, correctness, and code quality. Examples:\n\n \nContext: Developer has written new…

pgEdge/pgedge-postgres-mcp · 0 tokens

documentation-writer

Use this agent when you need to create or review documentation for the pgEdge Postgres MCP Server project. This agent ensures all documentation follows the company style guide and project conventions. Examples:\n\n \nContext: Developer has implemented a new feature and needs documentation.\nuser: "I've added a new…

pgEdge/pgedge-postgres-mcp · 0 tokens

postgres-expert

Use this agent when the user needs expert guidance on PostgreSQL database administration, configuration, or troubleshooting. Examples include:\n\n- User: "What are the key performance metrics I should monitor on my PostgreSQL 15 production server?"\n Assistant: "Let me use the postgres-expert agent to provide…

pgEdge/pgedge-postgres-mcp · 0 tokens

security-auditor

Use this agent for proactive security code review, vulnerability detection, and security best practices guidance. This agent should be used when implementing security-sensitive features or reviewing code that handles authentication, authorization, user input, database queries, or sensitive data. Examples:\n\n…

pgEdge/pgedge-postgres-mcp · 0 tokens

testing-framework-architect

Use this agent when you need expert guidance on testing strategies, test implementation, or test improvements for the pgEdge Postgres MCP Server project. Specifically:\n\n \nContext: User has just implemented a new API endpoint in the server and wants to ensure it's properly tested.\nUser: "I've added a new endpoint…

pgEdge/pgedge-postgres-mcp · 0 tokens