kraken-code 1.0.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/LICENSE +21 -0
- package/README.md +216 -0
- package/dist/cli/index.js +1453 -0
- package/dist/google-auth.js +4632 -0
- package/dist/index.js +17160 -0
- package/package.json +99 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Kraken Code Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# Kraken Code v1.0
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
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
|
+
```bash
|
|
20
|
+
bun install kraken-code
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or if you don't have Bun:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install kraken-code
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
That's it. Kraken Code auto-configures and integrates seamlessly.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## What Kraken Does for You
|
|
34
|
+
|
|
35
|
+
### π§ **Intelligent Delegation**
|
|
36
|
+
|
|
37
|
+
Don't do everything yourself. Kraken routes work to the right specialist automatically:
|
|
38
|
+
|
|
39
|
+
- **Architecture decisions?** β Ask **Atlas** (merged Maelstrom + Leviathan expertise)
|
|
40
|
+
- **Deep analysis needed?** β Deploy **Abyssal** for external research
|
|
41
|
+
- **Building UI?** β Hand to **Coral** for visual precision
|
|
42
|
+
- **Writing docs?** β Let **Siren** craft clear documentation
|
|
43
|
+
- **Complex test failures?** β Consult **Scylla** for test strategy
|
|
44
|
+
- **Infrastructure work?** β **Poseidon** handles data pipelines and CI/CD
|
|
45
|
+
|
|
46
|
+
### β‘ **Production Modes**
|
|
47
|
+
|
|
48
|
+
Four expert modes that reconfigure the entire system:
|
|
49
|
+
|
|
50
|
+
- **Blitzkrieg** - TDD enforcement, rapid iteration with guardrails
|
|
51
|
+
- **Search** - Multi-angle codebase exploration with Nautilus auto-firing
|
|
52
|
+
- **Analyze** - Deep debugging with 100+ language keyword detection
|
|
53
|
+
- **Ultrathink** - Maximum reasoning budget for complex problems
|
|
54
|
+
|
|
55
|
+
### π§ **Persistent Memory**
|
|
56
|
+
|
|
57
|
+
Kratos remembers everything across sessionsβconversations, decisions, code patterns. No more repeating yourself or asking the same questions.
|
|
58
|
+
|
|
59
|
+
### π **Smart Tooling**
|
|
60
|
+
|
|
61
|
+
- **GitHub integration** - PR/issue management, code search across repos
|
|
62
|
+
- **Git integration** - Diff management, blame, commit optimization
|
|
63
|
+
- **LSP superpowers** - Enhanced hover, code actions, refactoring
|
|
64
|
+
- **Session search** - Find that solution from 3 sessions ago in seconds
|
|
65
|
+
|
|
66
|
+
### π **Built-in Commands & Skills**
|
|
67
|
+
|
|
68
|
+
10+ commands (`kraken-code --help`) and dynamic skill loading from `~/.config/opencode/skill/`. Write a skill once, use it everywhere.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Why Kraken?
|
|
73
|
+
|
|
74
|
+
**OpenCode is powerful. Kraken makes it unstoppable.**
|
|
75
|
+
|
|
76
|
+
| OpenCode Alone | With Kraken |
|
|
77
|
+
|---------------|--------------|
|
|
78
|
+
| Ask a question β forgets context | Ask a question β Kratos remembers |
|
|
79
|
+
| Do work β guess what's next | Do work β Blitzkrieg enforces quality |
|
|
80
|
+
| Explore β manual grep searches | Explore β Nautilus auto-fires on patterns |
|
|
81
|
+
| Multi-step tasks β one-shot guessing | Multi-step tasks β Atlas breaks down properly |
|
|
82
|
+
| Change scope β context bloats out | Change scope β Kratos prunes intelligently |
|
|
83
|
+
|
|
84
|
+
**The Value Proposition:**
|
|
85
|
+
|
|
86
|
+
1. **You work faster** - Agents handle specialized tasks while you focus on the big picture
|
|
87
|
+
2. **Your code is better** - Blitzkrieg enforces TDD, Scylla validates tests
|
|
88
|
+
3. **You stop repeating work** - Kratos remembers solutions, patterns, decisions
|
|
89
|
+
4. **You navigate larger codebases** - Nautilus finds patterns you'd miss
|
|
90
|
+
5. **You get unstuck faster** - Atlas breaks down complex problems before you start
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Core Capabilities
|
|
95
|
+
|
|
96
|
+
### π **11 Sea-Themed Agents**
|
|
97
|
+
|
|
98
|
+
Each agent has a personality, a specialty, and knows when to step in:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
Kraken β Orchestrates everything, keeps you on track
|
|
102
|
+
Atlas β Breaks down complex tasks systematically
|
|
103
|
+
Nautilus β Explores codebases, finds patterns automatically
|
|
104
|
+
Abyssal β Researches external docs, libraries, APIs
|
|
105
|
+
Coral β Builds UI with design sensibility
|
|
106
|
+
Siren β Writes clear, structured documentation
|
|
107
|
+
Scylla β Creates comprehensive tests, validates coverage
|
|
108
|
+
Pearl β Refactors for performance, readability
|
|
109
|
+
Maelstrom β First-principles reasoning for hard problems
|
|
110
|
+
Leviathan β Manages large-scale refactors, architecture
|
|
111
|
+
Poseidon β Handles infrastructure, data pipelines
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### ποΈ **Blitzkrieg System**
|
|
115
|
+
|
|
116
|
+
Production-ready TDD workflow:
|
|
117
|
+
|
|
118
|
+
- **Test Plan Enforcer** - No implementation without test plans
|
|
119
|
+
- **TDD Workflow** - Write tests first, verify, then implement
|
|
120
|
+
- **Evidence Verifier** - Requires passing tests before completion
|
|
121
|
+
- **Planner Constraints** - Limits step complexity, prevents analysis paralysis
|
|
122
|
+
|
|
123
|
+
### πΎ **Session & Memory Management**
|
|
124
|
+
|
|
125
|
+
- **Session tools** - List, read, search sessions
|
|
126
|
+
- **Kratos memory** - Save, search, query memories naturally
|
|
127
|
+
- **JSONL storage** - OpenCode-compatible transcript format
|
|
128
|
+
- **Todo tracking** - Persistent task tracking across sessions
|
|
129
|
+
|
|
130
|
+
### π **MCP Integration**
|
|
131
|
+
|
|
132
|
+
Built-in MCP servers:
|
|
133
|
+
|
|
134
|
+
- **Kratos** - Ultra-lean memory system
|
|
135
|
+
- **Websearch** - Exa AI web search
|
|
136
|
+
- **Context7** - Official documentation lookup
|
|
137
|
+
- **Grep App** - GitHub code search
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Configuration
|
|
142
|
+
|
|
143
|
+
All configuration lives in `~/.config/opencode/opencode.json`:
|
|
144
|
+
|
|
145
|
+
```json
|
|
146
|
+
{
|
|
147
|
+
"kraken_code": {
|
|
148
|
+
"default_agent": "Kraken",
|
|
149
|
+
"agents": {
|
|
150
|
+
"Kraken": { "enabled": true, "model": "..." }
|
|
151
|
+
},
|
|
152
|
+
"blitzkrieg": { "enabled": true, "enforcement": "strict" },
|
|
153
|
+
"kratos": { "enabled": true, "storage_path": "~/.kratos" },
|
|
154
|
+
"modes": {
|
|
155
|
+
"blitzkrieg": { "enabled": true },
|
|
156
|
+
"ultrathink": { "enabled": true, "max_tokens": 32000 }
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Run `kraken-code init --full` for recommended defaults.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## CLI Commands
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Install Kraken Code
|
|
170
|
+
kraken-code install
|
|
171
|
+
|
|
172
|
+
# Initialize with full setup
|
|
173
|
+
kraken-code init --full
|
|
174
|
+
|
|
175
|
+
# Check system health
|
|
176
|
+
kraken-code doctor
|
|
177
|
+
|
|
178
|
+
# Show configuration
|
|
179
|
+
kraken-code status
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Architecture
|
|
185
|
+
|
|
186
|
+
```
|
|
187
|
+
src/
|
|
188
|
+
βββ agents/ # 11 sea-themed agents
|
|
189
|
+
βββ features/
|
|
190
|
+
β βββ skills/ # Skills system with discovery & hot-reload
|
|
191
|
+
β βββ mcp/ # Built-in MCP servers
|
|
192
|
+
β βββ blitzkrieg/ # TDD enforcement system
|
|
193
|
+
β βββ storage/ # Session & memory management
|
|
194
|
+
βββ hooks/ # 31+ hooks for extensibility
|
|
195
|
+
βββ tools/ # LSP, session, GitHub, Git integrations
|
|
196
|
+
βββ cli/ # Commands & doctor
|
|
197
|
+
βββ config/ # Zod schema validation
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Each feature module can be enabled/disabled independently.
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## License
|
|
205
|
+
|
|
206
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
<div align="center">
|
|
211
|
+
|
|
212
|
+
**Built for developers who want more than just an AI assistant.**
|
|
213
|
+
|
|
214
|
+
**Built for autonomous development.**
|
|
215
|
+
|
|
216
|
+
</div>
|