agileflow 2.85.0 → 2.87.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,500 @@
1
+ ---
2
+ description: Orchestrate Research-Plan-Implement workflow with explicit phase transitions
3
+ argument-hint: [TASK=<description>] [PHASE=research|plan|implement] [SKIP_RESEARCH=true]
4
+ compact_context:
5
+ priority: critical
6
+ preserve_rules:
7
+ - "ACTIVE COMMAND: /agileflow:rpi - RPI workflow orchestration"
8
+ - "Three phases: Research → Plan → Implement"
9
+ - "Each phase ends with NEW CONVERSATION recommendation"
10
+ - "Scaling detection: trivial tasks skip research"
11
+ - "Context health monitoring: warn at 40% utilization"
12
+ - "Phase artifacts compress previous phase understanding"
13
+ state_fields:
14
+ - current_phase
15
+ - task_description
16
+ - research_artifact_path
17
+ - plan_artifact_path
18
+ - complexity_level
19
+ ---
20
+
21
+ # /agileflow:rpi
22
+
23
+ Orchestrate the Research-Plan-Implement workflow for maximum AI agent effectiveness.
24
+
25
+ ---
26
+
27
+ ## Purpose
28
+
29
+ Guide complex tasks through three phases, each producing a compressed artifact for the next phase. Based on [Context Engineering for Coding Agents](../10-research/20260113-context-engineering-coding-agents.md) research.
30
+
31
+ **Key insight**: LLMs are stateless. Better output requires better input context. Frequent intentional compaction at phase boundaries prevents the "dumb zone" (~40% context utilization).
32
+
33
+ ---
34
+
35
+ <!-- COMPACT_SUMMARY_START -->
36
+
37
+ ## COMPACT SUMMARY - RPI WORKFLOW ACTIVE
38
+
39
+ **CRITICAL**: You are running `/agileflow:rpi`. Guide user through Research → Plan → Implement phases.
40
+
41
+ ### The Three Phases
42
+
43
+ ```
44
+ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
45
+ │ RESEARCH │ ──► │ PLAN │ ──► │ IMPLEMENT │
46
+ │ │ │ │ │ │
47
+ │ Understand │ │ Design │ │ Execute │
48
+ │ the system │ │ the change │ │ the plan │
49
+ │ │ │ │ │ │
50
+ │ Output: │ │ Output: │ │ Output: │
51
+ │ research.md │ │ plan.md │ │ code + tests│
52
+ └─────────────┘ └─────────────┘ └─────────────┘
53
+ │ │ │
54
+ ▼ ▼ ▼
55
+ NEW CONVERSATION NEW CONVERSATION DONE
56
+ ```
57
+
58
+ ### RULE #1: SCALING DETECTION
59
+
60
+ **Assess task complexity FIRST:**
61
+
62
+ | Complexity | Signs | Approach |
63
+ |------------|-------|----------|
64
+ | Trivial | Typo, config tweak, simple fix | Just do it |
65
+ | Simple | Single file, clear path | Plan → Implement |
66
+ | Moderate | Multi-file, known patterns | Plan → Implement |
67
+ | Complex | Brownfield, unfamiliar code | Research → Plan → Implement |
68
+ | Exploratory | Unknown territory, multi-repo | Full RPI with iteration |
69
+
70
+ **Skip research when**:
71
+ - Task is clearly defined
72
+ - You already understand the codebase area
73
+ - Changes are isolated to 1-2 files
74
+ - User specifies `SKIP_RESEARCH=true`
75
+
76
+ ### RULE #2: PHASE TRANSITIONS
77
+
78
+ **After each phase, output the compaction prompt:**
79
+
80
+ ```markdown
81
+ ---
82
+
83
+ ## Phase Complete: [PHASE_NAME]
84
+
85
+ **Artifact saved**: `[path/to/artifact.md]`
86
+
87
+ ### Recommended Next Step
88
+
89
+ Start a **new conversation** with this context:
90
+
91
+ > I need to [NEXT_PHASE] based on the [ARTIFACT_TYPE] at `[path]`.
92
+ >
93
+ > [Brief summary of artifact content]
94
+
95
+ **Why new conversation?** Fresh context window starts in the "smart zone" (<40% utilization). The artifact compresses all previous understanding.
96
+
97
+ ---
98
+ ```
99
+
100
+ ### RULE #3: PHASE OUTPUTS
101
+
102
+ **Research Phase Output** → `docs/10-research/YYYYMMDD-topic.md`:
103
+ - Exact files and line numbers that matter
104
+ - How the system actually works (from code, not docs)
105
+ - Key patterns and constraints discovered
106
+ - Risks and edge cases identified
107
+
108
+ **Plan Phase Output** → `.claude/plans/[slug].md`:
109
+ - Exact steps with file paths and line numbers
110
+ - Actual code snippets (not pseudocode)
111
+ - Testing strategy per change
112
+ - Edge cases and risks
113
+
114
+ **Implement Phase Output** → Code + tests:
115
+ - Follow the plan exactly
116
+ - Test after each change
117
+ - Don't deviate without replanning
118
+
119
+ ### RULE #4: CONTEXT HEALTH WARNING
120
+
121
+ If conversation is getting long, warn:
122
+
123
+ ```markdown
124
+ ⚠️ **Context Health Warning**
125
+
126
+ This conversation has grown significantly. Signs of approaching the "dumb zone":
127
+ - We've read many files
128
+ - Multiple exploration cycles
129
+ - Heavy tool output
130
+
131
+ **Recommendation**: Complete current phase, save artifact, start fresh.
132
+ ```
133
+
134
+ ### WORKFLOW
135
+
136
+ **Phase 1: Research** (when needed)
137
+ 1. Use `/agileflow:research:ask TOPIC="..."` to generate research prompt
138
+ 2. User pastes results from ChatGPT/Claude/Perplexity
139
+ 3. Use `/agileflow:research:import` to save artifact
140
+ 4. Output phase transition prompt → NEW CONVERSATION
141
+
142
+ **Phase 2: Plan**
143
+ 1. Reference research artifact (if exists)
144
+ 2. Use `EnterPlanMode` for read-only exploration
145
+ 3. Design implementation approach
146
+ 4. Save plan to `.claude/plans/[slug].md`
147
+ 5. Get user approval on plan
148
+ 6. Output phase transition prompt → NEW CONVERSATION
149
+
150
+ **Phase 3: Implement**
151
+ 1. Reference plan artifact
152
+ 2. Execute step-by-step
153
+ 3. Test after each change
154
+ 4. Follow plan exactly (don't deviate)
155
+ 5. Mark story complete when done
156
+
157
+ ### ANTI-PATTERNS
158
+
159
+ ❌ Skip research for complex brownfield work
160
+ ❌ Plan without understanding the system first
161
+ ❌ Implement without approved plan
162
+ ❌ Continue in same conversation after phase complete
163
+ ❌ Deviate from plan during implementation
164
+ ❌ Ignore context health warnings
165
+
166
+ ### DO THESE INSTEAD
167
+
168
+ ✅ Assess complexity before choosing phases
169
+ ✅ Complete research before planning
170
+ ✅ Get plan approval before implementing
171
+ ✅ Start fresh conversation between phases
172
+ ✅ Follow plan exactly during implementation
173
+ ✅ Monitor context health throughout
174
+
175
+ ### KEY FILES
176
+
177
+ | File | Purpose |
178
+ |------|---------|
179
+ | `docs/10-research/YYYYMMDD-*.md` | Research artifacts |
180
+ | `.claude/plans/*.md` | Plan artifacts |
181
+ | `docs/02-practices/context-engineering-rpi.md` | RPI practice guide |
182
+
183
+ ### REMEMBER AFTER COMPACTION
184
+
185
+ - `/agileflow:rpi` IS ACTIVE - orchestrating RPI workflow
186
+ - Three phases: Research → Plan → Implement
187
+ - Each phase produces compressed artifact
188
+ - NEW CONVERSATION between phases (fresh context)
189
+ - Assess complexity first (skip phases for simple tasks)
190
+ - Monitor context health (warn at ~40%)
191
+ - Follow plan exactly during implementation
192
+
193
+ <!-- COMPACT_SUMMARY_END -->
194
+
195
+ ---
196
+
197
+ ## Arguments
198
+
199
+ | Argument | Required | Description |
200
+ |----------|----------|-------------|
201
+ | TASK | No | Description of what to implement |
202
+ | PHASE | No | Start at specific phase: `research`, `plan`, or `implement` |
203
+ | SKIP_RESEARCH | No | Set `true` to skip research phase for simpler tasks |
204
+
205
+ ---
206
+
207
+ ## IMMEDIATE ACTIONS
208
+
209
+ Upon invocation, execute these steps:
210
+
211
+ ### Step 1: Assess Task Complexity
212
+
213
+ Read the TASK argument (or ask user) and assess complexity:
214
+
215
+ ```
216
+ Trivial → Just do it (no RPI needed)
217
+ Simple → Plan → Implement
218
+ Moderate → Plan → Implement
219
+ Complex → Research → Plan → Implement
220
+ Exploratory → Full RPI with iteration
221
+ ```
222
+
223
+ **Complexity indicators**:
224
+ - **Trivial**: Typo fix, config change, <10 lines
225
+ - **Simple**: Single file, clear requirements, known patterns
226
+ - **Moderate**: 2-5 files, established patterns, some exploration
227
+ - **Complex**: Brownfield code, unfamiliar area, many files
228
+ - **Exploratory**: Unknown territory, needs investigation, multi-repo
229
+
230
+ ### Step 2: Determine Starting Phase
231
+
232
+ Based on complexity assessment:
233
+
234
+ ```
235
+ If PHASE argument provided → Start at that phase
236
+ If SKIP_RESEARCH=true → Start at Plan phase
237
+ If Trivial → Skip RPI, just implement
238
+ If Simple/Moderate → Start at Plan phase
239
+ If Complex/Exploratory → Start at Research phase
240
+ ```
241
+
242
+ ### Step 3: Execute Current Phase
243
+
244
+ #### Research Phase
245
+
246
+ If starting research:
247
+
248
+ 1. **Generate research prompt**:
249
+ ```markdown
250
+ I'll help you research this topic. Let me generate a comprehensive prompt for external AI.
251
+
252
+ Running: `/agileflow:research:ask TOPIC="[task description]"`
253
+ ```
254
+
255
+ 2. **Wait for user to paste results**:
256
+ ```markdown
257
+ Copy the prompt above and paste it into ChatGPT, Claude web, or Perplexity.
258
+
259
+ When you get the answer, paste the results here and I'll save them.
260
+ ```
261
+
262
+ 3. **Import and save research**:
263
+ ```markdown
264
+ Running: `/agileflow:research:import TOPIC="[topic]"`
265
+ ```
266
+
267
+ 4. **Output phase transition**:
268
+ ```markdown
269
+ ---
270
+
271
+ ## Phase Complete: Research ✓
272
+
273
+ **Artifact saved**: `docs/10-research/[date]-[topic].md`
274
+
275
+ ### Key Findings Summary
276
+ - [3-5 bullet points of key discoveries]
277
+
278
+ ### Recommended Next Step
279
+
280
+ Start a **new conversation** with this context:
281
+
282
+ > I need to plan the implementation of [task] based on the research at `docs/10-research/[date]-[topic].md`.
283
+ >
284
+ > Key constraints discovered:
285
+ > - [constraint 1]
286
+ > - [constraint 2]
287
+
288
+ **Why new conversation?** Fresh context window starts in the "smart zone" (<40% utilization). The research artifact compresses all understanding from exploration.
289
+
290
+ ---
291
+ ```
292
+
293
+ #### Plan Phase
294
+
295
+ If starting plan:
296
+
297
+ 1. **Load research context** (if exists):
298
+ ```markdown
299
+ Reading research artifact: `docs/10-research/[relevant].md`
300
+ ```
301
+
302
+ 2. **Enter plan mode**:
303
+ ```markdown
304
+ Entering plan mode for read-only exploration...
305
+
306
+ I'll explore the codebase to design the implementation approach.
307
+ ```
308
+
309
+ 3. **Explore and design** using Glob, Grep, Read tools
310
+
311
+ 4. **Create plan artifact**:
312
+ ```markdown
313
+ Saving plan to: `.claude/plans/[slug].md`
314
+ ```
315
+
316
+ 5. **Present plan for approval**:
317
+ ```markdown
318
+ ## Implementation Plan
319
+
320
+ ### Step 1: [Description]
321
+ **File**: `path/to/file.ts`
322
+ **Change**: [What to change]
323
+ ```typescript
324
+ // Actual code snippet
325
+ ```
326
+ **Test**: [How to verify]
327
+
328
+ ### Step 2: [Description]
329
+ ...
330
+
331
+ ---
332
+
333
+ **Please review this plan.**
334
+
335
+ ⚠️ **Leverage reminder**: A bad plan = 100+ bad lines of code. Take time to review.
336
+
337
+ Approve this plan? (YES to proceed, or provide feedback)
338
+ ```
339
+
340
+ 6. **Output phase transition** (after approval):
341
+ ```markdown
342
+ ---
343
+
344
+ ## Phase Complete: Plan ✓
345
+
346
+ **Artifact saved**: `.claude/plans/[slug].md`
347
+
348
+ ### Plan Summary
349
+ - [N] steps to implement
350
+ - Files affected: [list]
351
+ - Estimated complexity: [assessment]
352
+
353
+ ### Recommended Next Step
354
+
355
+ Start a **new conversation** with this context:
356
+
357
+ > Implement the plan from `.claude/plans/[slug].md`, starting with step 1.
358
+ >
359
+ > This plan implements [brief description]. Follow each step exactly.
360
+
361
+ **Why new conversation?** Fresh context window with compressed intent. The plan contains everything needed for implementation.
362
+
363
+ ---
364
+ ```
365
+
366
+ #### Implement Phase
367
+
368
+ If starting implement:
369
+
370
+ 1. **Load plan artifact**:
371
+ ```markdown
372
+ Reading plan: `.claude/plans/[slug].md`
373
+ ```
374
+
375
+ 2. **Execute step-by-step**:
376
+ ```markdown
377
+ ## Implementing Step 1 of [N]
378
+
379
+ [Execute the step as defined in plan]
380
+ ```
381
+
382
+ 3. **Test after each step**:
383
+ ```markdown
384
+ Running tests to verify step 1...
385
+ ```
386
+
387
+ 4. **Complete implementation**:
388
+ ```markdown
389
+ ---
390
+
391
+ ## Phase Complete: Implement ✓
392
+
393
+ All [N] steps executed successfully.
394
+
395
+ ### Summary
396
+ - [X] files modified
397
+ - [Y] tests added/updated
398
+ - [Z] tests passing
399
+
400
+ ### Next Actions
401
+ - [ ] Run full test suite: `npm test`
402
+ - [ ] Create PR: `/agileflow:pr-template`
403
+ - [ ] Update story status: `/agileflow:status STORY=US-#### STATUS=in-review`
404
+
405
+ ---
406
+ ```
407
+
408
+ ### Step 4: Monitor Context Health
409
+
410
+ Throughout execution, monitor for signs of context degradation:
411
+
412
+ **Warning signs**:
413
+ - Many files read (>10)
414
+ - Multiple exploration cycles
415
+ - Heavy tool output (JSON, logs)
416
+ - Repetitive or generic responses
417
+
418
+ **If detected, warn**:
419
+ ```markdown
420
+ ⚠️ **Context Health Warning**
421
+
422
+ This conversation has grown significantly. We may be approaching the "dumb zone" where agent quality degrades.
423
+
424
+ **Current phase**: [phase]
425
+ **Recommendation**: [Complete phase and start fresh / Save progress and compact]
426
+
427
+ Would you like to:
428
+ 1. Complete current phase and save artifact now
429
+ 2. Continue (understanding quality may degrade)
430
+ ```
431
+
432
+ ---
433
+
434
+ ## Scaling Guide
435
+
436
+ | Task Type | Recommended Approach |
437
+ |-----------|---------------------|
438
+ | Typo fix | Just fix it |
439
+ | Config change | Just do it |
440
+ | Simple bug fix | Plan → Implement |
441
+ | New component | Plan → Implement |
442
+ | Feature in known area | Plan → Implement |
443
+ | Feature in unfamiliar area | Research → Plan → Implement |
444
+ | Complex refactoring | Research → Plan → Implement |
445
+ | Multi-repo changes | Full RPI with iteration |
446
+ | Architectural change | Research → Plan → Implement (with ADR) |
447
+
448
+ ---
449
+
450
+ ## The Dumb Zone
451
+
452
+ Context utilization affects agent performance:
453
+
454
+ | Utilization | Zone | Performance |
455
+ |-------------|------|-------------|
456
+ | 0-40% | Smart Zone | Full reasoning capability |
457
+ | 40-70% | Diminishing Returns | Reduced quality |
458
+ | 70%+ | Dumb Zone | Significant degradation |
459
+
460
+ **Signs you're in the Dumb Zone**:
461
+ - Agent makes obvious mistakes
462
+ - Responses become repetitive
463
+ - "I understand your concern" after corrections
464
+ - Tool calls become less accurate
465
+
466
+ **Solution**: Complete current phase, save artifact, start fresh.
467
+
468
+ ---
469
+
470
+ ## Leverage Math
471
+
472
+ ```
473
+ Bad line of code = 1 bad line
474
+ Bad part of plan = 100+ bad lines
475
+ Bad line of research = entire direction is hosed
476
+ ```
477
+
478
+ Human review should focus on highest leverage points:
479
+ 1. Research quality (is our understanding correct?)
480
+ 2. Plan quality (are these the right steps?)
481
+ 3. Code quality (implementation details)
482
+
483
+ ---
484
+
485
+ ## Related Commands
486
+
487
+ | Command | Purpose |
488
+ |---------|---------|
489
+ | `/agileflow:research:ask` | Generate research prompts |
490
+ | `/agileflow:research:import` | Save research artifacts |
491
+ | `/agileflow:research:analyze` | Analyze for implementation |
492
+ | `/agileflow:mentor` | Full orchestrated development |
493
+ | `EnterPlanMode` | Read-only exploration mode |
494
+
495
+ ---
496
+
497
+ ## Related Documentation
498
+
499
+ - [Context Engineering RPI Practice](../../docs/02-practices/context-engineering-rpi.md)
500
+ - [Context Engineering Research](../../docs/10-research/20260113-context-engineering-coding-agents.md)
@@ -80,8 +80,9 @@ Parse the JSON result. Display:
80
80
  ```
81
81
  ✓ Created Session {id}
82
82
 
83
- Workspace: {path}
84
- Branch: {branch}
83
+ Workspace: {path}
84
+ Branch: {branch}
85
+ Thread Type: parallel
85
86
 
86
87
  ┌─────────────────────────────────────────────────────────┐
87
88
  │ To start working in this session, run: │
@@ -91,6 +92,8 @@ Parse the JSON result. Display:
91
92
  └─────────────────────────────────────────────────────────┘
92
93
  ```
93
94
 
95
+ Note: Worktree sessions default to "parallel" thread type. See docs/02-practices/thread-based-engineering.md for thread type definitions.
96
+
94
97
  ### Step 4b: If "Name this session" Selected
95
98
 
96
99
  Use AskUserQuestion to get the name:
@@ -147,11 +150,12 @@ node .agileflow/scripts/session-manager.js switch {new_session_id}
147
150
  ```
148
151
  ✅ Created Session {id} "{nickname}"
149
152
 
150
- ┌───────────┬────────────────────────────────────────────┐
151
- │ Session │ {id} "{nickname}" │
152
- │ Workspace │ {path} │
153
- │ Branch │ {branch} │
154
- └───────────┴────────────────────────────────────────────┘
153
+ ┌────────────┬────────────────────────────────────────────┐
154
+ │ Session │ {id} "{nickname}" │
155
+ │ Workspace │ {path} │
156
+ │ Branch │ {branch} │
157
+ │ Thread │ parallel │
158
+ └────────────┴────────────────────────────────────────────┘
155
159
 
156
160
  To switch to this session, run:
157
161
 
@@ -249,11 +253,12 @@ Then display:
249
253
  ```
250
254
  ✅ Created Session {id}
251
255
 
252
- ┌───────────┬────────────────────────────────────────────┐
253
- │ Session │ {id} │
254
- │ Workspace │ {path} │
255
- │ Branch │ {branch} │
256
- └───────────┴────────────────────────────────────────────┘
256
+ ┌────────────┬────────────────────────────────────────────┐
257
+ │ Session │ {id} │
258
+ │ Workspace │ {path} │
259
+ │ Branch │ {branch} │
260
+ │ Thread │ parallel │
261
+ └────────────┴────────────────────────────────────────────┘
257
262
 
258
263
  To switch to this session, run:
259
264
 
@@ -300,11 +305,12 @@ Then display:
300
305
  ```
301
306
  ✅ Created Session {id} "{name}"
302
307
 
303
- ┌───────────┬────────────────────────────────────────────┐
304
- │ Session │ {id} "{name}" │
305
- │ Workspace │ {path} │
306
- │ Branch │ {branch} │
307
- └───────────┴────────────────────────────────────────────┘
308
+ ┌────────────┬────────────────────────────────────────────┐
309
+ │ Session │ {id} "{name}" │
310
+ │ Workspace │ {path} │
311
+ │ Branch │ {branch} │
312
+ │ Thread │ parallel │
313
+ └────────────┴────────────────────────────────────────────┘
308
314
 
309
315
  To switch to this session, run:
310
316
 
@@ -394,11 +400,12 @@ All three options show same format:
394
400
  ```
395
401
  ✅ Created Session {id} ["{nickname}" OR empty]
396
402
 
397
- ┌───────────┬────────────────────────────────────────────┐
398
- │ Session │ {id} ["{nickname}" or empty] │
399
- │ Workspace │ {path} │
400
- │ Branch │ {branch} │
401
- └───────────┴────────────────────────────────────────────┘
403
+ ┌────────────┬────────────────────────────────────────────┐
404
+ │ Session │ {id} ["{nickname}" or empty] │
405
+ │ Workspace │ {path} │
406
+ │ Branch │ {branch} │
407
+ │ Thread │ parallel │
408
+ └────────────┴────────────────────────────────────────────┘
402
409
 
403
410
  To switch to this session, run:
404
411
 
@@ -408,6 +415,7 @@ To switch to this session, run:
408
415
  ```
409
416
 
410
417
  **Use /add-dir instead of cd && claude** - stays in same terminal/conversation.
418
+ **Thread type**: Worktree sessions default to "parallel". See [Thread-Based Engineering](../../02-practices/thread-based-engineering.md).
411
419
 
412
420
  ---
413
421
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  description: View current session state and activity
3
- argument-hint: (no arguments)
3
+ argument-hint: [--kanban]
4
4
  compact_context:
5
5
  priority: medium
6
6
  preserve_rules:
@@ -9,6 +9,7 @@ compact_context:
9
9
  - "Shows current session, then table of other sessions"
10
10
  - "Marks active sessions with ● bullet, inactive with ○"
11
11
  - "Returns session count and active count"
12
+ - "--kanban flag shows Kanban-style board with phases (TO DO, CODING, REVIEW, MERGED)"
12
13
  state_fields:
13
14
  - current_session
14
15
  - all_sessions
@@ -26,16 +27,29 @@ Quick view of all sessions and their status.
26
27
 
27
28
  Display a compact overview of all registered sessions without prompting for action.
28
29
 
30
+ ## Arguments
31
+
32
+ | Argument | Required | Description |
33
+ |----------|----------|-------------|
34
+ | `--kanban` | No | Show Kanban-style board with phases instead of table |
35
+
29
36
  ## IMMEDIATE ACTIONS
30
37
 
31
38
  ### Step 1: Get Session Data
32
39
 
40
+ **Standard view:**
33
41
  ```bash
34
42
  node .agileflow/scripts/session-manager.js list --json
35
43
  ```
36
44
 
37
- ### Step 2: Display Formatted Table
45
+ **Kanban view (if --kanban flag):**
46
+ ```bash
47
+ node .agileflow/scripts/session-manager.js list --kanban
48
+ ```
49
+
50
+ ### Step 2: Display Formatted Output
38
51
 
52
+ **Standard Table View:**
39
53
  ```
40
54
  📊 Session Status
41
55
 
@@ -53,6 +67,25 @@ Other Sessions:
53
67
  Total: 3 sessions │ 2 active
54
68
  ```
55
69
 
70
+ **Kanban Board View (--kanban):**
71
+ ```
72
+ Sessions (Kanban View):
73
+
74
+ TO DO CODING REVIEW MERGED
75
+ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐
76
+ │ │ │[2] auth │ │[3] payments │ │[1] main │
77
+ │ │ │US-0038 │ │US-0042 │ │- │
78
+ └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘
79
+
80
+ To Do: 0 │ Coding: 1 │ Review: 1 │ Merged: 1
81
+ ```
82
+
83
+ **Phase Detection Logic:**
84
+ - **TO DO**: No commits since branch creation
85
+ - **CODING**: Has commits, still has uncommitted changes
86
+ - **REVIEW**: Has commits, no uncommitted changes (ready to merge)
87
+ - **MERGED**: Main branch or merged sessions
88
+
56
89
  ### Step 3: Show Quick Actions
57
90
 
58
91
  ```