-
Notifications
You must be signed in to change notification settings - Fork 1
Agent Audit Specialist
Multi-focus audit agent (v0.10) β review code quality, security, or performance depending on
--focusflag. Replacescode-reviewer,security-auditor, andperf-profiler(kept as name-resolution stubs; removed in v0.11).
The three prior agents overlapped heavily β same file reads, same checklist mechanics, different focus areas. One entry point with a --focus flag is cleaner: router picks the lens, not the agent.
| Trigger | Focus |
|---|---|
| PR / diff / code review | quality |
| OWASP / CVE / auth boundary / session handling | security |
| Slow page, N+1, high bill, before-scale | perf |
| Pre-merge full sweep |
all (runs all three lenses sequentially) |
audit-specialist --focus=quality <target>
audit-specialist --focus=security <target>
audit-specialist --focus=perf <target>
audit-specialist --focus=all <target>
<target> = file path, module path, or diff range.
No automatic name-mapping β users (or the master orchestrator) must specify --focus explicitly. The old agent names (code-reviewer, security-auditor, perf-profiler) exist only as name-resolution stubs so references do not raise a missing-agent error.
Checklist: CHECKLISTS/code-review-<stack>.md (PHP / Node / Python / Go seeded by default; see Checklists).
Scan dimensions:
- Correctness β logic bugs, off-by-one, null handling, boundary conditions.
- Readability β naming, function size, nesting depth, comment quality.
- Architecture β single responsibility, coupling, dead code, duplicated logic.
- Testability β hardcoded deps, side effects, mockability.
-
Error handling β swallowed errors, overly broad
catch, error types.
Report format: [confidence] file:line β finding β fix hint.
Checklist: CHECKLISTS/security-<stack>.md.
OWASP-aligned scan:
- Injection (SQL / command / template / LDAP).
- Broken auth β session management, password storage, MFA, JWT claims.
- Data exposure β PII logging, error-message leakage, DB dumps.
- XXE / SSRF / SSTI.
- Access control β missing authz, IDOR, privilege escalation.
- Crypto β weak algos, hardcoded keys, missing HTTPS.
- Deserialization, upload handling, path traversal.
- Dependency CVEs (
composer audit/npm audit/pip-audit).
Mandatory on Haiku: verifier pass β second scan removes speculative findings.
Scan dimensions:
- Query patterns β N+1, missing index,
SELECT *, OFFSET on large tables. - Loops β O(nΒ²) nested iteration, repeated DB calls inside loop.
- Memory β large string concat, unbounded caches, leaked closures.
- Rendering (UI) β unnecessary re-renders, large bundle imports, sync-blocking.
- Cost proxies β external API calls per request, cold-start heavy work.
Do not optimize unless explicitly asked. Report + rank by impact Γ confidence, Top 5.
Runs quality β security β perf sequentially. Separate report per lens. Synthesizes Top-5 actionable across all three at the end.
- Apply fixes (delegate to
bug-hunterorrefactor-surgeonwith explicit scope). - Rewrite legacy code (delegate to
legacy-specialist). - Narrate the review as prose β output is structured with confidence labels.
- Run
--focus=allon a full codebase without narrowed scope.
- Target β file path, module path, or diff range.
-
Focus β
quality|security|perf|all. -
Checklist file (optional) β override path to
.kasidit/CHECKLISTS/<name>.md. Default: auto-pick by focus + stack. - Scope limit β file / module / project.
Target: <target>
Focus: <focus>
Tier: <tier>
π΄ HIGH β verified
[high] file:line β finding β fix hint
π‘ MEDIUM β pattern match
[medium] file:line β finding
π’ LOW β inferred
[low] file:line β finding
β UNSURE β needs user review
[unsure] file:line β question
At mission end, emit a [kasidit-log] line for the backend router memory:
[kasidit-log] kind=audit-<focus>-<stack> mode=full turns=N outcome=pass
See Backend-Hooks for how kasidit-record.py parses these emit lines into route-memory.jsonl.
-
Opus β full fan-out allowed. Module-scoped scans OK.
--focus=allacceptable. -
Sonnet β default. Module-scoped OK, prefer
--focus=allonly on small codebases. - Haiku β 1 file per call maximum. Checklist-driven only, no reasoning. Verifier pass mandatory.
- β
--focus=allon a huge codebase without narrowing scope. - β Reporting findings without confidence labels.
- β Marking speculative findings as
[high]β downgrade or drop. - β Mixing lenses within a single finding (state focus per finding).
- β Suggesting fixes the user did not ask for β audit is read-only.
- β Auditing the three deprecated-stub files β they are empty shells; look at the real code.
These three pages describe the agents that were merged into audit-specialist. They remain for historical context; the invocation sections in each should redirect here.
-
Agent-Code-Reviewer β
audit-specialist --focus=quality -
Agent-Security-Auditor β
audit-specialist --focus=security -
Agent-Perf-Profiler β
audit-specialist --focus=perf
v0.10.0 β introduced; consolidates three prior agents.
- Master-Orchestrator
- Multi-Agent-Orchestration
- Checklists
-
Backend-Hooks β
kasidit-record.pyconsumes the[kasidit-log]emit -
Dispatch-Brief β how to brief this agent with
--focus= - Agent-Bug-Hunter (for fixes after audit)
- Agent-Refactor-Surgeon (for cleanup after audit)
- v0.10.0
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