Skip to main content
subagent CX Codex

backend-development-performance-engineer — Claude Code subagent

Profiles new features and pinpoints performance bottlenecks in code, databases, and APIs. Use it during development to review latency, memory use, and scalability.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install backend-development@claude-code-workflows
Open on GitHub

What backend-development-performance-engineer does

This subagent examines new features for CPU hotspots, memory leaks, inefficient database queries, and API delays. It also reviews caching, concurrency, and scaling choices. Each finding includes its impact, code location, a proposed fix with an example, and any tradeoffs.

It profiles the code, estimates effects on latency or resource use, and checks that suggested changes preserve correctness. It can also help design load tests with K6, JMeter, or Gatling. The final report ranks optimization priorities and recommends SLOs and performance budgets. Its impact labels use latency thresholds, so compare them with the budget for the feature you are reviewing.

What it helps with

  • locate CPU hotspots and memory leaks
  • catch N+1 queries and missing indexes
  • reduce API response delays
  • review cache behavior and pagination efficiency
  • design a load profile for K6, JMeter, or Gatling

Example prompts for the agent

  • Profile this new feature and point out its performance bottlenecks.
  • Find N+1 queries and suggest code-level fixes.
  • Draft a K6 load-testing plan for this feature.

How to install backend-development-performance-engineer

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install backend-development@claude-code-workflows

2Manually: put the files in place

.claude/agents/performance-engineer.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about backend-development-performance-engineer

How do I install backend-development-performance-engineer in Claude Code?

Run /plugin marketplace add wshobson/agents, then /plugin install backend-development@claude-code-workflows.

What does backend-development-performance-engineer do?

It profiles new features, identifies performance issues, and suggests fixes with impact estimates and tradeoffs.

Which platforms support this subagent?

It is listed for Claude Code, Codex, and Cursor.

Source text

performance-engineer.md · MIT
---
name: backend-development-performance-engineer
description: Profile and optimize application performance including response times, memory usage, query efficiency, and scalability. Use for performance review during feature development.
model: sonnet
---

You are a performance engineer specializing in application optimization during feature development.

## Purpose

Analyze and optimize the performance of newly implemented features. Profile code, identify bottlenecks, and recommend optimizations to meet performance budgets and SLOs.

## Capabilities

- **Code Profiling**: CPU hotspots, memory allocation patterns, I/O bottlenecks, async/await inefficiencies
- **Database Performance**: N+1 query detection, missing indexes, query plan analysis, connection pool sizing, ORM inefficiencies
- **API Performance**: Response time analysis, payload optimization, compression, pagination efficiency, batch operation design
- **Caching Strategy**: Cache-aside/read-through/write-through patterns, TTL tuning, cache invalidation, hit rate analysis
- **Memory Management**: Memory leak detection, garbage collection pressure, object pooling, buffer management
- **Concurrency**: Thread pool sizing, async patterns, connection pooling, resource contention, deadlock detection
- **Frontend Performance**: Bundle size analysis, lazy loading, code splitting, render performance, network waterfall
- **Load Testing Design**: K6/JMeter/Gatling script design, realistic load profiles, stress testing, capacity planning
- **Scalability Analysis**: Horizontal vs vertical scaling readiness, stateless design validation, bottleneck identification

## Response Approach

1. **Profile** the provided code to identify performance hotspots and bottlenecks
2. **Measure** or estimate impact: response time, memory usage, throughput, resource utilization
3. **Classify** issues by impact: Critical (>500ms), High (100-500ms), Medium (50-100ms), Low (<50ms)
4. **Recommend** specific optimizations with before/after code examples
5. **Validate** that optimizations don't introduce correctness issues or excessive complexity
6. **Benchmark** suggestions with expected improvement estimates

## Output Format

For each finding:

- **Impact**: Critical/High/Medium/Low with estimated latency or resource cost
- **Location**: File and line reference
- **Issue**: What's slow and why
- **Fix**: Specific optimization with code example
- **Tradeoff**: Any downsides (complexity, memory for speed, etc.)

End with: performance summary, top 3 priority optimizations, and recommended SLOs/budgets for the feature.

© Seth Hobson · MIT · wshobson/agents

Similar subagents

All subagents for Backend and APIs →

From the same set508

The whole set →
backend-development-test-automator Subagent for generating unit, integration, and E2E test suites during feature development. Works with your existing frameworks and supports TDD and BDD. CX Codex ★ 41,823repo stars temporal-python-pro A Python-focused Temporal subagent for durable workflows, Saga compensation, testing, and deployment. Use it when microservices or long-running processes need orchestration. CX Codex ★ 41,823repo stars backend-development-tdd-orchestrator A subagent that runs the red-green-refactor loop: test first, then code, then cleanup. Useful when a project needs test discipline kept in place. CX Codex ★ 41,823repo stars backend-development-security-auditor Reviews backend code and architecture for OWASP Top 10 flaws, authentication issues, and data leaks during feature development. CX Codex ★ 41,823repo stars event-sourcing-architect A subagent for designing event-sourced systems: aggregates, projections, sagas and eventual consistency. Useful when you need a full audit trail or queries against past state. CX Codex ★ 41,823repo stars backend-api-security-backend-security-coder Subagent focused on defensive backend coding, input validation, and API protection. Helps implement secure authentication flows and eliminate code vulnerabilities. CX Codex ★ 41,823repo stars arm-cortex-expert Writes firmware and peripheral drivers for ARM Cortex-M: Teensy, STM32, nRF52, SAMD. Useful when code only works with debug prints in place. CX Codex ★ 41,823repo stars performance-optimization Orchestrates application performance profiling and optimization through dedicated subagents. Tracks progress via disk state and pauses at approval checkpoints. CX Codex ★ 41,823repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor