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.
- package/.claude/commands/df/execute.md +2 -5
- package/.claude/commands/df/plan.md +5 -5
- package/README.md +43 -42
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
99
|
+
## Agent Scaling
|
|
100
100
|
|
|
101
|
-
| Agent | Base | Scale |
|
|
102
|
-
|
|
103
|
-
| Explore (search) | 10 | +1 per 20 files |
|
|
104
|
-
| Reasoner (analyze) | 5 | +1 per 2 specs |
|
|
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
|
|
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
|
|
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
|
|
58
|
+
│ LLM asks gap questions
|
|
61
59
|
▼
|
|
62
60
|
/df:spec <name>
|
|
63
|
-
│
|
|
61
|
+
│ Creates specs/{name}.md
|
|
64
62
|
▼
|
|
65
63
|
/df:plan
|
|
66
|
-
│
|
|
67
|
-
│
|
|
68
|
-
│
|
|
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
|
-
│
|
|
72
|
-
│
|
|
69
|
+
│ Parallel agents per wave
|
|
70
|
+
│ Context-aware (≥50% → checkpoint)
|
|
73
71
|
│ Atomic commit per task
|
|
74
72
|
▼
|
|
75
73
|
/df:verify
|
|
76
|
-
│ Checks
|
|
77
|
-
│
|
|
74
|
+
│ Checks requirements met
|
|
75
|
+
│ Renames: doing-feature.md → done-feature.md
|
|
78
76
|
```
|
|
79
77
|
|
|
80
|
-
##
|
|
81
|
-
|
|
82
|
-
After running deepflow, your project will have:
|
|
78
|
+
## Spec Lifecycle
|
|
83
79
|
|
|
84
80
|
```
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
|
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
|
|
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. **
|
|
135
|
+
5. **Context-aware** — Checkpoint before limits
|
|
135
136
|
|
|
136
137
|
## License
|
|
137
138
|
|