-
Notifications
You must be signed in to change notification settings - Fork 1
Dispatch Brief
No brief, no dispatch.
The structured payload the Master-Orchestrator passes to every specialist agent. Introduced in v0.9.1 as part of the Master Orchestrator Rule; used by Kasi-Multi for fan-out dispatch in v0.9.2.
Every specialist invocation must pass all five fields:
MISSION: <one sentence, verifiable outcome>
INPUTS:
- <file paths, symptoms, measurements, versions>
CONSTRAINTS:
- <deadline, compat, perf budget>
EXPECTED OUTPUT:
- <matches the agent's documented output block>
PRIOR CONTEXT:
- <findings from earlier specialists, if any>
Ad-hoc prompts produce ad-hoc output. The brief is the contract between master and specialist.
One sentence. Verifiable. Present-tense imperative.
- β "Find the root cause of the 500 error on GET /api/sales after 2026-04-20 deploy"
- β "Add regression test for the timezone offset bug fixed in commit abc123"
- β "Look into the sales API" β not verifiable
- β "Improve performance" β not scoped
If you cannot write the mission in one sentence, the scope is wrong. Narrow first.
Concrete. File paths, line numbers, symptoms, measurements, versions. Never "the codebase".
- File paths:
app/Http/Controllers/SalesController.php:3708 - Symptoms: user report quoted verbatim; stack traces with line numbers
- Measurements:
p95 latency 2.3s,query count 47 per request - Versions:
Laravel 8.83 / PHP 7.4 / MySQL 5.7
What the specialist must respect.
- Deadlines:
ship before 2026-05-01 release - Compatibility:
must support Laravel 5.x β 8.x - Performance budgets:
< 200ms p95,< 50MB bundle - Scope limits:
touch only app/Models/,do not refactor related controllers
If no real constraints exist, write "none" β do not fabricate.
What the specialist returns. Must match the agent's documented output block.
-
bug-hunterreturns: root cause + minimal fix + regression test plan -
architect-plannerreturns: file list + step sequence + trade-offs + open questions (no code) -
audit-specialist --focus=perfreturns: top 5 findings ranked by impact Γ confidence (does not optimize) β pre-v0.10 was the standaloneperf-profileragent -
audit-specialist --focus=qualityreturns: severity-bucketed findings with confidence labels β pre-v0.10 wascode-reviewer -
audit-specialist --focus=securityreturns: OWASP-aligned findings + verifier pass β pre-v0.10 wassecurity-auditor -
test-writerreturns: runnable test file + gap notes
Wrong shape = rejected output, re-dispatch.
Findings from earlier specialists in the same mission.
- "architect-planner produced plan X (attached summary)"
- "deep-researcher cached Laravel 8 upsert docs at
.kasidit/knowledge/laravel-8-upsert.md" - "initial bug-hunter pass found path but not root cause"
Empty on first dispatch. Never empty on follow-up within the same mission.
MISSION: Audit SalesController.php for SQL injection, HIGH severity only
INPUTS:
- File: app/Http/Controllers/SalesController.php (lines 1-9806)
- Stack: Laravel 8.83, PHP 7.4, MySQL 5.7
- Checklist: .kasidit/CHECKLISTS/security-php.md
- Patterns: .kasidit/PATTERNS.md (error handling, DB query conventions)
CONSTRAINTS:
- Confidence labels mandatory (Haiku session)
- [unsure] items listed separately
- No speculation β prove exploitability or do not mention
EXPECTED OUTPUT:
- JSON-like list: [{ file, line, type, severity, confidence, fix_hint }]
- Only severity = HIGH (ignore MED / LOW this pass)
- Separate [unsure] section for user decision
PRIOR CONTEXT:
- none (first dispatch in mission)
- Every invocation from master β specialist
- Every
/kasi-multifan-out (all N specialists get their own brief) - Every follow-up dispatch within the same mission (carry prior findings in PRIOR CONTEXT)
Trivial exceptions the master may handle itself without a brief:
- One-line fix on a single file the user explicitly pointed to
- Pure question with no code change
- Reading top-level index (
CLAUDE.md,PATTERNS.md,INDEX.md,RELATIONS.md) - Final user-facing summary
Everything else β dispatch with a brief.
- β "Do stuff" prompts to specialists β no mission, no output shape
- β Skipping INPUTS because "the agent can figure it out"
- β CONSTRAINTS omitted β leads to out-of-scope work
- β EXPECTED OUTPUT as prose β "write some tests" instead of "runnable test file + gap notes"
- β PRIOR CONTEXT forgotten on follow-up β specialist re-does earlier work
- β Brief longer than the work itself β scope is wrong, narrow first
audit-specialist is the only audit agent in v0.10 (replaces code-reviewer / security-auditor / perf-profiler). Briefs must include the --focus flag:
MISSION: Pre-merge security gate on AuthService.php β only HIGH severity findings.
INPUTS:
- app/Services/AuthService.php
- .kasidit/CHECKLISTS/security-php.md (or default seeded)
CONSTRAINTS:
- HIGH severity only
- confidence labels mandatory
EXPECTED OUTPUT:
- audit-specialist --focus=security <target>
- findings array: [{file, line, type, severity, confidence, fix_hint}]
- verifier pass note (which findings reproduced, which deferred to user)
PRIOR CONTEXT:
- last audit found 2 SQL injection points in v1.4.x; patched in PR #1182
--focus=quality for code review, --focus=perf for profiling, --focus=all for the pre-merge full sweep.
- Master-Orchestrator β the rule that requires briefs
- Multi-Agent-Orchestration β fan-out dispatch mechanics
- Agent-Audit-Specialist β single-entry audit agent (v0.10)
- Kasi-Multi β the command that dispatches N briefs in parallel
- Kasi-Cascade β tier-cascaded briefs (Opus β Sonnet β Haiku)
- v0.9.1 β introduction
- v0.9.2 β fan-out extension
-
v0.10.0 β
--focusflag for audit-specialist briefs
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