clikit-plugin 0.3.11 → 0.3.12
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/AGENTS.md +26 -33
- package/README.md +98 -35
- package/command/create.md +6 -3
- package/command/discuss.md +20 -8
- package/command/init.md +2 -1
- package/command/start.md +6 -4
- package/command/status.md +16 -13
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -5
- package/memory/_templates/discussion.md +9 -1
- package/package.json +7 -6
- package/skill/beads/SKILL.md +29 -29
- package/skill/beads/mcp.json +1 -1
- package/skill/beads/references/api-reference.md +8 -3
- package/src/agents/AGENTS.md +10 -8
- package/src/agents/build.md +57 -59
- package/src/agents/plan.md +47 -41
- package/memory/_digest.md +0 -6
- package/memory/beads/.gitkeep +0 -0
- package/memory/discussions/.gitkeep +0 -0
- package/memory/handoffs/.gitkeep +0 -0
- package/memory/memory.db +0 -0
- package/memory/plans/.gitkeep +0 -0
- package/memory/prds/.gitkeep +0 -0
- package/memory/research/.gitkeep +0 -0
- package/memory/reviews/.gitkeep +0 -0
- package/memory/specs/.gitkeep +0 -0
package/AGENTS.md
CHANGED
|
@@ -77,7 +77,6 @@ Load `session-management` skill for full threshold handling (including handoff t
|
|
|
77
77
|
bun install # dependencies
|
|
78
78
|
bun run build # compile plugin
|
|
79
79
|
bun run typecheck # type check
|
|
80
|
-
bun run test # unit tests
|
|
81
80
|
bun run verify # full local verification
|
|
82
81
|
bun run dev # watch mode
|
|
83
82
|
```
|
|
@@ -108,23 +107,21 @@ tilth CLI → read → grep → glob
|
|
|
108
107
|
|
|
109
108
|
This is a documented agent rule, not a hard runtime block.
|
|
110
109
|
|
|
111
|
-
## Issue Tracking with
|
|
110
|
+
## Issue Tracking with Beads Rust (`br`)
|
|
112
111
|
|
|
113
|
-
**IMPORTANT**: This project
|
|
112
|
+
**IMPORTANT**: This project now prefers **Beads Rust** (`br`) with local `.beads/` storage for persistent task tracking. Do NOT use markdown TODOs or ad-hoc task lists as the source of truth.
|
|
114
113
|
|
|
115
|
-
###
|
|
114
|
+
### Preferred Interface
|
|
116
115
|
|
|
117
116
|
| Interface | Who Uses It | How |
|
|
118
117
|
|-----------|-------------|-----|
|
|
119
|
-
| **`
|
|
120
|
-
| **`beads-village_*` MCP** |
|
|
121
|
-
|
|
122
|
-
**AI agents must use `beads-village_*` MCP tools — never shell `bd` commands.**
|
|
118
|
+
| **`br` CLI** | User and agents | `br init`, `br ready --json`, `br create`, `br update`, `br close`, `br sync` |
|
|
119
|
+
| **`beads-village_*` MCP** | Optional legacy compatibility | Use only if already installed and explicitly needed for reservations/messages |
|
|
123
120
|
|
|
124
121
|
### Agent Core Cycle
|
|
125
122
|
|
|
126
123
|
```
|
|
127
|
-
|
|
124
|
+
br init → br ready --json → br show/list --json → br create (if needed) → br update --status in_progress --claim → work → verify → br close → br sync --flush-only
|
|
128
125
|
```
|
|
129
126
|
|
|
130
127
|
In compressed workflow, the execution unit is a **Task Packet**:
|
|
@@ -137,36 +134,32 @@ In compressed workflow, the execution unit is a **Task Packet**:
|
|
|
137
134
|
|
|
138
135
|
| Tool | Purpose |
|
|
139
136
|
|------|---------|
|
|
140
|
-
| `
|
|
141
|
-
| `
|
|
142
|
-
| `
|
|
143
|
-
| `
|
|
144
|
-
| `
|
|
145
|
-
| `
|
|
146
|
-
| `
|
|
147
|
-
| `
|
|
148
|
-
| `
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|---|---|
|
|
156
|
-
| `beads-village_ready` | `beads-village_ls(status="ready")` |
|
|
157
|
-
| `beads-village_broadcast` | `beads-village_msg(global=true, to="all")` |
|
|
158
|
-
| `beads-village_discover` | `beads-village_status(include_agents=true)` |
|
|
137
|
+
| `br init` | Initialize `.beads/` for the project |
|
|
138
|
+
| `br ready --json` | List unblocked claimable work |
|
|
139
|
+
| `br create --title ... --description ... --type ... --priority ...` | Create issue |
|
|
140
|
+
| `br update <id> --status in_progress --claim` | Claim / start work |
|
|
141
|
+
| `br show <id> --json` | Read task details |
|
|
142
|
+
| `br list --json` | Inspect task inventory |
|
|
143
|
+
| `br close <id> --reason "Completed" --json` | Close completed work |
|
|
144
|
+
| `br sync --flush-only` | Flush `.beads/` state before git commit/push |
|
|
145
|
+
| `br sync --import-only` | Re-import `.beads/` state after pull/rebase |
|
|
146
|
+
|
|
147
|
+
### Legacy compatibility note
|
|
148
|
+
|
|
149
|
+
- `beads-village_*` is no longer the default required workflow in this repo.
|
|
150
|
+
- If a local setup still depends on `beads-village` for reservations or inbox-style coordination, treat it as optional compatibility, not the primary task tracker.
|
|
151
|
+
- This repo does **not** currently provide a full MCP replacement for `br`; use the CLI-first workflow above.
|
|
159
152
|
|
|
160
153
|
### Policy
|
|
161
154
|
|
|
162
155
|
- Trivial (< 2 min, 1-line fix): skip Beads, just do it
|
|
163
|
-
- Non-trivial:
|
|
164
|
-
- `todowrite` = in-session UI display only —
|
|
156
|
+
- Non-trivial: prefer `br` issue first → claim/start → work → close
|
|
157
|
+
- `todowrite` = in-session UI display only — `.beads/` is the persistent execution state when task tracking is in use
|
|
165
158
|
- Work in the shared checkout on the repo default branch — no git worktrees or per-task branches unless the user explicitly requests them
|
|
166
159
|
- Check `git status --short --branch` before editing; if overlapping local changes already exist in your scope, stop and coordinate instead of isolating the work
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
- Call `
|
|
160
|
+
- If optional `beads-village` reservations are available, you may use them to surface conflicts early in the shared workspace
|
|
161
|
+
- Otherwise coordinate through git state, handoffs, and explicit file scope instead of assuming reservations exist
|
|
162
|
+
- Call `br close` before ending a completed tracked session; for mid-task handoff, leave the issue open and hand off without closing it
|
|
170
163
|
|
|
171
164
|
### Nested Repository Note
|
|
172
165
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,83 @@
|
|
|
1
1
|
# CliKit Plugin for OpenCode
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Turn raw OpenCode into a disciplined delivery workflow: **discuss → create → start → verify → ship**.
|
|
4
|
+
|
|
5
|
+
CliKit is the workflow layer for OpenCode — curated agents, slash commands, runtime hooks, memory artifacts, and quality gates that help you move from vague request to verified change without inventing your process every session.
|
|
6
|
+
|
|
7
|
+
## Why CliKit exists
|
|
8
|
+
|
|
9
|
+
OpenCode is powerful, but the hard part is not calling a model — it is keeping planning, execution, verification, and handoff aligned as the task gets bigger.
|
|
10
|
+
|
|
11
|
+
CliKit adds that missing structure:
|
|
12
|
+
|
|
13
|
+
- **Workflow orchestration** — opinionated commands for discuss/create/start/verify/ship
|
|
14
|
+
- **Agent library** — specialized roles for build, plan, explore, review, research, oracle, and vision
|
|
15
|
+
- **Memory system** — discussion, plan, research, review, and handoff artifacts that survive across sessions
|
|
16
|
+
- **Safety + quality hooks** — git guard, security checks, truncation, memory digest, and prompt-context helpers
|
|
17
|
+
- **Verification loop** — compressed packet execution plus explicit verification before landing changes
|
|
18
|
+
|
|
19
|
+
## Start here
|
|
20
|
+
|
|
21
|
+
### Install in 3 steps
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# 1) Install Beads Rust for local task tracking
|
|
25
|
+
br --version
|
|
26
|
+
|
|
27
|
+
# 2) Initialize tracker state in your project
|
|
28
|
+
br init
|
|
29
|
+
|
|
30
|
+
# 3) Install CliKit for OpenCode
|
|
31
|
+
bun x clikit-plugin install
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Need the full install notes, Windows binary path, or MCP details? Jump to [Installation](#installation).
|
|
35
|
+
|
|
36
|
+
### Pick a workflow
|
|
37
|
+
|
|
38
|
+
**Quick feature / fix**
|
|
39
|
+
```text
|
|
40
|
+
/discuss → /create → /start → /verify → /ship
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Deeper feature / research-heavy change**
|
|
44
|
+
```text
|
|
45
|
+
/discuss → /create → /design → /start → /verify → /ship
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Audit existing work before landing**
|
|
49
|
+
```text
|
|
50
|
+
/verify → /ship
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## What you get
|
|
54
|
+
|
|
55
|
+
- **7 specialized agents** — build, plan, explore, review, vision, oracle, research
|
|
56
|
+
- **14 slash commands** — including `/discuss`, `/create`, `/start`, `/verify`, `/ship`, `/debug`, `/research`, `/design`, `/status`
|
|
57
|
+
- **26 workflow skills** — planning, debugging, testing, integration, and session-management skills
|
|
58
|
+
- **11 runtime hooks/modules** — git guard, security check, truncator, memory digest, beads context, tilth reading, and more
|
|
59
|
+
- **Structured memory** — templates plus saved discussions, plans, research, reviews, handoffs, and PRDs
|
|
60
|
+
- **Configurable runtime** — per-agent overrides, hook toggles, workflow mode selection, and extended permissions
|
|
61
|
+
|
|
62
|
+
## Trust & compatibility
|
|
63
|
+
|
|
64
|
+
- **OpenCode-first** plugin architecture
|
|
65
|
+
- **Compressed workflow** with packetized execution and embedded verification
|
|
66
|
+
- **Beads Rust (`br`)** as the preferred local tracker workflow
|
|
67
|
+
- **Shared-workspace friendly** defaults with optional legacy `beads-village` compatibility
|
|
68
|
+
- **Published package**: [`clikit-plugin` on npm](https://www.npmjs.com/package/clikit-plugin)
|
|
69
|
+
|
|
70
|
+
## Docs map
|
|
71
|
+
|
|
72
|
+
- `README.md` — install, workflows, commands, skills, config
|
|
73
|
+
- `AGENTS.md` — repo-wide execution policy and tracker workflow
|
|
74
|
+
- `command/` — slash command definitions and execution rules
|
|
75
|
+
- `src/agents/` — agent prompts and behavior contracts
|
|
76
|
+
- `skill/` — reusable workflow skills
|
|
77
|
+
- `schemas.md` — canonical packet / artifact / tracker schemas
|
|
78
|
+
- `memory/_templates/` — discussion, plan, research, review, PRD, and handoff templates
|
|
79
|
+
|
|
80
|
+
---
|
|
4
81
|
|
|
5
82
|
## Features
|
|
6
83
|
|
|
@@ -15,45 +92,33 @@ Curated agents, commands, skills, and memory system for OpenCode.
|
|
|
15
92
|
|
|
16
93
|
## Installation
|
|
17
94
|
|
|
18
|
-
### Step 1 — Install Beads (
|
|
95
|
+
### Step 1 — Install Beads Rust (`br`)
|
|
19
96
|
|
|
20
|
-
CliKit
|
|
97
|
+
CliKit now prefers [beads_rust](https://github.com/Dicklesworthstone/beads_rust) (`br`) for persistent task tracking in `.beads/`. Classic `bd` + Dolt are no longer required for the default workflow.
|
|
21
98
|
|
|
22
|
-
**Windows (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
99
|
+
**Windows (native binary):**
|
|
100
|
+
1. Download the latest `br-v*-windows_amd64.zip` asset from the GitHub Releases page.
|
|
101
|
+
2. Extract `br.exe`.
|
|
102
|
+
3. Place it on your `PATH` (for example under `%APPDATA%\npm`).
|
|
26
103
|
|
|
27
|
-
**macOS / Linux
|
|
104
|
+
**macOS / Linux / Windows via WSL:**
|
|
28
105
|
```bash
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
**npm / bun:**
|
|
33
|
-
```bash
|
|
34
|
-
npm install -g @beads/bd
|
|
35
|
-
# or
|
|
36
|
-
bun install -g --trust @beads/bd
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
**go install (Go 1.24+ required):**
|
|
40
|
-
```bash
|
|
41
|
-
go install github.com/steveyegge/beads/cmd/bd@latest
|
|
106
|
+
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/beads_rust/main/install.sh" | bash
|
|
42
107
|
```
|
|
43
108
|
|
|
44
109
|
Verify:
|
|
45
110
|
```bash
|
|
46
|
-
|
|
111
|
+
br --version
|
|
47
112
|
```
|
|
48
113
|
|
|
49
|
-
### Step 2 — Initialize
|
|
114
|
+
### Step 2 — Initialize `.beads/` in your project
|
|
50
115
|
|
|
51
116
|
```bash
|
|
52
117
|
cd your-project
|
|
53
|
-
|
|
118
|
+
br init
|
|
54
119
|
```
|
|
55
120
|
|
|
56
|
-
This creates the `.beads/`
|
|
121
|
+
This creates the `.beads/` task-tracking directory. Do this once per project. If `.beads/` already exists, keep it and use `br sync --import-only` after pulling or rebasing older state.
|
|
57
122
|
|
|
58
123
|
### Step 3 — Install CliKit
|
|
59
124
|
|
|
@@ -68,11 +133,12 @@ The plugin is registered in `~/.config/opencode/opencode.json`.
|
|
|
68
133
|
|
|
69
134
|
CliKit injects default MCP server entries at runtime when missing:
|
|
70
135
|
|
|
71
|
-
- `beads-village` (`npx beads-village`) — requires `bd init` to have been run in the project
|
|
72
136
|
- `context7` (`https://mcp.context7.com/mcp`)
|
|
73
137
|
- `grep` (`https://mcp.grep.app`)
|
|
74
138
|
- `human-mcp` (`npx @goonnguyen/human-mcp`)
|
|
75
139
|
|
|
140
|
+
`beads-village` is no longer injected by default. If you still rely on the legacy MCP workflow for reservations or inbox-style coordination, add it manually.
|
|
141
|
+
|
|
76
142
|
Recommended environment variables:
|
|
77
143
|
|
|
78
144
|
- `CONTEXT7_API_KEY` for Context7
|
|
@@ -101,7 +167,7 @@ Workflow notes:
|
|
|
101
167
|
- `/ship` finalizes work in the shared checkout — commit, sync, and land on the repo default branch; `/pr` is optional and only for explicit PR-based exceptions
|
|
102
168
|
- `/research` is an optional standalone research command — it reads discussion context first, closes decision gaps with external evidence, and saves a planning-ready report
|
|
103
169
|
- `/design` implements UI/UX with variant exploration and a11y — uses Vision agent
|
|
104
|
-
-
|
|
170
|
+
- `br` + `.beads/` is the preferred persistent task source of truth; `beads-village` is optional legacy compatibility only
|
|
105
171
|
- Plans decompose work into **Task Packets** (1 concern, 1–3 files, one verify bundle)
|
|
106
172
|
|
|
107
173
|
## Configuration
|
|
@@ -192,8 +258,8 @@ Project config overrides user config.
|
|
|
192
258
|
| `subagent_question_blocker` | on | Prevents subagents from asking clarifying questions |
|
|
193
259
|
| `truncator` | on | Truncates large outputs to prevent context overflow |
|
|
194
260
|
| `memory_digest` | on | Generates `memory/_digest.md` index + topic files (`decision.md`, `learning.md`, etc.) from SQLite observations |
|
|
195
|
-
| `todo_beads_sync` | off | Legacy
|
|
196
|
-
| `beads_context` | on | Injects active
|
|
261
|
+
| `todo_beads_sync` | off | Legacy compatibility mirror for syncing todos into `.beads/` exports |
|
|
262
|
+
| `beads_context` | on | Injects active `.beads/` task state into prompts when local Beads data exists |
|
|
197
263
|
| `cass_memory` | on | Loads embedded memory context on session start and runs idle reflection (`cassMemoryContext`, `cassMemoryReflect`) |
|
|
198
264
|
| `tilth_reading` | on | Enhances `read` tool output via tilth when available for smarter file reads |
|
|
199
265
|
|
|
@@ -230,7 +296,7 @@ Run with `/command-name` in OpenCode. **All 14 commands work standalone** — th
|
|
|
230
296
|
| Command | One-liner |
|
|
231
297
|
|---------|-----------|
|
|
232
298
|
| `/debug` | Reproduce → 5-Whys root cause → fix → regression test |
|
|
233
|
-
| `/status` | Workspace snapshot —
|
|
299
|
+
| `/status` | Workspace snapshot — task tracker state, git state, active artifacts |
|
|
234
300
|
| `/init` | Bootstrap CliKit — scaffold dirs + write tailored AGENTS.md |
|
|
235
301
|
| `/handoff` | Auto-capture session state for graceful pause |
|
|
236
302
|
| `/resume` | Pick up cold from latest handoff, no warm-up questions |
|
|
@@ -278,7 +344,7 @@ Run with `/command-name` in OpenCode. **All 14 commands work standalone** — th
|
|
|
278
344
|
### Integration & Collaboration (6)
|
|
279
345
|
| Skill | Use When |
|
|
280
346
|
|-------|----------|
|
|
281
|
-
| `beads` | Multi-agent task coordination
|
|
347
|
+
| `beads` | Multi-agent task coordination with `br` and optional legacy beads-village helpers |
|
|
282
348
|
| `playwright` | Browser automation and E2E testing |
|
|
283
349
|
| `chrome-devtools` | Web debugging and performance analysis |
|
|
284
350
|
| `requesting-code-review` | After completing a task |
|
|
@@ -297,9 +363,6 @@ bun run build
|
|
|
297
363
|
# Type check
|
|
298
364
|
bun run typecheck
|
|
299
365
|
|
|
300
|
-
# Unit tests
|
|
301
|
-
bun run test
|
|
302
|
-
|
|
303
366
|
# Full local verification
|
|
304
367
|
bun run verify
|
|
305
368
|
|
|
@@ -328,7 +391,7 @@ bun run dev
|
|
|
328
391
|
│ ├── research/ # Research artifacts
|
|
329
392
|
│ ├── reviews/ # Code reviews
|
|
330
393
|
│ ├── handoffs/ # Session handoffs
|
|
331
|
-
│ ├── beads/ #
|
|
394
|
+
│ ├── beads/ # Optional compatibility bead metadata
|
|
332
395
|
│ └── prds/ # Product requirements
|
|
333
396
|
└── clikit.jsonc
|
|
334
397
|
```
|
package/command/create.md
CHANGED
|
@@ -175,11 +175,14 @@ Before presenting the plan, verify:
|
|
|
175
175
|
- [ ] All acceptance criteria are agent-executable
|
|
176
176
|
- [ ] Top 2+ risks assessed
|
|
177
177
|
|
|
178
|
-
### 8. Approval,
|
|
178
|
+
### 8. Approval, Sync Tracking, & Guide
|
|
179
179
|
|
|
180
180
|
1. Present plan to user
|
|
181
181
|
2. Wait for explicit approval
|
|
182
|
-
3. Only after approval,
|
|
182
|
+
3. Only after approval, sync task tracking in the active workflow:
|
|
183
|
+
- Prefer `br` issue creation in DAG order when `.beads/` tracking is active and the runtime can execute `br`
|
|
184
|
+
- If a legacy `beads-village` MCP setup still exists, it may be used as a compatibility fallback
|
|
185
|
+
- Do **not** block plan handoff on missing legacy MCP support
|
|
183
186
|
4. Then say: "Plan ready. Use `/start` to begin execution."
|
|
184
187
|
|
|
185
188
|
## Rules
|
|
@@ -195,7 +198,7 @@ Before presenting the plan, verify:
|
|
|
195
198
|
- ✅ Include Conventions & Past Decisions section in plan
|
|
196
199
|
- ✅ Every task must include a Task Packet
|
|
197
200
|
- ✅ File Impact is the build contract
|
|
198
|
-
- ✅ Create
|
|
201
|
+
- ✅ Create tracker issues only after explicit approval
|
|
199
202
|
- ❌ NEVER ask generic questions without codebase context
|
|
200
203
|
- ❌ NEVER skip acceptance criteria
|
|
201
204
|
- ❌ NEVER end passively — always question or action
|
package/command/discuss.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Pre-create discussion phase —
|
|
2
|
+
description: Pre-create discussion phase — run an interview-style clarification pass, lock preferences, confirm assumptions, and write a planning-ready discussion artifact.
|
|
3
3
|
agent: plan
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
You are the **Plan Agent** operating in discussion mode. Execute the `/discuss` command and write only the discussion artifact.
|
|
6
|
+
You are the **Plan Agent** operating in discussion mode. Execute the `/discuss` command as an **interview-style pre-plan phase** and write only the discussion artifact.
|
|
7
7
|
|
|
8
8
|
## Template
|
|
9
9
|
|
|
@@ -13,6 +13,13 @@ Use template at: `@.opencode/memory/_templates/discussion.md`
|
|
|
13
13
|
|
|
14
14
|
Run a **pre-create discussion phase adapted for CliKit**.
|
|
15
15
|
|
|
16
|
+
The command name stays `/discuss`, but the interaction style should feel like a focused **interview**:
|
|
17
|
+
- surface the highest-impact gray areas first
|
|
18
|
+
- ask only the questions that change planning direction
|
|
19
|
+
- prefer structured choices over open-ended brainstorming when possible
|
|
20
|
+
- skip topics that are already settled by prior artifacts or strong codebase evidence
|
|
21
|
+
- end with a concise artifact that captures what the interview resolved
|
|
22
|
+
|
|
16
23
|
This command exists to capture the decisions that `/create`, `/research`, and `/start` should not have to guess.
|
|
17
24
|
|
|
18
25
|
Use it to:
|
|
@@ -59,13 +66,15 @@ If context is incomplete, capture the uncertainty in the artifact instead of blo
|
|
|
59
66
|
- constraints or non-goals
|
|
60
67
|
- sequencing between discuss/create/research/build
|
|
61
68
|
|
|
62
|
-
4. **Run an adaptive
|
|
63
|
-
-
|
|
64
|
-
-
|
|
69
|
+
4. **Run an adaptive interview**
|
|
70
|
+
- Start with the few gray areas most likely to change `/create`, `/research`, or `/start`
|
|
71
|
+
- Ask focused, high-signal questions one at a time when possible
|
|
72
|
+
- Prefer decisions or structured options over open-ended brainstorming once enough context exists
|
|
65
73
|
- Avoid re-asking anything already confirmed by prior artifacts
|
|
66
|
-
- If the repository strongly suggests a sensible default, present it as an assumption for confirmation
|
|
74
|
+
- If the repository strongly suggests a sensible default, present it as an assumption for confirmation instead of asking a vague question
|
|
75
|
+
- If multiple gray areas remain, prioritize the ones with the biggest scope or workflow impact first
|
|
67
76
|
|
|
68
|
-
5. **Lock what
|
|
77
|
+
5. **Lock what the interview resolved and defer the rest**
|
|
69
78
|
- Record confirmed decisions explicitly
|
|
70
79
|
- Separate confirmed assumptions from unresolved questions
|
|
71
80
|
- Push non-critical ideas into a deferred section rather than expanding scope
|
|
@@ -85,7 +94,7 @@ Use this request schema:
|
|
|
85
94
|
|
|
86
95
|
```yaml
|
|
87
96
|
type: "discussion"
|
|
88
|
-
mode: "pre-create-phase"
|
|
97
|
+
mode: "interview-style-pre-create-phase"
|
|
89
98
|
topic: "[Feature or topic being clarified]"
|
|
90
99
|
goal: "[What outcome the user wants]"
|
|
91
100
|
ambiguities:
|
|
@@ -97,12 +106,15 @@ constraints:
|
|
|
97
106
|
workflow: "[Any sequencing or approval constraints]"
|
|
98
107
|
format: "discussion-brief"
|
|
99
108
|
depth: "standard" # quick | standard | deep
|
|
109
|
+
question_style: "adaptive-interview"
|
|
100
110
|
```
|
|
101
111
|
|
|
102
112
|
## Rules
|
|
103
113
|
|
|
104
114
|
- Start from user intent, not technical implementation detail
|
|
105
115
|
- Clarify only what changes planning, sequencing, or execution direction
|
|
116
|
+
- Treat `/discuss` as an interview, not an unbounded brainstorm
|
|
117
|
+
- Ask the minimum number of questions needed to remove planning-critical ambiguity
|
|
106
118
|
- Prefer concrete decisions over vague summaries
|
|
107
119
|
- Preserve unresolved items instead of guessing them away
|
|
108
120
|
- Write only the final discussion artifact under `.opencode/memory/discussions/`
|
package/command/init.md
CHANGED
|
@@ -39,9 +39,10 @@ Ensure these exist:
|
|
|
39
39
|
- `.opencode/memory/reviews`
|
|
40
40
|
- `.opencode/memory/handoffs`
|
|
41
41
|
- `.opencode/memory/prds`
|
|
42
|
-
- `.opencode/memory/beads`
|
|
43
42
|
- `.opencode/memory/_templates`
|
|
44
43
|
|
|
44
|
+
Task tracking now lives in the project-root `.beads/` directory created by `br init`, not under `.opencode/memory/beads`.
|
|
45
|
+
|
|
45
46
|
### 4) Handle existing AGENTS.md safely
|
|
46
47
|
|
|
47
48
|
If root `AGENTS.md` exists:
|
package/command/start.md
CHANGED
|
@@ -28,20 +28,22 @@ If no plan exists:
|
|
|
28
28
|
- Read `plan.md` — get objectives, context, task list, file impact, dependencies, and acceptance criteria
|
|
29
29
|
- Read `discussion.md` (if referenced or latest relevant) — preserve locked intent and constraints
|
|
30
30
|
- Read latest handoff in `.opencode/memory/handoffs/` (if exists) — resume from previous session
|
|
31
|
-
- Check
|
|
31
|
+
- Check tracker state:
|
|
32
|
+
- prefer `br ready --json` / `br list --json` when `.beads/` is active
|
|
33
|
+
- if a legacy `beads-village` MCP is installed, you may also inspect reservations or inbox state
|
|
32
34
|
|
|
33
35
|
### 3. Determine Next Packet
|
|
34
36
|
|
|
35
37
|
Find the first task / packet that is executable:
|
|
36
38
|
- dependencies satisfied
|
|
37
|
-
- within
|
|
39
|
+
- within the active tracker ready state when tracking exists
|
|
38
40
|
- not blocked
|
|
39
41
|
|
|
40
42
|
If resuming from handoff, pick up `in_progress` tasks first.
|
|
41
43
|
|
|
42
44
|
### 4. Execute Packet
|
|
43
45
|
|
|
44
|
-
- Reserve packet files
|
|
46
|
+
- Reserve packet files when optional legacy reservations are available; otherwise use explicit file scope plus `git status` as the coordination primitive
|
|
45
47
|
- Follow `files_in_scope` strictly
|
|
46
48
|
- Implement only the active packet
|
|
47
49
|
|
|
@@ -58,7 +60,7 @@ If verification fails twice, stop and escalate.
|
|
|
58
60
|
|
|
59
61
|
### 6. Close Packet
|
|
60
62
|
|
|
61
|
-
-
|
|
63
|
+
- Close or update tracker state when a tracked issue exists
|
|
62
64
|
- Report evidence
|
|
63
65
|
- Continue only if another ready packet exists and the user asked to keep going
|
|
64
66
|
|
package/command/status.md
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Instant workspace snapshot —
|
|
2
|
+
description: Instant workspace snapshot — tracker state, ready work, git state, and memory artifacts in one view.
|
|
3
3
|
agent: build
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
You are providing a **status overview** of the current workspace and
|
|
6
|
+
You are providing a **status overview** of the current workspace and task tracker.
|
|
7
7
|
|
|
8
8
|
## Your Task
|
|
9
9
|
|
|
10
|
-
Show the current state of work:
|
|
10
|
+
Show the current state of work: tracker state, tasks, files, and git status.
|
|
11
11
|
|
|
12
12
|
## Process
|
|
13
13
|
|
|
14
|
-
### 1. Check
|
|
14
|
+
### 1. Check Task Tracking
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
Preferred path:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
br ready --json
|
|
20
|
+
br list --json
|
|
18
21
|
```
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
If a legacy `beads-village` MCP is installed, you may also inspect reservations, inbox state, or agent presence using the matching MCP tools.
|
|
21
24
|
|
|
22
25
|
### 2. Check Git State
|
|
23
26
|
|
|
@@ -48,7 +51,7 @@ Look for:
|
|
|
48
51
|
|
|
49
52
|
---
|
|
50
53
|
|
|
51
|
-
### 🎯
|
|
54
|
+
### 🎯 Tracker State
|
|
52
55
|
|
|
53
56
|
| Status | Count |
|
|
54
57
|
|--------|-------|
|
|
@@ -62,6 +65,8 @@ Look for:
|
|
|
62
65
|
1. [ID] [Title] (P[priority])
|
|
63
66
|
2. [ID] [Title] (P[priority])
|
|
64
67
|
|
|
68
|
+
**Tracker Source:** `br` / `beads-village` / `none`
|
|
69
|
+
|
|
65
70
|
---
|
|
66
71
|
|
|
67
72
|
### 📁 Active Artifacts
|
|
@@ -113,11 +118,9 @@ Look for:
|
|
|
113
118
|
|
|
114
119
|
| Area | Tool |
|
|
115
120
|
|------|------|
|
|
116
|
-
|
|
|
117
|
-
|
|
|
118
|
-
|
|
|
119
|
-
| Reservations | `beads-village_reservations()` |
|
|
120
|
-
| Messages | `beads-village_inbox()` |
|
|
121
|
+
| Tracker | `br ready --json`, `br list --json` |
|
|
122
|
+
| Legacy reservations | `beads-village_reservations()` when available |
|
|
123
|
+
| Legacy inbox | `beads-village_inbox()` when available |
|
|
121
124
|
| Git | `git status`, `git log` |
|
|
122
125
|
| Artifacts | `glob`, `Read` |
|
|
123
126
|
|