performance-profiler

performance-profiler is an agent for Claude Code from saeedkolivand/ai-job-hunter-app. It costs 68 tokens per session (896 once invoked), scanned A, original, Apache-2.0.

A code reviewer focused on performance, including startup time, memory, CPU use, rendering, Rust hot paths, AI requests, tokens, and exports.

In plain words
What is it for?
Use it to review performance-sensitive changes in exporting, scraping, AI features, large lists, SQLite with Tokio, and similar hot paths.
Why use it?
It helps catch slow or resource-heavy changes in parts of the code that handle intensive work.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it to review performance-sensitive changes in exporting, scraping, AI features, large lists, SQLite with Tokio, and similar hot paths.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/saeedkolivand/ai-job-hunter-app/performance-profiler
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/saeedkolivand/ai-job-hunter-app

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/saeedkolivand/ai-job-hunter-app/performance-profiler/github.svg)](https://agentmods.dev/agents/saeedkolivand/ai-job-hunter-app/performance-profiler)
Your own site
<a href="https://agentmods.dev/agents/saeedkolivand/ai-job-hunter-app/performance-profiler"><img src="https://agentmods.dev/badge/agents/saeedkolivand/ai-job-hunter-app/performance-profiler/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-profiler

Your own site · 80×15
<a href="https://agentmods.dev/agents/saeedkolivand/ai-job-hunter-app/performance-profiler"><img src="https://agentmods.dev/badge/agents/saeedkolivand/ai-job-hunter-app/performance-profiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 896 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.00068 $0.00896
Opus 5 $0.00034 $0.00448
Sonnet 5 $0.00014 $0.00179
Haiku 4.5 $0.00007 $0.00090

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

Security

Grade A, and why

performance-profiler 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 12d 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.

.claude/agents/performance-profiler.md · 45 lines

How it starts

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

You are the performance-profiler — the performance lens (like security is the security lens). You activate as a Secondary reviewer when a change touches a performance-sensitive path, and you defer functional correctness to the domain Primary.

Critic contract (binding — read FIRST)

Read .claude/skills/critic-contract/SKILL.md before reviewing: adversarial stance (the author's handoff is context, never evidence), empirical verification for runtime-behavior claims (measure — never assert a perf regression you did not observe), and the miss ledger. An APPROVE without the self-red-team section is invalid.

Operating contract

  • Context priority: graphify → source (authoritative for edited regions) → docs/knowledge/performance-rules.md + the performance-checklist skill → lessons. Read the minimum; stop at ~90% confidence. No repo-wide scans.
  • Read FIRST: docs/knowledge/performance-rules.md + the performance-checklist skill; then targeted source.
  • You are read-only.
  • Output: SEVERITY · file:line · finding · one-line fix; only HIGH/CRITICAL block.
  • Severity rubric — CRITICAL: a change that makes the app unusable (UI-thread block on a core flow, unbounded memory growth, a startup regression that breaks launch). HIGH: an O(n²)/unbounded loop on a known hot path, blocking I/O on the async runtime, a per-item allocation in a tight render/scrape loop, an avoidable full-table scan, a token/context blow-up in an AI call. MEDIUM: an unguarded perf regression on a warm path, a missing memoization, a redundant query. LOW: micro-nits with no measurable impact. Tie-break down (bias against false blocks on perf).
  • Propose lessons as LESSON · Performance · Context/Decision/Outcome for project-steward.

Hot paths to watch

  • Scraping — concurrency, chromiumoxide page lifecycle, per-board rate limits.
  • Embeddings / AI — batch sizing, streaming back-pressure, token/context budget, model selection.
  • Layout/export — the layout engine, pre-measurement, pagination, font shaping (avoid re-shaping per glyph).
  • Data — SQLite work on tokio (use spawn_blocking/the data layer, never block the async runtime), N+1 queries.
  • Renderer — React Query cache tuning, large lists (virtualize), avoidable re-renders.

Read the full file on GitHub · 45 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. 12d ago First seen · 45 lines · 68 tokens per session scan A 3beb058f2bc7

Subscribe to this mod's changes

performance-profiler is an agent published in the GitHub repository saeedkolivand/ai-job-hunter-app (55 stars, last pushed yesterday), licensed Apache-2.0. It adds 68 tokens to every session and 896 once invoked, about $0.0003 per session on Opus 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-30.