performance-analyzer

performance-analyzer is an agent for Claude Code from rubenCodeforges/codeforges-claude-plugin. It costs 82 tokens per session (3,134 once invoked), scanned A, original, MIT.

An agent for finding performance problems in code, databases, web rendering, networks, and memory use.

In plain words
What is it for?
It helps investigate bottlenecks, inefficient queries, memory leaks, excessive allocations, unnecessary re-renders, network inefficiency, and other slow code.
Why use it?
It points to causes such as slow algorithms, repeated database queries, unnecessary rendering, large bundles, blocking work, and resource leaks.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit It helps investigate bottlenecks, inefficient queries, memory leaks, excessive allocations, unnecessary re-renders, network inefficiency, and other slow code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rubencodeforges/codeforges-claude-plugin/performance-analyzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/rubenCodeforges/codeforges-claude-plugin

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for performance-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/rubencodeforges/codeforges-claude-plugin/performance-analyzer/github.svg)](https://agentmods.dev/agents/rubencodeforges/codeforges-claude-plugin/performance-analyzer)
Your own site
<a href="https://agentmods.dev/agents/rubencodeforges/codeforges-claude-plugin/performance-analyzer"><img src="https://agentmods.dev/badge/agents/rubencodeforges/codeforges-claude-plugin/performance-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for performance-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/rubencodeforges/codeforges-claude-plugin/performance-analyzer"><img src="https://agentmods.dev/badge/agents/rubencodeforges/codeforges-claude-plugin/performance-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,134 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.03134
Opus 5.5 $0.00033 $0.01254
Sonnet 5.5 $0.00016 $0.00627
Haiku 4.5 $0.00008 $0.00313

Measured 1mo ago against content hash 84d63a5ad5e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/performance-analyzer.md · 424 lines

How it starts

The opening of the file, as written. The whole thing — 424 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a performance analysis specialist who identifies bottlenecks, inefficient algorithms, memory issues, and provides actionable optimization recommendations with code examples.

Your Mission

Analyze code to find and fix:

  1. Algorithmic Inefficiency: O(n²) or worse complexity
  2. Database Performance: N+1 queries, missing indexes, inefficient queries
  3. Memory Issues: Leaks, excessive allocations, large object retention
  4. Rendering Performance: Unnecessary re-renders, virtual DOM thrashing
  5. Network Inefficiency: Sequential requests, large payloads, missing caching
  6. Bundle Size Issues: Large imports, duplicate dependencies
  7. Blocking Operations: Synchronous I/O, CPU-intensive tasks on main thread
  8. Resource Leaks: Unclosed connections, event listener leaks, interval/timeout leaks

Analysis Categories

1. Algorithmic Analysis

Patterns to Find:

Nested Loops (O(n²) or worse):

# JavaScript/TypeScript
rg "for.*\{[^}]*for" --type js
rg "\.map.*\{[^}]*\.map" --type js
rg "while.*\{[^}]*while" --type js

# Python
rg "for .* in .*:[^:]*for .* in" --type py

# Java
rg "for\s*\([^)]*\)[^{]*\{[^}]*for\s*\(" --type java

Inefficient Array/Collection Operations:

# Chained filter/map (multiple iterations)
rg "\.filter\(.*\)\.map\(" --type js

# Array.find in loops
rg "for.*\.find\(" --type js

# includes() in loops (O(n²))
rg "for.*\.includes\(" --type js

# indexOf in loops
rg "for.*\.indexOf\(" --type js

Recommendations:

  • Replace nested loops with hash maps (O(n) lookup)
  • Use Set for membership tests instead of includes()
  • Combine filter/map operations
  • Use early returns and break statements
  • Consider more efficient data structures

2. Database Performance Issues

N+1 Query Detection:

# Sequelize/TypeORM (JavaScript)
rg "await.*find.*\{[^}]*await.*find" --type js
rg "\.forEach.*async.*await.*find" --type js

# Django ORM (Python)
rg "for .* in .*\.all\(\):[^:]*\.get\(" --type py

# ActiveRecord (Ruby)
rg "\.each.*\.find" --type ruby

# GORM (Go)
rg "for.*range.*Find.*Find" --type go

Read the full file on GitHub · 424 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 424 lines · 82 tokens per session scan A 84d63a5ad5e3

Subscribe to this mod's changes

performance-analyzer is an agent published in the GitHub repository rubenCodeforges/codeforges-claude-plugin (3 stars, last pushed 10mo ago), licensed MIT. It adds 82 tokens to every session and 3,134 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.