ia-performance-oracle

ia-performance-oracle is an agent for Claude Code from iliaal/whetstone. It costs 37 tokens per session (2,167 once invoked), scanned A, original, MIT.

A code review tool for finding slow algorithms, inefficient database queries, high memory use, and scalability problems.

In plain words
What is it for?
Use it after adding features or when an application feels slow. It can review algorithm speed, database access patterns, memory allocation, and behavior at larger data volumes.
Why use it?
It helps identify performance problems before they affect users or production systems. It also points out how code may behave as the amount of data grows.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the whetstone plugin — 3 commands, 19 agents, 1 MCP server shipped together

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.

agentmods
npx agentmods add agents/iliaal/whetstone/ia-performance-oracle
Clone the repo
git clone --depth 1 https://github.com/iliaal/whetstone

Made for: Claude Code.

Or install whetstone, the plugin that ships this one along with the rest of its 3 commands, 19 agents, 1 MCP server.

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 ia-performance-oracle

README.md
[![agentmods](https://agentmods.dev/badge/agents/iliaal/whetstone/ia-performance-oracle.svg)](https://agentmods.dev/agents/iliaal/whetstone/ia-performance-oracle)
Your own site
<a href="https://agentmods.dev/agents/iliaal/whetstone/ia-performance-oracle"><img src="https://agentmods.dev/badge/agents/iliaal/whetstone/ia-performance-oracle.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00037 $0.02167
Opus 5 $0.00018 $0.01084
Sonnet 5 $0.00007 $0.00433
Haiku 4.5 $0.00004 $0.00217

Measured 6d ago against content hash dfbbfc0b83f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ia-performance-oracle scanned grade A with 1 finding 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 6d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

Search for synchronous I/O calls inside `async` functions: `fs.readFileSync`, `fs.writeFileSync`, `execSync`, `dns.lookupSync`, `file_get_contents()` in async PHP contexts, `open()` without `aiofiles` in Python async fun
plugins/whetstone/agents/ia-performance-oracle.md · 167 lines

How it starts

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

Identify and resolve performance bottlenecks before they become production issues.

Core Analysis Framework

When analyzing code, you systematically evaluate:

1. Algorithmic Complexity

  • Identify time complexity (Big O notation) for all algorithms
  • Flag any O(n²) or worse patterns without clear justification
  • Consider best, average, and worst-case scenarios
  • Analyze space complexity and memory allocation patterns
  • Project performance at 10x, 100x, and 1000x current data volumes

2. Database Performance

  • Detect N+1 query patterns
  • Verify proper index usage on queried columns
  • Check for missing includes/joins that cause extra queries
  • Analyze query execution plans when possible
  • Recommend query optimizations and proper eager loading

Read the full file on GitHub · 167 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. 6d ago First seen · 167 lines · 37 tokens per session scan A dfbbfc0b83f8

Subscribe to this mod's changes

ia-performance-oracle is an agent published in the GitHub repository iliaal/whetstone (33 stars, last pushed 7d ago), licensed MIT. It adds 37 tokens to every session and 2,167 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

dead-code-analyzer

Analyzes the codebase to find unused code — functions, imports, exports, variables, types, and classes — and produces a cleanup report with confidence levels. Never auto-deletes; reports findings for user review. Context: User wants to find unused code user: "find dead code" Context: User asks about code hygiene user…

lukaskellerstein/claude-my-marketplace · 160 tokens

code-archaeologist

Expert in legacy code, refactoring, and understanding undocumented systems. Use for reading messy code, reverse engineering, and modernization planning. Triggers on legacy, refactor, spaghetti code, analyze repo, explain codebase.

SKB3002/agenthub · 50 tokens

evidence-based-investigator

Investigates codebase issues by gathering concrete evidence — file paths, line numbers, code snippets, error messages, git history, and test coverage. Use when thorough, multi-angle research into a bug, failure, or unexpected behavior is needed. Does not trace runtime data flow across modules — use behavioral-analyst.…

testdouble/han · 85 tokens

qa-engineer

Use after senior-dev completes implementation. Analyzes actual code, then runs type-appropriate QA, writes report, files bugs in Beads.

avelikiy/great_cto · 33 tokens

streaming-reviewer

Streaming / event-driven pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off delivery-guarantee + ordering decisions before senior-dev claims tasks.

avelikiy/great_cto · 38 tokens

challenger

Use when: before the lead reports a root-cause conclusion, a 'done/verified' claim, an irreversible action about to run (commit/deploy/rm/push), or a 2nd-time fix — in APEX or plain conversation; also every eLicit round and Verify gate. Do NOT use for: code correctness/lint/types/API usage (sniper's job), or as a veto…

fusengine/agents · 92 tokens