kraken-code 1.1.3 → 1.2.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/CHANGELOG.md +53 -0
- package/README.md +237 -24
- package/assets/kraken-code.schema.json +2107 -0
- package/dist/cli/index.js +36 -1499
- package/dist/google-auth.js +52 -4611
- package/dist/index.js +146 -23823
- package/dist/kraken-code.schema.json +804 -562
- package/docs/ARCHITECTURE.md +68 -0
- package/docs/BLITZKRIEG_MODE.md +85 -0
- package/docs/EXAMPLES.md +74 -0
- package/docs/FAQ.md +21 -0
- package/docs/SKILLS_GUIDE.md +45 -0
- package/docs/TROUBLESHOOTING.md +29 -0
- package/package.json +31 -11
- package/scripts/install-curl.sh +111 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Kraken Code will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [5.0.0] - 2026-01-24
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Mode System**: 4-mode detection with 100+ keywords in 15+ languages (Blitzkrieg, Search, Analyze, Ultrathink)
|
|
12
|
+
- **Session Storage**: JSONL-based todo and transcript storage for OpenCode compatibility
|
|
13
|
+
- **Skill MCP Manager**: Connection pooling with 5-minute idle timeout
|
|
14
|
+
- **Built-in Skills**: Playwright (browser automation), Frontend-UI/UX (design guidelines), Git-Master (atomic commits)
|
|
15
|
+
- **Boss Orchestrator**: Complex task coordination with parallel execution
|
|
16
|
+
- **Claude Code Compatibility**: Settings.json hooks and plugin toggles
|
|
17
|
+
- **Multilingual Support**: 15+ languages for keyword detection
|
|
18
|
+
- **Enhanced Documentation**: Production-ready README with comprehensive configuration examples
|
|
19
|
+
- **CI/CD**: GitHub Actions workflows for automated testing and releases
|
|
20
|
+
- **Comprehensive Test Suite**: 88% test coverage (441/497 tests passing)
|
|
21
|
+
- **11 Sea-Themed Agents**: Added Maelstrom, Leviathan, and Poseidon agents
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
- Fixed "ultrawork" naming to "blitzkrieg" throughout codebase
|
|
25
|
+
- Improved mode detection confidence scoring
|
|
26
|
+
- Enhanced session storage with JSONL format
|
|
27
|
+
- Updated README for public launch with version badges
|
|
28
|
+
- Increased agent count from 10 to 11 with new Maelstrom, Leviathan, and Poseidon agents
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
- TypeScript compilation errors in hooks
|
|
32
|
+
- Import path issues for storage system
|
|
33
|
+
- Mode detector keyword database
|
|
34
|
+
- Removed lsp-tools.test.ts (LSP handled by separate agent)
|
|
35
|
+
- Fixed test failures to achieve 88% pass rate
|
|
36
|
+
|
|
37
|
+
### Security
|
|
38
|
+
- No security vulnerabilities
|
|
39
|
+
|
|
40
|
+
## [4.0.0] - 2026-01-23
|
|
41
|
+
|
|
42
|
+
### Added
|
|
43
|
+
- Initial kraken-code consolidation
|
|
44
|
+
- 10 sea-themed agents
|
|
45
|
+
- Blitzkrieg TDD system
|
|
46
|
+
- Kratos memory integration
|
|
47
|
+
- 30+ hooks for customization
|
|
48
|
+
- Skills system with templates
|
|
49
|
+
- Commands system with execution engine
|
|
50
|
+
- MCP management with built-in servers
|
|
51
|
+
|
|
52
|
+
### Notes
|
|
53
|
+
This is the initial release consolidating OpenChode and OpenCode-X.
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Kraken Code v1.
|
|
1
|
+
# Kraken Code v1.1.5
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|

|
|
7
7
|

|
|
8
8
|

