Show me
the evidence.
Debug Anything lets your AI agent look inside a running program, and numbers every piece of evidence behind what it finds.
Works with Claude Code, Cursor, Codex and Gemini CLI. Read-only.
$ debuganything attach 34327 ✔ attach#1 60 ms INFO attached to pid 34327 (node) $ debuganything memory --session $S ✔ snapshot_memory#2 3.7 s INFO RSS 47.2 MB, stable over 3 s $ node load.js 300 $ debuganything memory --session $S ✔ snapshot_memory#3 3.4 s WARN Array retains 37.6 MB, 85% of the heap $ node load.js 400 $ debuganything diff --session $S ✔ diff_runs#6 2 ms WARN rss 47.2 MB → 323.0 MB (+584%) HIGH Array grew 2.0 KB → 87.7 MB
Case files.
Example problems reproduced on purpose (see examples/ in the repo, October 2026): the commands it ran, the evidence it numbered and the fix. Pick one.
Chain of custody.
Every reading is logged with its time, the tool that took it and the raw output, kept on your disk. These are the real timestamps from the case above.
- attach#1
Attached to pid 34327, a Node.js server. Nothing installed in it.
- snapshot_memory#2
First heap snapshot. RSS 47.2 MB.
- snapshot_memory#5
After 700 requests: one array holds 93% of the heap.
- diff_runs#6
The array grew 2.0 KB → 87.7 MB. Finding: HIGH, observed.

Anything that runs.
Node, Python, Go, Java and native processes, containers and pods. It picks the tool, runs it inside hard limits and keeps the raw output.
| Area | What it sees | Command |
|---|---|---|
| Memory | Heap retainers, growth between runs | debuganything memory |
| CPU | Where the time goes, via py-spy and perf | debuganything profile |
| Threads | Every stack, lock waits, deadlocks | debuganything stacks |
| Sockets | Who holds a port, CLOSE_WAIT pile-ups | debuganything sockets |
| Files | Descriptor growth, deleted but still open | debuganything files |
| Syscalls | Slowest calls, time spent blocked | debuganything trace |
| Network | Resets, retransmits, DNS. Asks first. | debuganything capture |
| Containers | OOM kills, restarts, limits against usage | debuganything container |
It only looks.
- Read-only
- Never kills, patches or sets breakpoints. One exception: on Node it can send SIGUSR1 to open the inspector, and only after you say yes.
- Never runs sudo for you
- If a tool needs root, you get the exact command to run yourself.
- Asks first
- Packet capture and opening a Node inspector need an explicit yes, every time.
- Redacted
- Common token, key and password formats are scrubbed from what the agent sees. Raw artifacts on your disk are not.
- Local only
- No cloud, no telemetry, no update checks.
- Honest about limits
- Each finding says observed or inferred, and what the tools could not see.
Your agent runs it.
Debug Anything ships as an MCP server with two skills. Your agent attaches mid-task, runs the right tool and answers with numbered evidence instead of a guess.
Registers the server and both skills with Claude Code, Cursor, Codex and Gemini CLI.
{ "mcpServers": { "debuganything": { "command": "npx", "args": ["-y", "debuganything", "serve"] } } }
For LangChain, LlamaIndex, CrewAI or your own on-call agent.
debuganything why <pid> --symptom slow pick the tools, report, detach
debuganything port 3000 who holds a port
debuganything report --session $S write the report
“The server's memory keeps growing. Find out why, and show me the evidence.”
Questions.
Does it need root?
Most tools don't. When one does, it prints the exact command for you to run, then reads the result with debuganything import.
Does anything leave my machine?
No. Sessions, captures and reports stay under ~/.debuganything. It sends no telemetry.
Can CI use it?
Yes. Fail a job when memory grows between two snapshots, or use the GitHub Action, which attaches before a hung test is killed.
How sure are the findings?
Each one says whether it was observed or inferred and lists what the tools could not see. They are automated diagnostics, not professional advice. Read the evidence before you act.
No AI agent?
Run debuganything why <pid> yourself, or paste tool output into the analyzer, which runs in your browser.
Open a case.
Attaches, runs the tools that fit the symptom, writes the report and detaches. For your agent, use npx debuganything setup.