kraken-code 1.2.0 → 1.2.2

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 CHANGED
@@ -5,9 +5,19 @@ All notable changes to Kraken Code will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.2.2] - 2026-02-05
9
+
10
+ ### Fixed
11
+
12
+ - Removed Google OAuth auth from kraken-code codebase (should be separate package)
13
+ - Fixed duplicate logging in uninstall command when verbose mode enabled
14
+ - Added JSONC comment support to uninstall config parsing
15
+ - Removed unused KRAKEN_BUILD=1 environment variable from build scripts
16
+
8
17
  ## [5.0.0] - 2026-01-24
9
18
 
10
19
  ### Added
20
+
11
21
  - **Mode System**: 4-mode detection with 100+ keywords in 15+ languages (Blitzkrieg, Search, Analyze, Ultrathink)
12
22
  - **Session Storage**: JSONL-based todo and transcript storage for OpenCode compatibility
13
23
  - **Skill MCP Manager**: Connection pooling with 5-minute idle timeout
@@ -21,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
21
31
  - **11 Sea-Themed Agents**: Added Maelstrom, Leviathan, and Poseidon agents
22
32
 
23
33
  ### Changed
34
+
24
35
  - Fixed "ultrawork" naming to "blitzkrieg" throughout codebase
25
36
  - Improved mode detection confidence scoring
26
37
  - Enhanced session storage with JSONL format
@@ -28,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
28
39
  - Increased agent count from 10 to 11 with new Maelstrom, Leviathan, and Poseidon agents
29
40
 
30
41
  ### Fixed
42
+
31
43
  - TypeScript compilation errors in hooks
32
44
  - Import path issues for storage system
33
45
  - Mode detector keyword database
@@ -35,11 +47,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
35
47
  - Fixed test failures to achieve 88% pass rate
36
48
 
37
49
  ### Security
50
+
38
51
  - No security vulnerabilities
39
52
 
40
53
  ## [4.0.0] - 2026-01-23
41
54
 
42
55
  ### Added
56
+
43
57
  - Initial kraken-code consolidation
44
58
  - 10 sea-themed agents
45
59
  - Blitzkrieg TDD system
@@ -50,4 +64,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
50
64
  - MCP management with built-in servers
51
65
 
52
66
  ### Notes
67
+
53
68
  This is the initial release consolidating OpenChode and OpenCode-X.
package/README.md CHANGED
@@ -1,439 +1,67 @@
1
- # Kraken Code v1.1.5
1
+ # Kraken: An OpenCode Plugin
2
2
 
3
3
  <div align="center">
4
4
 
