Security Review
A comprehensive security audit using Claude Opus in a worktree.Dispatch Command
What Happens
-
Dispatcher analyzes the request:
- Task: Security review
- Model: opus (Claude Opus)
- Environment: git worktree (isolated from main branch)
-
Creates a plan file at
.dispatch/tasks/security-audit/plan.md:
- Spawns worker and monitor as background processes
- Returns control immediately:
Progress Updates
Worker updates the plan as it progresses:Worker Asks a Question
Worker encounters an ambiguity:Completion
All items checked:Refactoring Task
Refactor the auth module to use JWT with Claude Sonnet.Dispatch Command
Plan Created
Worker Progress
Worker completes items sequentially:Completion
Pre-Launch Sweep (Multi-Task)
Comprehensive pre-launch audit with 5 parallel workers using different models.Dispatch Command
Dispatcher Response
Checking Status
After a few minutes:Critical Issue Surfaces
Security worker finds something critical:All Tasks Complete
Simple Task: Fix Typo
Not all tasks need elaborate plans. Simple edits are single items:Plan Created
Completion
Multi-Stage Workflow
Some tasks have sequential dependencies.Stage 1: Research
.dispatch/tasks/payment-research/output.md with recommendations
Stage 2: Implementation
After reviewing the proposal:Stage 3: Testing
Key Takeaways
Workers Stay in Context
IPC lets workers ask questions and receive answers without losing state. No restart, no re-explaining.
Parallel When Possible
Independent tasks run concurrently. Five workers with fresh contexts beat one worker doing everything sequentially.
Right Model for the Job
Use Opus for deep reasoning (security, architecture), Sonnet for fast execution (refactoring, tests), Gemini for bulk generation (docs).
Plans Match Complexity
Simple tasks get simple plans (1-2 items). Complex tasks get detailed breakdowns (5-8 items). Don’t over-engineer.
For more details on specific features, see:
- Configuration — Managing models and backends
- Multi-Model Support — Using different models per task
- Parallel Tasks — Concurrent execution patterns
- Error Handling — Recovery and question flow