Audit code performance defects
performancesubagentsetup L1★1
austintheriot/dotfiles ↗What it does
Identify algorithmic and I/O perf defects
Best for
Catching O(n²) loops, N+1 queries, and async-blocking patterns that pass tests but fail in production
Inputs
- · code diff or file path
- · profiler artifacts (optional)
Outputs
- · .claude/audits/performance.md with findings, severity, hot-path callsites
Requires
- · Read
- · Edit
- · Write
- · Bash
- · Grep
- · Glob
- · WebFetch
Preconditions
Perf rules reference exists at ~/.claude/rules/performance.md
Failure modes
- · Micro-optimizations flagged (JIT-handled)
- · Performance finding without hot-path anchor
Trust signals
- · Recommends measurement (profilers, EXPLAIN ANALYZE) over reasoning
- · Distinguishes from code-simplifier and bug-hunter