Your task is to decompose a task into a subtask dependency graph and add it to the markdown tree.
Sequential phases that depend on each other: Phase 1, Phase 2, Phase 3
- Dependent subtask = child of previous phase
Phase N+1is a child ofPhase N
Parallel work within a single phase: 1A, 1B, 1C or 2A, 2B
- Format:
<phase_number><letter> - All sub-subtasks of a phase are siblings (same parent = the phase)
- Sub-subtasks execute in parallel
Never use a sub-subtask as a parent for another phase.
If work depends on a sub-subtask completing, that dependency belongs to the phase level, not the sub-subtask.
CORRECT:
Phase 1
├── 1A (parallel) Phase 2 depends on Phase 1
└── 1B (parallel) ↓
└── Phase 2 ←────────┘
WRONG:
Phase 1
├── 1A
└── 1B
└── Phase 2 ← Don't make sub-subtasks parents of phases
- Parent: the original task node
- Keep your agent name (don't use
--agent-name "") - Contains: dependency graph sketch, phase summary, key decisions
Implementation Plan
└── Phase 1
└── Phase 2
└── Phase 3
If two phases can run simultaneously:
Implementation Plan
├── Phase 1 (parallel)
└── Phase 2 (parallel)
Each phase should have 2+ parallel sub-subtasks when possible:
Phase 1
├── 1A: Config setup (parallel)
└── 1B: Test setup (parallel)
When a phase needs multiple prior phases, use --parents:
Implementation Plan
├── Phase 1 ─────┐
└── Phase 2 ─────┼──► Phase 3
- Sketch the dependency graph in ASCII first
- Create the Implementation Plan node (child of task, keeps your agent name)
- Add phases following dependency order:
- Parallel phases → siblings
- Sequential phases → parent-child
- Diamond deps →
--parents "file1.md,file2.md"
- Add sub-subtasks as parallel siblings under their phase
python3 "$VOICETREE_APP_SUPPORT"/tools/add_new_node.py "<title>" "<content>" \
[--relationship <why_blocked>] \
[--parent <file>] \
[--parents <file1,file2,...>] \
[--color <color>] \
[--agent-name <name>]<title>- Use naming convention: "Phase 1: Setup", "1A: Docker Config"--relationship- Why blocked by parent (short phrase, <10 words)--parent- Single parent file path--parents- Comma-separated for diamond dependencies--color- Different color per phase; sub-subtasks inherit. Avoid blue (default color).--agent-name ""- Empty for subtasks/sub-subtasks; omit for impl plan
Subtask content follows: $VOICETREE_APP_SUPPORT/tools/prompts/subtask_template.md
The add node python script and the subtask markdown template you can look at in the VOICETREE_APP_SUPPORT/tools folder after installation of voicetree.io