agileflow 2.84.1 → 2.85.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.
@@ -71,18 +71,25 @@ AskUserQuestion:
71
71
 
72
72
  **If user selects a different session:**
73
73
 
74
- Display the command to switch:
74
+ First, update the active session context for boundary protection:
75
75
 
76
+ ```bash
77
+ node .agileflow/scripts/session-manager.js switch {session_id}
76
78
  ```
77
- To resume Session 2 "auth":
78
79
 
79
- ┌─────────────────────────────────────────────────────────┐
80
- │ cd ../project-auth && claude --resume │
81
- └─────────────────────────────────────────────────────────┘
80
+ Then display the `/add-dir` command to switch:
81
+
82
+ ```
83
+ To switch to Session 2 "auth":
84
+
85
+ /add-dir ../project-auth
82
86
 
83
87
  Session info:
84
- Branch: session-2
85
- Story: US-0038 (in-progress)
88
+ ┌──────────┬──────────────────────────┐
89
+ Branch │ session-2 │
90
+ │ Story │ US-0038 (in-progress) │
91
+ │ Path │ ../project-auth │
92
+ └──────────┴──────────────────────────┘
86
93
  ```
87
94
 
88
95
  **If user selects current session:**
@@ -97,6 +104,11 @@ You're already in Session 1!
97
104
  Run /agileflow:session:new to create a new parallel workspace.
98
105
  ```
99
106
 
107
+ **WHY /add-dir instead of cd && claude:**
108
+ - Stays in the same terminal and conversation
109
+ - One short command to type
110
+ - Immediately enables file access to the session directory
111
+
100
112
  ## Related Commands
101
113
 
102
114
  - `/agileflow:session:new` - Create new session
@@ -109,7 +121,7 @@ Run /agileflow:session:new to create a new parallel workspace.
109
121
 
110
122
  ## ⚠️ COMPACT SUMMARY - /agileflow:session:resume IS ACTIVE
111
123
 
112
- **CRITICAL**: This command is the primary way to **switch between parallel sessions**. User selects, you display the cd command.
124
+ **CRITICAL**: This command is the primary way to **switch between parallel sessions**. User selects, you display the `/add-dir` command.
113
125
 
114
126
  ---
115
127
 
@@ -152,16 +164,24 @@ You're already in Session 1!
152
164
  ```
153
165
 
154
166
  **If user selects different session:**
167
+
168
+ 1. First, run switch command (enables boundary protection):
169
+ ```bash
170
+ node .agileflow/scripts/session-manager.js switch {session_id}
155
171
  ```
156
- To resume Session 2 "auth":
157
172
 
158
- ┌─────────────────────────────────────────────────────────┐
159
- │ cd ../project-auth && claude --resume │
160
- └─────────────────────────────────────────────────────────┘
173
+ 2. Then show the /add-dir command:
174
+ ```
175
+ To switch to Session 2 "auth":
176
+
177
+ /add-dir ../project-auth
161
178
 
162
179
  Session info:
163
- Branch: session-2
164
- Story: US-0038 (in-progress)
180
+ ┌──────────┬──────────────────────────┐
181
+ Branch │ session-2 │
182
+ │ Story │ US-0038 (in-progress) │
183
+ │ Path │ ../project-auth │
184
+ └──────────┴──────────────────────────┘
165
185
  ```
166
186
 
167
187
  **If user selects "Create new session":**
@@ -169,6 +189,8 @@ Session info:
169
189
  Run /agileflow:session:new to create a new parallel workspace.
170
190
  ```
171
191
 
192
+ **Use /add-dir instead of cd && claude** - stays in same terminal/conversation.
193
+
172
194
  ---
173
195
 
174
196
  ### 🚨 RULE #3: FORMATTING LABELS & DESCRIPTIONS
@@ -223,7 +245,8 @@ Use these fields to build readable labels.
223
245
  2. **Parse JSON** → Extract id, branch, nickname, status, path
224
246
  3. **Build options** → Create readable labels with status
225
247
  4. **Show AskUserQuestion** → Let user select
226
- 5. **Handle selection** → Show cd command or appropriate response
248
+ 5. **Activate boundary** → `session-manager.js switch {selected_id}` (if different session)
249
+ 6. **Handle selection** → Show `/add-dir` command or appropriate response
227
250
 
228
251
  ---
229
252
 
@@ -252,6 +275,7 @@ Use these fields to build readable labels.
252
275
  - Format labels clearly: `Session {id}: {nickname/branch} {(current)}`
253
276
  - Show status in description: `Active now` OR `Inactive (N days ago)`
254
277
  - Handle each case: current / different / create new
255
- - Return cd command when user selects different session
278
+ - **Run `session-manager.js switch {id}` BEFORE showing /add-dir** (enables boundary protection)
279
+ - Show `/add-dir {path}` command when user selects different session (NOT cd && claude)
256
280
 
257
281
  <!-- COMPACT_SUMMARY_END -->