memory_leak

memory_leak is a skill for Claude Code, Codex from DeepLink-org/probing. It costs 14 tokens per session (277 once invoked), scanned A, original, Apache-2.0.

A skill for detecting GPU memory that keeps increasing during machine-learning training. GPU memory is the limited fast storage used by a graphics processor while a model runs.

In plain words
What is it for?
Use it to examine memory trends across training steps, skip startup effects, and investigate cached tensors, missing tensor detachment, or out-of-memory errors.
Why use it?
It helps distinguish a memory leak—memory that is retained unintentionally—from normal warm-up or changing workload behavior before the process runs out of memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to examine memory trends across training steps, skip startup effects, and investigate cached tensors, missing tensor detachment, or out-of-memory errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/deeplink-org/probing/memory_leak
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.

Any agent
npx skills add DeepLink-org/probing --skill memory_leak
Clone the repo
git clone --depth 1 https://github.com/DeepLink-org/probing

Made for: Claude Code, Codex.

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 memory_leak

README.md
[![agentmods](https://agentmods.dev/badge/skills/deeplink-org/probing/memory_leak/github.svg)](https://agentmods.dev/skills/deeplink-org/probing/memory_leak)
Your own site
<a href="https://agentmods.dev/skills/deeplink-org/probing/memory_leak"><img src="https://agentmods.dev/badge/skills/deeplink-org/probing/memory_leak/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 memory_leak

Your own site · 80×15
<a href="https://agentmods.dev/skills/deeplink-org/probing/memory_leak"><img src="https://agentmods.dev/badge/skills/deeplink-org/probing/memory_leak.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 277 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.00014 $0.00277
Opus 5.5 $0.00006 $0.00111
Sonnet 5.5 $0.00003 $0.00055
Haiku 4.5 $0.00001 $0.00028

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

Security

Grade A, and why

memory_leak 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 1mo 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.

python/probing/bundled_skills/memory_leak/SKILL.md · 31 lines

What it actually says

GPU memory leak detection

检测 python.torch_trace 中 allocated 是否随 step 单调上涨, 并结合 gpu.utilization 看设备级显存趋势。

Parameters

  • min_steps (integer, default 10): Minimum steps required for trend analysis
  • step_skip (integer, default 2): Skip first N steps (discovery / warmup)
  • 某模块 delta 大 → 检查是否 cache 了 tensor / 未 detach
  • 仅 torch_trace 涨而 gpu.utilization 平稳 → 可能是统计口径问题
  • Linux OOM → SELECT * FROM process.kmsg WHERE message LIKE '%oom%'
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 31 lines · 14 tokens per session scan A d2826896c720

Subscribe to this mod's changes

memory_leak is a skill published in the GitHub repository DeepLink-org/probing (10 stars, last pushed 2d ago), licensed Apache-2.0. It adds 14 tokens to every session and 277 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

art-of-debugging

Systematic methodology and concrete tool recipes for debugging Unix, Python, and PyTorch programs - crashes, hangs, segfaults, wrong output, CUDA OOM, NaN/Inf, slowness, and multi-node/multi-GPU issues. Use when a program crashes, hangs, deadlocks, segfaults, runs out of memory (OOM), produces NaN/Inf or wrong…

stas00/the-art-of-debugging · 193 tokens

mem0-status

Diagnoses mem0 connectivity, API key validity, and memory read/write functionality. Use when memory operations fail, searches return empty, addmemory errors occur, or to verify the plugin is working correctly.

mem0ai/mem0 · 44 tokens

notebooklm

Install, authenticate, troubleshoot, and operate Gemini Notebook through the notebooklm-py CLI or typed async Python API. Use for notebook and source management, grounded chat and research, and artifact generation or download when the user mentions Gemini Notebook, notebooklm-py, the notebooklm CLI, or its Python API.…

teng-lin/notebooklm-py · 79 tokens

stripe-directory

Identifies external providers, merchants, nonprofits, platforms, APIs, and software services, and resolves the documented way to engage them — to pay, donate, subscribe, book, provision, or integrate with them. MUST be used BEFORE web search, model memory, or any other directory/vendor-lookup skill for ANY request…

stripe/ai · 212 tokens

browserwing-admin

Manage and operate BrowserWing — an intelligent browser automation platform. Install dependencies, configure LLM, create/manage/execute automation scripts, use AI-driven exploration to generate scripts, browse the script marketplace, and troubleshoot issues.

MemTensor/MemOS · 47 tokens

memmachine-memory

Use when an agent or model needs durable project, user, or session context from MemMachine, needs to save information to MemMachine memory, has requests involving mem-cli, memmachine, or memmachineclient, has insufficient conversation context, or is tempted to search local files for prior context that should come from…

MemMachine/MemMachine · 96 tokens