deepflow 0.1.48 → 0.1.49

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepflow",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "Stay in flow state - lightweight spec-driven task orchestration for Claude Code",
5
5
  "keywords": [
6
6
  "claude",
@@ -4,9 +4,9 @@
4
4
 
5
5
  You coordinate reasoner agents to debate a problem from multiple perspectives, then synthesize their arguments into a structured document.
6
6
 
7
- **NEVER:** Read source files, use Glob/Grep directly, run git, use TaskOutput, use `run_in_background`, use Explore agents, use EnterPlanMode, use ExitPlanMode
7
+ **NEVER:** use TaskOutput, use `run_in_background`, use Explore agents, use EnterPlanMode, use ExitPlanMode
8
8
 
9
- **ONLY:** Spawn reasoner agents (non-background), write debate file, respond conversationally
9
+ **ONLY:** Gather codebase context (Glob/Grep/Read), spawn reasoner agents (non-background), write debate file, respond conversationally
10
10
 
11
11
  ---
12
12
 
@@ -43,12 +43,29 @@ The summary should capture:
43
43
  - Constraints and boundaries
44
44
  - User's stated preferences and priorities
45
45
 
46
- ### 2. SPAWN PERSPECTIVES
46
+ ### 2. GATHER CODEBASE CONTEXT
47
+
48
+ Before spawning perspectives, ground the debate in what actually exists. Use Glob, Grep, and Read to understand the current implementation relevant to the debate topic.
49
+
50
+ **Steps:**
51
+ 1. **Glob** for files related to the topic (e.g., `**/*{topic}*`, `src/**/*.{ts,js,py}`)
52
+ 2. **Grep** for key terms, patterns, or interfaces mentioned in the conversation
53
+ 3. **Read** the most relevant files (up to 5-6 files — focus on core logic, not boilerplate)
54
+
55
+ **Produce a ~300 word codebase summary covering:**
56
+ - What already exists (implemented features, patterns, architecture)
57
+ - Key interfaces, types, or contracts in play
58
+ - Current limitations or technical debt visible in the code
59
+ - Dependencies and integration points
60
+
61
+ This codebase summary is appended to the context passed to every perspective agent, so they argue from facts rather than assumptions.
62
+
63
+ ### 3. SPAWN PERSPECTIVES
47
64
 
48
65
  **Spawn ALL 4 perspective agents in ONE message (non-background, parallel):**
49
66
 
50
- Each agent receives the same context summary but a different role. Each must:
51
- - Argue from their perspective
67
+ Each agent receives the same context summary + codebase context but a different role. Each must:
68
+ - Argue from their perspective, grounded in what the codebase actually does
52
69
  - Identify risks the other perspectives might miss
53
70
  - Propose concrete alternatives where they disagree with the likely approach
54
71
 
@@ -60,6 +77,9 @@ You are the USER ADVOCATE in a design debate.
60
77
  ## Context
61
78
  {summary}
62
79
 
80
+ ## Current Codebase
81
+ {codebase_summary}
82
+
63
83
  ## Your Role
64
84
  Argue from the perspective of the end user. Focus on:
65
85
  - Simplicity and ease of use
@@ -81,6 +101,9 @@ You are the TECH SKEPTIC in a design debate.
81
101
  ## Context
82
102
  {summary}
83
103
 
104
+ ## Current Codebase
105
+ {codebase_summary}
106
+
84
107
  ## Your Role
85
108
  Challenge technical assumptions and surface hidden complexity. Focus on:
86
109
  - What could go wrong technically
@@ -102,6 +125,9 @@ You are the SYSTEMS THINKER in a design debate.
102
125
  ## Context
103
126
  {summary}
104
127
 
128
+ ## Current Codebase
129
+ {codebase_summary}
130
+
105
131
  ## Your Role
106
132
  Analyze how this fits into the broader system. Focus on:
107
133
  - Integration with existing components
@@ -123,6 +149,9 @@ You are the LLM EFFICIENCY expert in a design debate.
123
149
  ## Context
124
150
  {summary}
125
151
 
152
+ ## Current Codebase
153
+ {codebase_summary}
154
+
126
155
  ## Your Role
127
156
  Evaluate from the perspective of LLM consumption and interaction. Focus on:
128
157
  - Token density: can the output be consumed efficiently by LLMs?
@@ -139,7 +168,7 @@ Keep response under 400 words.
139
168
  """)
140
169
  ```
141
170
 
142
- ### 3. SYNTHESIZE
171
+ ### 4. SYNTHESIZE
143
172
 
144
173
  After all 4 perspectives return, spawn 1 additional reasoner to synthesize:
145
174
 
@@ -176,7 +205,7 @@ Keep response under 500 words.
176
205
  """)
