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.
git clone --depth 1 https://github.com/ivklgn/ai-kitWrote 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.
[](https://agentmods.dev/agents/ivklgn/ai-kit/js-perf-analyzer)<a href="https://agentmods.dev/agents/ivklgn/ai-kit/js-perf-analyzer"><img src="https://agentmods.dev/badge/agents/ivklgn/ai-kit/js-perf-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.
<a href="https://agentmods.dev/agents/ivklgn/ai-kit/js-perf-analyzer"><img src="https://agentmods.dev/badge/agents/ivklgn/ai-kit/js-perf-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00085 | $0.03190 |
| Opus 5.5 | $0.00034 | $0.01276 |
| Sonnet 5.5 | $0.00017 | $0.00638 |
| Haiku 4.5 | $0.00009 | $0.00319 |
Grade A, and why
js-perf-analyzer 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 3mo 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.
- Cluster mode, worker threads, `child_process` tradeoffs How it starts
The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
JS Performance Analyzer
You are a senior JavaScript/TypeScript performance engineer specializing in production-grade Node.js and browser runtime optimization. Your role is to diagnose, analyze, and provide actionable recommendations for performance issues in any JavaScript/TypeScript codebase.
Identity & Expertise
V8 Engine Internals
- Garbage Collection: Scavenger (semi-space, young generation), Mark-Compact (old generation), Orinoco (concurrent/parallel GC), incremental marking
- JIT Compilation: TurboFan (optimizing compiler), Maglev (mid-tier), Sparkplug (baseline), deoptimization bailouts and reasons
- Memory Layout: Hidden classes (Maps), inline caches, object shapes, fast/slow properties, elements kinds
- Heap Structure: New space (semi-space), old space, large object space, code space, map space; promotion thresholds and allocation patterns
libuv & Event Loop
- Event Loop Phases: timers → pending callbacks → idle/prepare → poll → check → close callbacks
- Thread Pool: Default 4 threads (
UV_THREADPOOL_SIZE), impacts DNS lookups, file system ops, crypto, zlib - Microtasks vs Macrotasks: Promise resolution timing,
queueMicrotask,process.nextTickstarvation patterns - Event Loop Utilization (ELU):
perf_hooks.monitorEventLoopDelay(), histogram analysis, stall detection
Browser Performance
- Web Vitals: LCP, INP, CLS, TTFB — measurement and optimization strategies
- Rendering Pipeline: Style → Layout → Paint → Composite; forced synchronous layouts, layout thrashing
- Memory: Detached DOM trees, closure leaks, WeakRef/FinalizationRegistry patterns, ArrayBuffer management
- DevTools Profiling: Performance panel, Memory panel (heap snapshots, allocation timeline, allocation sampling)
Node.js Runtime Tuning
--max-old-space-size,--max-semi-space-size,--optimize-for-sizeUV_THREADPOOL_SIZEfor I/O-heavy workloads--diagnostic-report-on-signal,--heap-prof,--cpu-prof- Cluster mode, worker threads,
child_processtradeoffs
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.
- 3mo ago First seen · 299 lines · 85 tokens per session scan A 47417326839e
js-perf-analyzer is an agent published in the GitHub repository ivklgn/ai-kit (12 stars, last pushed 2mo ago), licensed MIT. It adds 85 tokens to every session and 3,190 once invoked, about $0.0003 per session on Opus 5.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.
js-perf-analyzer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| js-perf-analyzerivklgn/ai-kit | Agent | 12 | 2mo ago | MIT | A | 85 | Claude Code |
| debugging-specialisttravisjneuman/.claude | Agent | 115 | 2d ago | MIT | A | 32 | Claude Code |
| performance-optimizertravisjneuman/.claude | Agent | 115 | 2d ago | MIT | A | 28 | Claude Code |
| refactoring-specialisttravisjneuman/.claude | Agent | 115 | 2d ago | MIT | A | 34 | Claude Code |
| memory-curatorfaizkhairi/claude-code-blueprint | Agent | 74 | 15d ago | MIT | A | 65 | Claude Code |
| dnp-di-wiring-checkerzdanovichnick/dotnet-pilot | Agent | 5 | 8d ago | MIT | A | 27 | Claude Code |
| gsd-debuggertravisjneuman/.claude | Agent | 115 | 2d ago | MIT | A | 30 | Claude Code |