/orchestrate
Sequential and tmux/worktree orchestration guidance for multi-agent workflows.
> /plugin marketplace add loulanyue/awesome-claude-notes > /plugin install awesome-claude-notes@awesome-claude-notes
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/orchestrate
Context preview
What this command does when you run it.
Sequential and tmux/worktree orchestration guidance for multi-agent workflows.
Command definition
orchestrate.mddescription: Sequential and tmux/worktree orchestration guidance for multi-agent workflows.
Orchestrate Command
Sequential agent workflow for complex tasks.
Usage
`/orchestrate [workflow-type] [task-description]`
Workflow Types
feature
Full feature implementation workflow:
planner -> tdd-guide -> code-reviewer -> security-reviewer
bugfix
Bug investigation and fix workflow:
planner -> tdd-guide -> code-reviewer
refactor
Safe refactoring workflow:
architect -> code-reviewer -> tdd-guide
security
Security-focused review:
security-reviewer -> code-reviewer -> architect
Execution Pattern
For each agent in the workflow:
1. **Invoke agent** with context from previous agent 2. **Collect output** as structured handoff document 3. **Pass to next agent** in chain 4. **Aggregate results** into final report
Handoff Document Format
Between agents, create handoff document:
## HANDOFF: [previous-agent] -> [next-agent]
### Context
[Summary of what was done]
### Findings
[Key discoveries or decisions]
### Files Modified
[List of files touched]
### Open Questions
[Unresolved items for next agent]
### Recommendations
[Suggested next steps]
Example: Feature Workflow
/orchestrate feature "Add user authentication"
Executes:
1. **Planner Agent**
- Analyzes requirements
- Creates implementation plan
- Identifies dependencies
- Output: `HANDOFF: planner -> tdd-guide`
2. **TDD Guide Agent**
- Reads planner handoff
- Writes tests first
- Implements to pass tests
- Output: `HANDOFF: tdd-guide -> code-reviewer`
3. **Code Reviewer Agent**
- Reviews implementation
- Checks for issues
- Suggests improvements
- Output: `HANDOFF: code-reviewer -> security-reviewer`
4. **Security Reviewer Agent**
- Security audit
- Vulnerability check
- Final approval
- Output: Final Report
Final Report Format
ORCHESTRATION REPORT
====================
Workflow: feature
Task: Add user authentication
Agents: planner -> tdd-guide -> code-reviewer -> security-reviewer
SUMMARY
-------
[One paragraph summary]
AGENT OUTPUTS
-------------
Planner: [summary]
TDD Guide: [summary]
Code Reviewer: [summary]
Security Reviewer: [summary]
FILES CHANGED
-------------
[List all files modified]
TEST RESULTS
------------
[Test pass/fail summary]
SECURITY STATUS
---------------
[Security findings]
RECOMMENDATION
--------------
[SHIP / NEEDS WORK / BLOCKED]
Parallel Execution
For independent checks, run agents in parallel:
### Parallel Phase
Run simultaneously:
- code-reviewer (quality)
- security-reviewer (security)
- architect (design)
### Merge Results
Combine outputs into single report
For external tmux-pane workers with separate git worktrees, use `node scripts/orchestrate-worktrees.js plan.json --execute`. The built-in orchestration pattern stays in-process; the helper is for long-running or cross-harness sessions.
When workers need to see dirty or untracked local files from the main checkout, add `seedPaths` to the plan file. ECC overlays only those selected paths into each worker worktree after `git worktree add`, which keeps the branch isolated while still exposing in-flight local scripts, plans, or docs.
{
"sessionName": "workflow-e2e",
"seedPaths": [
"scripts/orchestrate-worktrees.js",
"scripts/lib/tmux-worktree-orchestrator.js",
".claude/plan/workflow-e2e-test.json"
],
"workers": [
{ "name": "docs", "task": "Update orchestration docs." }
]
}To export a control-plane snapshot for a live tmux/worktree session, run:
node scripts/orchestration-status.js .claude/plan/workflow-visual-proof.json
The snapshot includes session activity, tmux pane metadata, worker states, objectives, seeded overlays, and recent handoff summaries in JSON form.
Operator Command-Center Handoff
When the workflow spans multiple sessions, worktrees, or tmux panes, append a control-plane block to the final handoff:
CONTROL PLANE
-------------
Sessions:
- active session ID or alias
- branch + worktree path for each active worker
- tmux pane or detached session name when applicable
Diffs:
- git status summary
- git diff --stat for touched files
- merge/conflict risk notes
Approvals:
- pending user approvals
- blocked steps awaiting confirmation
Telemetry:
- last activity timestamp or idle signal
- estimated token or cost drift
- policy events raised by hooks or reviewers
This keeps planner, implementer, reviewer, and loop workers legible from the operator surface.
Arguments
$ARGUMENTS:
- `feature <description>` - Full feature workflow
- `bugfix <description>` - Bug fix workflow
- `refactor <description>` - Refactoring workflow
- `security <description>` - Security review workflow
- `custom <agents> <description>` - Custom agent sequence
Custom Workflow Example
/orchestrate custom "architect,tdd-guide,code-reviewer" "Redesign caching layer"
Tips
1. **Start with planner** for complex features 2. **Always include code-reviewer** before merge 3. **Use security-reviewer** for auth/payment/PII 4. **Keep handoffs concise** - focus on what next agent needs 5. **Run verification** between agents if needed
Navigation
- [Command → Agent / Skill Map](../docs/COMMAND-AGENT-MAP.md)
- [Agents index](../AGENTS.md)
- [Contexts directory](../contexts)
- [Contributing guide](../CONTRIBUTING.md)
Read more
description: Sequential and tmux/worktree orchestration guidance for multi-agent workflows.
Orchestrate Command
Sequential agent workflow for complex tasks.
Usage
`/orchestrate [workflow-type] [task-description]`
Workflow Types
feature
Full feature implementation workflow:
planner -> tdd-guide -> code-reviewer -> security-reviewer
bugfix
Bug investigation and fix workflow:
planner -> tdd-guide -> code-reviewer
refactor
Safe refactoring workflow:
architect -> code-reviewer -> tdd-guide
security
Security-focused review:
security-reviewer -> code-reviewer -> architect
Execution Pattern
For each agent in the workflow:
1. **Invoke agent** with context from previous agent 2. **Collect output** as structured handoff document 3. **Pass to next agent** in chain 4. **Aggregate results** into final report
Handoff Document Format
Between agents, create handoff document:
## HANDOFF: [previous-agent] -> [next-agent] ### Context [Summary of what was done] ### Findings [Key discoveries or decisions] ### Files Modified [List of files touched] ### Open Questions [Unresolved items for next agent] ### Recommendations [Suggested next steps]
Example: Feature Workflow
/orchestrate feature "Add user authentication"
Executes:
1. **Planner Agent**
- Analyzes requirements
- Creates implementation plan
- Identifies dependencies
- Output: `HANDOFF: planner -> tdd-guide`
2. **TDD Guide Agent**
- Reads planner handoff
- Writes tests first
- Implements to pass tests
- Output: `HANDOFF: tdd-guide -> code-reviewer`
3. **Code Reviewer Agent**
- Reviews implementation
- Checks for issues
- Suggests improvements
- Output: `HANDOFF: code-reviewer -> security-reviewer`
4. **Security Reviewer Agent**
- Security audit
- Vulnerability check
- Final approval
- Output: Final Report
Final Report Format
ORCHESTRATION REPORT ==================== Workflow: feature Task: Add user authentication Agents: planner -> tdd-guide -> code-reviewer -> security-reviewer SUMMARY ------- [One paragraph summary] AGENT OUTPUTS ------------- Planner: [summary] TDD Guide: [summary] Code Reviewer: [summary] Security Reviewer: [summary] FILES CHANGED ------------- [List all files modified] TEST RESULTS ------------ [Test pass/fail summary] SECURITY STATUS --------------- [Security findings] RECOMMENDATION -------------- [SHIP / NEEDS WORK / BLOCKED]
Parallel Execution
For independent checks, run agents in parallel:
### Parallel Phase Run simultaneously: - code-reviewer (quality) - security-reviewer (security) - architect (design) ### Merge Results Combine outputs into single report
For external tmux-pane workers with separate git worktrees, use `node scripts/orchestrate-worktrees.js plan.json --execute`. The built-in orchestration pattern stays in-process; the helper is for long-running or cross-harness sessions.
When workers need to see dirty or untracked local files from the main checkout, add `seedPaths` to the plan file. ECC overlays only those selected paths into each worker worktree after `git worktree add`, which keeps the branch isolated while still exposing in-flight local scripts, plans, or docs.
{
"sessionName": "workflow-e2e",
"seedPaths": [
"scripts/orchestrate-worktrees.js",
"scripts/lib/tmux-worktree-orchestrator.js",
".claude/plan/workflow-e2e-test.json"
],
"workers": [
{ "name": "docs", "task": "Update orchestration docs." }
]
}To export a control-plane snapshot for a live tmux/worktree session, run:
node scripts/orchestration-status.js .claude/plan/workflow-visual-proof.json
The snapshot includes session activity, tmux pane metadata, worker states, objectives, seeded overlays, and recent handoff summaries in JSON form.
Operator Command-Center Handoff
When the workflow spans multiple sessions, worktrees, or tmux panes, append a control-plane block to the final handoff:
CONTROL PLANE ------------- Sessions: - active session ID or alias - branch + worktree path for each active worker - tmux pane or detached session name when applicable Diffs: - git status summary - git diff --stat for touched files - merge/conflict risk notes Approvals: - pending user approvals - blocked steps awaiting confirmation Telemetry: - last activity timestamp or idle signal - estimated token or cost drift - policy events raised by hooks or reviewers
This keeps planner, implementer, reviewer, and loop workers legible from the operator surface.
Arguments
$ARGUMENTS:
- `feature <description>` - Full feature workflow
- `bugfix <description>` - Bug fix workflow
- `refactor <description>` - Refactoring workflow
- `security <description>` - Security review workflow
- `custom <agents> <description>` - Custom agent sequence
Custom Workflow Example
/orchestrate custom "architect,tdd-guide,code-reviewer" "Redesign caching layer"
Tips
1. **Start with planner** for complex features 2. **Always include code-reviewer** before merge 3. **Use security-reviewer** for auth/payment/PII 4. **Keep handoffs concise** - focus on what next agent needs 5. **Run verification** between agents if needed
Navigation
- [Command → Agent / Skill Map](../docs/COMMAND-AGENT-MAP.md)
- [Agents index](../AGENTS.md)
- [Contexts directory](../contexts)
- [Contributing guide](../CONTRIBUTING.md)
Community-maintained distribution of reusable AI coding agents, commands, skills, hooks, and cross-harness workflows.
Repo: loulanyue/awesome-claude-notes
Other commands on awesome-claude-notes.
- /aside
Answer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering.
Open command - /build-fix
Incrementally fix build and type errors with minimal, safe changes.
Open command - /checkpoint
Create or verify a checkpoint in your workflow.
Open command - /claw
Start NanoClaw v2 — ECC's persistent, zero-dependency REPL with model routing, skill hot-load, branching, compaction, export, and metrics.
Open command - /code-review
Comprehensive security and quality review of uncommitted changes:
Open command - /context-budget
Analyze context window usage across agents, skills, MCP servers, and rules to find optimization opportunities. Helps reduce token overhead and avoid performance warnings.
Open command

