deepflow 0.1.6 → 0.1.8

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.
@@ -76,16 +76,15 @@ Ready = `[ ]` + all `blocked_by` complete + not in checkpoint.
76
76
 
77
77
  If context ≥50%: wait for agents, checkpoint, exit.
78
78
 
79
- | Ready | Strategy |
80
- |-------|----------|
81
- | 1-3 | All parallel |
82
- | 4+ | 5 parallel, queue rest |
79
+ All ready tasks run in parallel. File conflicts execute sequentially.
83
80
 
84
- 1 writer per file. On failure: spawn `reasoner`.
81
+ On failure: spawn `reasoner`.
85
82
 
86
83
  ### 6. PER-TASK (agent)
87
84
 
88
- Implement verify commit write result file.
85
+ 1. Read existing code patterns (if any)
86
+ 2. Implement following existing style
87
+ 3. Verify → commit → write result file
89
88
 
90
89
  ### 7. COMPLETE SPECS
91
90
 
@@ -42,7 +42,16 @@ Determine source_dir from config or default to src/
42
42
 
43
43
  If no new specs: report counts, suggest `/df:execute`.
44
44
 
45
- ### 2. ANALYZE CODEBASE
45
+ ### 2. DETECT PROJECT CONTEXT
46
+
47
+ For existing codebases, identify:
48
+ - Code style/conventions
49
+ - Existing patterns (error handling, API structure)
50
+ - Integration points
51
+
52
+ Include patterns in task descriptions for agents to follow.
53
+
54
+ ### 3. ANALYZE CODEBASE
46
55
 
47
56
  **Spawn Explore agents** (haiku, read-only) with dynamic count:
48
57
 
@@ -59,7 +68,7 @@ If no new specs: report counts, suggest `/df:execute`.
59
68
  - Stub functions, placeholder returns
60
69
  - Skipped tests, incomplete coverage
61
70
 
62
- ### 3. COMPARE & PRIORITIZE
71
+ ### 4. COMPARE & PRIORITIZE
63
72
 
64
73
  **Spawn `reasoner` agent** (Opus) for analysis:
65
74
 
@@ -77,15 +86,15 @@ If no new specs: report counts, suggest `/df:execute`.
77
86
  2. Impact — core features before enhancements
78
87
  3. Risk — unknowns early
79
88
 
80
- ### 4. OUTPUT PLAN.md
89
+ ### 5. OUTPUT PLAN.md
81
90
 
82
91
  Append tasks grouped by `### doing-{spec-name}`. Include spec gaps if any.
83
92
 
84
- ### 5. RENAME SPECS
93
+ ### 6. RENAME SPECS
85
94
 
86
95
  `mv specs/feature.md specs/doing-feature.md`
87
96
 
88
- ### 6. REPORT
97
+ ### 7. REPORT
89
98
 
90
99
  `✓ Plan generated — {n} specs, {n} tasks. Run /df:execute`
91
100
 
@@ -96,12 +105,12 @@ Append tasks grouped by `### doing-{spec-name}`. Include spec gaps if any.
96
105
  - Prefer existing utilities over new code
97
106
  - Flag spec gaps, don't silently ignore
98
107
 
99
- ## Agent Limits
108
+ ## Agent Scaling
100
109
 
101
- | Agent | Base | Scale | Cap |
102
- |-------|------|-------|-----|
103
- | Explore (search) | 10 | +1 per 20 files | 100 |
104
- | Reasoner (analyze) | 5 | +1 per 2 specs | 20 |
110
+ | Agent | Base | Scale |
111
+ |-------|------|-------|
112
+ | Explore (search) | 10 | +1 per 20 files |
113
+ | Reasoner (analyze) | 5 | +1 per 2 specs |
105
114
 
106
115
  ## Example
107
116
 
package/README.md CHANGED
@@ -14,8 +14,7 @@
14
14
  <p align="center">
15
15
  <a href="#quick-start">Quick Start</a> •
16
16
  <a href="#the-flow">The Flow</a> •
17
- <a href="#commands">Commands</a>
18
- <a href="docs/getting-started.md">Docs</a>
17
+ <a href="#commands">Commands</a>
19
18
  </p>
20
19
 
21
20
  ---
@@ -25,9 +24,8 @@
25
24
  - **Stay in flow** — Minimize context switches, maximize deep work
26
25
  - **Conversational ideation** with proactive gap discovery
27
26
  - **Specs define intent**, tasks close reality gaps
28
- - **Parallel execution** with dependency awareness
27
+ - **Parallel execution** with context-aware checkpointing
29
28
  - **Atomic commits** for clean rollback
30
- - **Minimal ceremony** — 4 commands, not 27
31
29
 