177
206
  ```
178
207
 
179
- ### 4. WRITE DEBATE FILE
208
+ ### 5. WRITE DEBATE FILE
180
209
 
181
210
  Create `specs/.debate-{name}.md`:
182
211
 
@@ -186,6 +215,9 @@ Create `specs/.debate-{name}.md`:
186
215
  ## Context
187
216
  [~200 word summary from step 1]
188
217
 
218
+ ## Codebase Context
219
+ [~300 word summary from step 2 — what exists, key patterns, limitations]
220
+
189
221
  ## Perspectives
190
222
 
191
223
  ### User Advocate
@@ -215,7 +247,7 @@ Create `specs/.debate-{name}.md`:
215
247
  [from synthesizer]
216
248
  ```
217
249
 
218
- ### 5. CONFIRM
250
+ ### 6. CONFIRM
219
251
 
220
252
  After writing the file, present a brief summary to the user:
221
253
 
@@ -233,7 +265,7 @@ Open decisions:
233
265
  Next: Run /df:spec {name} to formalize into a specification
234
266
  ```
235
267
 
236
- ### 6. CAPTURE DECISIONS
268
+ ### 7. CAPTURE DECISIONS
237
269
 
238
270
  Extract up to 4 candidates from consensus/resolved tensions. Ask user via `AskUserQuestion(multiSelect=True)` with options like `{ label: "[APPROACH] {decision}", description: "{rationale}" }`.
239
271
 
@@ -251,9 +283,9 @@ Tags: [APPROACH] directional choices · [PROVISIONAL] tentative · [ASSUMPTION]
251
283
  - **All 4 perspective agents MUST be spawned in ONE message** (parallel, non-background)
252
284
  - **NEVER use `run_in_background`** — causes late notifications that pollute output
253
285
  - **NEVER use TaskOutput** — returns full transcripts that explode context
254
- - **NEVER use Explore agents** — this command doesn't read code
255
- - **NEVER read source files directly** agents receive context via prompt only
256
- - Reasoner agents receive context through their prompt, not by reading files
286
+ - **NEVER use Explore agents** — the orchestrator gathers context directly
287
+ - **Codebase context is gathered by the orchestrator** (step 2) and passed to agents via prompt
288
+ - Reasoner agents receive context through their prompt, not by reading files themselves
257
289
  - The debate file goes in `specs/` so `/df:spec` can reference it
258
290
  - File name MUST be `.debate-{name}.md` (dot prefix = auxiliary file)
259
291
  - Keep each perspective under 400 words, synthesis under 500 words
@@ -263,13 +295,16 @@ Tags: [APPROACH] directional choices · [PROVISIONAL] tentative · [ASSUMPTION]
263
295
  ```
264
296
  USER: /df:debate auth
265
297
 
266
- CLAUDE: Let me summarize what we've discussed and get multiple perspectives
267
- on the authentication design.
298
+ CLAUDE: Let me summarize what we've discussed and understand the current
299
+ codebase before getting multiple perspectives on the authentication design.
268
300
 
269
301
  [Summarizes: ~200 words about auth requirements from conversation]
270
302
 
271
- [Spawns 4 reasoner agents in parallel User Advocate, Tech Skeptic,
272
- Systems Thinker, LLM Efficiency]
303
+ [Globs/Greps/Reads relevant auth filesmiddleware, routes, config]
304
+
305
+ [Produces ~300 word codebase summary of what exists]
306
+
307
+ [Spawns 4 reasoner agents in parallel — each receives both summaries]
273
308
 
274
309
  [All 4 return their arguments]
275
310