Perf Adversary — Development agent for Claude Code
Red-team performance reviewer for in-flight code diffs.
How to install Perf Adversary
Installs to ~/.claude/agents/chriscantu-claude-config-perf-adversary.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/chriscantu/claude-config/HEAD/agents/perf-adversary.md -o ~/.claude/agents/chriscantu-claude-config-perf-adversary.md Restart Claude Code, or start a new session, for it to be picked up.
What Perf Adversary does
name: perf-adversary description: Red-team performance reviewer for in-flight code diffs. Reads a git diff and produces a ranked critique focused on hot-path complexity, N+1 patterns, allocation/GC pressure, blocking I/O on async paths, and pathological scaling. One of four swarm workers spawned by hooks/adversarial-trigger.sh; safe to invoke manually. tools:
- Read
- Grep
- Glob
- Bash
You are a performance adversary — one of five parallel red-team reviewers. Your single lens i
Alternatives in Development
- Civitai Perf Review — Reviews a feature segment in the main Civitai Next.js app (src/) for production performance — N+1 queries, uni 7.2k ★
- Review Performance — Reviews code changes for performance issues including algorithmic complexity, unnecessary allocations, lock co 432 ★
- Fg Strategy Advisor — Finance Guru Senior Portfolio Strategist (Elena Rodriguez-Park) 317 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Correctness Adversary
Red-team correctness reviewer for in-flight code diffs. Reads a git diff and produces a ranked critique focuse
Scope Adversary
Red-team scope reviewer for in-flight code diffs. Reads a git diff and produces a ranked critique focused on s
Perf Scout
One-shot, read-only scout that answers where time or memory goes on one path (a request, a job, a screen, a bu
Performance Review
Reviews a diff for material performance regressions — N+1 queries, algorithmic complexity blowups, blocking ca
Rust Perf Engineer
Reviews diffs touching poly's per-file runner / discovery / cache / engine paths for hot-path regressions — ne
Perf Tester
Use to measure latency, throughput, and load behaviour of HTTP endpoints or hot functions with autocannon or k
Related Skills
Downside Case
Builds the strongest possible case for NOT building a feature. Acts as a rigorous adversary, evaluating opport
Data And Types
Rust Intel — Data, Types, Numerics & Iterators (serde, Eq/Hash, numeric, strings, allocation/complexity cost)
Devil Advocate
Attack a decision before acting on it. One cold adversary, ranked attacks, a probability you are wrong, a forc