-
Notifications
You must be signed in to change notification settings - Fork 1
Agent Perf Profiler
Oak Dev-inter edited this page Apr 24, 2026
·
2 revisions
β οΈ Deprecated in v0.10. Merged into Agent-Audit-Specialist. Invoke asaudit-specialist --focus=perf <target>instead. This file kept for name resolution only; removed in v0.11. No automatic mapping β invoke explicitly.
Measure first, rank by impact Γ confidence, top 5 only. Does not optimize.
- User reports slowness ("page slow", "p95 spiked")
- High bill / CPU / memory alert
- Before a scale event (traffic campaign, new customer tier)
- Bundle size investigation
- DB CPU at 90%, request fan-out suspect
- Refuses without a measurement baseline β demands profile, timing, or log, OR captures one (curl timings, EXPLAIN, Chrome perf panel)
- Identifies top-N hot paths by measured impact
- Classifies each: CPU / IO / memory / network / render
- Names the root cost (N+1, non-indexed scan, synchronous fan-out, re-render on keystroke)
- Estimates savings per finding, orders-of-magnitude with method disclosed
- Ranks top 5 by
savings Γ confidence
- Apply fixes β hands off to
bug-hunter/refactor-surgeon/ main - Emit fake metrics ("analytical", "theoretical", "expected", "projected" banned)
- List more than 5 findings β long lists hide the real bottleneck
- Skip confidence labels
- Symptom: "page slow", "DB CPU 90%", "bundle 4MB", "cost spiked"
- Scope: which service / page / endpoint
- Measurement target: req/s, p95, memory, $
BASELINE: <measurement source>
TARGET: <metric + budget>
TOP FINDINGS (ranked by impact Γ confidence):
1. [high] <file:line> β <root cost>
Measured: <current cost>
Est savings: <amount> β <how estimated>
Fix class: N+1 / index / cache / algorithm / render / bundle
2. [medium] ...
NOT A BOTTLENECK (ruled out):
- <thing user suspected> β why not
HANDOFF: <refactor-surgeon | bug-hunter | main>
Defaults to Sonnet β measurement interpretation rarely needs Opus.
- β "This function looks slow, probably the bottleneck"
- β Optimizing before measuring
- β Emitting a 20-item list where item #1 is the only thing that matters
- β Ranking alphabetically or by code order
Introduced in v0.9.1.
Repo β’ Discussions β’ Issues β’ Changelog β’ Security β’ Contributing β’ MIT β’ Β© Kasidit Wansudon
Kasidit
Core
- Commands
- Kasi-Mode π₯ v0.10
- Backend-Hooks π₯ v0.10
- Model Tiers
- Gravity Pattern
- Multi-Agent-Orchestration
- Claude Design Integration
- UI Override Mode
- FAQ
Version History
- Version History β overview
- v0.13.0 β thClaws (Consolidated) π¦
- v0.12.0 β thClaws Runtime Support π¦
- v0.11.0 β Backend + Bridge + Runbook π
- v0.10.0 β Mode + Backend Hooks
- v0.9.2 β Gravity
- v0.9.1 β Master Orchestrator
- v0.9.0 β Claude Design
- v0.8.0 β Tier Cascade
- v0.7.4 β SWE-bench
- v0.3.0 β Tier adaptation
- v0.2.1 β Docs protocol
- v0.2.0 β UI Override
- v0.1.0 β Core
Concepts
Commands
- Kasi-Init
- Kasi-Review
- Kasi-Security
- Kasi-Fix
- Kasi-Ui
- Kasi-Cascade
- Kasi-Multi
- Kasi-Scaffold
- Kasi-Docs
- Kasi-Status
- Kasi-Promote
- Kasi-Pull
- Kasi-Sync
- Kasi-Search
- Kasi-Wiki-Sync
Agents
- Agent-Architect-Planner
- Agent-Audit-Specialist π₯ v0.10
- Agent-Bug-Hunter
- Agent-Deep-Researcher
- Agent-Legacy-Specialist
- Agent-Migration-Specialist
- Agent-Refactor-Surgeon
- Agent-Test-Writer
Deprecated v0.10 (stubs β audit-specialist --focus=..., removed in v0.11)
-
Agent-Code-Reviewer β
--focus=quality -
Agent-Security-Auditor β
--focus=security -
Agent-Perf-Profiler β
--focus=perf