Debug Anything Install

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.

A reproducible example (examples/leaky-node, run 29 Oct 2026): a Node.js server that keeps growingTap a marker
$ 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
    Array retains 37.6 MB, 85% of the heap
$ node load.js 400
$ debuganything diff --session $S
✔ diff_runs#6  2 ms
    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.

  1. attach#1

    Attached to pid 34327, a Node.js server. Nothing installed in it.

  2. snapshot_memory#2

    First heap snapshot. RSS 47.2 MB.

  3. snapshot_memory#5

    After 700 requests: one array holds 93% of the heap.

  4. diff_runs#6

    The array grew 2.0 KB → 87.7 MB. Finding: HIGH, observed.

The Debug Anything report for the leak: findings with severity and evidence ids
The report it wrote: every finding with its evidence ids.
The session, as it ran.

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.

What Debug Anything can observe
AreaWhat it seesCommand
MemoryHeap retainers, growth between runsdebuganything memory
CPUWhere the time goes, via py-spy and perfdebuganything profile
ThreadsEvery stack, lock waits, deadlocksdebuganything stacks
SocketsWho holds a port, CLOSE_WAIT pile-upsdebuganything sockets
FilesDescriptor growth, deleted but still opendebuganything files
SyscallsSlowest calls, time spent blockeddebuganything trace
NetworkResets, retransmits, DNS. Asks first.debuganything capture
ContainersOOM kills, restarts, limits against usagedebuganything 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.

“The server's memory keeps growing. Find out why, and show me the evidence.”

What you ask. The answer comes back with evidence 1 to 4, like the case at the top of this page.

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.

Symptom

Attaches, runs the tools that fit the symptom, writes the report and detaches. For your agent, use npx debuganything setup.