@plumpslabs/kuma 2.4.1 → 2.4.3
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 +14 -31
- package/dist/index.js +479 -2210
- package/package.json +1 -1
- package/packages/ide/studio/dist/index.js +2 -2
- package/packages/ide/studio/public/index.html +3 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ Kuma auto-generates:
|
|
|
49
49
|
|
|
50
50
|
## Core Architecture: 3 Pipeline-Driven Tools
|
|
51
51
|
|
|
52
|
-
Kuma
|
|
52
|
+
Kuma exposes **3 coarse-grained tools** with **13 core actions** — the full agent surface. Anything else (impact, navigate, changes, digest, drift, resume, mine, session, delete_node, clear, goal_progress, check, audit, security, gc, ast, validate, gotcha_staleness) was **removed** — not hidden, gone — so the agent never has to choose from 30+ options and there is no dead surface to maintain.
|
|
53
53
|
|
|
54
54
|
### 🧠 `kuma_context` — Context & Research
|
|
55
55
|
|
|
@@ -58,14 +58,7 @@ Kuma provides **3 coarse-grained tools** with impactful actions. Removed gimmick
|
|
|
58
58
|
| `init` | Lean project brief + restore session | 🔴 Required first |
|
|
59
59
|
| `research` | 5-step pipeline: cache → graph → scan → impact → decision | 🔴 Required before edits |
|
|
60
60
|
| `history` | Why is this file written this way (cross-session trace) | 🔴 High |
|
|
61
|
-
| `flow` |
|
|
62
|
-
| `impact` | Analyze change effects on related code | 🟡 Linear |
|
|
63
|
-
| `navigate` | Trace code flow across files | 🟡 Linear |
|
|
64
|
-
| `changes` | View change log for current session | 🟡 Linear |
|
|
65
|
-
| `rollback` | Undo a specific change by ID | 🟡 Linear |
|
|
66
|
-
| `digest` | Ultra-compact <500 token project briefing | 🟡 Linear |
|
|
67
|
-
| `drift` | Detect memory staleness & code drift | 🟡 Linear |
|
|
68
|
-
| `resume` | Load previous session context | 🟡 Linear |
|
|
61
|
+
| `flow` | Read a recorded architecture flow | 🔴 High |
|
|
69
62
|
|
|
70
63
|
### 💾 `kuma_memory` — Decision & Knowledge
|
|
71
64
|
|
|
@@ -75,11 +68,7 @@ Kuma provides **3 coarse-grained tools** with impactful actions. Removed gimmick
|
|
|
75
68
|
| `arch_flow` | Record architecture flow (max 5 core files) | 🔴 Exponential |
|
|
76
69
|
| `decision` | Record ADR-style decision with rationale | 🔴 Exponential |
|
|
77
70
|
| `research_save` | Save research findings to cache | 🟡 Linear |
|
|
78
|
-
| `
|
|
79
|
-
| `session` | View session summary | 🟢 Skip |
|
|
80
|
-
| `search` | Search knowledge graph | 🟡 Linear |
|
|
81
|
-
| `delete_node` | Remove node/gotcha from graph + table | 🟡 Linear |
|
|
82
|
-
| `goal_progress` | Track goal completion | 🟢 Skip |
|
|
71
|
+
| `search` | Quick lookup of memory + knowledge graph | 🟡 Linear |
|
|
83
72
|
|
|
84
73
|
### 🛡️ `kuma_safety` — Safety & Verification
|
|
85
74
|
|
|
@@ -87,13 +76,8 @@ Kuma provides **3 coarse-grained tools** with impactful actions. Removed gimmick
|
|
|
87
76
|
|--------|---------|--------|
|
|
88
77
|
| `guard` | Detect anti-patterns, drift, runaway loops | 🔴 Required |
|
|
89
78
|
| `verify` | Auto-run scoped tests after edits | 🔴 High |
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
| `security` | Scan for leaked secrets/tokens | 🟡 Linear |
|
|
93
|
-
| `gc` | Garbage collect stale data | 🟢 Skip |
|
|
94
|
-
| `ast` / `validate` | AST-based code validation | 🟡 Linear |
|
|
95
|
-
| `checkpoint` | Atomic snapshot before refactors | 🟡 Linear |
|
|
96
|
-
| `rollback_label` | Restore from checkpoint | 🟡 Linear |
|
|
79
|
+
| `checkpoint` | Labeled snapshot before risky work | 🟡 Linear |
|
|
80
|
+
| `rollback_label` | Restore a labeled snapshot | 🟡 Linear |
|
|
97
81
|
|
|
98
82
|
---
|
|
99
83
|
|
|
@@ -103,11 +87,11 @@ Kuma exposes exactly **3 coarse-grained tools** — the agent picks an *action*,
|
|
|
103
87
|
|
|
104
88
|
| Tool | Core Actions | Purpose |
|
|
105
89
|
|------|--------------|---------|
|
|
106
|
-
| `kuma_context` | `init`, `research`, `history` | Load project context, understand unfamiliar code |
|
|
107
|
-
| `kuma_memory` | `gotcha`, `decision`, `arch_flow`, `research_save` | Persistent knowledge that saves future sessions |
|
|
108
|
-
| `kuma_safety` | `guard`, `verify` | Pre-risk check, post-edit verification |
|
|
90
|
+
| `kuma_context` | `init`, `research`, `history`, `flow` | Load project context, understand unfamiliar code |
|
|
91
|
+
| `kuma_memory` | `gotcha`, `decision`, `arch_flow`, `research_save`, `search` | Persistent knowledge that saves future sessions |
|
|
92
|
+
| `kuma_safety` | `guard`, `verify`, `checkpoint`, `rollback_label` | Pre-risk check, post-edit verification, snapshot/restore |
|
|
109
93
|
|
|
110
|
-
Everything else is an internal action
|
|
94
|
+
Everything else is an internal action — not exposed to the agent. The agent uses its **own native tools** for editing, searching, and execution — Kuma is memory & safety, not a code manager.
|
|
111
95
|
|
|
112
96
|
### What Kuma Provides
|
|
113
97
|
|
|
@@ -205,10 +189,10 @@ A typical Kuma-powered session follows this flow:
|
|
|
205
189
|
Record what was learned for future sessions
|
|
206
190
|
|
|
207
191
|
6. VERIFY → kuma_safety({ action: 'verify' })
|
|
208
|
-
Auto-run scoped tests +
|
|
192
|
+
Auto-run scoped tests + validation
|
|
209
193
|
|
|
210
|
-
7.
|
|
211
|
-
|
|
194
|
+
7. CHECKPOINT → kuma_safety({ action: 'checkpoint', label: 'post-<feature>' })
|
|
195
|
+
Snapshot once stable — restore with rollback_label if needed
|
|
212
196
|
```
|
|
213
197
|
|
|
214
198
|
---
|
|
@@ -224,9 +208,8 @@ Kuma stores all context locally in `.kuma/`:
|
|
|
224
208
|
├── memory.json # Session state + metrics (auto)
|
|
225
209
|
├── auto-gotcha.json # Self-learning loop state (auto)
|
|
226
210
|
├── policy.yml # OPTIONAL safety policy — only read if you create it
|
|
227
|
-
├── memories/ #
|
|
211
|
+
├── memories/ # Decision log markdown (decisions.md)
|
|
228
212
|
├── checkpoints/ # Atomic snapshots (label/ with kuma.db + files/)
|
|
229
|
-
└── scratch/ # Temp debug artifacts (auto, ephemeral)
|
|
230
213
|
```
|
|
231
214
|
|
|
232
215
|
> Hooks are registered in `.claude/settings.json` (PreToolUse) — not stored under `.kuma/`.
|
|
@@ -246,7 +229,7 @@ Kuma stores all context locally in `.kuma/`:
|
|
|
246
229
|
| **Impact** | Agent doesn't know what's affected | Impact analysis traces dependencies |
|
|
247
230
|
| **Coordination** | Multiple agents conflict | Per-agent session state + audit trail avoid collisions |
|
|
248
231
|
| **Memory** | Agent repeats past mistakes | Decision memory + gotchas prevent loops |
|
|
249
|
-
| **Reversibility** | Hard to undo changes | Checkpoint snapshots +
|
|
232
|
+
| **Reversibility** | Hard to undo changes | Checkpoint snapshots + rollback_label |
|
|
250
233
|
| **Staleness** | Knowledge becomes outdated | Drift detection + gotcha staleness checks flag stale data |
|
|
251
234
|
|
|
252
235
|
---
|