aidd-leak-check

aidd-leak-check is a command for Claude Code from magic5644/Graph-It-Live. It costs 57 tokens per session (392 once invoked), scanned A, original, MIT.

A read-only workflow for investigating suspected memory leaks in an application or service. It checks whether caches, event listeners, WebAssembly instances, workers, timers, or other references remain in memory when they should not.

In plain words
What is it for?
Use it when memory keeps growing in an extension, command-line tool, integration server, or worker. It reports whether each component is confirmed, suspected, or clear, with file and line references when available.
Why use it?
It helps distinguish a confirmed leak from a suspicion without changing the code during the investigation. Each finding is tied to evidence in the source.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Read, Agent, Bash(node scripts/aidd-state.mjs *).

Good fit Use it when memory keeps growing in an extension, command-line tool, integration server, or worker. It reports whether each component is confirmed, suspected, or clear, with file and line references when available.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/magic5644/Graph-It-Live
agentmods
npx agentmods add commands/magic5644/graph-it-live/aidd-leak-check

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 aidd-leak-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/magic5644/graph-it-live/aidd-leak-check/github.svg)](https://agentmods.dev/commands/magic5644/graph-it-live/aidd-leak-check)
Your own site
<a href="https://agentmods.dev/commands/magic5644/graph-it-live/aidd-leak-check"><img src="https://agentmods.dev/badge/commands/magic5644/graph-it-live/aidd-leak-check/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 aidd-leak-check

Your own site · 80×15
<a href="https://agentmods.dev/commands/magic5644/graph-it-live/aidd-leak-check"><img src="https://agentmods.dev/badge/commands/magic5644/graph-it-live/aidd-leak-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 392 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.00057 $0.00392
Opus 5.5 $0.00023 $0.00157
Sonnet 5.5 $0.00011 $0.00078
Haiku 4.5 $0.00006 $0.00039

Measured 2d ago against content hash e8a1cb5919df, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aidd-leak-check 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 2d 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.

.claude/commands/aidd-leak-check.md · 32 lines

What it actually says

/aidd-leak-check — Memory audit

Scope: $ARGUMENTS (default: whole product)

State: tier leak-check in scripts/aidd-state.mjs — resume with status <id>, record every step, round on BLOCK; exit 3 = stop and ask the human (.claude/rules/agent-workflow.md § State and Resume).

Sequence

  1. mia-memory-leak-auditor:
    • Targets: caches (ReverseIndex, spider cache, symbol cache), webview listeners, WASM instances, workers, timers
    • Method: skill memory-leak-audit
    • Look for: unsubscribed listeners, closures holding references, Maps/Sets never purged, workers never terminated
    • Reproduce when possible (heap snapshot, node --inspect)
  2. Report: verdict per component (CONFIRMED / SUSPECTED / NONE) with file:line evidence.
  3. SUSPECTED only: one follow-up reproduction round, then report to the human. Confirmed leak → /aidd-bugfix (isolated fix) or /aidd-feature (structural fix).

Rule

Read-only: no fix in this command.

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. 2d ago First seen · 32 lines · 57 tokens per session scan A e8a1cb5919df

Subscribe to this mod's changes

aidd-leak-check is a command published in the GitHub repository magic5644/Graph-It-Live (63 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 392 once invoked, about $0.0002 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-11-28.

Related

aidd-leak-check compared with commands from other repositories

aidd-leak-check next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aidd-leak-checkmagic5644/Graph-It-LiveCommand63yesterdayMITA57Claude Code
transferVit129/agy-plugin-ccCommand62d agoApache-2.0A25Claude Code
agyVit129/agy-plugin-ccCommand62d agoApache-2.0A13Claude Code
agy-debugAIgen-Solutions-s-r-l/agy-claude-pluginCommand15mo agoMITA25Claude Code
data-flow-analysissigistry/marketplaceCommand32d agoMITA11Claude Code
doctor-devpunt-labs/z-specCommand5yesterdayMITB5Claude Code
doctorModellix/modellix-pluginCommand118d agoMITA16Claude Code