|
|
@@ -16,16 +16,36 @@
|
|
|
16
16
|
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
|
19
|
+
### Installation
|
|
20
|
+
|
|
21
|
+
Choose your preferred installation method:
|
|
22
|
+
|
|
19
23
|
```bash
|
|
20
|
-
#
|
|
21
|
-
bun install kraken-code
|
|
24
|
+
# Option 1: Using Bun (fastest)
|
|
25
|
+
bun install -g kraken-code
|
|
26
|
+
|
|
27
|
+
# Option 2: Using NPM
|
|
28
|
+
npm install -g kraken-code
|
|
22
29
|
|
|
23
|
-
#
|
|
24
|
-
|
|
30
|
+
# Option 3: Using the install script (auto-detects environment)
|
|
31
|
+
curl -fsSL https://raw.githubusercontent.com/leviathofnoesia/kraken-code/main/install.sh | bash
|
|
25
32
|
|
|
26
|
-
#
|
|
27
|
-
|
|
33
|
+
# Option 4: Using Homebrew (macOS/Linux)
|
|
34
|
+
brew tap leviathofnoesia/kraken
|
|
35
|
+
brew install kraken-code
|
|
36
|
+
|
|
37
|
+
# Option 5: Using Docker
|
|
38
|
+
docker pull ghcr.io/leviathofnoesia/kraken-code:latest
|
|
39
|
+
|
|
40
|
+
# Option 6: Download binary directly
|
|
41
|
+
# Visit: https://github.com/leviathofnoesia/kraken-code/releases/latest
|
|
42
|
+
```
|
|
28
43
|
|
|
44
|
+
### Initialization
|
|
45
|
+
|
|
46
|
+
After installation, initialize Kraken Code:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
29
49
|
# Initialize with minimal setup (agents only)
|
|
30
50
|
kraken-code init --minimal
|
|
31
51
|
|
|
@@ -36,7 +56,7 @@ kraken-code init --full
|
|
|
36
56
|
opencode
|
|
37
57
|
```
|
|
38
58
|
|
|
39
|
-
**Important:**
|
|
59
|
+
**Important:** The initialization step is required. It adds the plugin to your `~/.config/opencode/opencode.json` file and sets up all Kraken Code features.
|
|
40
60
|
|
|
41
61
|
For detailed installation options, run: `kraken-code --help`
|
|
42
62
|
|
|
@@ -64,9 +84,9 @@ Four expert modes that reconfigure the entire system:
|
|
|
64
84
|
- **Analyze** - Deep debugging with 100+ language keyword detection
|
|
65
85
|
- **Ultrathink** - Maximum reasoning budget for complex problems
|
|
66
86
|
|
|
67
|
-
### 🧠 **
|
|
87
|
+
### 🧠 **Unified Learning Memory**
|
|
68
88
|
|
|
69
|
-
|
|
89
|
+
Kraken Code now includes a unified learning system that captures experiences, builds a knowledge graph, detects patterns, and schedules spaced repetition reviews across sessions.
|
|
70
90
|
|
|
71
91
|
### 🛠 **Smart Tooling**
|
|
72
92
|
|
|
@@ -85,19 +105,19 @@ Kratos remembers everything across sessions—conversations, decisions, code pat
|
|
|
85
105
|
|
|
86
106
|
**OpenCode is powerful. Kraken makes it unstoppable.**
|
|
87
107
|
|
|
88
|
-
| OpenCode Alone
|
|
89
|
-
|
|
90
|
-
| Ask a question → forgets context
|
|
91
|
-
| Do work → guess what's next
|
|
92
|
-
| Explore → manual grep searches
|
|
108
|
+
| OpenCode Alone | With Kraken |
|
|
109
|
+
| ------------------------------------ | --------------------------------------------- |
|
|
110
|
+
| Ask a question → forgets context | Ask a question → Learning retains context |
|
|
111
|
+
| Do work → guess what's next | Do work → Blitzkrieg enforces quality |
|
|
112
|
+
| Explore → manual grep searches | Explore → Nautilus auto-fires on patterns |
|
|
93
113
|
| Multi-step tasks → one-shot guessing | Multi-step tasks → Atlas breaks down properly |
|
|
94
|
-
| Change scope → context bloats out
|
|
114
|
+
| Change scope → context bloats out | Change scope → Learning preserves key context |
|
|
95
115
|
|
|
96
116
|
**The Value Proposition:**
|
|
97
117
|
|
|
98
118
|
1. **You work faster** - Agents handle specialized tasks while you focus on the big picture
|
|
99
119
|
2. **Your code is better** - Blitzkrieg enforces TDD, Scylla validates tests
|
|
100
|
-
3. **You stop repeating work** -
|
|
120
|
+
3. **You stop repeating work** - Learning preserves solutions, patterns, decisions
|
|
101
121
|
4. **You navigate larger codebases** - Nautilus finds patterns you'd miss
|
|
102
122
|
5. **You get unstuck faster** - Atlas breaks down complex problems before you start
|
|
103
123
|
|
|
@@ -132,10 +152,10 @@ Production-ready TDD workflow:
|
|
|
132
152
|
- **Evidence Verifier** - Requires passing tests before completion
|
|
133
153
|
- **Planner Constraints** - Limits step complexity, prevents analysis paralysis
|
|
134
154
|
|
|
135
|
-
### 💾 **Session &
|
|
155
|
+
### 💾 **Session & Learning Management**
|
|
136
156
|
|
|
137
157
|
- **Session tools** - List, read, search sessions
|
|
138
|
-
- **
|
|
158
|
+
- **Learning memory** - Persist experiences, knowledge nodes, patterns, and review schedules
|
|
139
159
|
- **JSONL storage** - OpenCode-compatible transcript format
|
|
140
160
|
- **Todo tracking** - Persistent task tracking across sessions
|
|
141
161
|
|
|
@@ -143,13 +163,182 @@ Production-ready TDD workflow:
|
|
|
143
163
|
|
|
144
164
|
Built-in MCP servers:
|
|
145
165
|
|
|
146
|
-
- **Kratos** - Ultra-lean memory system
|
|
147
166
|
- **Websearch** - Exa AI web search
|
|
148
167
|
- **Context7** - Official documentation lookup
|
|
149
168
|
- **Grep App** - GitHub code search
|
|
150
169
|
|
|
151
170
|
---
|
|
152
171
|
|
|
172
|
+
## Installation Guide
|
|
173
|
+
|
|
174
|
+
### Prerequisites
|
|
175
|
+
|
|
176
|
+
- **Node.js 18+** or **Bun 1.2+**
|
|
177
|
+
- **OpenCode** (will be used after installation)
|
|
178
|
+
|
|
179
|
+
### Method 1: Package Managers (Recommended)
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Using Bun (fastest)
|
|
183
|
+
bun install -g kraken-code
|
|
184
|
+
|
|
185
|
+
# Using NPM
|
|
186
|
+
npm install -g kraken-code
|
|
187
|
+
|
|
188
|
+
# Initialize
|
|
189
|
+
kraken-code init --minimal
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Method 2: Install Script
|
|
193
|
+
|
|
194
|
+
The install script auto-detects your environment and picks the best installation method:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
curl -fsSL https://raw.githubusercontent.com/leviathofnoesia/kraken-code/main/install.sh | bash
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**What it does:**
|
|
201
|
+
|
|
202
|
+
1. Detects your OS and architecture
|
|
203
|
+
2. Tries Bun → NPM → Binary download → Direct download
|
|
204
|
+
3. Auto-initializes Kraken Code
|
|
205
|
+
4. Provides clear next steps
|
|
206
|
+
|
|
207
|
+
### Method 3: Homebrew (macOS/Linux)
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
# Add the tap
|
|
211
|
+
brew tap leviathofnoesia/kraken
|
|
212
|
+
|
|
213
|
+
# Install
|
|
214
|
+
brew install kraken-code
|
|
215
|
+
|
|
216
|
+
# The formula includes shell completions and auto-initializes
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Method 4: Prebuilt Binaries
|
|
220
|
+
|
|
221
|
+
Download standalone binaries from [GitHub Releases](https://github.com/leviathofnoesia/kraken-code/releases):
|
|
222
|
+
|
|
223
|
+
| Platform | Architecture | Download |
|
|
224
|
+
| -------- | --------------------- | -------------------------------- |
|
|
225
|
+
| macOS | Intel (x64) | `kraken-code-macos-x64.tar.gz` |
|
|
226
|
+
| macOS | Apple Silicon (ARM64) | `kraken-code-macos-arm64.tar.gz` |
|
|
227
|
+
| Linux | x64 | `kraken-code-linux-x64.tar.gz` |
|
|
228
|
+
| Linux | ARM64 | `kraken-code-linux-arm64.tar.gz` |
|
|
229
|
+
| Windows | x64 | `kraken-code-windows-x64.zip` |
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
# Example: macOS Apple Silicon
|
|
233
|
+
curl -LO https://github.com/leviathofnoesia/kraken-code/releases/latest/download/kraken-code-macos-arm64.tar.gz
|
|
234
|
+
tar -xzf kraken-code-macos-arm64.tar.gz
|
|
235
|
+
sudo mv kraken-code /usr/local/bin/
|
|
236
|
+
kraken-code init --minimal
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Method 5: Docker
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
# Pull the image
|
|
243
|
+
docker pull ghcr.io/leviathofnoesia/kraken-code:latest
|
|
244
|
+
|
|
245
|
+
# Run with your project mounted
|
|
246
|
+
docker run -it -v $(pwd):/workspace ghcr.io/leviathofnoesia/kraken-code:latest
|
|
247
|
+
|
|
248
|
+
# Or run OpenCode directly
|
|
249
|
+
docker run -it -v $(pwd):/workspace ghcr.io/leviathofnoesia/kraken-code
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Method 6: Build from Source
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
# Clone the repository
|
|
256
|
+
git clone https://github.com/leviathofnoesia/kraken-code.git
|
|
257
|
+
cd kraken-code
|
|
258
|
+
|
|
259
|
+
# Install dependencies
|
|
260
|
+
bun install
|
|
261
|
+
|
|
262
|
+
# Build
|
|
263
|
+
bun run build
|
|
264
|
+
|
|
265
|
+
# Link locally (optional)
|
|
266
|
+
ln -s $(pwd)/dist/cli/index.js /usr/local/bin/kraken-code
|
|
267
|
+
|
|
268
|
+
# Initialize
|
|
269
|
+
kraken-code init --minimal
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### Verifying Installation
|
|
273
|
+
|
|
274
|
+
After installation, verify everything is working:
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
# Check version
|
|
278
|
+
kraken-code --version
|
|
279
|
+
|
|
280
|
+
# Check status
|
|
281
|
+
kraken-code status
|
|
282
|
+
|
|
283
|
+
# Run diagnostics
|
|
284
|
+
kraken-code doctor
|
|
285
|
+
|
|
286
|
+
# Get help
|
|
287
|
+
kraken-code --help
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### Updating
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
# NPM
|
|
294
|
+
npm update -g kraken-code
|
|
295
|
+
|
|
296
|
+
# Bun
|
|
297
|
+
bun update -g kraken-code
|
|
298
|
+
|
|
299
|
+
# Homebrew
|
|
300
|
+
brew upgrade kraken-code
|
|
301
|
+
|
|
302
|
+
# Docker
|
|
303
|
+
docker pull ghcr.io/leviathofnoesia/kraken-code:latest
|
|
304
|
+
|
|
305
|
+
# Binary: Download latest release manually
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Troubleshooting
|
|
309
|
+
|
|
310
|
+
**Command not found after installation:**
|
|
311
|
+
|
|
312
|
+
```bash
|
|
313
|
+
# Make sure global bin directory is in PATH
|
|
314
|
+
export PATH="$PATH:$(npm config get prefix)/bin" # NPM
|
|
315
|
+
export PATH="$PATH:$HOME/.bun/bin" # Bun
|
|
316
|
+
export PATH="$PATH:$HOME/.local/bin" # Install script
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
**Initialization fails:**
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
# Check if OpenCode config directory exists
|
|
323
|
+
mkdir -p ~/.config/opencode
|
|
324
|
+
|
|
325
|
+
# Try manual initialization
|
|
326
|
+
kraken-code init --full
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
**Permission denied:**
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
# Fix permissions (Unix)
|
|
333
|
+
sudo chown -R $(whoami) ~/.config/opencode
|
|
334
|
+
|
|
335
|
+
# Or reinstall with proper permissions
|
|
336
|
+
npm uninstall -g kraken-code
|
|
337
|
+
npm install -g kraken-code
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
---
|
|
341
|
+
|
|
153
342
|
## Configuration
|
|
154
343
|
|
|
155
344
|
All configuration lives in `~/.config/opencode/opencode.json`:
|
|
@@ -161,7 +350,14 @@ All configuration lives in `~/.config/opencode/opencode.json`:
|
|
|
161
350
|
"Kraken": { "enabled": true, "model": "..." }
|
|
162
351
|
},
|
|
163
352
|
"blitzkrieg": { "enabled": true, "enforcement": "strict" },
|
|
164
|
-
"
|
|
353
|
+
"learning": {
|
|
354
|
+
"enabled": true,
|
|
355
|
+
"storagePath": "~/.kraken/learning",
|
|
356
|
+
"experienceStore": { "enabled": true, "maxEntries": 2000 },
|
|
357
|
+
"knowledgeGraph": { "enabled": true, "maxNodes": 5000 },
|
|
358
|
+
"patternDetection": { "enabled": true, "minConfidence": 0.6 },
|
|
359
|
+
"spacedRepetition": { "enabled": true, "initialIntervalDays": 1 }
|
|
360
|
+
},
|
|
165
361
|
"modes": {
|
|
166
362
|
"blitzkrieg": { "enabled": true },
|
|
167
363
|
"ultrathink": { "enabled": true, "thinkingBudget": 32000 }
|
|
@@ -191,6 +387,23 @@ kraken-code status
|
|
|
191
387
|
|
|
192
388
|
---
|
|
193
389
|
|
|
390
|
+
## Learning Examples
|
|
391
|
+
|
|
392
|
+
```bash
|
|
393
|
+
learning_add_experience --summary "Migrated cache" \
|
|
394
|
+
--details "Adopted segmented cache to reduce churn" \
|
|
395
|
+
--tags ["performance", "caching"] \
|
|
396
|
+
--confidence 0.75
|
|
397
|
+
|
|
398
|
+
learning_add_knowledge_node --title "Segmented cache strategy" \
|
|
399
|
+
--content "Split cache into hot/warm tiers for better retention" \
|
|
400
|
+
--tags ["performance"]
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
More examples: [docs/EXAMPLES.md](docs/EXAMPLES.md).
|
|
404
|
+
|
|
405
|
+
---
|
|
406
|
+
|
|
194
407
|
## Architecture
|
|
195
408
|
|
|
196
409
|
```
|
|
@@ -200,14 +413,14 @@ src/
|
|
|
200
413
|
│ ├── skills/ # Skills system with discovery & hot-reload
|
|
201
414
|
│ ├── mcp/ # Built-in MCP servers
|
|
202
415
|
│ ├── blitzkrieg/ # TDD enforcement system
|
|
203
|
-
│ └── storage/ # Session &
|
|
416
|
+
│ └── storage/ # Session & learning management
|
|
204
417
|
├── hooks/ # 31+ hooks for extensibility
|
|
205
418
|
├── tools/ # LSP, session, GitHub, Git integrations
|
|
206
419
|
├── cli/ # Commands & doctor
|
|
207
420
|
└── config/ # Zod schema validation
|
|
208
421
|
```
|
|
209
422
|
|
|
210
|
-
Each feature module can be enabled/disabled independently.
|
|
423
|
+
Each feature module can be enabled/disabled independently. For implementation details, see [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md), [docs/EXAMPLES.md](docs/EXAMPLES.md), and [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md).
|
|
211
424
|
|
|
212
425
|
---
|
|
213
426
|
|