declare-cc 0.1.0 → 0.3.0
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/README.md +126 -27
- package/agents/declare-codebase-mapper.md +761 -0
- package/agents/declare-debugger.md +1198 -0
- package/agents/declare-plan-checker.md +608 -0
- package/agents/declare-planner.md +1015 -0
- package/agents/declare-research-synthesizer.md +309 -0
- package/agents/declare-researcher.md +484 -0
- package/commands/declare/actions.md +41 -20
- package/commands/declare/add-todo.md +41 -0
- package/commands/declare/audit.md +76 -0
- package/commands/declare/check-todos.md +125 -0
- package/commands/declare/complete-milestone.md +215 -0
- package/commands/declare/dashboard.md +76 -0
- package/commands/{gsd → declare}/debug.md +11 -11
- package/commands/declare/discuss.md +65 -0
- package/commands/declare/execute.md +518 -0
- package/commands/declare/health.md +92 -0
- package/commands/declare/help.md +31 -0
- package/commands/declare/init.md +36 -0
- package/commands/declare/map-codebase.md +149 -0
- package/commands/declare/milestones.md +7 -7
- package/commands/declare/new-milestone.md +172 -0
- package/commands/declare/new-project.md +565 -0
- package/commands/declare/pause.md +138 -0
- package/commands/declare/plan.md +236 -0
- package/commands/declare/prioritize.md +65 -0
- package/commands/declare/progress.md +116 -0
- package/commands/declare/quick.md +119 -0
- package/commands/declare/reapply-patches.md +178 -0
- package/commands/declare/research.md +267 -0
- package/commands/declare/resume.md +146 -0
- package/commands/declare/set-profile.md +66 -0
- package/commands/declare/settings.md +119 -0
- package/commands/declare/status.md +14 -11
- package/commands/declare/trace.md +81 -0
- package/commands/declare/update.md +251 -0
- package/commands/declare/verify.md +64 -0
- package/commands/declare/visualize.md +74 -0
- package/dist/declare-tools.cjs +1234 -3
- package/package.json +4 -2
- package/templates/future.md +4 -0
- package/templates/milestones.md +11 -0
- package/workflows/actions.md +89 -0
- package/workflows/discuss.md +476 -0
- package/workflows/future.md +185 -0
- package/workflows/milestones.md +87 -0
- package/workflows/verify.md +504 -0
- package/commands/gsd/add-phase.md +0 -39
- package/commands/gsd/add-todo.md +0 -42
- package/commands/gsd/audit-milestone.md +0 -42
- package/commands/gsd/check-todos.md +0 -41
- package/commands/gsd/cleanup.md +0 -18
- package/commands/gsd/complete-milestone.md +0 -136
- package/commands/gsd/discuss-phase.md +0 -87
- package/commands/gsd/execute-phase.md +0 -42
- package/commands/gsd/health.md +0 -22
- package/commands/gsd/help.md +0 -22
- package/commands/gsd/insert-phase.md +0 -33
- package/commands/gsd/join-discord.md +0 -18
- package/commands/gsd/list-phase-assumptions.md +0 -50
- package/commands/gsd/map-codebase.md +0 -71
- package/commands/gsd/new-milestone.md +0 -51
- package/commands/gsd/new-project.md +0 -42
- package/commands/gsd/new-project.md.bak +0 -1041
- package/commands/gsd/pause-work.md +0 -35
- package/commands/gsd/plan-milestone-gaps.md +0 -40
- package/commands/gsd/plan-phase.md +0 -44
- package/commands/gsd/progress.md +0 -24
- package/commands/gsd/quick.md +0 -40
- package/commands/gsd/reapply-patches.md +0 -110
- package/commands/gsd/remove-phase.md +0 -32
- package/commands/gsd/research-phase.md +0 -187
- package/commands/gsd/resume-work.md +0 -40
- package/commands/gsd/set-profile.md +0 -34
- package/commands/gsd/settings.md +0 -36
- package/commands/gsd/update.md +0 -37
- package/commands/gsd/verify-work.md +0 -39
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Forked from [GSD (Get Shit Done)](https://github.com/gsd-build/get-shit-done) — replaces linear phase-based planning with a three-layer DAG rooted in declared futures.
|
|
8
8
|
|
|
9
|
+
[](https://www.npmjs.com/package/declare-cc)
|
|
9
10
|
[](LICENSE)
|
|
10
11
|
|
|
11
12
|
```bash
|
|
@@ -65,32 +66,26 @@ Works backward from declarations: "What must be true for D-01 to hold?" Each mil
|
|
|
65
66
|
|
|
66
67
|
**Creates:** `MILESTONES.md` with milestones (M-01, M-02, ...)
|
|
67
68
|
|
|
68
|
-
### 4.
|
|
69
|
+
### 4. Plan & Execute
|
|
69
70
|
|
|
70
71
|
```
|
|
71
|
-
/declare:
|
|
72
|
+
/declare:plan M-01 # Research → plan → verify loop (planner + checker agents)
|
|
73
|
+
/declare:execute M-01 # Wave-based execution with parallel agents
|
|
72
74
|
```
|
|
73
75
|
|
|
74
|
-
|
|
76
|
+
The planner agent derives concrete actions, the checker agent validates them, and the executor runs them in topological waves. Each action gets its own atomic commit.
|
|
75
77
|
|
|
76
|
-
**Creates:** `.planning/milestones/M-XX-*/PLAN.md`
|
|
78
|
+
**Creates:** `.planning/milestones/M-XX-*/PLAN.md` and `EXEC-PLAN-*.md` files
|
|
77
79
|
|
|
78
|
-
### 5.
|
|
80
|
+
### 5. Verify & Sync
|
|
79
81
|
|
|
80
82
|
```
|
|
81
|
-
/declare:
|
|
83
|
+
/declare:verify M-01 # Conversational UAT — validates deliverables
|
|
84
|
+
/declare:audit M-01 # Cross-reference actions against declarations
|
|
85
|
+
node dist/declare-tools.cjs sync-status # Propagate DONE bottom-up through the graph
|
|
82
86
|
```
|
|
83
87
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
1. **Computes waves** — Groups actions by topological order using the DAG
|
|
87
|
-
2. **Spawns parallel agents** — Independent actions in the same wave run simultaneously
|
|
88
|
-
3. **Verifies per wave** — Each wave is verified before the next begins
|
|
89
|
-
4. **Completes milestones** — When all actions pass, milestone is marked DONE with verification artifacts
|
|
90
|
-
|
|
91
|
-
Each agent gets a fresh context window. Your main session stays light.
|
|
92
|
-
|
|
93
|
-
**Creates:** `VERIFICATION.md` per milestone
|
|
88
|
+
`sync-status` walks the DAG bottom-up: marks actions DONE (by file existence or milestone status), then milestones (all actions DONE), then declarations (all milestones DONE). Run it after any verification pass.
|
|
94
89
|
|
|
95
90
|
### 6. Navigate
|
|
96
91
|
|
|
@@ -101,6 +96,7 @@ Understand your graph at any point:
|
|
|
101
96
|
/declare:visualize # ASCII tree of the full DAG with status markers
|
|
102
97
|
/declare:prioritize M-01 # Rank actions by unblocking power (dependency weight)
|
|
103
98
|
/declare:status # Layer counts, health indicators, integrity/alignment metrics
|
|
99
|
+
/declare:dashboard # Live interactive DAG in the browser
|
|
104
100
|
```
|
|
105
101
|
|
|
106
102
|
---
|
|
@@ -123,6 +119,22 @@ The graph engine (`DeclareDag`) uses dual adjacency lists for O(1) bidirectional
|
|
|
123
119
|
|
|
124
120
|
---
|
|
125
121
|
|
|
122
|
+
## Live DAG Dashboard
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
/declare:dashboard
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Starts a local server and opens an interactive browser view of your full graph. Nodes are rendered in three layers (Declarations → Milestones → Actions) with live status colors.
|
|
129
|
+
|
|
130
|
+
**Focus mode:** Click any node to filter the graph to its causal chain. The surrounding nodes slide out, the relevant subtree centers itself with smooth FLIP animations. Click again or press Esc to exit.
|
|
131
|
+
|
|
132
|
+
**Sidebar:** Click any node to see its full causal chain — declaration → milestone → action — with context and status. Chain nodes are clickable.
|
|
133
|
+
|
|
134
|
+
**Status colors:** DONE nodes retain their type hue (dimmed blue for declarations, dimmed purple for milestones, dimmed green for actions) so the graph stays readable as a living document rather than collapsing to grey.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
126
138
|
## Integrity & Alignment
|
|
127
139
|
|
|
128
140
|
Declare doesn't just track what's done — it tracks whether commitments are being honored.
|
|
@@ -144,24 +156,83 @@ The **honor protocol** for a commitment you can't keep: acknowledge the break, i
|
|
|
144
156
|
|
|
145
157
|
- **Drift detection** — Are current actions still aligned with declared futures?
|
|
146
158
|
- **Occurrence checks** — AI verifies declarations still hold at milestone completion
|
|
147
|
-
- **Performance scoring** — Alignment
|
|
159
|
+
- **Performance scoring** — Alignment × Integrity as qualitative HIGH/MEDIUM/LOW (never numeric scores)
|
|
148
160
|
- **Renegotiation flow** — When a declaration no longer fits, renegotiate it into `FUTURE-ARCHIVE.md`
|
|
149
161
|
|
|
150
162
|
---
|
|
151
163
|
|
|
152
164
|
## Commands
|
|
153
165
|
|
|
166
|
+
### Core Workflow
|
|
167
|
+
|
|
154
168
|
| Command | What it does |
|
|
155
169
|
|---------|--------------|
|
|
156
170
|
| `/declare:init` | Scaffold project structure and install commands |
|
|
157
171
|
| `/declare:future` | Guided conversation to capture declared futures |
|
|
158
172
|
| `/declare:milestones` | Derive milestones backward from declarations |
|
|
159
173
|
| `/declare:actions [M-XX]` | Derive actions for a milestone |
|
|
160
|
-
| `/declare:
|
|
161
|
-
| `/declare:
|
|
174
|
+
| `/declare:plan [M-XX]` | Research → plan → verify loop (planner + checker agents) |
|
|
175
|
+
| `/declare:execute [M-XX]` | Wave-based execution with parallel agents |
|
|
176
|
+
|
|
177
|
+
### Planning Support
|
|
178
|
+
|
|
179
|
+
| Command | What it does |
|
|
180
|
+
|---------|--------------|
|
|
181
|
+
| `/declare:discuss [M-XX]` | Gather milestone context through adaptive questioning |
|
|
182
|
+
| `/declare:research [M-XX]` | Spawn 4 parallel researchers, synthesize into RESEARCH.md |
|
|
183
|
+
| `/declare:map-codebase` | Parallel codebase analysis → `.planning/codebase/` docs |
|
|
184
|
+
|
|
185
|
+
### Quality Loop
|
|
186
|
+
|
|
187
|
+
| Command | What it does |
|
|
188
|
+
|---------|--------------|
|
|
189
|
+
| `/declare:verify [M-XX]` | Conversational UAT — validates deliverables, spawns debuggers on failure |
|
|
190
|
+
| `/declare:audit [M-XX]` | Cross-reference actions against declarations, identify gaps |
|
|
191
|
+
| `/declare:debug` | Systematic debugging with scientific method and checkpoint persistence |
|
|
192
|
+
|
|
193
|
+
### Navigation
|
|
194
|
+
|
|
195
|
+
| Command | What it does |
|
|
196
|
+
|---------|--------------|
|
|
197
|
+
| `/declare:trace <node>` | Walk the why-chain from any node up to its declaration |
|
|
162
198
|
| `/declare:visualize` | ASCII tree of the full DAG with status markers |
|
|
163
199
|
| `/declare:prioritize [M-XX]` | Rank actions by dependency weight (unblocking power) |
|
|
164
200
|
| `/declare:status` | Graph health, layer counts, integrity and alignment metrics |
|
|
201
|
+
| `/declare:dashboard` | Live interactive DAG in the browser |
|
|
202
|
+
|
|
203
|
+
### Productivity
|
|
204
|
+
|
|
205
|
+
| Command | What it does |
|
|
206
|
+
|---------|--------------|
|
|
207
|
+
| `/declare:quick` | Ad-hoc task with atomic commit, outside milestone structure |
|
|
208
|
+
| `/declare:add-todo` | Capture an idea or task for later |
|
|
209
|
+
| `/declare:check-todos` | List pending todos, route to milestone or quick task |
|
|
210
|
+
|
|
211
|
+
### Session Management
|
|
212
|
+
|
|
213
|
+
| Command | What it does |
|
|
214
|
+
|---------|--------------|
|
|
215
|
+
| `/declare:progress` | Current position, recent work summary, route to next action |
|
|
216
|
+
| `/declare:pause` | Snapshot work state to `.continue-here.md` for safe handoff |
|
|
217
|
+
| `/declare:resume` | Restore full context from previous session |
|
|
218
|
+
|
|
219
|
+
### Lifecycle
|
|
220
|
+
|
|
221
|
+
| Command | What it does |
|
|
222
|
+
|---------|--------------|
|
|
223
|
+
| `/declare:new-project` | Deep context gathering, PROJECT.md + STATE.md creation |
|
|
224
|
+
| `/declare:new-milestone` | Archive declarations, reset for next milestone cycle |
|
|
225
|
+
| `/declare:complete-milestone` | Snapshot graph, tag release, prepare next cycle |
|
|
226
|
+
|
|
227
|
+
### Maintenance
|
|
228
|
+
|
|
229
|
+
| Command | What it does |
|
|
230
|
+
|---------|--------------|
|
|
231
|
+
| `/declare:health` | Diagnose `.planning/` directory health, repair issues |
|
|
232
|
+
| `/declare:settings` | Configure workflow toggles interactively |
|
|
233
|
+
| `/declare:set-profile` | Switch model profile (quality / balanced / budget) |
|
|
234
|
+
| `/declare:update` | Update to latest npm version with local-patch preservation |
|
|
235
|
+
| `/declare:reapply-patches` | Reapply local modifications after an update |
|
|
165
236
|
| `/declare:help` | Show all commands |
|
|
166
237
|
|
|
167
238
|
---
|
|
@@ -171,18 +242,36 @@ The **honor protocol** for a commitment you can't keep: acknowledge the break, i
|
|
|
171
242
|
```
|
|
172
243
|
FUTURE.md # Declared futures (D-01, D-02, ...)
|
|
173
244
|
MILESTONES.md # Derived milestones (M-01, M-02, ...)
|
|
174
|
-
FORK-BOUNDARY.md # What diverges from GSD and why
|
|
175
245
|
|
|
176
246
|
.planning/
|
|
247
|
+
├── PROJECT.md # Project context and goals
|
|
248
|
+
├── STATE.md # Current work state
|
|
177
249
|
├── config.json # Project settings
|
|
178
250
|
├── milestones/
|
|
179
251
|
│ └── M-XX-slug/
|
|
180
252
|
│ ├── PLAN.md # Actions for this milestone
|
|
253
|
+
│ ├── EXEC-PLAN-*.md # Per-action execution plans
|
|
181
254
|
│ └── VERIFICATION.md # Integrity proof after execution
|
|
182
|
-
└──
|
|
255
|
+
└── codebase/ # Codebase analysis artifacts
|
|
256
|
+
|
|
257
|
+
agents/ # Declare-specific agent definitions
|
|
258
|
+
├── declare-planner.md
|
|
259
|
+
├── declare-plan-checker.md
|
|
260
|
+
├── declare-researcher.md
|
|
261
|
+
├── declare-research-synthesizer.md
|
|
262
|
+
├── declare-codebase-mapper.md
|
|
263
|
+
└── declare-debugger.md
|
|
264
|
+
|
|
265
|
+
workflows/
|
|
266
|
+
├── discuss.md # Context capture workflow
|
|
267
|
+
└── verify.md # UAT workflow
|
|
183
268
|
|
|
184
269
|
dist/declare-tools.cjs # Bundled CLI (zero runtime deps)
|
|
185
|
-
|
|
270
|
+
src/ # Source (Node.js, CJS)
|
|
271
|
+
├── graph/engine.js # DeclareDag — dual adjacency lists, Kahn's sort
|
|
272
|
+
├── artifacts/ # Markdown parsers/writers
|
|
273
|
+
├── commands/ # CLI command implementations
|
|
274
|
+
└── server/ # DAG web server + dashboard frontend
|
|
186
275
|
```
|
|
187
276
|
|
|
188
277
|
---
|
|
@@ -211,9 +300,9 @@ Requires Node.js 18+.
|
|
|
211
300
|
/declare:init # Scaffold the project
|
|
212
301
|
/declare:future # Declare 3-5 futures
|
|
213
302
|
/declare:milestones # Derive milestones backward
|
|
214
|
-
/declare:
|
|
303
|
+
/declare:plan M-01 # Research + plan first milestone
|
|
215
304
|
/declare:execute M-01 # Execute with wave scheduling
|
|
216
|
-
/declare:
|
|
305
|
+
/declare:dashboard # View the live DAG
|
|
217
306
|
```
|
|
218
307
|
|
|
219
308
|
### Recommended: Skip Permissions Mode
|
|
@@ -266,7 +355,19 @@ WAVE 1 (parallel) WAVE 2 (parallel) WAVE 3
|
|
|
266
355
|
A-05 needs A-03 + A-04 │
|
|
267
356
|
```
|
|
268
357
|
|
|
269
|
-
Each agent gets a fresh
|
|
358
|
+
Each agent gets a fresh context window. Your main session stays light.
|
|
359
|
+
|
|
360
|
+
### Status Propagation
|
|
361
|
+
|
|
362
|
+
The DAG maintains status consistency bottom-up. Run `sync-status` after any verification pass:
|
|
363
|
+
|
|
364
|
+
```
|
|
365
|
+
Actions → check produced files exist → mark DONE
|
|
366
|
+
↓
|
|
367
|
+
Milestones → all actions DONE → mark DONE
|
|
368
|
+
↓
|
|
369
|
+
Declarations → all milestones DONE → mark DONE
|
|
370
|
+
```
|
|
270
371
|
|
|
271
372
|
### Atomic Git Commits
|
|
272
373
|
|
|
@@ -309,8 +410,6 @@ Declare is forked from [GSD (Get Shit Done)](https://github.com/gsd-build/get-sh
|
|
|
309
410
|
| Sequential execution | Topology-aware wave scheduling | Actions execute in causal order, not linear sequence |
|
|
310
411
|
| Phase numbers | Milestone IDs (M-XX) | Milestones derive from declarations, not arbitrary ordering |
|
|
311
412
|
|
|
312
|
-
See `FORK-BOUNDARY.md` for the full divergence map.
|
|
313
|
-
|
|
314
413
|
---
|
|
315
414
|
|
|
316
415
|
## License
|