deepflow 0.1.6 → 0.1.7

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,12 +76,9 @@ 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
 
@@ -96,12 +96,12 @@ Append tasks grouped by `### doing-{spec-name}`. Include spec gaps if any.
96
96
  - Prefer existing utilities over new code
97
97
  - Flag spec gaps, don't silently ignore
98
98
 
99
- ## Agent Limits
99
+ ## Agent Scaling
100
100
 
101
- | Agent | Base | Scale | Cap |
102
- |-------|------|-------|-----|
103
- | Explore (search) | 10 | +1 per 20 files | 100 |
104
- | Reasoner (analyze) | 5 | +1 per 2 specs | 20 |
101
+ | Agent | Base | Scale |
102
+ |-------|------|-------|
103
+ | Explore (search) | 10 | +1 per 20 files |
104
+ | Reasoner (analyze) | 5 | +1 per 2 specs |
105
105
 
106
106
  ## Example
107
107
 
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.7",
4
4
  "description": "Stay in flow state - lightweight spec-driven task orchestration for Claude Code",
5
5
  "keywords": [
6
6
  "claude",