opencodekit 0.16.17 → 0.16.18

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 CHANGED
@@ -1,260 +1,95 @@
1
- # OpenCodeKit - 10-Agent Multi-Agent Observability
1
+ # OpenCodeKit
2
2
 
3
- **Architecture**: Multi-Agent Observability Pattern
4
- **Inspiration**: [disler/opencode-hooks-multi-agent-observability](https://github.com/disler/opencode-hooks-multi-agent-observability)
3
+ OpenCodeKit is a Bun + TypeScript CLI and template for running OpenCode with an opinionated multi-agent workflow.
5
4
 
6
- ---
5
+ ## What This Template Includes
7
6
 
8
- ## 🎯 What is OpenCodeKit?
7
+ - Beads-first lifecycle: `/create` -> `/start` -> `/ship`
8
+ - Custom agents in `.opencode/agent/` (9 in this template)
9
+ - Slash commands in `.opencode/command/` (14 workflows)
10
+ - Skills in `.opencode/skill/` (large curated library)
11
+ - Custom tools in `.opencode/tool/` (memory tools, `observation`, `swarm`, `context7`, `grepsearch`, etc.)
12
+ - Plugins in `.opencode/plugin/` for memory, session continuity, swarm workflow enforcement, and skill MCP
9
13
 
10
- A pre-configured OpenCode distribution featuring:
11
-
12
- - **10 core agents** with clear delegation
13
- - **24 skills** (domain expertise loaded via commands)
14
- - **45+ workflow commands** (including `/handoff`)
15
- - **Multi-agent observability** (all work visible in build session)
16
- - **Manual handoffs** for clean phase transitions
17
-
18
- **For**: Solo developers who want low maintenance + high productivity
19
-
20
- ---
21
-
22
- ## 🚀 Quick Start (5 minutes)
23
-
24
- ### Option 1: Using CLI (Recommended)
25
-
26
- ```bash
27
- # 1. Create new project with npx
28
- npx opencodekit init my-project
29
- cd my-project
30
-
31
- # 2. Or install globally
32
- npm install -g opencodekit
33
- ock init my-project
34
- ```
35
-
36
- **See [CLI.md](./CLI.md) for complete CLI documentation**
37
-
38
- ### Option 2: Manual Setup
14
+ ## Quick Start
39
15
 
40
16
  ```bash
41
- # 1. Verify setup
42
- ls -1 ~/.config/opencode/agent/*.md | wc -l # Should be: 10
43
-
44
- # 2. Start OpenCode
45
- opencode
46
-
47
- # 3. Try simple task (build handles)
48
- create test.txt with "Hello OpenCodeKit"
49
-
50
- # 4. Try command
51
- /commit
17
+ # Scaffold or initialize
18
+ npx opencodekit init
52
19
 
53
- # 5. Try delegation
54
- @plan Build auth system with 4 phases
55
-
56
- # 6. Try handoff workflow
57
- /handoff "implement phase 1 of the plan"
58
- # Creates portable handoff bundle in .opencode/memory/handoffs/
20
+ # Or in this repository during development
21
+ bun install
22
+ bun run src/index.ts --help
59
23
  ```
60
24
 
61
- ---
62
-
63
- ## 🏗️ Architecture
64
-
25
+ ## Core Slash Command Workflow
26
+
27
+ Use these inside OpenCode:
28
+
29
+ 1. `/create <description>` - create bead and PRD
30
+ 2. `/start <bead-id>` - claim bead and prepare branch/workspace
31
+ 3. `/ship <bead-id>` - implement, verify, review, close
32
+
33
+ ## Available Slash Commands (Template)
34
+
35
+ - `/create`
36
+ - `/start`
37
+ - `/ship`
38
+ - `/plan`
39
+ - `/status`
40
+ - `/pr`
41
+ - `/resume`
42
+ - `/handoff`
43
+ - `/research`
44
+ - `/review-codebase`
45
+ - `/verify`
46
+ - `/design`
47
+ - `/ui-review`
48
+ - `/init`
49
+
50
+ ## CLI Command Surface (`ock`)
51
+
52
+ The packaged CLI commands are:
53
+
54
+ - `ock init`
55
+ - `ock agent <list|create|view|remove>`
56
+ - `ock command <list|create|show|delete>`
57
+ - `ock config [action]`
58
+ - `ock doctor`
59
+ - `ock status`
60
+ - `ock upgrade`
61
+ - `ock completion [shell]`
62
+ - `ock tui`
63
+
64
+ See `CLI.md` for command usage details.
65
+
66
+ ## Repository Layout
67
+
68
+ ```text
69
+ src/ # CLI implementation
70
+ .opencode/ # Agents, commands, skills, tools, plugins
71
+ .beads/ # Task tracking database and artifacts
72
+ build.ts # Build pipeline (bundles .opencode template)
73
+ dist/ # Build output (generated)
65
74
  ```
66
- build (Primary Orchestrator - 70% of work)
67
- ├→ @rush (Fast agent for simple tasks)
68
- ├→ @plan (Complex planning ≥3 phases)
69
- ├→ @review (Code review + security + debugging)
70
- ├→ @scout (External research, library docs, GitHub patterns)
71
- ├→ @explore (Fast codebase search)
72
- ├→ @vision (UI/UX, mockups, visual analysis)
73
- └→ @general (Fallback)
74
75
 
75
- Background Plugins:
76
- • enforcer (TODO completion enforcement)
77
- • compactor (Context usage warnings at 70/85/95%)
78
- • truncator (Dynamic output truncation)
79
-
80
- Supporting:
81
- • 30+ Skills (domain expertise loaded on-demand)
82
- • 26+ Commands (workflow shortcuts)
83
- • 3 MCP Services (context7, exa) + grepsearch tool + skill-embedded MCPs
84
- • Custom Tools (memory-*, observation, grepsearch, lsp-*)
85
- • Beads task tracking (`bd` CLI for multi-session workflows)
86
- • Manual Handoffs (clean phase transitions)
87
- ```
88
-
89
- ### Manual Handoffs (Recommended)
90
-
91
- **We use manual `/handoff` command for clean phase transitions** - no automatic session plugin needed.
92
-
93
- ### Custom `/handoff` Command
94
-
95
- Creates portable handoff bundles for phase transitions:
76
+ ## Development
96
77
 
97
78
  ```bash
98
- # Create handoff bundle
99
- /handoff "design the rate limiting system based on research"
100
-
101
- # Creates: .opencode/memory/handoffs/2025-11-18-rate-limiting-design.md
102
- # Contains: summary, @file-mentions, key decisions, next-phase prompt
79
+ npm run typecheck
80
+ npm run lint
81
+ npm run test
82
+ npm run build
103
83
  ```
104
84
 
105
- **Use handoff bundle:**
106
-
107
- ```bash
108
- # Option 1: Manual reference
109
- @.opencode/memory/handoffs/2025-11-18-planning.md
110
-
111
- # Option 2: With sessions plugin
112
- session({
113
- mode: "new",
114
- agent: "plan",
115
- text: "@.opencode/memory/handoffs/2025-11-18-planning.md"
116
- })
117
- ```
118
-
119
- **Complete Workflow Example:**
120
-
121
- ```bash
122
- # Phase 1: Research
123
- /research "API rate limiting patterns"
124
- # ... research happens ...
125
-
126
- # Create handoff → Planning
127
- /handoff "design system based on research"
128
- # Creates: .opencode/memory/handoffs/2025-11-20-planning.md
129
-
130
- # Phase 2: Planning (new thread with @plan)
131
- @plan @.opencode/memory/handoffs/2025-11-20-planning.md
132
- # ... planning happens ...
133
-
134
- # Create handoff → Implementation
135
- /handoff "implement phase 1 of the plan"
136
- # Creates: .opencode/memory/handoffs/2025-11-20-implementation.md
137
-
138
- # Phase 3: Implementation (new thread)
139
- @.opencode/memory/handoffs/2025-11-20-implementation.md
140
- # ... implementation happens ...
141
-
142
- # Create handoff → Review
143
- /handoff "review the completed feature for security"
144
- # Creates: .opencode/memory/handoffs/2025-11-20-review.md
145
-
146
- # Phase 4: Review (new thread with @code-auditor)
147
- @code-auditor @.opencode/memory/handoffs/2025-11-20-review.md
148
- ```
149
-
150
- **Key Benefits:**
151
-
152
- - ✅ Clean context per phase (no conversation pollution)
153
- - ✅ Portable bundles (share across workspaces)
154
- - ✅ Git-tracked handoffs (audit trail)
155
- - ✅ Simple workflow (just /handoff + new thread)
156
-
157
- ---
158
-
159
- ## 🎓 Learning Path
160
-
161
- **Week 1**: Use daily, document patterns
162
- **Week 2**: Refine, create custom commands if needed
163
-
164
- ---
165
-
166
- ## 🔍 Decision Tree
167
-
168
- **"Which agent should I use?"**
169
-
170
- ```
171
- Is it a simple task?
172
- ✓ → Use build directly (70% of work)
173
-
174
- Need speed over depth?
175
- ✓ → @rush (fast agent, same capabilities)
176
-
177
- Complex task (≥3 phases)?
178
- ✓ → @plan (creates implementation plan)
179
-
180
- Need research?
181
- ✓ → @scout (library docs + GitHub patterns)
182
- ✓ → @explore (codebase search)
183
-
184
- Quality gate before deployment?
185
- ✓ → @review (security + code review + debugging)
186
-
187
- UI/UX work?
188
- ✓ → @vision (mockups, visual analysis, accessibility)
189
-
190
- Everything else?
191
- ✓ → @general (fallback)
192
- ```
193
-
194
- ---
195
-
196
- ## 🛠️ Troubleshooting
197
-
198
- **"Skills not loading"**
199
- → Skills load via commands, NOT file types
200
- → Use `/design/good` to load frontend-design skill
201
- → Use `/fix/hard` to load debugging skills
202
- → Check: `ls .opencode/skills/` for all available skills
203
-
204
- **"/handoff command not available"**
205
- → Verify: `ls .opencode/command/handoff.md`
206
- → Check frontmatter has: `description`, `agent: build`
207
- → Restart OpenCode if just added
208
-
209
- **"MCP services not working"**
210
- → Check `.opencode/.env` for API keys (CONTEXT7_API_KEY, EXA_API_KEY)
211
- → Verify enabled in `.opencode/opencode.json`
212
- → See `.opencode/README.md` for complete setup guide
213
-
214
- ---
215
-
216
- ## 🎉 Success Criteria
217
-
218
- You've successfully set up OpenCodeKit when:
219
-
220
- - ✅ Agent files in place (.opencode/agent/\*.md)
221
- - ✅ Build handles 70%+ directly
222
- - ✅ Commands work (/commit, /pr, /design, /fix, /implement)
223
- - ✅ Skills load on-demand (30+ skills)
224
- - ✅ Delegation is clear (build → specialized subagents)
225
- - ✅ `/handoff` creates portable bundles (.opencode/memory/handoffs/)
226
- - ✅ Tools configured (context7, grepsearch + skill-embedded MCP)
227
- - ✅ Background plugins active (enforcer, compactor, truncator)
228
- - ✅ Custom tools available (memory-_, observation, grepsearch, lsp-_)
229
- - ✅ Environment variables set (.opencode/.env with API keys)
230
-
231
- ---
232
-
233
- ## 🔗 Resources
234
-
235
- - [OpenCode Docs](https://opencode.ai/docs/)
236
- - [Multi-Agent Pattern](https://github.com/disler/opencode-hooks-multi-agent-observability)
237
- - [Handoff Workflow Guide](.opencode/command/handoff.md)
238
- - [MCP Services Setup](.opencode/README.md)
239
-
240
- ## 📚 Documentation
241
-
242
- - **CLI Tool**: [CLI.md](./CLI.md) - `ock` command reference (init, setup, agent, skill)
243
- - **Architecture Guide**: `.opencode/AGENTS.md` - Global rules and tool priority
244
- - **MCP Services Setup**: `.opencode/README.md` - Complete environment setup
245
- - **Handoff Bundles**: `.opencode/command/handoff.md` - Clean phase transitions
246
- - **Custom Commands**: `.opencode/command/` - All 45+ workflow commands
247
- - **Skills System**: `.opencode/skills/` - 24 skills (8 core, 7 stack, 9 specialized)
248
- - **Memory System**: `.opencode/memory/` - Persistent cross-session knowledge
249
- - **Templates**: `.opencode/memory/_templates/` - PRD, observation, and session-summary templates
250
- - **Memory Tools**: `.opencode/tool/` - memory-read, memory-update, memory-search, observation
85
+ ## Documentation
251
86
 
252
- ---
87
+ - `CLI.md` - `ock` command reference
88
+ - `.opencode/README.md` - project OpenCode configuration guide
89
+ - `.opencode/AGENTS.md` - global agent rules and operating constraints
90
+ - `.opencode/plugin/README.md` - plugin architecture and tooling
253
91
 
254
- **OpenCodeKit v0.13.2**
255
- **Architecture**: Two-layer (Memory + Beads + Git)
256
- **Package**: `npx opencodekit` to scaffold new projects
257
- **New in v0.13.2**: Multimodal support for gemini-claude models (image, PDF input)
258
- **Ready for**: Daily production use
92
+ ## Notes
259
93
 
260
- Enjoy your streamlined agent system with clean phase transitions!
94
+ - Do not edit `dist/` directly; it is generated by `npm run build`.
95
+ - This repository targets Bun runtime compatibility (`engines.bun >= 1.3.2`).
package/dist/index.js CHANGED
@@ -759,9 +759,16 @@ var cac = (name = "") => new CAC(name);
759
759
  // package.json
760
760
  var package_default = {
761
761
  name: "opencodekit",
762
- version: "0.16.17",
762
+ version: "0.16.18",
763
763
  description: "CLI tool for bootstrapping and managing OpenCodeKit projects",
764
- keywords: ["agents", "cli", "mcp", "opencode", "opencodekit", "template"],
764
+ keywords: [
765
+ "agents",
766
+ "cli",
767
+ "mcp",
768
+ "opencode",
769
+ "opencodekit",
770
+ "template"
771
+ ],
765
772
  license: "MIT",
766
773
  author: "OpenCodeKit",
767
774
  repository: {
@@ -771,7 +778,10 @@ var package_default = {
771
778
  bin: {
772
779
  ock: "dist/index.js"
773
780
  },
774
- files: ["dist", "README.md"],
781
+ files: [
782
+ "dist",
783
+ "README.md"
784
+ ],
775
785
  type: "module",
776
786
  publishConfig: {
777
787
  access: "public",
@@ -785,6 +795,9 @@ var package_default = {
785
795
  typecheck: "tsc --noEmit",
786
796
  test: "bun test",
787
797
  "test:watch": "bun test --watch",
798
+ "validate:command-doc": "bun run src/validation/command-doc.ts --check",
799
+ "validate:docs-drift": "bun run src/validation/docs-drift.ts --check",
800
+ "validate:governance": "npm run validate:command-doc && npm run validate:docs-drift",
788
801
  lint: "oxlint .",
789
802
  "lint:fix": "oxlint --fix .",
790
803
  format: "oxfmt",
@@ -9258,10 +9271,10 @@ var MODEL_PRESETS = {
9258
9271
  model: "opencode/kimi-k2.5-free",
9259
9272
  agents: {
9260
9273
  build: "github-copilot/claude-opus-4.6",
9261
- plan: "github-copilot/gpt-5.2-codex",
9262
- review: "github-copilot/gpt-5.2-codex",
9274
+ plan: "openai/gpt-5.3-codex",
9275
+ review: "openai/gpt-5.3-codex",
9263
9276
  explore: "proxypal/gemini-3-flash-preview",
9264
- general: "opencode/minimax-m2.1-free",
9277
+ general: "github-copilot/gpt-5.2-codex",
9265
9278
  looker: "proxypal/gemini-3-flash-preview",
9266
9279
  vision: "proxypal/gemini-3-pro-preview",
9267
9280
  scout: "proxypal/gemini-3-flash-preview",