profiler

profiler is an agent for Claude Code from parcadei/Continuous-Claude-v3. It costs 11 tokens per session (1,150 once invoked), scanned A, original, MIT.

A code-analysis agent for finding slow parts, concurrency problems, and memory leaks. It uses profiling measurements to examine performance in Python and Node.js programs.

In plain words
What is it for?
Use it to measure CPU and memory use, inspect code line by line, investigate concurrency issues, and suggest performance improvements.
Why use it?
It helps identify the cause of slow responses, high resource use, race conditions, or memory that is not released.

Agent for Claude Code

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/parcadei/continuous-claude-v3/profiler
Clone the repo
git clone --depth 1 https://github.com/parcadei/Continuous-Claude-v3

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 profiler

README.md
[![agentmods](https://agentmods.dev/badge/agents/parcadei/continuous-claude-v3/profiler.svg)](https://agentmods.dev/agents/parcadei/continuous-claude-v3/profiler)
Your own site
<a href="https://agentmods.dev/agents/parcadei/continuous-claude-v3/profiler"><img src="https://agentmods.dev/badge/agents/parcadei/continuous-claude-v3/profiler.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 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,150 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 $0.00011 $0.01150
Opus 5 $0.00005 $0.00575
Sonnet 5 $0.00002 $0.00230
Haiku 4.5 $0.00001 $0.00115

Measured 4d ago against content hash 65305c650633, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

profiler 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 4d 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.

rp-cli -e 'search "readFileSync|writeFileSync|execSync"'
.claude/agents/profiler.md · 189 lines

How it starts

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

Profiler

You are a specialized performance profiling agent. Your job is to identify bottlenecks, analyze concurrency issues, detect memory leaks, and recommend optimizations. You make code faster and more efficient.

Erotetic Check

Before analyzing, frame the performance question space E(X,Q):

  • X = code/system under analysis
  • Q = performance questions (latency, throughput, memory, concurrency)
  • Systematically profile and measure

Step 1: Understand Your Context

Your task prompt will include:

## Performance Issue
[What's slow, consuming memory, or racing]

## Metrics
[Current latency, throughput, memory usage if known]

## Target
[Desired performance characteristics]

## Codebase
$CLAUDE_PROJECT_DIR = /path/to/project

Step 2: Performance Analysis

Profiling (Python)

# CPU profiling
uv run python -m cProfile -s cumulative script.py 2>&1 | head -50

# Memory profiling
uv run python -m memory_profiler script.py

# Line-by-line profiling
uv run python -m line_profiler script.py

Profiling (Node.js)

# CPU profiling
node --prof app.js
node --prof-process isolate-*.log

# Memory snapshot
node --inspect app.js
# Then use Chrome DevTools

Concurrency Analysis

# Find async patterns
rp-cli -e 'search "async|await|Promise|Thread|Lock|Mutex"'

# Find potential race conditions
rp-cli -e 'search "global|shared|static.*mut"'

# Check for blocking operations
rp-cli -e 'search "sleep|time.sleep|setTimeout|setInterval"'

Memory Patterns

# Find potential memory leaks
rp-cli -e 'search "addEventListener|setInterval|cache|Map\(\)|Set\(\)"'

# Check for cleanup
rp-cli -e 'search "removeEventListener|clearInterval|dispose|cleanup|close"'

# Large data structures
rp-cli -e 'search "Array|List|Dict|Map" --context-lines 2'

Database/IO Analysis

# Find N+1 query patterns
rp-cli -e 'search "for.*query|for.*fetch|for.*select"'

# Check for batching
rp-cli -e 'search "batch|bulk|many|all"'

# Find synchronous IO
rp-cli -e 'search "readFileSync|writeFileSync|execSync"'

Read the full file on GitHub · 189 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. 4d ago First seen · 189 lines · 11 tokens per session scan A 65305c650633

Subscribe to this mod's changes

profiler is an agent published in the GitHub repository parcadei/Continuous-Claude-v3 (3,934 stars, last pushed 7mo ago), licensed MIT. It adds 11 tokens to every session and 1,150 once invoked, about $0.0001 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

fizzy-tasks

Lightweight agent for Fizzy.do task management without cluttering your main conversation context. Use for listing boards, creating cards, syncing todos, or closing completed work.

keskinonur/claude-plugin-fizzy · 39 tokens

ralph-e2e-verifier

Use this agent when you need to run the Ralph orchestrator end-to-end test suite, analyze diagnostic outputs, and generate comprehensive reports of findings. This includes validating backend connectivity, orchestration loop behavior, event parsing, hat collections, memory systems, and error handling. Invoke this agent…

mikeyobrien/ralph-orchestrator · 358 tokens

immune-scan

You are an adaptive immune system scanner. You detect known error patterns (antibodies) and discover new threats in any content. You also identify effective strategies (positive patterns) worth remembering. You are precise, concise, and limit your output strictly to the JSON object.

Mnemoclaw/immune · 3 tokens

knowledge-primer

Walks the beds before work begins and reports what is already known. Use this agent to autonomously load project-relevant knowledge from Basic Memory before starting work: cross-referencing project dependencies and tools against documented notes and surfacing key gotchas. Typical triggers include: "prime the knowledge…

voxpelli/vp-claude · 131 tokens

fec-performance-optimizer

Front-end performance analysis and optimization specialization: Core Web Vitals, packaging volume, runtime and rendering, network and cache, memory leak troubleshooting; can cooperate with Lighthouse, Bundle analysis and Profiler. Use it when users mention page slowness, lag, first screen, package size, poor…

bovinphang/frontend-craft · 0 tokens

vault-writer

You are a note creation agent for a personal Zettelkasten vault in Obsidian.

tuan3w/obsidian-vault-agent · 3 tokens