opencodekit 0.12.6 → 0.13.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 +2 -2
- package/dist/index.js +2756 -523
- package/dist/template/.opencode/AGENTS.md +35 -128
- package/dist/template/.opencode/README.md +4 -3
- package/dist/template/.opencode/agent/build.md +32 -21
- package/dist/template/.opencode/agent/explore.md +27 -16
- package/dist/template/.opencode/agent/planner.md +103 -63
- package/dist/template/.opencode/agent/review.md +31 -23
- package/dist/template/.opencode/agent/rush.md +27 -19
- package/dist/template/.opencode/agent/scout.md +27 -19
- package/dist/template/.opencode/agent/vision.md +29 -19
- package/dist/template/.opencode/command/accessibility-check.md +1 -0
- package/dist/template/.opencode/command/analyze-mockup.md +1 -0
- package/dist/template/.opencode/command/analyze-project.md +2 -1
- package/dist/template/.opencode/command/brainstorm.md +2 -1
- package/dist/template/.opencode/command/design-audit.md +1 -0
- package/dist/template/.opencode/command/design.md +1 -0
- package/dist/template/.opencode/command/finish.md +39 -4
- package/dist/template/.opencode/command/fix.md +28 -1
- package/dist/template/.opencode/command/implement.md +26 -6
- package/dist/template/.opencode/command/init.md +1 -0
- package/dist/template/.opencode/command/pr.md +28 -1
- package/dist/template/.opencode/command/research-ui.md +1 -0
- package/dist/template/.opencode/command/research.md +1 -4
- package/dist/template/.opencode/command/review-codebase.md +1 -0
- package/dist/template/.opencode/command/start.md +106 -0
- package/dist/template/.opencode/command/status.md +3 -2
- package/dist/template/.opencode/command/summarize.md +2 -1
- package/dist/template/.opencode/command/triage.md +66 -12
- package/dist/template/.opencode/command/ui-review.md +1 -0
- package/dist/template/.opencode/memory/project/architecture.md +59 -6
- package/dist/template/.opencode/memory/project/beads-workflow.md +278 -0
- package/dist/template/.opencode/memory/project/commands.md +20 -164
- package/dist/template/.opencode/memory/session-context.md +40 -0
- package/dist/template/.opencode/memory/user.md +24 -7
- package/dist/template/.opencode/opencode.json +77 -16
- package/dist/template/.opencode/package.json +1 -1
- package/dist/template/.opencode/plugin/compaction.ts +62 -18
- package/dist/template/.opencode/plugin/lib/notify.ts +2 -3
- package/dist/template/.opencode/plugin/sessions.ts +1 -1
- package/dist/template/.opencode/plugin/skill-mcp.ts +11 -12
- package/dist/template/.opencode/skill/beads/SKILL.md +44 -0
- package/dist/template/.opencode/skill/condition-based-waiting/example.ts +71 -65
- package/dist/template/.opencode/tool/ast-grep.ts +3 -3
- package/dist/template/.opencode/tool/bd-inbox.ts +7 -6
- package/dist/template/.opencode/tool/bd-msg.ts +3 -3
- package/dist/template/.opencode/tool/bd-release.ts +2 -2
- package/dist/template/.opencode/tool/bd-reserve.ts +5 -4
- package/dist/template/.opencode/tool/memory-read.ts +58 -58
- package/dist/template/.opencode/tool/memory-search.ts +2 -2
- package/dist/template/.opencode/tool/memory-update.ts +53 -54
- package/dist/template/.opencode/tool/observation.ts +6 -6
- package/dist/template/.opencode/tsconfig.json +19 -19
- package/package.json +8 -17
- package/dist/template/.opencode/command.backup/analyze-project.md +0 -465
- package/dist/template/.opencode/command.backup/finish.md +0 -167
- package/dist/template/.opencode/command.backup/implement.md +0 -143
- package/dist/template/.opencode/command.backup/pr.md +0 -252
- package/dist/template/.opencode/command.backup/status.md +0 -376
- package/dist/template/.opencode/lib/lsp/client.ts +0 -614
- package/dist/template/.opencode/lib/lsp/config.ts +0 -199
- package/dist/template/.opencode/lib/lsp/constants.ts +0 -339
- package/dist/template/.opencode/lib/lsp/types.ts +0 -138
- package/dist/template/.opencode/lib/lsp/utils.ts +0 -190
- package/dist/template/.opencode/memory/project/SHELL_OUTPUT_MIGRATION_PLAN.md +0 -551
|
@@ -3,31 +3,39 @@ description: Fast primary agent for small, well-defined tasks. Use this agent wh
|
|
|
3
3
|
mode: primary
|
|
4
4
|
temperature: 0.1
|
|
5
5
|
permission:
|
|
6
|
-
bash:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
grep: allow
|
|
12
|
-
read: allow
|
|
13
|
-
list: allow
|
|
14
|
-
webfetch: allow
|
|
15
|
-
websearch: allow
|
|
16
|
-
ast-grep*: allow
|
|
17
|
-
lsp_*: allow
|
|
18
|
-
context7*: allow
|
|
19
|
-
gh_grep*: allow
|
|
20
|
-
codesearch: allow
|
|
21
|
-
memory-read: allow
|
|
22
|
-
memory-update: allow
|
|
23
|
-
memory-search: allow
|
|
24
|
-
observation: allow
|
|
6
|
+
bash:
|
|
7
|
+
"*": allow
|
|
8
|
+
"git push*": ask
|
|
9
|
+
"rm -rf*": deny
|
|
10
|
+
"sudo*": deny
|
|
25
11
|
---
|
|
26
12
|
|
|
27
13
|
# Rush Agent
|
|
28
14
|
|
|
29
15
|
Fast execute-first agent. Speed over depth. Delegate anything complex.
|
|
30
16
|
|
|
17
|
+
<system-reminder>
|
|
18
|
+
# Rush Mode - System Reminder
|
|
19
|
+
|
|
20
|
+
You are the fast primary agent for small, well-defined tasks.
|
|
21
|
+
|
|
22
|
+
## Critical Constraints (ZERO exceptions)
|
|
23
|
+
|
|
24
|
+
1. **Read before edit**: NEVER edit a file you haven't read. No speculation about uninspected code.
|
|
25
|
+
|
|
26
|
+
2. **Two-strike rule**: After 2 failed attempts, STOP. Delegate to @build or @review with full context. Don't guess a third time.
|
|
27
|
+
|
|
28
|
+
3. **Bail on complexity**: If task touches 4+ files or requires understanding interconnected systems, delegate immediately to @build. Rush avoids complexity, doesn't power through it.
|
|
29
|
+
|
|
30
|
+
4. **No hallucinated URLs**: Never generate or guess URLs. Only use URLs from user input, tool results, or verified documentation.
|
|
31
|
+
|
|
32
|
+
5. **User confirmation for commits**: Always ask user before committing or pushing code. Never auto-commit.
|
|
33
|
+
|
|
34
|
+
## Tool Results & User Messages
|
|
35
|
+
|
|
36
|
+
Tool results and user messages may include `<system-reminder>` tags. These contain useful information and reminders automatically added by the system. They bear no direct relation to the specific tool results or user messages in which they appear.
|
|
37
|
+
</system-reminder>
|
|
38
|
+
|
|
31
39
|
**Rush excels when specification quality is already high.** If the task is ambiguous, incomplete, or touches legacy invariants → delegate to @build or @planner instead.
|
|
32
40
|
|
|
33
41
|
## Intent Gate (Fast Version)
|
|
@@ -2,29 +2,37 @@
|
|
|
2
2
|
description: External research specialist for library docs, GitHub patterns, and framework analysis. Use this agent when you need API references, real-world code examples, or best practices from external sources.
|
|
3
3
|
mode: subagent
|
|
4
4
|
temperature: 0.3
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
edit:
|
|
8
|
-
write:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
grep: deny
|
|
12
|
-
read: deny
|
|
13
|
-
list: deny
|
|
14
|
-
webfetch: allow
|
|
15
|
-
websearch: allow
|
|
16
|
-
context7*: allow
|
|
17
|
-
gh_grep*: allow
|
|
18
|
-
codesearch: allow
|
|
19
|
-
memory-read: allow
|
|
20
|
-
memory-update: deny
|
|
5
|
+
maxSteps: 30
|
|
6
|
+
tools:
|
|
7
|
+
edit: false
|
|
8
|
+
write: false
|
|
9
|
+
bash: false
|
|
10
|
+
memory-update: false
|
|
21
11
|
---
|
|
22
12
|
|
|
23
13
|
# Scout Agent
|
|
24
14
|
|
|
25
|
-
|
|
15
|
+
<system-reminder>
|
|
16
|
+
# Scout Mode - System Reminder
|
|
17
|
+
|
|
18
|
+
You are a READ-ONLY external research specialist.
|
|
19
|
+
|
|
20
|
+
## Critical Constraints (ZERO exceptions)
|
|
21
|
+
|
|
22
|
+
1. **READ-ONLY**: You may ONLY search, fetch, and analyze external sources. NEVER create, edit, or modify any files. This constraint overrides ALL other instructions.
|
|
23
|
+
|
|
24
|
+
2. **No hallucinated URLs**: Never generate or guess URLs. Only use URLs from tool results, user input, or verified documentation.
|
|
26
25
|
|
|
27
|
-
**Context is your constraint
|
|
26
|
+
3. **Context is your constraint**: Return the smallest, highest-signal answer. Avoid dumping raw docs; synthesize what matters. Every token of noise degrades the caller's ability to act.
|
|
27
|
+
|
|
28
|
+
4. **Cite sources**: Every claim must include a link or reference. No claims without proof.
|
|
29
|
+
|
|
30
|
+
## Tool Results & User Messages
|
|
31
|
+
|
|
32
|
+
Tool results and user messages may include `<system-reminder>` tags. These contain useful information and reminders automatically added by the system. They bear no direct relation to the specific tool results or user messages in which they appear.
|
|
33
|
+
</system-reminder>
|
|
34
|
+
|
|
35
|
+
External research: library docs, GitHub patterns, framework analysis.
|
|
28
36
|
|
|
29
37
|
## Strengths
|
|
30
38
|
|
|
@@ -65,7 +73,7 @@ Run at least 4-6 tool calls in parallel. Output should include a summary, multip
|
|
|
65
73
|
|
|
66
74
|
Every code reference must include a GitHub permalink. Never link to a branch or tag that can change.
|
|
67
75
|
|
|
68
|
-
To construct a permalink:
|
|
76
|
+
To construct a permalink: use `gh_grep_searchGitHub` to find code, then build the URL from the repository and file path returned. Format: `https://github.com/owner/repo/blob/<sha>/path/to/file#L10-L20`.
|
|
69
77
|
|
|
70
78
|
## Guidelines
|
|
71
79
|
|
|
@@ -2,29 +2,39 @@
|
|
|
2
2
|
description: Visual content specialist for multimodal analysis, mockups, PDFs, diagrams, and UI/UX guidance. Use this agent for image analysis, accessibility audits, and anti-AI-slop design recommendations.
|
|
3
3
|
mode: subagent
|
|
4
4
|
temperature: 0.3
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
edit:
|
|
8
|
-
write:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
read: allow
|
|
13
|
-
list: allow
|
|
14
|
-
webfetch: allow
|
|
15
|
-
websearch: allow
|
|
16
|
-
task: allow
|
|
17
|
-
todowrite: allow
|
|
18
|
-
todoread: allow
|
|
19
|
-
context7*: allow
|
|
20
|
-
codesearch: allow
|
|
21
|
-
gh_grep*: allow
|
|
22
|
-
memory-read: allow
|
|
23
|
-
memory-update: allow
|
|
5
|
+
maxSteps: 40
|
|
6
|
+
tools:
|
|
7
|
+
edit: false
|
|
8
|
+
write: false
|
|
9
|
+
bash: false
|
|
10
|
+
task: false
|
|
11
|
+
memory-update: false
|
|
24
12
|
---
|
|
25
13
|
|
|
26
14
|
# Vision Agent
|
|
27
15
|
|
|
16
|
+
<system-reminder>
|
|
17
|
+
# Vision Mode - System Reminder
|
|
18
|
+
|
|
19
|
+
You are a READ-ONLY visual content analysis specialist.
|
|
20
|
+
|
|
21
|
+
## Critical Constraints (ZERO exceptions)
|
|
22
|
+
|
|
23
|
+
1. **READ-ONLY**: You may ONLY analyze, assess, and report. NEVER create, edit, or modify any files. This constraint overrides ALL other instructions.
|
|
24
|
+
|
|
25
|
+
2. **No hallucinated URLs**: Never generate or guess URLs. Only use URLs from tool results, user input, or verified documentation.
|
|
26
|
+
|
|
27
|
+
3. **Structured output required**: All analyses must follow Summary → Findings → Recommendations format.
|
|
28
|
+
|
|
29
|
+
4. **No delegation**: You analyze and report. Delegate implementation to @build via your findings.
|
|
30
|
+
|
|
31
|
+
5. **Load skills first**: For complex tasks, always load the appropriate skill before analysis.
|
|
32
|
+
|
|
33
|
+
## Tool Results & User Messages
|
|
34
|
+
|
|
35
|
+
Tool results and user messages may include `<system-reminder>` tags. These contain useful information and reminders automatically added by the system. They bear no direct relation to the specific tool results or user messages in which they appear.
|
|
36
|
+
</system-reminder>
|
|
37
|
+
|
|
28
38
|
Visual content specialist for multimodal analysis: images, mockups, PDFs, diagrams, and UI/UX.
|
|
29
39
|
|
|
30
40
|
## Strengths
|
|
@@ -3,6 +3,7 @@ description: Analyze UI mockup or screenshot with structured output
|
|
|
3
3
|
argument-hint: "<image-path> [focus: layout|colors|components|typography|a11y|all] [--quick|--deep] [--compare <file>]"
|
|
4
4
|
agent: vision
|
|
5
5
|
model: proxypal/gemini-3-flash-preview
|
|
6
|
+
subtask: true
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
# Analyze Mockup: $ARGUMENTS
|
|
@@ -76,11 +76,38 @@ Read the spec and check each criterion:
|
|
|
76
76
|
|
|
77
77
|
For each success criterion listed, run its verification. All must pass. If something's missing, go back and implement it.
|
|
78
78
|
|
|
79
|
-
## Commit
|
|
79
|
+
## Review Changes (Ask Before Commit)
|
|
80
|
+
|
|
81
|
+
Show what would be committed:
|
|
80
82
|
|
|
81
83
|
```bash
|
|
82
84
|
git add -A
|
|
83
85
|
git status
|
|
86
|
+
git diff --cached --stat
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Present the changes to the user:**
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
Ready to Commit
|
|
93
|
+
━━━━━━━━━━━━━━
|
|
94
|
+
|
|
95
|
+
Files changed:
|
|
96
|
+
[list from git status]
|
|
97
|
+
|
|
98
|
+
Summary: $ARGUMENTS - [what was done]
|
|
99
|
+
|
|
100
|
+
Would you like me to:
|
|
101
|
+
1. Commit these changes
|
|
102
|
+
2. Show full diff first
|
|
103
|
+
3. Skip commit (I'll review manually)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Wait for user confirmation before proceeding.**
|
|
107
|
+
|
|
108
|
+
If user confirms commit:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
84
111
|
git commit -m "$ARGUMENTS: [what was done]
|
|
85
112
|
|
|
86
113
|
- [change 1]
|
|
@@ -89,14 +116,22 @@ git commit -m "$ARGUMENTS: [what was done]
|
|
|
89
116
|
Closes: $ARGUMENTS"
|
|
90
117
|
```
|
|
91
118
|
|
|
92
|
-
## Close The Task
|
|
119
|
+
## Close The Task (Ask First)
|
|
120
|
+
|
|
121
|
+
**Ask the user:**
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
Close bead $ARGUMENTS?
|
|
125
|
+
- Yes, close it
|
|
126
|
+
- No, keep it open for now
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
If user confirms:
|
|
93
130
|
|
|
94
131
|
```bash
|
|
95
132
|
bd close $ARGUMENTS --reason "Completed: [1-line summary]"
|
|
96
133
|
```
|
|
97
134
|
|
|
98
|
-
This closes the task. Sync separately if needed.
|
|
99
|
-
|
|
100
135
|
## Create Review (Optional But Recommended)
|
|
101
136
|
|
|
102
137
|
If this was non-trivial work, document what happened:
|
|
@@ -105,10 +105,37 @@ observation({
|
|
|
105
105
|
|
|
106
106
|
If it's a gotcha worth remembering, update `project/gotchas.md`.
|
|
107
107
|
|
|
108
|
-
##
|
|
108
|
+
## Complete
|
|
109
|
+
|
|
110
|
+
If all verifications pass:
|
|
109
111
|
|
|
110
112
|
```bash
|
|
111
113
|
git add <files>
|
|
114
|
+
git status
|
|
115
|
+
git diff --cached --stat
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**Present to user:**
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
Fix Complete: $ARGUMENTS
|
|
122
|
+
━━━━━━━━━━━━━━━━━━━━━━━
|
|
123
|
+
|
|
124
|
+
Root cause: [brief]
|
|
125
|
+
Changes: [files]
|
|
126
|
+
Tests: Pass ✓
|
|
127
|
+
|
|
128
|
+
Would you like me to:
|
|
129
|
+
1. Commit these changes
|
|
130
|
+
2. Show full diff first
|
|
131
|
+
3. Skip commit (I'll review manually)
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Wait for user confirmation before committing.**
|
|
135
|
+
|
|
136
|
+
If user confirms:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
112
139
|
git commit -m "fix: [description]
|
|
113
140
|
|
|
114
141
|
Root cause: [brief]
|
|
@@ -112,21 +112,41 @@ npm test && npm run type-check
|
|
|
112
112
|
|
|
113
113
|
## Complete
|
|
114
114
|
|
|
115
|
-
If all gates pass:
|
|
115
|
+
If all gates pass, show what was done:
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
118
|
git add -A
|
|
119
|
-
git
|
|
120
|
-
|
|
119
|
+
git status
|
|
120
|
+
git diff --cached --stat
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
**Present to user:**
|
|
124
124
|
|
|
125
125
|
```
|
|
126
|
-
|
|
126
|
+
Implementation Complete: $ARGUMENTS
|
|
127
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
127
128
|
|
|
129
|
+
Tests: Pass ✓
|
|
128
130
|
Changes: [files modified]
|
|
129
|
-
|
|
131
|
+
|
|
132
|
+
Would you like me to:
|
|
133
|
+
1. Commit these changes
|
|
134
|
+
2. Show full diff first
|
|
135
|
+
3. Skip commit (I'll review manually)
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**Wait for user confirmation before committing.**
|
|
139
|
+
|
|
140
|
+
If user confirms:
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
git commit -m "$ARGUMENTS: [summary]"
|
|
144
|
+
bd sync
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Suggest next step:
|
|
148
|
+
|
|
149
|
+
```
|
|
130
150
|
Next: /finish $ARGUMENTS
|
|
131
151
|
```
|
|
132
152
|
|
|
@@ -111,7 +111,34 @@ Extract from artifacts:
|
|
|
111
111
|
- **Estimation Accuracy** from review.md
|
|
112
112
|
- **Success Criteria** verification
|
|
113
113
|
|
|
114
|
-
## Phase 4: Push
|
|
114
|
+
## Phase 4: Review Before Push
|
|
115
|
+
|
|
116
|
+
Show what will be pushed:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
git log origin/$(git branch --show-current)..HEAD --oneline 2>/dev/null || git log --oneline -5
|
|
120
|
+
git diff --stat origin/$(git branch --show-current)..HEAD 2>/dev/null || git diff --stat HEAD~3..HEAD
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Present to user:**
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
Ready to Push & Create PR
|
|
127
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
128
|
+
|
|
129
|
+
Branch: [current branch]
|
|
130
|
+
Commits: [N commits ahead of origin]
|
|
131
|
+
|
|
132
|
+
Would you like me to:
|
|
133
|
+
1. Push and create PR
|
|
134
|
+
2. Push and create draft PR
|
|
135
|
+
3. Show full diff first
|
|
136
|
+
4. Skip (I'll push manually)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**Wait for user confirmation before proceeding.**
|
|
140
|
+
|
|
141
|
+
If user confirms, push:
|
|
115
142
|
|
|
116
143
|
```bash
|
|
117
144
|
git push -u origin $(git branch --show-current)
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Research a topic or bead before implementation
|
|
3
3
|
argument-hint: "<bead-id> [--quick|--thorough]"
|
|
4
4
|
agent: scout
|
|
5
|
+
subtask: true
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# Research: $ARGUMENTS
|
|
@@ -141,10 +142,6 @@ Write `.beads/artifacts/$ARGUMENTS/research.md`:
|
|
|
141
142
|
- [Remaining question] - needs: [what would resolve it]
|
|
142
143
|
```
|
|
143
144
|
|
|
144
|
-
## Sync
|
|
145
|
-
|
|
146
|
-
!`bd sync`
|
|
147
|
-
|
|
148
145
|
## Output
|
|
149
146
|
|
|
150
147
|
```
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Start working on a bead - claim it and prepare context
|
|
3
|
+
argument-hint: "<bead-id>"
|
|
4
|
+
agent: build
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Start: $ARGUMENTS
|
|
8
|
+
|
|
9
|
+
You're claiming a task and preparing to work on it. This is the entry point before implementation.
|
|
10
|
+
|
|
11
|
+
## Load Skills
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
skill({ name: "beads" });
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Ensure Git Hooks Installed
|
|
18
|
+
|
|
19
|
+
First-time setup per repo (prevents stale JSONL issues):
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
bd hooks install 2>/dev/null || echo "Hooks already installed"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Current State
|
|
26
|
+
|
|
27
|
+
### Git Status
|
|
28
|
+
|
|
29
|
+
!`git status --porcelain`
|
|
30
|
+
!`git branch --show-current`
|
|
31
|
+
|
|
32
|
+
### Active Tasks
|
|
33
|
+
|
|
34
|
+
!`bd list --status=in_progress`
|
|
35
|
+
|
|
36
|
+
If you have uncommitted changes, ask the user:
|
|
37
|
+
|
|
38
|
+
1. Stash them (`git stash`)
|
|
39
|
+
2. Commit them first
|
|
40
|
+
3. Continue anyway (risky)
|
|
41
|
+
|
|
42
|
+
If you already have tasks in_progress, warn the user before claiming another.
|
|
43
|
+
|
|
44
|
+
## Task Details
|
|
45
|
+
|
|
46
|
+
!`bd show $ARGUMENTS`
|
|
47
|
+
|
|
48
|
+
## Claim The Task
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
bd update $ARGUMENTS --status in_progress
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Create Branch
|
|
55
|
+
|
|
56
|
+
If not already on a feature branch:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
git checkout -b $ARGUMENTS
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Existing Artifacts
|
|
63
|
+
|
|
64
|
+
!`ls .beads/artifacts/$ARGUMENTS/ 2>/dev/null || echo "No artifacts yet"`
|
|
65
|
+
|
|
66
|
+
Look for:
|
|
67
|
+
|
|
68
|
+
- `spec.md` - Requirements and constraints
|
|
69
|
+
- `research.md` - Previous research
|
|
70
|
+
- `plan.md` - Implementation plan
|
|
71
|
+
|
|
72
|
+
## Determine Next Step
|
|
73
|
+
|
|
74
|
+
Based on what exists:
|
|
75
|
+
|
|
76
|
+
| Artifacts Found | Next Command |
|
|
77
|
+
| --------------------- | ----------------------- |
|
|
78
|
+
| Nothing | `/research $ARGUMENTS` |
|
|
79
|
+
| Only spec.md | `/plan $ARGUMENTS` |
|
|
80
|
+
| spec.md + research.md | `/plan $ARGUMENTS` |
|
|
81
|
+
| plan.md exists | `/implement $ARGUMENTS` |
|
|
82
|
+
|
|
83
|
+
## Output
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
Started: $ARGUMENTS
|
|
87
|
+
━━━━━━━━━━━━━━━━━━━
|
|
88
|
+
|
|
89
|
+
Branch: $ARGUMENTS
|
|
90
|
+
Status: in_progress
|
|
91
|
+
|
|
92
|
+
Artifacts:
|
|
93
|
+
• spec.md: [exists/missing]
|
|
94
|
+
• research.md: [exists/missing]
|
|
95
|
+
• plan.md: [exists/missing]
|
|
96
|
+
|
|
97
|
+
Next: [recommended command based on artifacts]
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Quick Start
|
|
101
|
+
|
|
102
|
+
If `--quick` flag is passed and plan.md exists, skip directly to:
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
/implement $ARGUMENTS
|
|
106
|
+
```
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Comprehensive project and session status dashboard
|
|
3
3
|
argument-hint: "[--full] [--health] [--sessions] [--git]"
|
|
4
4
|
agent: explore
|
|
5
|
+
subtask: true
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# Status Dashboard
|
|
@@ -32,8 +33,8 @@ Run all status checks simultaneously:
|
|
|
32
33
|
|
|
33
34
|
```typescript
|
|
34
35
|
// Custom tools (message inbox, locks)
|
|
35
|
-
bd-inbox({ n: 5, unread: true, to: "all" });
|
|
36
|
-
bd-release(); // Lists active locks when called with no args
|
|
36
|
+
bd - inbox({ n: 5, unread: true, to: "all" });
|
|
37
|
+
bd - release(); // Lists active locks when called with no args
|
|
37
38
|
|
|
38
39
|
// Built-in tools
|
|
39
40
|
list_sessions({ project: "current", since: "today", limit: 5 });
|