Launch orchestrator mode with subagent delegation, monitoring, mode-aware execution, and chat compression
Manages multi-agent workflows with parallel task delegation, monitoring, and session persistence.
/plugin marketplace add Data-Wise/craft/plugin install data-wise-craft@Data-Wise/craft/craft:orchestrate <task> # Start with default mode
/craft:orchestrate <task> <mode> # Start with specific mode
/craft:orchestrate status # Show agent dashboard
/craft:orchestrate timeline # Show execution timeline
/craft:orchestrate compress # Force chat compression
/craft:orchestrate continue # Resume previous session
/craft:orchestrate abort # Stop all agents
| Mode | Max Agents | Compression | Use Case |
|---|---|---|---|
default | 2 | 70% | Quick tasks |
debug | 1 (sequential) | 90% | Troubleshooting |
optimize | 4 | 60% | Fast parallel work |
release | 4 | 85% | Pre-release audit |
/craft:orchestrate "add auth" optimize # Fast parallel
/craft:orchestrate "prep release" release # Thorough audit
/craft:orchestrate "debug login" debug # Sequential verbose
Activates Orchestrator v2.1 mode which:
/craft:orchestrate "add user authentication with OAuth"
## š TASK ANALYSIS
**Request**: Add OAuth authentication
**Complexity**: complex
**Mode**: default (2 agents max)
**Estimated subtasks**: 5
**Delegation strategy**: hybrid
| # | Task | Agent | Priority | Dependencies |
|---|------|-------|----------|--------------|
| 1 | Design auth flow | arch | P0 | none |
| 2 | Implement backend | code | P0 | 1 |
| 3 | Create login UI | code | P1 | 1 |
| 4 | Add tests | test | P1 | 2,3 |
| 5 | Update docs | doc | P2 | 2 |
Spawning agents...
/craft:orchestrate "add tests for all endpoints" optimize
## š ORCHESTRATOR v2.1 ā OPTIMIZE MODE
**Configuration**:
- Max parallel agents: 4
- Compression threshold: 60%
- Output verbosity: Minimal
- Strategy: Aggressive parallelization
Spawning 4 test agents in parallel...
/craft:orchestrate status
## š AGENT STATUS
| Agent | Task | Status | Progress | Context |
|-------|------|--------|----------|---------|
| main | orchestrate | š¢ active | - | 45% |
| arch-1 | design | ā
complete | 1/1 | 0% |
| code-1 | backend | š” running | 3/7 | 18% |
| code-2 | frontend | š” running | 2/5 | 12% |
**Context Budget**: 67% (~86K tokens) | **Mode**: default
/craft:orchestrate timeline
## ā±ļø EXECUTION TIMELINE
TIME 0 1m 2m 3m 4m
āāāāāāāāāā¼āāāāāā¼āāāāāā¼āāāāāā¼āāāāāā¤
arch-1 āāāāāāāāāāāāāāāāāāāāāāāā ā
1.2m
code-1 āāāāāāāāāāāāāāāāāāāāāāā š” 2.5m
code-2 āāāāāāāāāāāāāāāāāāāāāāā ā
1.8m
āāāāāāāāāā¼āāāāāā¼āāāāāā¼āāāāāā¼āāāāāā¤
NOW ā²
**ETA**: ~1.5 min remaining
/craft:orchestrate budget
## š CONTEXT BUDGET
| Component | Tokens (est) | % of ~128K |
|-----------|--------------|------------|
| System prompt | ~3,000 | 2.3% |
| Conversation | ~15,000 | 11.7% |
| Agent results | ~8,000 | 6.3% |
| **Total** | **~26,000** | **20.3%** |
Status: š¢ Healthy (< 50%)
/craft:orchestrate compress
## ā ļø CONTEXT COMPRESSION
### Completed (Archived)
- ā
Auth design: OAuth 2.0 + PKCE
- ā
Backend routes: /auth/*, /callback
### Active (Retained)
- š Frontend login component
- š Test generation
**New context usage**: ~35%
/craft:orchestrate continue
## š RESUMING PREVIOUS SESSION
**Session**: 2025-12-27-abc123
**Goal**: Add sensitivity analysis to RMediation
**Progress**: 60% complete
### Completed
- ā
Architecture design
- ā
Test stubs created
### In Progress
- š Implementation (code-1)
Resuming...
/craft:orchestrate abort
## š ABORTING ALL AGENTS
Stopping: arch-1, code-1, code-2, test-1
State preserved to: .claude/orchestrator-session.json
During orchestration, say:
| Command | Action |
|---|---|
status | Show agent dashboard |
timeline | Show execution timeline |
budget | Show context budget |
compress | Force chat compression now |
mode X | Switch to mode X |
pause <agent> | Pause specific agent |
resume all | Resume paused agents |
abort | Stop everything, save state |
report | Detailed progress report |
focus <task> | Reprioritize |
continue | Resume previous session |
save | Force save session state |
history | List recent sessions |
new | Start fresh (archive current) |
Sessions persist across disconnects:
# Resume previous session
/craft:orchestrate continue
# Force save current state
/craft:orchestrate save
# View session history
/craft:orchestrate history
## š SESSION HISTORY
| # | Date | Goal | Status |
|---|------|------|--------|
| 1 | Dec 27 | Add auth to API | complete |
| 2 | Dec 26 | Fix parsing bug | complete |
| 3 | Dec 25 | Refactor CLI | abandoned |
# Resume specific session from history
/craft:orchestrate history 2
# Start fresh (archives current session)
/craft:orchestrate new
.claude/orchestrator-session.json # Current session
.claude/orchestrator-history/ # Archived sessions
State is automatically saved on:
save or abortThe orchestrator tracks context usage with heuristics:
| Level | Action |
|---|---|
| < 50% | š¢ Normal operation |
| 50-70% | š” Status shown in dashboard |
| 70-85% | ā ļø Warning, prepare for compression |
| > 85% | š“ Auto-compress triggered |
Works with all craft commands:
/craft:arch:* for design tasks/craft:code:* for implementation/craft:test:* for testing/craft:docs:* for documentation/craft:do ā Simpler task routing (no monitoring)/craft:check ā Pre-flight validation/craft:hub ā Discover all commands