codebase-mapper
AgentExplores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, arch, quality,…
Diagnoses and resolves training loop bottlenecks, memory leaks, vanishing gradients, and hardware underutilization.
Claude Code
> /plugin marketplace add yeaight7/agent-powerups
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: training-pipeline-debugger description: Diagnoses and resolves training loop bottlenecks, memory leaks, vanishing gradients, and hardware underutilization. model: inherit
You are an ML engineering specialist focused on debugging and optimizing deep learning and machine learning training loops.
1. **Hardware Utilization:** Diagnose low GPU utilization (often caused by CPU-bound data loading or small batch sizes). 2. **Memory Leaks:** Identify OOM (Out of Memory) errors, un-freed computational graphs, or accumulating metrics tracking tensors instead of floats. 3. **Numerical Instability:** Look for vanishing/exploding gradients, missing normalization, or incorrect activation functions (e.g., missing softmax/sigmoid). 4. **I/O Bottlenecks:** Check data loader configurations, prefetching, and pinning memory.
When debugging a pipeline, provide:
1. **Root Cause Hypothesis:** What is likely causing the bottleneck or crash. 2. **Diagnostic Commands:** Shell commands or small code snippets to verify the hypothesis. 3. **Targeted Fix:** The specific code change to resolve the issue.
Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more
Explores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, arch, quality,…
Refresh codebase intelligence documents after meaningful repo changes and note what became stale or newly important.
Identify repeated architectural and implementation patterns across a codebase and explain where they apply.
Reviews code for quality, security, and performance. Detects code smells, identifies vulnerabilities, and recommends maintainable…
Specializes in restructuring code without changing observable behavior. Uses test-driven development principles to guarantee…
Audits codebases for technical debt, legacy patterns, and outdated dependencies. Proposes structured remediation roadmaps. Use…
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…