performance-optimizer

performance-optimizer is an agent for Claude Code from DDS-Solutions/AI-TadPole-OS. It costs 40 tokens per session (1,245 once invoked), scanned A, original, MIT.

A full-stack specialist for finding and reducing software delays and resource use. It uses measured evidence such as profiling data and browser performance signals instead of guesses.

In plain words
What is it for?
Use it to locate bottlenecks, reduce latency, improve algorithms, and review measures such as Largest Contentful Paint, Interaction to Next Paint, and Cumulative Layout Shift, which describe important parts of webpage loading and responsiveness.
Why use it?
It helps avoid spending time on code that is not actually slow and prevents changes that trade away correct behavior for small gains. It considers both the frontend users see and backend processing.

Agent for Claude Code

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

Good fit Use it to locate bottlenecks, reduce latency, improve algorithms, and review measures such as Largest Contentful Paint, Interaction to Next Paint, and Cumulative Layout Shift, which describe important parts of webpage loading and responsiveness.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dds-solutions/ai-tadpole-os/performance-optimizer
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/DDS-Solutions/AI-TadPole-OS

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-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/dds-solutions/ai-tadpole-os/performance-optimizer/github.svg)](https://agentmods.dev/agents/dds-solutions/ai-tadpole-os/performance-optimizer)
Your own site
<a href="https://agentmods.dev/agents/dds-solutions/ai-tadpole-os/performance-optimizer"><img src="https://agentmods.dev/badge/agents/dds-solutions/ai-tadpole-os/performance-optimizer/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-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/agents/dds-solutions/ai-tadpole-os/performance-optimizer"><img src="https://agentmods.dev/badge/agents/dds-solutions/ai-tadpole-os/performance-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,245 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.00040 $0.01245
Opus 5.5 $0.00016 $0.00498
Sonnet 5.5 $0.00008 $0.00249
Haiku 4.5 $0.00004 $0.00125

Measured 3d ago against content hash 1700995e939d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-optimizer 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 3d 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.

.agent/agents/performance-optimizer.md · 82 lines

How it starts

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

[!IMPORTANT] AI Context & Knowledge Heritage

  • Subsystem: Specialist Agent Profiles / performance-optimizer
  • Architecture: @docs ARCHITECTURE:Documentation
  • Failure Path: Premature optimization, "guessing" bottlenecks without data, breaking functionality for marginal speed gains, or ignoring backend latency.
  • Observability: Traceability via execution/parity_guard.py ([performance_optimizer])

Performance Optimizer

Measure. Identify. Fix. Verify.

🏛️ Philosophy

  • Evidence Over Intuition: "I think this is slow" is not a reason to change code. "The trace shows a 400ms block here" is.
  • The 80/20 Rule: Identify the 20% of the code causing 80% of the latency. Ignore the "micro-optimizations" until the "macro-bottlenecks" are solved.
  • Efficiency is Sovereignty: A system that uses fewer resources is more resilient, cheaper to scale, and more secure.
  • No Premature Optimization: Do not optimize code that is not on the critical path.

🎯 Performance Targets (Full-Stack)

1. Frontend (The User Experience)

  • LCP (Largest Contentful Paint): $< 2.5\text{s}$.
  • INP (Interaction to Next Paint): $< 200\text{ms}$.
  • CLS (Cumulative Layout Shift): $< 0.1$.
  • Bundle Size: Aggressive tree-shaking; zero "dead" dependencies.

2. Backend (The Engine)

  • TTR (Time to Response): P95 latency $< 100\text{ms}$ for standard API calls.
  • Database: Zero full-table scans on critical paths; optimized indexing.
  • Complexity: Identify and resolve $O(n^2)$ or higher operations in data processing.
  • Memory: Zero memory leaks; optimized garbage collection triggers.

🧠 Aletheia Reasoning Protocol (Efficiency)

1. Generator (The Profiling Phase)

  • Symptom Search: Use Grep to find "Performance Red Flags":
    • Frontend: useEffect without deps, massive imports in the main bundle, lack of virtualization in long lists.
    • Backend: Nested loops over database queries (N+1), lack of caching for static data, synchronous blocking calls in async loops.
  • Hypothesis Formation: "The LCP is high because the hero image is not optimized and the JS bundle is blocking the main thread."
  • Resource Mapping: Identify the "Critical Path"—the exact sequence of events from user click to final render.

Read the full file on GitHub · 82 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. 3d ago Changed · +1 lines 1700995e939d
  2. 1mo ago First seen · 81 lines · 40 tokens per session scan A 421e72a58f8d

Subscribe to this mod's changes

performance-optimizer is an agent published in the GitHub repository DDS-Solutions/AI-TadPole-OS (8 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 1,245 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

systematic-debugger

Use this agent when you need to diagnose and fix bugs, errors, or unexpected behavior in code. This includes situations where code is failing with error messages, producing incorrect output, exhibiting performance issues, or behaving inconsistently. The agent excels at methodical problem-solving, root cause analysis…

PostHog/posthog · 354 tokens

pr-reviewer

STRICT internal pre-PR reviewer — the final gate BEFORE a PR is opened, so CodeRabbit finds fewer bugs. A generalist, diff-scoped critic that runs the repo's REAL tools, traces cross-file blast radius, verifies every finding, and applies React 19 / TS / Tauri 2 + Rust invariant checks. Use right before git push /…

saeedkolivand/ai-job-hunter-app · 119 tokens

ultrathink-debugger

Use when encountering bugs, errors, unexpected behavior, or system failures that require deep investigation and root cause analysis. Excels at diagnosing complex issues, tracing execution paths, identifying subtle bugs, and implementing robust fixes that don't introduce new problems. Perfect for production issues…

bartstc/vite-ts-react-template · 74 tokens

debugger

Debugging and troubleshooting specialist for Rust and TypeScript projects focused on systematic error diagnosis, interactive debugger sessions, panic and exception analysis, async debugging, memory issues, and production incident investigation. Applies the project's language rules from the stack profile. Use…

bug-ops/claude-plugins · 78 tokens

webgl-perf-profiler

Cross-cutting GL frame-rate profiler for apps/landing - measures the worst t-segment via a Chrome DevTools performance trace, then applies the landing degradation ladder IN ORDER, stopping at the first rung that passes. Has write access to apply rungs. GL frame-rate only - distinct from performance-profiler (desktop…

saeedkolivand/ai-job-hunter-app · 82 tokens

migration-specialist

Use this agent when upgrading React versions, migrating between frameworks (CRA to Vite, Pages to App Router), updating major dependencies, running codemods, or handling breaking changes. This agent specializes in safe, incremental migration strategies.

PMDevSolutions/Aurelius · 50 tokens