5
- ![Version](https://img.shields.io/badge/v1.1.5-brightgreen?labelColor=0e8fd0&style=flat-square)
5
+ ![Version](https://img.shields.io/badge/v1.2.1-brightgreen?labelColor=0e8fd0&style=flat-square)
6
6
  ![License](https://img.shields.io/badge/license-MIT?labelColor=black&style=flat-square)
7
7
  ![Bun](https://img.shields.io/badge/bun-1.2%2B-white?labelColor=%231F27&style=flat-square)
8
8
  ![OpenCode](https://img.shields.io/badge/compatibility-green?label=OpenCode&style=flat-square)
9
9
 
10
- </div>
11
-
12
- ---
13
-
14
- > **Kraken Code transforms OpenCode into an autonomous, high-density development environment.**
15
- > Think of it as giving OpenCode a second brain—one that remembers context, delegates intelligently, and enforces best practices automatically.
16
-
17
- ## Quick Start
18
-
19
- ### Installation
10
+ **An OpenCode plugin that transforms OpenCode into an autonomous, high-density development environment.**
20
11
 
21
- Choose your preferred installation method:
12
+ [Installation](#installation) [Documentation](./docs) [Contributing](./CONTRIBUTING.md) • [Changelog](./CHANGELOG.md)
22
13
 
23
- ```bash
24
- # Option 1: Using Bun (fastest)
25
- bun install -g kraken-code
14
+ </div>
26
15
 
27
- # Option 2: Using NPM
28
- npm install -g kraken-code
16
+ ---
29
17
 
30
- # Option 3: Using the install script (auto-detects environment)
31
- curl -fsSL https://raw.githubusercontent.com/leviathofnoesia/kraken-code/main/install.sh | bash
18
+ ## About
32
19
 
33
- # Option 4: Using Homebrew (macOS/Linux)
34
- brew tap leviathofnoesia/kraken
35
- brew install kraken-code
20
+ Kraken is a professional OpenCode plugin that adds intelligent agent orchestration, production workflow enforcement, and unified learning memory to your development process. It seamlessly integrates with OpenCode to provide specialized AI agents, TDD workflows, and persistent knowledge management.
36
21
 
37
- # Option 5: Using Docker
38
- docker pull ghcr.io/leviathofnoesia/kraken-code:latest
22
+ ## Features
39
23
 
40
- # Option 6: Download binary directly
41
- # Visit: https://github.com/leviathofnoesia/kraken-code/releases/latest
42
- ```
24
+ - **12 Specialized Agents** - Intelligent routing to context-aware specialists (Atlas, Nautilus, Abyssal, Coral, Siren, Scylla, Pearl, Maelstrom, Leviathan, Poseidon, Cartographer, and Kraken for orchestration)
25
+ - **Production Workflows** - Blitzkrieg TDD enforcement, test planning, and evidence verification
26
+ - **Learning Memory** - Persistent experiences, knowledge graphs, and pattern detection across sessions
27
+ - **MCP Integration** - Built-in web search, documentation lookup, and code search servers
43
28
 
44
- ### Initialization
45
-
46
- After installation, initialize Kraken Code:
29
+ ## Installation
47
30
 
48
31
  ```bash
49
- # Initialize with minimal setup (agents only)
50
- kraken-code init --minimal
32
+ # Using Bun (recommended)
33
+ bun install -g kraken-code
51
34
 
52
- # Or initialize with full setup (all features)
35
+ # Initialize with OpenCode
53
36
  kraken-code init --full
54
37
 
55
38
  # Run OpenCode
56
39
  opencode
57
40
  ```
58
41
 
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.
60
-
61
- For detailed installation options, run: `kraken-code --help`
62
-
63
- ---
64
-
65
- ## What Kraken Does for You
66
-
67
- ### 🧠 **Intelligent Delegation**
68
-
69
- Don't do everything yourself. Kraken routes work to the right specialist automatically:
70
-
71
- - **Architecture decisions?** → Ask **Atlas** (merged Maelstrom + Leviathan expertise)
72
- - **Deep analysis needed?** → Deploy **Abyssal** for external research
73
- - **Building UI?** → Hand to **Coral** for visual precision
74
- - **Writing docs?** → Let **Siren** craft clear documentation
75
- - **Complex test failures?** → Consult **Scylla** for test strategy
76
- - **Infrastructure work?** → **Poseidon** handles data pipelines and CI/CD
77
-
78
- ### ⚡ **Production Modes**
79
-
80
- Four expert modes that reconfigure the entire system:
81
-
82
- - **Blitzkrieg** - TDD enforcement, rapid iteration with guardrails
83
- - **Search** - Multi-angle codebase exploration with Nautilus auto-firing
84
- - **Analyze** - Deep debugging with 100+ language keyword detection
85
- - **Ultrathink** - Maximum reasoning budget for complex problems
86
-
87
- ### 🧠 **Unified Learning Memory**
88
-
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.
90
-
91
- ### 🛠 **Smart Tooling**
92
-
93
- - **GitHub integration** - PR/issue management, code search across repos
94
- - **Git integration** - Diff management, blame, commit optimization
95
- - **LSP superpowers** - Enhanced hover, code actions, refactoring
96
- - **Session search** - Find that solution from 3 sessions ago in seconds
97
-
98
- ### 📋 **Built-in Commands & Skills**
99
-
100
- 10+ commands (`kraken-code --help`) and dynamic skill loading from `~/.config/opencode/skill/`. Write a skill once, use it everywhere.
101
-
102
- ---
103
-
104
- ## Why Kraken?
105
-
106
- **OpenCode is powerful. Kraken makes it unstoppable.**
107
-
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 |
113
- | Multi-step tasks → one-shot guessing | Multi-step tasks → Atlas breaks down properly |
114
- | Change scope → context bloats out | Change scope → Learning preserves key context |
115
-
116
- **The Value Proposition:**
117
-
118
- 1. **You work faster** - Agents handle specialized tasks while you focus on the big picture
119
- 2. **Your code is better** - Blitzkrieg enforces TDD, Scylla validates tests
120
- 3. **You stop repeating work** - Learning preserves solutions, patterns, decisions
121
- 4. **You navigate larger codebases** - Nautilus finds patterns you'd miss
122
- 5. **You get unstuck faster** - Atlas breaks down complex problems before you start
123
-
124
- ---
125
-
126
- ## Core Capabilities
127
-
128
- ### 🌊 **11 Sea-Themed Agents**
129
-
130
- Each agent has a personality, a specialty, and knows when to step in:
131
-
132
- ```
133
- Kraken → Orchestrates everything, keeps you on track
134
- Atlas → Breaks down complex tasks systematically
135
- Nautilus → Explores codebases, finds patterns automatically
136
- Abyssal → Researches external docs, libraries, APIs
137
- Coral → Builds UI with design sensibility
138
- Siren → Writes clear, structured documentation
139
- Scylla → Creates comprehensive tests, validates coverage
140
- Pearl → Refactors for performance, readability
141
- Maelstrom → First-principles reasoning for hard problems
142
- Leviathan → Manages large-scale refactors, architecture
143
- Poseidon → Handles infrastructure, data pipelines
144
- ```
145
-
146
- ### 🏎️ **Blitzkrieg System**
147
-
148
- Production-ready TDD workflow:
149
-
150
- - **Test Plan Enforcer** - No implementation without test plans
151
- - **TDD Workflow** - Write tests first, verify, then implement
152
- - **Evidence Verifier** - Requires passing tests before completion
153
- - **Planner Constraints** - Limits step complexity, prevents analysis paralysis
154
-
155
- ### 💾 **Session & Learning Management**
156
-
157
- - **Session tools** - List, read, search sessions
158
- - **Learning memory** - Persist experiences, knowledge nodes, patterns, and review schedules
159
- - **JSONL storage** - OpenCode-compatible transcript format
160
- - **Todo tracking** - Persistent task tracking across sessions
161
-
162
- ### 🔌 **MCP Integration**
163
-
164
- Built-in MCP servers:
165
-
166
- - **Websearch** - Exa AI web search
167
- - **Context7** - Official documentation lookup
168
- - **Grep App** - GitHub code search
169
-
170
- ---
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
42
+ See [Installation Guide](./docs/INSTALLATION.md) for additional methods (NPM, Homebrew, Docker, binaries).
244
43
 
245
- # Run with your project mounted
246
- docker run -it -v $(pwd):/workspace ghcr.io/leviathofnoesia/kraken-code:latest
44
+ ## Documentation
247
45
 
248
- # Or run OpenCode directly
249
- docker run -it -v $(pwd):/workspace ghcr.io/leviathofnoesia/kraken-code
250
- ```
46
+ - [Architecture](./docs/ARCHITECTURE.md) - System design and module overview
47
+ - [Installation](./docs/INSTALLATION.md) - Complete setup guide
48
+ - [Commands](./docs/COMMANDS.md) - CLI reference
49
+ - [Skills](./docs/SKILLS.md) - Writing and using skills
50
+ - [Contributing](./CONTRIBUTING.md) - Development setup and guidelines
251
51
 
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:
52
+ ## Quick Reference
275
53
 
276
54
  ```bash
277
55
  # Check version
278
56
  kraken-code --version
279
57
 
280
- # Check status
58
+ # System status
281
59
  kraken-code status
282
60
 
283
- # Run diagnostics
284
- kraken-code doctor
285
-
286
- # Get help
61
+ # View help
287
62
  kraken-code --help
288
63
  ```
289
64
 
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
-
342
- ## Configuration
343
-
344
- All configuration lives in `~/.config/opencode/opencode.json`:
345
-
346
- ```json
347
- {
348
- "default_agent": "Kraken",
349
- "agents": {
350
- "Kraken": { "enabled": true, "model": "..." }
351
- },
352
- "blitzkrieg": { "enabled": true, "enforcement": "strict" },
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
- },
361
- "modes": {
362
- "blitzkrieg": { "enabled": true },
363
- "ultrathink": { "enabled": true, "thinkingBudget": 32000 }
364
- }
365
- }
366
- ```
367
-
368
- Run `kraken-code init --full` for recommended defaults.
369
-
370
- ---
371
-
372
- ## CLI Commands
373
-
374
- ```bash
375
- # Install Kraken Code
376
- kraken-code install
377
-
378
- # Initialize with full setup
379
- kraken-code init --full
380
-
381
- # Check system health
382
- kraken-code doctor
383
-
384
- # Show configuration
385
- kraken-code status
386
- ```
387
-
388
- ---
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
-
407
- ## Architecture
408
-
409
- ```
410
- src/
411
- ├── agents/ # 11 sea-themed agents
412
- ├── features/
413
- │ ├── skills/ # Skills system with discovery & hot-reload
414
- │ ├── mcp/ # Built-in MCP servers
415
- │ ├── blitzkrieg/ # TDD enforcement system
416
- │ └── storage/ # Session & learning management
417
- ├── hooks/ # 31+ hooks for extensibility
418
- ├── tools/ # LSP, session, GitHub, Git integrations
419
- ├── cli/ # Commands & doctor
420
- └── config/ # Zod schema validation
421
- ```
422
-
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).
424
-
425
- ---
426
-
427
65
  ## License
428
66
 
429
- MIT License - see [LICENSE](LICENSE) for details.
430
-
431
- ---
432
-
433
- <div align="center">
434
-
435
- **Built for developers who want more than just an AI assistant.**
436
-
437
- **Built for autonomous development.**
438
-
439
- </div>
67
+ MIT License - see [LICENSE](./LICENSE) for details.