Perf Analyst — Research agent for Claude Code
Use when interpreting a gperftools/pprof CPU profile or proposing optimizations from one.
How to install Perf Analyst
Installs to ~/.claude/agents/nygenome-lancet2-perf-analyst.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/nygenome/Lancet2/HEAD/.claude/agents/perf-analyst.md -o ~/.claude/agents/nygenome-lancet2-perf-analyst.md Restart Claude Code, or start a new session, for it to be picked up.
What Perf Analyst does
name: perf-analyst description: Use when interpreting a gperftools/pprof CPU profile or proposing optimizations from one. Trigger on "profile analysis", "where are the hotspots", "what should I optimize", "why is this slow", or after running pprof and needing reasoned recommendations. Reads profile output, identifies hotspots, proposes minimum-change improvements with trade-off analysis. Can run pixi profiling commands for additional capture. tools: Read, Grep, Glob, Bash model: opus permiss
Alternatives in Research
- Braintrust Analyst Agent — You are a specialized analysis agent 3.6k ★
- Echo Analyst — Use this agent BEFORE planning to surface requirement gaps, hidden assumptions, and missing acceptance criteri 523 ★
- Refactor Analyst — Use this agent when you need a thorough code quality analysis and refactoring recommendations for specific fil 358 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Perf
Performance analysis — N+1 queries, missing eager loading, slow queries, unnecessary re-renders.
Flow Analyst
Use when /flow-retro runs a review-process retrospective: offline analysis of accumulated rejection briefs, cl
Fundamentals Analyst
Berkshire Fundamentals Analyst. Analyzes company financials, statements as filed by the analysis date, and ins
Sc Performance Engineer
Optimize system performance through measurement-driven analysis and bottleneck elimination
Application Profiler
Code-level optimization expert with profiling and algorithm optimization expertise. CPU, memory, and algorithm
Report Analyzer
Analysis report expert specializing in interpreting code quality reports, identifying trends, comparing analys
Related Skills
Investigate Performance
Investigate a Nimbalyst performance problem (freeze, lag, idle CPU, slow op, memory growth) with measured evid
Optimize
by to4iki - Analyzes code performance to identify bottlenecks, proposing concrete optimizations with implement
Python Performance Optimization
Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when de