Skip to content

Commit f7e50c6

Browse files
barkainclaude
andcommitted
feat: skip plan mode for fully-specified sequential tasks
Add Step 3 (Fully-Specified Task Detection) to the routing table in delegate.md. When the user provides explicit ordered steps with no ambiguities or design decisions, the orchestrator now routes to direct sequential execution instead of entering plan mode unnecessarily. Detection indicators: - Numbered/ordered steps in the request - Imperative sequential chains with concrete steps - Explicit signals: "just do it", "no plan needed" - All steps map trivially to tool calls - Zero ambiguity markers Closes #43 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5812aa7 commit f7e50c6

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

commands/delegate.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Multi-step workflow orchestration for Claude Code. Main agent enters plan mode (
2222

2323
## ROUTING (CHECK FIRST - MANDATORY)
2424

25-
**Three-step routing check. MUST follow this order:**
25+
**Four-step routing check. MUST follow this order:**
2626

2727
### Step 1: Write Detection
2828

@@ -36,12 +36,26 @@ Multi-step workflow orchestration for Claude Code. Main agent enters plan mode (
3636

3737
**Breadth keywords:** review, analyze, summarize, scan + quantifiers like "all", "each", "files in", or explicit counts
3838

39-
### Step 3: Route Decision
39+
### Step 3: Fully-Specified Task Detection
40+
41+
**Pattern:** The user provided explicit, ordered steps with no ambiguities or design decisions needed. Every step is directly actionable without decomposition.
42+
43+
**Indicators (ANY of these):**
44+
- Numbered or ordered steps in the request ("1. do X, 2. do Y, 3. do Z")
45+
- Imperative sequential chain ("do X, then Y, then Z" where each step is concrete)
46+
- Explicit skip-planning signals: "just do it", "no plan needed", "skip planning", "don't plan"
47+
- All steps map trivially to tool calls (edit file, run command, commit, push, merge, tag, release)
48+
- Zero ambiguity: no "should we", "which approach", "evaluate options", "design"
49+
50+
**If fully-specified -> DIRECT SEQUENTIAL EXECUTION** (skip plan mode). Spawn one agent per step or batch related steps into a single agent. No `EnterPlanMode`, no `TaskCreate` during planning.
51+
52+
### Step 4: Route Decision
4053

4154
| Pattern | Route | Example |
4255
|---------|-------|---------|
4356
| Breadth + Write (same op x many items, with output) | **DIRECT EXECUTION** (skip plan mode) | "review 16 files, create reports" |
44-
| Multi-phase workflow (create -> test -> deploy) | plan mode (EnterPlanMode) | "create calculator with tests and verify" |
57+
| Fully-specified sequential task (all steps explicit) | **DIRECT SEQUENTIAL EXECUTION** (skip plan mode) | "bump version, commit, push, merge, tag, release" |
58+
| Multi-phase workflow (needs design/decomposition) | plan mode (EnterPlanMode) | "create calculator with tests and verify" |
4559
| Read-only breadth (no write indicators) | Spawn parallel Explore agents or codebase-context-analyzer | "explore code in X", "summarize files in X" |
4660
| Single simple task | general-purpose agent | "fix this bug" |
4761

0 commit comments

Comments
 (0)