32
30
  ## Quick Start
33
31
 
@@ -38,7 +36,7 @@ npx deepflow
38
36
  # In your project
39
37
  claude
40
38
 
41
- # 1. Discuss what you want to build (conversation)
39
+ # 1. Discuss what you want to build
42
40
  # 2. Generate spec when ready
43
41
  /df:spec image-upload
44
42
 
@@ -57,39 +55,42 @@ claude
57
55
  ```
58
56
  CONVERSATION
59
57
  │ Describe what you want
60
- │ LLM asks gap questions (scope, edge cases, constraints)
58
+ │ LLM asks gap questions
61
59
 
62
60
  /df:spec <name>
63
- Generates specs/{name}.md
61
+ Creates specs/{name}.md
64
62
 
65
63
  /df:plan
66
- Compares specs to codebase
67
- Finds TODOs, stubs, missing implementations
68
- Outputs PLAN.md with prioritized tasks
64
+ Analyzes specs vs codebase
65
+ Creates PLAN.md with tasks
66
+ Renames: feature.md doing-feature.md
69
67
 
70
68
  /df:execute
71
- Runs tasks respecting dependencies
72
- Parallel for independent tasks
69
+ Parallel agents per wave
70
+ Context-aware (≥50% checkpoint)
73
71
  │ Atomic commit per task
74
72
 
75
73
  /df:verify
76
- │ Checks spec requirements met
77
- Updates PLAN.md status
74
+ │ Checks requirements met
75
+ Renames: doing-feature.md → done-feature.md
78
76
  ```
79
77
 
80
- ## File Structure
81
-
82
- After running deepflow, your project will have:
78
+ ## Spec Lifecycle
83
79
 
84
80
  ```
85
- your-project/
86
- ├── specs/
87
- │ ├── feature-a.md
88
- │ └── feature-b.md
89
- ├── PLAN.md # Task checklist
90
- └── STATE.md # Decisions & learnings
81
+ specs/
82
+ feature.md → new, needs /df:plan
83
+ doing-feature.md → in progress, has tasks in PLAN.md
84
+ done-feature.md → completed, history embedded
91
85
  ```
92
86
 
87
+ ## Context-Aware Execution
88
+
89
+ Statusline shows context usage. At ≥50%:
90
+ - Waits for running agents
91
+ - Checkpoints state
92
+ - Resume with `/df:execute --continue`
93
+
93
94
  ## Commands
94
95
 
95
96
  | Command | Purpose |
@@ -98,40 +99,40 @@ your-project/
98
99
  | `/df:plan` | Compare specs to code, create tasks |
99
100
  | `/df:execute` | Run tasks with parallel agents |
100
101
  | `/df:verify` | Check specs satisfied |
102
+ | `/df:update` | Update deepflow to latest |
103
+
104
+ ## File Structure
105
+
106
+ ```
107
+ your-project/
108
+ ├── specs/
109
+ │ ├── auth.md # new spec
110
+ │ ├── doing-upload.md # in progress
111
+ │ └── done-payments.md # completed
112
+ ├── PLAN.md # active tasks only
113
+ └── .deepflow/
114
+ ├── context.json # context % for execution
115
+ ├── checkpoint.json # resume state
116
+ └── results/ # agent results
117
+ ```
101
118
 
102
119
  ## Configuration
103
120
 
104
- Create `.deepflow/config.yaml` in your project:
121
+ Create `.deepflow/config.yaml`:
105
122
 
106
123
  ```yaml
107
124
  project:
108
125
  source_dir: src/
109
126
  specs_dir: specs/
110
-
111
- planning:
112
- search_patterns:
113
- - "TODO"
114
- - "FIXME"
115
- - "stub"
116
- - "placeholder"
117
-
118
- parallelism:
119
- max_search_agents: 50
120
- max_write_agents: 5
121
-
122
- models:
123
- search: sonnet
124
- implement: sonnet
125
- reason: opus
126
127
  ```
127
128
 
128
129
  ## Principles
129
130
 
130
131
  1. **Stay in flow** — Uninterrupted deep work
131
- 2. **Confirm before assume** — Search code before creating "missing" tasks
132
+ 2. **Confirm before assume** — Search code before marking "missing"
132
133
  3. **Complete implementations** — No stubs, no placeholders
133
134
  4. **Atomic commits** — One task = one commit
134
- 5. **Single writer per file** — Avoid race conditions
135
+ 5. **Context-aware** — Checkpoint before limits
135
136
 
136
137
  ## License
137
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepflow",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Stay in flow state - lightweight spec-driven task orchestration for Claude Code",
5
5
  "keywords": [
6
6
  "claude",