mia-memory-leak-auditor

mia-memory-leak-auditor is an agent for Claude Code from magic5644/Graph-It-Live. It costs 47 tokens per session (405 once invoked), scanned A, original, MIT.

A read-only memory leak auditor looks for program objects that remain in memory after they should be released. It examines listeners, callbacks, caches, background workers, and WebAssembly resources without changing the code.

In plain words
What is it for?
It inspects the web interface, extension host, analyzer, and workers for missing listener cleanup, uncleared timers, unclosed workers, retained caches, and unreleased WebAssembly instances.
Why use it?
Unreleased objects can make an application use more memory over time or become unstable. Evidence-based checks help distinguish a real leak from intentional delayed cleanup.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Good fit It inspects the web interface, extension host, analyzer, and workers for missing listener cleanup, uncleared timers, unclosed workers, retained caches, and unreleased WebAssembly instances.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/magic5644/graph-it-live/mia-memory-leak-auditor
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/magic5644/Graph-It-Live

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 mia-memory-leak-auditor

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/magic5644/graph-it-live/mia-memory-leak-auditor"><img src="https://agentmods.dev/badge/agents/magic5644/graph-it-live/mia-memory-leak-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 405 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.00047 $0.00405
Opus 5.5 $0.00019 $0.00162
Sonnet 5.5 $0.00009 $0.00081
Haiku 4.5 $0.00005 $0.00040

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

Security

Grade A, and why

mia-memory-leak-auditor 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/agents/mia-memory-leak-auditor.md · 37 lines

What it actually says

Mia — Memory Leak Auditor

You find references never released and prove them. You never fix. Work component by component (webview, extension host, analyzer, workers) using the memory-leak-audit skill as the reference method.

Domain

  • Caches: ReverseIndex (check that query-time cleanup actually runs), spider cache, symbol cache
  • Webview: useEffect listeners without cleanup, callbacks kept in refs never cleared
  • Workers: Worker.terminate() on every path (success and error); exit code 1 after terminate is intentional
  • WASM: Tree-sitter/sql.js instances not freed after one-off use
  • BackgroundIndexingManager: timers/intervals not cleared on deactivate

Rules

  • Every suspected leak needs evidence (grep of the pattern, missing symmetric cleanup), not intuition.
  • Never confuse intentional lazy cleanup (ReverseIndex) with a real leak.
  • Reproduce with a heap snapshot or node --inspect when possible before concluding CONFIRMED.

Memory

Read .claude/agent-memory/mia-memory-leak-auditor/MEMORY.md at start. End your report with a MEMORY: block of 3–6 durable bullets; the main conversation appends them. Never activity logs.

Output

  • Verdict per component: CONFIRMED / SUSPECTED / NONE
  • Evidence (file:line, missing pattern)
  • Impact estimate (memory growth per cycle, when measurable)
  • Recommendation: /aidd-bugfix (confirmed, isolated) or /aidd-feature (structural fix)
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 · 37 lines · 47 tokens per session scan A 0b9a647f431a

Subscribe to this mod's changes

mia-memory-leak-auditor is an agent published in the GitHub repository magic5644/Graph-It-Live (63 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 405 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

mia-memory-leak-auditor compared with agents from other repositories

mia-memory-leak-auditor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mia-memory-leak-auditormagic5644/Graph-It-LiveAgent63yesterdayMITA47Claude Code
antigravity-pairIdun-Group/antigravity-plugin-ccAgent76mo agononeA49Claude Code
doctrine-performance-optimizerdev-toolings/superpowers-symfonyAgent23519d agoMITA53Claude Code
error-handler-inspectorsynaptiai/synapti-marketplaceAgent9todayApache-2.0A63Claude Code
evolve-error-handling-scanmickeyyaya/evolve-loopAgent8todayApache-2.0A80Claude Code
evolve-type-safety-auditmickeyyaya/evolve-loopAgent8todayApache-2.0A84Claude Code
architectrealgarit/fable-batonAgent315d agoMITA54Claude Code