opencodekit 0.7.0 → 0.9.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/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +65 -27
- package/dist/template/.opencode/README.md +14 -19
- package/dist/template/.opencode/agent/build.md +4 -6
- package/dist/template/.opencode/agent/explore.md +18 -18
- package/dist/template/.opencode/agent/planner.md +4 -7
- package/dist/template/.opencode/agent/review.md +1 -2
- package/dist/template/.opencode/agent/rush.md +4 -6
- package/dist/template/.opencode/agent/scout.md +45 -38
- package/dist/template/.opencode/agent/vision.md +16 -24
- package/dist/template/.opencode/command/analyze-project.md +9 -9
- package/dist/template/.opencode/command/create.md +9 -4
- package/dist/template/.opencode/command/finish.md +12 -17
- package/dist/template/.opencode/command/fix-ci.md +10 -9
- package/dist/template/.opencode/command/fix-types.md +4 -11
- package/dist/template/.opencode/command/handoff.md +14 -18
- package/dist/template/.opencode/command/implement.md +11 -11
- package/dist/template/.opencode/command/import-plan.md +25 -14
- package/dist/template/.opencode/command/integration-test.md +1 -1
- package/dist/template/.opencode/command/issue.md +10 -9
- package/dist/template/.opencode/command/new-feature.md +4 -6
- package/dist/template/.opencode/command/plan.md +3 -5
- package/dist/template/.opencode/command/pr.md +2 -4
- package/dist/template/.opencode/command/research-and-implement.md +1 -1
- package/dist/template/.opencode/command/research.md +13 -15
- package/dist/template/.opencode/command/resume.md +2 -2
- package/dist/template/.opencode/command/revert-feature.md +5 -7
- package/dist/template/.opencode/command/status.md +8 -10
- package/dist/template/.opencode/dcp.jsonc +20 -2
- package/dist/template/.opencode/opencode.json +20 -35
- package/dist/template/.opencode/package.json +1 -1
- package/dist/template/.opencode/plugin/beads.ts +667 -0
- package/dist/template/.opencode/plugin/compaction.ts +80 -0
- package/dist/template/.opencode/plugin/skill-mcp.ts +458 -0
- package/dist/template/.opencode/skill/beads/SKILL.md +419 -0
- package/dist/template/.opencode/skill/beads/references/BOUNDARIES.md +218 -0
- package/dist/template/.opencode/skill/beads/references/DEPENDENCIES.md +130 -0
- package/dist/template/.opencode/skill/beads/references/RESUMABILITY.md +180 -0
- package/dist/template/.opencode/skill/beads/references/WORKFLOWS.md +222 -0
- package/dist/template/.opencode/skill/figma/SKILL.md +214 -0
- package/dist/template/.opencode/skill/playwright/SKILL.md +187 -0
- package/package.json +1 -1
|
@@ -13,8 +13,8 @@ agent: build
|
|
|
13
13
|
|
|
14
14
|
## Phase 1: Load Bead
|
|
15
15
|
|
|
16
|
-
```
|
|
17
|
-
|
|
16
|
+
```typescript
|
|
17
|
+
bd_show({ id: "$ARGUMENTS" });
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Verify status is `in-progress` or `open`.
|
|
@@ -175,31 +175,25 @@ Closes: <bead-id>"
|
|
|
175
175
|
|
|
176
176
|
## Phase 7: Close Bead
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
Complete the task and release any file reservations:
|
|
179
179
|
|
|
180
|
-
```
|
|
181
|
-
|
|
180
|
+
```typescript
|
|
181
|
+
bd_done({ id: "$ARGUMENTS", msg: "Implemented: [1-liner summary]" });
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
This closes the bead, releases
|
|
185
|
-
|
|
186
|
-
**Otherwise:** Close via CLI:
|
|
187
|
-
|
|
188
|
-
```bash
|
|
189
|
-
bd close $ARGUMENTS --reason "Implemented: [1-liner summary]"
|
|
190
|
-
```
|
|
184
|
+
This closes the bead, releases file locks, and syncs with git.
|
|
191
185
|
|
|
192
186
|
## Phase 8: Database Health Check
|
|
193
187
|
|
|
194
188
|
Check issue count:
|
|
195
189
|
|
|
196
|
-
```
|
|
197
|
-
|
|
190
|
+
```typescript
|
|
191
|
+
bd_ls({ status: "all", limit: 1 });
|
|
198
192
|
```
|
|
199
193
|
|
|
200
194
|
**If >200 issues:** Warn about performance.
|
|
201
195
|
|
|
202
|
-
**If >500 issues:** Strongly recommend cleanup
|
|
196
|
+
**If >500 issues:** Strongly recommend cleanup with `bd_cleanup({ days: 7 })`.
|
|
203
197
|
|
|
204
198
|
## Output
|
|
205
199
|
|
|
@@ -224,7 +218,8 @@ Branch: <bead-id>
|
|
|
224
218
|
|
|
225
219
|
```
|
|
226
220
|
⚠️ Database has [count] issues. Consider running:
|
|
227
|
-
|
|
221
|
+
bd_cleanup({ days: 7 })
|
|
222
|
+
bd_sync()
|
|
228
223
|
```
|
|
229
224
|
|
|
230
225
|
**Session recommendation:**
|
|
@@ -238,7 +233,7 @@ Task complete. For best performance:
|
|
|
238
233
|
Next: Create PR or merge to main
|
|
239
234
|
```
|
|
240
235
|
|
|
241
|
-
|
|
236
|
+
After calling `bd_done()`, restart your session for a fresh context. The one-task-per-session pattern keeps agents fast and focused.
|
|
242
237
|
|
|
243
238
|
**If work was interrupted or partially complete:**
|
|
244
239
|
|
|
@@ -15,15 +15,16 @@ For deep tracing: `skill({ name: "root-cause-tracing" })`
|
|
|
15
15
|
|
|
16
16
|
CI failures are P0 bugs. Create a bead to track:
|
|
17
17
|
|
|
18
|
-
```
|
|
19
|
-
|
|
18
|
+
```typescript
|
|
19
|
+
bd_add({
|
|
20
|
+
title: "Fix CI: <failure summary>",
|
|
21
|
+
type: "task",
|
|
22
|
+
pri: 0,
|
|
23
|
+
tags: ["bug"],
|
|
24
|
+
});
|
|
20
25
|
```
|
|
21
26
|
|
|
22
|
-
Save the bead ID for tracking. Add the CI run reference
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
bd edit <bead-id> --note "CI Run: $ARGUMENTS"
|
|
26
|
-
```
|
|
27
|
+
Save the bead ID for tracking. Add the CI run reference via `bd_msg` or notes.
|
|
27
28
|
|
|
28
29
|
## Workflow
|
|
29
30
|
|
|
@@ -41,8 +42,8 @@ bd edit <bead-id> --note "CI Run: $ARGUMENTS"
|
|
|
41
42
|
|
|
42
43
|
Once CI passes:
|
|
43
44
|
|
|
44
|
-
```
|
|
45
|
-
|
|
45
|
+
```typescript
|
|
46
|
+
bd_done({ id: "<bead-id>", msg: "CI fixed: <summary of fix>" });
|
|
46
47
|
```
|
|
47
48
|
|
|
48
49
|
## Notes
|
|
@@ -19,19 +19,12 @@ Run `bun run typecheck` and fix all type errors.
|
|
|
19
19
|
|
|
20
20
|
If a bead ID is provided (`$ARGUMENTS`), track the type fixing work:
|
|
21
21
|
|
|
22
|
-
1. **Before fixing:** Note the initial error count
|
|
22
|
+
1. **Before fixing:** Note the initial error count via `bd_msg` or notes
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
bd edit $ARGUMENTS --note "Type errors found: <count>"
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
2. **After fixing:** Update with resolution
|
|
29
|
-
```bash
|
|
30
|
-
bd edit $ARGUMENTS --note "Type errors resolved: <summary of fixes>"
|
|
31
|
-
```
|
|
24
|
+
2. **After fixing:** Update with resolution summary
|
|
32
25
|
|
|
33
26
|
If type errors reveal deeper issues requiring refactoring, create a follow-up bead:
|
|
34
27
|
|
|
35
|
-
```
|
|
36
|
-
|
|
28
|
+
```typescript
|
|
29
|
+
bd_add({ title: "Refactor: <type issue summary>", type: "task", pri: 2 });
|
|
37
30
|
```
|
|
@@ -10,10 +10,12 @@ agent: build
|
|
|
10
10
|
|
|
11
11
|
## Phase 1: Gather State
|
|
12
12
|
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
```typescript
|
|
14
|
+
// Bead info
|
|
15
|
+
bd_show({ id: "$ARGUMENTS" });
|
|
16
|
+
```
|
|
16
17
|
|
|
18
|
+
```bash
|
|
17
19
|
# Git state
|
|
18
20
|
git remote get-url origin 2>/dev/null
|
|
19
21
|
git branch --show-current
|
|
@@ -45,12 +47,10 @@ Write `.beads/artifacts/<bead-id>/handoffs/<timestamp>.md`:
|
|
|
45
47
|
|
|
46
48
|
## Provenance
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
| Commit | [commit hash] |
|
|
53
|
-
| Clean | [yes/no] |
|
|
50
|
+
- **Repo:** [git remote URL]
|
|
51
|
+
- **Branch:** [branch name]
|
|
52
|
+
- **Commit:** [commit hash]
|
|
53
|
+
- **Clean:** [yes/no]
|
|
54
54
|
|
|
55
55
|
## Session Context
|
|
56
56
|
|
|
@@ -66,12 +66,10 @@ read_session("last", project="current")
|
|
|
66
66
|
|
|
67
67
|
## Bead State
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
| Status | [status] |
|
|
74
|
-
| Priority | [priority] |
|
|
69
|
+
- **ID:** <bead-id>
|
|
70
|
+
- **Title:** [title]
|
|
71
|
+
- **Status:** [status]
|
|
72
|
+
- **Priority:** [priority]
|
|
75
73
|
|
|
76
74
|
## Progress
|
|
77
75
|
|
|
@@ -123,9 +121,7 @@ read_session("last", project="current")
|
|
|
123
121
|
|
|
124
122
|
## Phase 4: Update Bead
|
|
125
123
|
|
|
126
|
-
|
|
127
|
-
bd edit <bead-id> --note "Handoff created. Resume with /resume <bead-id>"
|
|
128
|
-
```
|
|
124
|
+
Add a note about the handoff via `bd_msg` or update spec with handoff reference.
|
|
129
125
|
|
|
130
126
|
## Output
|
|
131
127
|
|
|
@@ -12,8 +12,8 @@ For large tasks with 3+ phases, also load: `skill({ name: "subagent-driven-devel
|
|
|
12
12
|
|
|
13
13
|
## Phase 1: Setup Workspace
|
|
14
14
|
|
|
15
|
-
```
|
|
16
|
-
|
|
15
|
+
```typescript
|
|
16
|
+
bd_show({ id: "$ARGUMENTS" });
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Check git state:
|
|
@@ -31,12 +31,12 @@ Create branch if not on bead branch:
|
|
|
31
31
|
git checkout -b <bead-id>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
**Multi-agent coordination
|
|
34
|
+
**Multi-agent coordination:**
|
|
35
35
|
|
|
36
36
|
Initialize your agent session and claim the task:
|
|
37
37
|
|
|
38
|
-
```
|
|
39
|
-
|
|
38
|
+
```typescript
|
|
39
|
+
bd_init({ team: "project", role: "<your-role>" });
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
This registers you in the workspace. If another agent is working on the same task, you'll be notified.
|
|
@@ -110,12 +110,12 @@ Mode: [Quick/Planned]
|
|
|
110
110
|
|
|
111
111
|
## Phase 4: Implementation
|
|
112
112
|
|
|
113
|
-
**Reserve files before editing
|
|
113
|
+
**Reserve files before editing:**
|
|
114
114
|
|
|
115
115
|
Before making changes, lock the files you'll modify to prevent conflicts with other agents:
|
|
116
116
|
|
|
117
|
-
```
|
|
118
|
-
|
|
117
|
+
```typescript
|
|
118
|
+
bd_reserve({ paths: ["src/auth.ts", "src/utils/**"] });
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
This creates an advisory lock. Other agents will see your reservation and avoid those files.
|
|
@@ -163,10 +163,10 @@ If "pause" or "stop": Run `/handoff <bead-id>`.
|
|
|
163
163
|
|
|
164
164
|
## Phase 6: Complete
|
|
165
165
|
|
|
166
|
-
When done, release any file reservations
|
|
166
|
+
When done, release any file reservations:
|
|
167
167
|
|
|
168
|
-
```
|
|
169
|
-
|
|
168
|
+
```typescript
|
|
169
|
+
bd_release();
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
Then report:
|
|
@@ -55,8 +55,13 @@ Proceed with import? (yes/modify/cancel)
|
|
|
55
55
|
|
|
56
56
|
For each epic (top-level section):
|
|
57
57
|
|
|
58
|
-
```
|
|
59
|
-
|
|
58
|
+
```typescript
|
|
59
|
+
bd_add({
|
|
60
|
+
title: "[Epic title]",
|
|
61
|
+
type: "epic",
|
|
62
|
+
pri: 2,
|
|
63
|
+
desc: "[description from plan]",
|
|
64
|
+
});
|
|
60
65
|
```
|
|
61
66
|
|
|
62
67
|
Store epic IDs for dependency linking.
|
|
@@ -65,8 +70,14 @@ Store epic IDs for dependency linking.
|
|
|
65
70
|
|
|
66
71
|
For each issue under an epic:
|
|
67
72
|
|
|
68
|
-
```
|
|
69
|
-
|
|
73
|
+
```typescript
|
|
74
|
+
bd_add({
|
|
75
|
+
title: "[Issue title]",
|
|
76
|
+
type: "task",
|
|
77
|
+
pri: 2,
|
|
78
|
+
desc: "[description]",
|
|
79
|
+
parent: "<epic-id>",
|
|
80
|
+
});
|
|
70
81
|
```
|
|
71
82
|
|
|
72
83
|
**Infer type from content:**
|
|
@@ -85,10 +96,15 @@ bd create "[Issue title]" -t task -p 2 -d "[description]" --epic <epic-id> --jso
|
|
|
85
96
|
|
|
86
97
|
## Phase 5: Link Dependencies
|
|
87
98
|
|
|
88
|
-
For issues with dependencies:
|
|
99
|
+
For issues with dependencies, use the `deps` parameter when creating:
|
|
89
100
|
|
|
90
|
-
```
|
|
91
|
-
|
|
101
|
+
```typescript
|
|
102
|
+
bd_add({
|
|
103
|
+
title: "[title]",
|
|
104
|
+
type: "task",
|
|
105
|
+
pri: 2,
|
|
106
|
+
deps: ["<blocking-issue-id>"],
|
|
107
|
+
});
|
|
92
108
|
```
|
|
93
109
|
|
|
94
110
|
Common patterns to detect:
|
|
@@ -125,12 +141,7 @@ Apply suggestions? (yes/no/select)
|
|
|
125
141
|
|
|
126
142
|
## Phase 7: Polish (Optional)
|
|
127
143
|
|
|
128
|
-
If user approves suggestions
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
bd edit <bead-id> --title "[improved title]"
|
|
132
|
-
bd edit <bead-id> -d "[improved description]"
|
|
133
|
-
```
|
|
144
|
+
If user approves suggestions, update the spec files in `.beads/artifacts/<bead-id>/` directly.
|
|
134
145
|
|
|
135
146
|
Iterate up to 5 times if user requests more refinement.
|
|
136
147
|
|
|
@@ -152,7 +163,7 @@ Created:
|
|
|
152
163
|
│ └── <issue-3-id>: [title]
|
|
153
164
|
└── ...
|
|
154
165
|
|
|
155
|
-
Start work:
|
|
166
|
+
Start work: `bd_ls({ status: "ready", limit: 10, offset: 0 })`
|
|
156
167
|
First task: /implement <first-unblocked-id>
|
|
157
168
|
```
|
|
158
169
|
|
|
@@ -14,7 +14,7 @@ agent: build
|
|
|
14
14
|
|
|
15
15
|
## Task Validation
|
|
16
16
|
|
|
17
|
-
1. **Check bead exists:** `
|
|
17
|
+
1. **Check bead exists:** `bd_show({ id: "$ARGUMENTS" })`
|
|
18
18
|
2. **Read constraints:** `.beads/artifacts/$ARGUMENTS/spec.md` Testing Notes section
|
|
19
19
|
3. **If missing:** STOP. Create with `/create` first.
|
|
20
20
|
|
|
@@ -23,15 +23,11 @@ gh issue view $ARGUMENTS
|
|
|
23
23
|
|
|
24
24
|
Create a bead to track this work, linking it to the GitHub issue:
|
|
25
25
|
|
|
26
|
-
```
|
|
27
|
-
|
|
26
|
+
```typescript
|
|
27
|
+
bd_add({ title: "<issue title>", type: "task", pri: 2 });
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
Save the bead ID for subsequent commands. Add the GitHub issue reference
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
bd edit <bead-id> --note "GitHub issue: #$ARGUMENTS"
|
|
34
|
-
```
|
|
30
|
+
Save the bead ID for subsequent commands. Add the GitHub issue reference via `bd_msg` or in the spec.
|
|
35
31
|
|
|
36
32
|
## Create Spec from PRD Template
|
|
37
33
|
|
|
@@ -87,8 +83,13 @@ Save to `.beads/artifacts/<bead-id>/spec.md`:
|
|
|
87
83
|
|
|
88
84
|
If analysis reveals additional issues, create child beads:
|
|
89
85
|
|
|
90
|
-
```
|
|
91
|
-
|
|
86
|
+
```typescript
|
|
87
|
+
bd_add({
|
|
88
|
+
title: "<discovered issue>",
|
|
89
|
+
type: "task",
|
|
90
|
+
pri: 2,
|
|
91
|
+
parent: "<parent-bead-id>",
|
|
92
|
+
});
|
|
92
93
|
```
|
|
93
94
|
|
|
94
95
|
**Next:** Use `/implement <bead-id>` to start implementation.
|
|
@@ -23,8 +23,8 @@ Parse from `$ARGUMENTS`:
|
|
|
23
23
|
|
|
24
24
|
### Step 1: Create Bead
|
|
25
25
|
|
|
26
|
-
```
|
|
27
|
-
|
|
26
|
+
```typescript
|
|
27
|
+
bd_add({ title: "[feature-name]", type: "[type]", pri: [priority] });
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
Capture the bead ID from output.
|
|
@@ -112,9 +112,7 @@ Tasks:
|
|
|
112
112
|
|
|
113
113
|
### Step 4: Update Bead
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
bd update [bead-id] --status planning
|
|
117
|
-
```
|
|
115
|
+
Update bead status by adding a note via `bd_msg` or updating the spec.
|
|
118
116
|
|
|
119
117
|
## Output
|
|
120
118
|
|
|
@@ -129,7 +127,7 @@ Report:
|
|
|
129
127
|
|
|
130
128
|
```bash
|
|
131
129
|
# View the feature
|
|
132
|
-
|
|
130
|
+
bd_show({ id: "[bead-id]" })
|
|
133
131
|
|
|
134
132
|
# Start implementation
|
|
135
133
|
/implement [bead-id]
|
|
@@ -10,8 +10,8 @@ agent: planner
|
|
|
10
10
|
|
|
11
11
|
## Phase 1: Load Context
|
|
12
12
|
|
|
13
|
-
```
|
|
14
|
-
|
|
13
|
+
```typescript
|
|
14
|
+
bd_show({ id: "$ARGUMENTS" });
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Read artifacts:
|
|
@@ -221,9 +221,7 @@ After approval, write `.beads/artifacts/<bead-id>/plan.md`:
|
|
|
221
221
|
|
|
222
222
|
## Phase 7: Update Bead
|
|
223
223
|
|
|
224
|
-
|
|
225
|
-
bd edit <bead-id> --note "Plan approved: [option name]. [step count] steps."
|
|
226
|
-
```
|
|
224
|
+
Add a note about plan approval via `bd_msg` or update the spec with the approved approach.
|
|
227
225
|
|
|
228
226
|
## Output
|
|
229
227
|
|
|
@@ -18,7 +18,7 @@ Create a pull request following these steps:
|
|
|
18
18
|
2. **Push branch**: `!git push -u origin $(git branch --show-current)`
|
|
19
19
|
|
|
20
20
|
3. **Check for bead context:**
|
|
21
|
-
- If `$ARGUMENTS` contains a bead ID, fetch bead details: `
|
|
21
|
+
- If `$ARGUMENTS` contains a bead ID, fetch bead details: `bd_show({ id: "$ARGUMENTS" })`
|
|
22
22
|
- Use bead title and spec to inform PR content
|
|
23
23
|
- Reference the bead in the PR body for traceability
|
|
24
24
|
|
|
@@ -50,6 +50,4 @@ Closes: bd-XXXXX (if applicable)
|
|
|
50
50
|
|
|
51
51
|
If a bead ID was provided, update the bead with PR link:
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
bd edit $ARGUMENTS --note "PR created: <pr-url>"
|
|
55
|
-
```
|
|
53
|
+
Update the bead with a note about the PR using the beads messaging or note system.
|
|
@@ -12,7 +12,7 @@ Fix directly with clear comments. Commit.
|
|
|
12
12
|
|
|
13
13
|
## Structured work (bead-based)
|
|
14
14
|
|
|
15
|
-
1. Validate bead exists: `
|
|
15
|
+
1. Validate bead exists: `bd_show({ id: "$ARGUMENTS" })`
|
|
16
16
|
2. Load constraints from `.beads/artifacts/$ARGUMENTS/spec.md`
|
|
17
17
|
3. Research within scope: `/research $ARGUMENTS`
|
|
18
18
|
4. Plan approach: `/plan $ARGUMENTS`
|
|
@@ -8,8 +8,8 @@ agent: build
|
|
|
8
8
|
|
|
9
9
|
## Phase 1: Load Bead Context
|
|
10
10
|
|
|
11
|
-
```
|
|
12
|
-
|
|
11
|
+
```typescript
|
|
12
|
+
bd_show({ id: "$ARGUMENTS" });
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Check for previous research:**
|
|
@@ -43,11 +43,11 @@ Extract:
|
|
|
43
43
|
|
|
44
44
|
Run these **in parallel** using batch tool calls:
|
|
45
45
|
|
|
46
|
-
### Internal Codebase
|
|
46
|
+
### Internal Codebase
|
|
47
47
|
|
|
48
|
-
- `
|
|
49
|
-
- `
|
|
50
|
-
- `
|
|
48
|
+
- `grep` - Find related functions/classes by pattern
|
|
49
|
+
- `ast-grep` - Semantic code search for patterns
|
|
50
|
+
- `glob` - Map relevant directories
|
|
51
51
|
|
|
52
52
|
### External Docs (Context7)
|
|
53
53
|
|
|
@@ -68,12 +68,12 @@ Run these **in parallel** using batch tool calls:
|
|
|
68
68
|
|
|
69
69
|
For each finding:
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
**Validation checklist:**
|
|
72
|
+
|
|
73
|
+
- Within spec scope?
|
|
74
|
+
- Follows constraints?
|
|
75
|
+
- Uses allowed libs?
|
|
76
|
+
- Matches existing patterns?
|
|
77
77
|
|
|
78
78
|
**Discard anything that fails.**
|
|
79
79
|
|
|
@@ -130,9 +130,7 @@ Existing code that informs implementation:
|
|
|
130
130
|
|
|
131
131
|
## Phase 5: Update Bead
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
bd edit <bead-id> --note "Research complete. Key findings: [1-liner]"
|
|
135
|
-
```
|
|
133
|
+
Add a note about research completion via `bd_msg` or update the spec with key findings.
|
|
136
134
|
|
|
137
135
|
## Output
|
|
138
136
|
|
|
@@ -24,8 +24,8 @@ Parse from `$ARGUMENTS`:
|
|
|
24
24
|
|
|
25
25
|
### Step 1: Analyze Bead History
|
|
26
26
|
|
|
27
|
-
```
|
|
28
|
-
|
|
27
|
+
```typescript
|
|
28
|
+
bd_show({ id: "[bead-id]" });
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
Identify:
|
|
@@ -87,9 +87,7 @@ git revert --no-commit [commits...]
|
|
|
87
87
|
|
|
88
88
|
### Step 5: Update Bead
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
bd update [bead-id] --status reverted --note "Reverted [scope]"
|
|
92
|
-
```
|
|
90
|
+
Update bead status by adding a note via `bd_msg` about the revert.
|
|
93
91
|
|
|
94
92
|
## Safety Checks
|
|
95
93
|
|
|
@@ -119,10 +117,10 @@ Report:
|
|
|
119
117
|
|
|
120
118
|
```bash
|
|
121
119
|
# View bead history
|
|
122
|
-
|
|
120
|
+
bd_show({ id: "[bead-id]" })
|
|
123
121
|
|
|
124
122
|
# Check current status
|
|
125
|
-
|
|
123
|
+
bd_status({ include_agents: false })
|
|
126
124
|
|
|
127
125
|
# Re-implement after revert
|
|
128
126
|
/implement [bead-id]
|
|
@@ -8,7 +8,7 @@ agent: explore
|
|
|
8
8
|
## Quick Summary
|
|
9
9
|
|
|
10
10
|
1. **Git:** Current branch, uncommitted changes
|
|
11
|
-
2. **Tasks:** `
|
|
11
|
+
2. **Tasks:** `bd_ls()` - count by status
|
|
12
12
|
3. **CI:** Any build issues
|
|
13
13
|
4. **Sessions:** Recent activity
|
|
14
14
|
|
|
@@ -43,8 +43,8 @@ Activity: 2 sessions, 73 messages, 20 files modified
|
|
|
43
43
|
|
|
44
44
|
## Task Compliance
|
|
45
45
|
|
|
46
|
-
```
|
|
47
|
-
|
|
46
|
+
```typescript
|
|
47
|
+
bd_ls({ status: "open" });
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
For each bead, check `.beads/artifacts/<bead-id>/`:
|
|
@@ -70,7 +70,7 @@ Compliance: X/Y beads complete
|
|
|
70
70
|
|
|
71
71
|
## Active Tasks
|
|
72
72
|
|
|
73
|
-
For `
|
|
73
|
+
For `bd_ls({ status: "in_progress" })`:
|
|
74
74
|
|
|
75
75
|
- Bead ID, Title, Priority
|
|
76
76
|
- Goal from spec.md
|
|
@@ -79,12 +79,10 @@ For `bd list --status in-progress`:
|
|
|
79
79
|
|
|
80
80
|
## Required Actions
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
| In Progress | `/implement <bead-id>` |
|
|
87
|
-
| Ready to finish | `/finish <bead-id>` |
|
|
82
|
+
- Missing spec → `/create`
|
|
83
|
+
- Has spec → `/start <bead-id>`
|
|
84
|
+
- In Progress → `/implement <bead-id>`
|
|
85
|
+
- Ready to finish → `/finish <bead-id>`
|
|
88
86
|
|
|
89
87
|
## Session Insights
|
|
90
88
|
|
|
@@ -24,8 +24,18 @@
|
|
|
24
24
|
"memory-read",
|
|
25
25
|
"memory-update",
|
|
26
26
|
"observation",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"skill",
|
|
28
|
+
"lsp",
|
|
29
|
+
"lsp_lsp_rename",
|
|
30
|
+
"lsp_lsp_code_actions",
|
|
31
|
+
"lsp_lsp_code_action_apply",
|
|
32
|
+
"lsp_lsp_organize_imports",
|
|
33
|
+
"bd_init",
|
|
34
|
+
"bd_claim",
|
|
35
|
+
"bd_done",
|
|
36
|
+
"bd_show",
|
|
37
|
+
"bd_reserve",
|
|
38
|
+
"bd_reservations"
|
|
29
39
|
]
|
|
30
40
|
},
|
|
31
41
|
// Removes tool content from context without preservation (for completed tasks or noise)
|
|
@@ -51,6 +61,14 @@
|
|
|
51
61
|
"supersedeWrites": {
|
|
52
62
|
"enabled": true
|
|
53
63
|
},
|
|
64
|
+
// Prune tool inputs for errored tools after X turns
|
|
65
|
+
"purgeErrors": {
|
|
66
|
+
"enabled": true,
|
|
67
|
+
// Number of turns before errored tool inputs are pruned
|
|
68
|
+
"turns": 4,
|
|
69
|
+
// Additional tools to protect from pruning
|
|
70
|
+
"protectedTools": []
|
|
71
|
+
},
|
|
54
72
|
// (Legacy) Run an LLM to analyze what tool calls are no longer relevant on idle
|
|
55
73
|
"onIdle": {
|
|
56
74
|
"enabled": false,
|