deepflow 0.1.31 → 0.1.32

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.
Files changed (2) hide show
  1. package/README.md +33 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,6 +24,7 @@
24
24
  - **Stay in flow** — Minimize context switches, maximize deep work
25
25
  - **Conversational ideation** with proactive gap discovery
26
26
  - **Specs define intent**, tasks close reality gaps
27
+ - **Spike-first planning** — Validate risky hypotheses before full implementation
27
28
  - **Worktree isolation** — Main branch stays clean during execution
28
29
  - **Parallel execution** with context-aware checkpointing
29
30
  - **Atomic commits** for clean rollback
@@ -65,19 +66,20 @@ CONVERSATION
65
66
  │ Creates specs/{name}.md
66
67
 
67
68
  /df:plan
68
- Detects project context/patterns
69
- Analyzes specs vs codebase
70
- │ Creates PLAN.md with tasks
69
+ Checks past experiments (learn from failures)
70
+ Risky work? generates spike task first
71
+ │ Creates PLAN.md with prioritized tasks
71
72
  │ Renames: feature.md → doing-feature.md
72
73
 
73
74
  /df:execute
74
75
  │ Creates isolated worktree (main stays clean)
76
+ │ Spike tasks run first, verified before continuing
75
77
  │ Parallel agents, file conflicts serialize
76
78
  │ Context-aware (≥50% → checkpoint)
77
- │ Atomic commit per task
78
79
 
79
80
  /df:verify
80
81
  │ Checks requirements met
82
+ │ Merges worktree to main, cleans up
81
83
  │ Renames: doing-feature.md → done-feature.md
82
84
  ```
83
85
 
@@ -96,13 +98,26 @@ specs/
96
98
 
97
99
  **Ongoing:** Detects existing patterns, follows conventions, integrates with current code.
98
100
 
101
+ ## Spike-First Planning
102
+
103
+ For risky or uncertain work, `/df:plan` generates a **spike task** first:
104
+
105
+ ```
106
+ Spike: Validate streaming upload handles 10MB+ files
107
+ │ Run minimal experiment
108
+ │ Pass? → Unblock implementation tasks
109
+ │ Fail? → Record learning, generate new hypothesis
110
+ ```
111
+
112
+ Experiments are tracked in `.deepflow/experiments/`. Failed approaches won't be repeated.
113
+
99
114
  ## Worktree Isolation
100
115
 
101
116
  Execution happens in an isolated git worktree:
102
117
  - Main branch stays clean during execution
103
118
  - On failure, worktree preserved for debugging
104
119
  - Resume with `/df:execute --continue`
105
- - On success, changes merged back to main
120
+ - On success, `/df:verify` merges to main and cleans up
106
121
 
107
122
  ## Context-Aware Execution
108
123
 
@@ -129,11 +144,12 @@ your-project/
129
144
  │ ├── auth.md # new spec
130
145
  │ ├── doing-upload.md # in progress
131
146
  │ └── done-payments.md # completed
132
- ├── PLAN.md # active tasks only
147
+ ├── PLAN.md # active tasks
133
148
  └── .deepflow/
134
- ├── context.json # context % for execution
135
- ├── checkpoint.json # resume state
136
- └── worktrees/ # isolated execution (main stays clean)
149
+ ├── config.yaml # project settings
150
+ ├── context.json # context % tracking
151
+ ├── experiments/ # spike results (pass/fail)
152
+ └── worktrees/ # isolated execution
137
153
  └── upload/ # one worktree per spec
138
154
  ```
139
155
 
@@ -145,6 +161,14 @@ Create `.deepflow/config.yaml`:
145
161
  project:
146
162
  source_dir: src/
147
163
  specs_dir: specs/
164
+
165
+ parallelism:
166
+ execute:
167
+ max: 5 # max parallel agents
168
+
169
+ worktree:
170
+ cleanup_on_success: true
171
+ cleanup_on_fail: false # preserve for debugging
148
172
  ```
149
173
 
150
174
  ## Principles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepflow",
3
- "version": "0.1.31",
3
+ "version": "0.1.32",
4
4
  "description": "Stay in flow state - lightweight spec-driven task orchestration for Claude Code",
5
5
  "keywords": [
6
6
  "claude",