kodelyth-ecc 1.2.2 → 1.4.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/AGENTS.md +101 -181
- package/CHANGELOG.md +67 -0
- package/CLAUDE.md +72 -63
- package/KODELYTH.md +79 -44
- package/README.md +244 -192
- package/VERSION +1 -1
- package/agents/dependency-doctor.md +120 -0
- package/agents/env-debugger.md +154 -0
- package/agents/flake-hunter.md +142 -0
- package/agents/git-rescue.md +133 -0
- package/agents/kodelyth-memory.md +87 -0
- package/agents/release-captain.md +190 -0
- package/bin/kodelyth-ecc.js +18 -12
- package/commands/memory.md +62 -0
- package/hooks/hooks.json +26 -0
- package/hooks/memory/capture-stop.js +88 -0
- package/hooks/memory/inject-start.js +60 -0
- package/install.ps1 +28 -9
- package/install.sh +11 -97
- package/package.json +4 -2
- package/rules/common/agent-intent-routing.md +337 -0
- package/rules/common/memory-protocol.md +56 -0
- package/scripts/memory/cli.js +200 -0
- package/scripts/memory/extract.js +176 -0
- package/scripts/memory/inject.js +145 -0
- package/scripts/memory/store.js +300 -0
- package/skills/agent-handoff/SKILL.md +184 -0
- package/skills/intent-routing/SKILL.md +134 -0
- package/skills/kodelyth-memory/SKILL.md +136 -0
- package/tests/memory/store.test.js +121 -0
- package/dashboard/lib/agent-tracker.js +0 -366
- package/dashboard/lib/aggregator.js +0 -119
- package/dashboard/lib/cost-calculator.js +0 -50
- package/dashboard/lib/platform-detector.js +0 -89
- package/dashboard/lib/readers/antigravity-reader.js +0 -113
- package/dashboard/lib/readers/claude-reader.js +0 -135
- package/dashboard/lib/readers/codex-reader.js +0 -192
- package/dashboard/lib/readers/cursor-reader.js +0 -135
- package/dashboard/lib/readers/opencode-reader.js +0 -201
- package/dashboard/lib/readers/windsurf-reader.js +0 -146
- package/dashboard/package.json +0 -24
- package/dashboard/public/index.html +0 -1221
- package/dashboard/server.js +0 -119
- package/scripts/agent-tracker-hook.js +0 -81
- package/social/readme-lens.svg +0 -140
- package/social/readme-savings.svg +0 -56
package/AGENTS.md
CHANGED
|
@@ -1,209 +1,129 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AGENTS.md
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
**Version:** 1.1.0
|
|
3
|
+
This file is read by AI agents (Cascade, Cursor, Codex, etc.) on every session. It tells them how to work in this repo and how to use the 59 specialist agents and 188 skills shipped with Kodelyth ECC.
|
|
6
4
|
|
|
7
5
|
---
|
|
8
6
|
|
|
9
|
-
##
|
|
7
|
+
## Repo Identity
|
|
8
|
+
|
|
9
|
+
**Kodelyth ECC** — a production-grade AI coding toolkit installed into your `~/.claude/`, `.windsurf/`, `.cursor/`, `~/.codex/`, `.agent/`, or `.opencode/` directory by `npx kodelyth-ecc`.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
2. **Test-Driven** — Write tests before implementation, 80%+ coverage required
|
|
13
|
-
3. **Security-First** — Never compromise on security; validate all inputs
|
|
14
|
-
4. **Immutability** — Always create new objects, never mutate existing ones
|
|
15
|
-
5. **Plan Before Execute** — Plan complex features before writing code
|
|
16
|
-
6. **Friendly by Default** — Guide clearly, respond to the person not just the problem
|
|
17
|
-
7. **Debug to Root Cause** — Never guess at fixes; trace errors systematically
|
|
18
|
-
8. **SVG Over Emoji** — Never use decorative emoji in responses or docs; use SVG badges and icons in rendered Markdown, plain Unicode symbols (✓ ✗) in terminal output only
|
|
19
|
-
9. **Budget-First** — Default to the lightest model that solves the problem. Never escalate model tier or spawn additional agents unless the lighter option demonstrably fails. Every token costs money.
|
|
11
|
+
This repo is the **source of truth** that ships those files. When working in this repo, you are editing the toolkit itself.
|
|
20
12
|
|
|
21
13
|
---
|
|
22
14
|
|
|
23
|
-
##
|
|
15
|
+
## How to Use the Toolkit (For End Users)
|
|
16
|
+
|
|
17
|
+
The toolkit has two activation paths:
|
|
18
|
+
|
|
19
|
+
### 1. Explicit invocation
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
use kodelyth-advisor
|
|
23
|
+
@debug-detective
|
|
24
|
+
invoke security-reviewer
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 2. Implicit (intent routing)
|
|
28
|
+
|
|
29
|
+
The user describes their problem in plain language. You — the AI — read it, identify the right specialist, **announce the routing**, and **behave as that agent**.
|
|
30
|
+
|
|
31
|
+
The full intent → agent mapping lives in `rules/common/agent-intent-routing.md` and is loaded automatically on every session. Memorize the priority tiers:
|
|
32
|
+
|
|
33
|
+
| Tier | Theme |
|
|
34
|
+
|---|---|
|
|
35
|
+
| 1 | Crisis / emotional state (`kodelyth-advisor`, `pair-programmer`) |
|
|
36
|
+
| 2 | Active pain — broken (`debug-detective`, `build-error-resolver`, `env-debugger`, `silent-failure-hunter`) |
|
|
37
|
+
| 3 | Quality & review (`code-reviewer`, `security-reviewer`, `ux-reviewer`, `api-guardian`) |
|
|
38
|
+
| 4 | Performance (`performance-optimizer`) |
|
|
39
|
+
| 5 | Planning / architecture (`planner`, `architect`, `code-architect`, `migration-guide`) |
|
|
40
|
+
| 6 | Testing (`tdd-guide`, `e2e-runner`, `pr-test-analyzer`, `flake-hunter`) |
|
|
41
|
+
| 7 | Code hygiene (`refactor-cleaner`, `code-simplifier`, `type-design-analyzer`) |
|
|
42
|
+
| 8 | Documentation (`doc-updater`, `docs-lookup`, `comment-analyzer`) |
|
|
43
|
+
| 9 | Specialized (`seo-specialist`, `opensource-*`, `dependency-doctor`, `git-rescue`, `release-captain`) |
|
|
44
|
+
| 10 | Multi-agent handoffs |
|
|
45
|
+
|
|
46
|
+
### Routing format (mandatory)
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
→ Routing to <agent-name> (<one-line reason>)
|
|
50
|
+
|
|
51
|
+
[response in that agent's persona]
|
|
52
|
+
|
|
53
|
+
Tip: next time you can type "use <agent-name>" to invoke me directly.
|
|
54
|
+
```
|
|
24
55
|
|
|
25
|
-
|
|
26
|
-
|---|---|---|
|
|
27
|
-
| kodelyth-advisor | Master guide — picks the right tool for your situation | Not sure where to start |
|
|
28
|
-
| debug-detective | Root cause analyst — never guesses, always traces | Bug that resists fixing |
|
|
29
|
-
| ux-reviewer | UX + WCAG 2.1 AA reviewer — never touches design | After building any frontend |
|
|
30
|
-
| api-guardian | API contract protector — catches breaking changes | Before any PR touching API routes |
|
|
31
|
-
| pair-programmer | Live thinking partner — catches wrong approach before coding | Before implementing anything non-trivial |
|
|
32
|
-
| migration-guide | Framework/language migration specialist | Upgrading any major dependency |
|
|
56
|
+
Never silently switch personas. Always teach the user the explicit form.
|
|
33
57
|
|
|
34
58
|
---
|
|
35
59
|
|
|
36
|
-
##
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
|
49
|
-
|
|
50
|
-
|
|
|
51
|
-
| typescript-reviewer | TypeScript/JavaScript review | TS/JS projects |
|
|
52
|
-
| python-reviewer | Python review | Python projects |
|
|
53
|
-
| go-reviewer | Go review | Go projects |
|
|
54
|
-
| rust-reviewer | Rust review | Rust projects |
|
|
55
|
-
| java-reviewer | Java/Spring Boot review | Java projects |
|
|
56
|
-
| kotlin-reviewer | Kotlin/Android/KMP review | Kotlin projects |
|
|
57
|
-
| cpp-reviewer | C++ review | C++ projects |
|
|
58
|
-
| csharp-reviewer | C#/.NET review | C# projects |
|
|
59
|
-
| flutter-reviewer | Flutter/Dart review | Flutter projects |
|
|
60
|
-
| database-reviewer | PostgreSQL/Supabase review | Schema and query design |
|
|
61
|
-
| healthcare-reviewer | Clinical safety and PHI | Healthcare applications |
|
|
62
|
-
|
|
63
|
-
### Build Error Resolution
|
|
64
|
-
| Agent | Purpose | When to Use |
|
|
65
|
-
|---|---|---|
|
|
66
|
-
| build-error-resolver | General build errors | When build fails |
|
|
67
|
-
| go-build-resolver | Go build errors | Go build failures |
|
|
68
|
-
| rust-build-resolver | Rust/Cargo errors | Rust build failures |
|
|
69
|
-
| java-build-resolver | Java/Maven/Gradle errors | Java build failures |
|
|
70
|
-
| kotlin-build-resolver | Kotlin/Gradle errors | Kotlin build failures |
|
|
71
|
-
| cpp-build-resolver | C++/CMake errors | C++ build failures |
|
|
72
|
-
| dart-build-resolver | Dart/Flutter errors | Dart/Flutter failures |
|
|
73
|
-
| pytorch-build-resolver | PyTorch/CUDA errors | ML training crashes |
|
|
74
|
-
|
|
75
|
-
### Debugging
|
|
76
|
-
| Agent | Purpose | When to Use |
|
|
77
|
-
|---|---|---|
|
|
78
|
-
| debug-detective | Root cause analysis | Any hard-to-find bug |
|
|
79
|
-
| silent-failure-hunter | Find swallowed errors | Silent bugs, bad fallbacks |
|
|
80
|
-
|
|
81
|
-
### Security
|
|
82
|
-
| Agent | Purpose | When to Use |
|
|
83
|
-
|---|---|---|
|
|
84
|
-
| security-reviewer | Vulnerability detection | Before commits, sensitive code |
|
|
85
|
-
|
|
86
|
-
### UX & Design
|
|
87
|
-
| Agent | Purpose | When to Use |
|
|
88
|
-
|---|---|---|
|
|
89
|
-
| ux-reviewer | UX and accessibility review | After building any UI |
|
|
90
|
-
|
|
91
|
-
### Code Quality
|
|
92
|
-
| Agent | Purpose | When to Use |
|
|
93
|
-
|---|---|---|
|
|
94
|
-
| refactor-cleaner | Dead code cleanup | Code maintenance |
|
|
95
|
-
| code-simplifier | Simplify for clarity | After complex changes |
|
|
96
|
-
| performance-optimizer | Bottleneck analysis | When something is slow |
|
|
97
|
-
| type-design-analyzer | Type design review | Type safety improvements |
|
|
98
|
-
| comment-analyzer | Comment quality review | Documentation hygiene |
|
|
99
|
-
| code-explorer | Codebase exploration | Understanding unfamiliar code |
|
|
100
|
-
|
|
101
|
-
### Testing
|
|
102
|
-
| Agent | Purpose | When to Use |
|
|
103
|
-
|---|---|---|
|
|
104
|
-
| tdd-guide | Test-driven development | New features, bug fixes |
|
|
105
|
-
| e2e-runner | End-to-end Playwright tests | Critical user flows |
|
|
106
|
-
| pr-test-analyzer | PR test coverage review | Before merging PRs |
|
|
107
|
-
|
|
108
|
-
### Documentation
|
|
109
|
-
| Agent | Purpose | When to Use |
|
|
110
|
-
|---|---|---|
|
|
111
|
-
| doc-updater | Documentation updates | Updating READMEs, codemaps |
|
|
112
|
-
| docs-lookup | API docs via Context7 | Library/API questions |
|
|
113
|
-
| seo-specialist | SEO audit and optimization | Web content and metadata |
|
|
114
|
-
|
|
115
|
-
### Open Source
|
|
116
|
-
| Agent | Purpose | When to Use |
|
|
117
|
-
|---|---|---|
|
|
118
|
-
| opensource-forker | Fork for open-sourcing | Strip secrets, clean history |
|
|
119
|
-
| opensource-packager | Package for public release | README, setup, license |
|
|
120
|
-
| opensource-sanitizer | Verify sanitization | Before public release |
|
|
121
|
-
|
|
122
|
-
### Advanced Orchestration
|
|
123
|
-
| Agent | Purpose | When to Use |
|
|
124
|
-
|---|---|---|
|
|
125
|
-
| loop-operator | Manage autonomous agent loops | Long-running agent tasks |
|
|
126
|
-
| harness-optimizer | Tune harness config | Reliability and cost |
|
|
127
|
-
| conversation-analyzer | Analyze transcripts for hooks | Hook configuration |
|
|
128
|
-
| gan-planner | GAN spec expansion | GAN harness workflows |
|
|
129
|
-
| gan-generator | GAN feature implementation | GAN harness workflows |
|
|
130
|
-
| gan-evaluator | GAN evaluation via Playwright | GAN harness workflows |
|
|
60
|
+
## Multi-Agent Chains
|
|
61
|
+
|
|
62
|
+
Standard chains documented in `skills/agent-handoff/SKILL.md`:
|
|
63
|
+
|
|
64
|
+
| Workflow | Chain |
|
|
65
|
+
|---|---|
|
|
66
|
+
| New feature | `pair-programmer` → `tdd-guide` → impl → `code-reviewer` → `security-reviewer` (if sensitive) |
|
|
67
|
+
| Bug fix | `debug-detective` → `tdd-guide` (regression test) → `refactor-cleaner` (optional) |
|
|
68
|
+
| Refactor | `code-explorer` → `refactor-cleaner` → `tdd-guide` → `code-reviewer` |
|
|
69
|
+
| API change | `api-guardian` → `pair-programmer` → `tdd-guide` → `doc-updater` |
|
|
70
|
+
| Migration | `migration-guide` → `pair-programmer` (per phase) → `pr-test-analyzer` |
|
|
71
|
+
| Build broken | `build-error-resolver` → `dependency-doctor` (if dep) or `env-debugger` (if env) |
|
|
72
|
+
| Flaky CI | `flake-hunter` → `tdd-guide` → `release-captain` (if it gates a release) |
|
|
73
|
+
| Open-source | `opensource-forker` → `opensource-sanitizer` → `opensource-packager` → `release-captain` |
|
|
74
|
+
| Git crisis | `git-rescue` → `release-captain` (if a release was midway) |
|
|
131
75
|
|
|
132
76
|
---
|
|
133
77
|
|
|
134
|
-
##
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
-
|
|
143
|
-
- `/golang-patterns` — Go best practices
|
|
144
|
-
- `/rust-patterns` — Rust best practices
|
|
145
|
-
- `/kotlin-patterns` — Kotlin/Android patterns
|
|
146
|
-
- `/springboot-patterns` — Java Spring Boot
|
|
147
|
-
|
|
148
|
-
### Architecture & Backend
|
|
149
|
-
- `/backend-patterns` — Service and repository layers
|
|
150
|
-
- `/api-design` — REST API conventions
|
|
151
|
-
- `/hexagonal-architecture` — Ports and adapters
|
|
152
|
-
- `/postgres-patterns` — Database design and queries
|
|
153
|
-
- `/docker-patterns` — Container patterns
|
|
154
|
-
- `/deployment-patterns` — CI/CD and deployment
|
|
155
|
-
|
|
156
|
-
### Testing
|
|
157
|
-
- `/tdd-workflow` — TDD step by step
|
|
158
|
-
- `/python-testing` — Python test patterns
|
|
159
|
-
- `/golang-testing` — Go test patterns
|
|
160
|
-
- `/e2e-testing` — End-to-end test patterns
|
|
161
|
-
|
|
162
|
-
### Security
|
|
163
|
-
- `/security-review` — Security audit guide
|
|
164
|
-
- `/security-scan` — AgentShield vulnerability scan
|
|
165
|
-
|
|
166
|
-
### Frontend
|
|
167
|
-
- `/frontend-patterns` — React component patterns
|
|
168
|
-
- `/nextjs-turbopack` — Next.js App Router patterns
|
|
169
|
-
- `/coding-standards` — Universal baseline
|
|
78
|
+
## When Working IN This Repo (Toolkit Development)
|
|
79
|
+
|
|
80
|
+
When the user is editing this repo (the toolkit source itself):
|
|
81
|
+
|
|
82
|
+
1. **Adding a new agent** — create `agents/<name>.md` AND update `rules/common/agent-intent-routing.md` with trigger patterns. Also update `README.md` agent count and category table.
|
|
83
|
+
2. **Adding a new skill** — create `skills/<name>/SKILL.md`. If it's a routing/handoff/meta skill, link it from `skills/intent-routing/SKILL.md` or `skills/agent-handoff/SKILL.md`.
|
|
84
|
+
3. **Changing install behavior** — update BOTH `install.sh` (mac/linux) AND `install.ps1` (Windows). Verify with `npm test`.
|
|
85
|
+
4. **Bumping versions** — update BOTH `package.json` AND `VERSION`. Update `CHANGELOG.md`. Tag with `vX.Y.Z`.
|
|
86
|
+
5. **Cross-platform changes** — test `node bin/kodelyth-ecc.js --help` and the install scripts on at least one platform.
|
|
170
87
|
|
|
171
88
|
---
|
|
172
89
|
|
|
173
|
-
##
|
|
90
|
+
## Code Style for This Repo
|
|
174
91
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
| `/tdd` | Test-driven development workflow |
|
|
180
|
-
| `/plan` | Implementation planning |
|
|
181
|
-
| `/code-review` | Quality review |
|
|
182
|
-
| `/build-fix` | Fix build errors |
|
|
183
|
-
| `/e2e` | Generate and run E2E tests |
|
|
184
|
-
| `/learn` | Extract patterns from session |
|
|
185
|
-
| `/security-scan` | Run AgentShield security scan |
|
|
92
|
+
- **Markdown** — sentence case, fenced code blocks with language tag, no emojis unless in social SVGs
|
|
93
|
+
- **Bash** — POSIX-compatible where possible; macOS bash 3.2 is the floor
|
|
94
|
+
- **PowerShell** — match feature parity with `install.sh`
|
|
95
|
+
- **Node** — ES modules, Node 18+, no external runtime deps in `bin/` (use built-ins only)
|
|
186
96
|
|
|
187
97
|
---
|
|
188
98
|
|
|
189
|
-
##
|
|
99
|
+
## Tests
|
|
190
100
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
| MCP health check | Validates MCP servers before calling |
|
|
199
|
-
| Cost tracker | Logs token usage per session |
|
|
200
|
-
| Desktop notify | macOS notification on task complete |
|
|
101
|
+
Run before any commit:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
npm test
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
There are 38 tests covering hooks logic, file detection, and intent matching. Never weaken or skip tests; if behavior must change, update the test first.
|
|
201
108
|
|
|
202
109
|
---
|
|
203
110
|
|
|
204
|
-
##
|
|
111
|
+
## What This Repo Does NOT Have
|
|
112
|
+
|
|
113
|
+
- ❌ Cloud telemetry, analytics, dashboards (Lens was removed in v1.3.0 — it gave inaccurate cross-platform data)
|
|
114
|
+
- ❌ Background daemons or auto-running servers
|
|
115
|
+
- ❌ Required external services or accounts
|
|
116
|
+
|
|
117
|
+
This is markdown + shell + a thin Node wrapper. Keep it that way.
|
|
118
|
+
|
|
119
|
+
---
|
|
205
120
|
|
|
206
|
-
|
|
207
|
-
Enhanced by **Kodelyth** — v1.0.0.
|
|
121
|
+
## Useful Slash Commands When Editing This Repo
|
|
208
122
|
|
|
209
|
-
|
|
123
|
+
```
|
|
124
|
+
/kodelyth-quickstart Read first if new
|
|
125
|
+
/intent-routing Understand the routing rule
|
|
126
|
+
/agent-handoff Understand chain protocol
|
|
127
|
+
/skill-create Generate a new skill
|
|
128
|
+
/code-review Review your changes before commit
|
|
129
|
+
```
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,73 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to Kodelyth ECC are documented here.
|
|
4
4
|
|
|
5
|
+
## v1.4.0 — Local Self-Learning Memory (May 2026)
|
|
6
|
+
|
|
7
|
+
### Added — Kodelyth Memory
|
|
8
|
+
- **Local self-learning memory store** — captures problems and solutions from past sessions, recalls them when relevant in future sessions
|
|
9
|
+
- **Zero dependencies, zero telemetry** — all memory lives at `~/.kodelyth/memory/` (override with `KODELYTH_MEMORY_DIR`)
|
|
10
|
+
- **BM25 retrieval** — pure JS keyword + tag search, sub-millisecond, no embeddings, no network
|
|
11
|
+
- **Cache-friendly injection** — context block is structured with stable prefix → variable suffix to maximise prompt-cache hits on Anthropic and OpenAI models
|
|
12
|
+
- **Model-agnostic** — works for Claude, GPT, Gemini, Llama, any model. Prompt-cache savings apply where the provider supports it; recall quality applies everywhere
|
|
13
|
+
- **Privacy-first** — never auto-stores. Stop hook extracts candidates → user reviews via `/memory review-pending` → user confirms before storing
|
|
14
|
+
|
|
15
|
+
### New files
|
|
16
|
+
- `agents/kodelyth-memory.md` — agent persona and protocols
|
|
17
|
+
- `skills/kodelyth-memory/SKILL.md` — when and how to use the memory system
|
|
18
|
+
- `commands/memory.md` — `/memory` slash command
|
|
19
|
+
- `rules/common/memory-protocol.md` — mid-session recall + capture rules
|
|
20
|
+
- `scripts/memory/store.js` — BM25 storage + retrieval
|
|
21
|
+
- `scripts/memory/inject.js` — cache-friendly context block builder
|
|
22
|
+
- `scripts/memory/extract.js` — heuristic learning extractor for session JSONL
|
|
23
|
+
- `scripts/memory/cli.js` — CLI entry point
|
|
24
|
+
- `hooks/memory/inject-start.js` — SessionStart hook
|
|
25
|
+
- `hooks/memory/capture-stop.js` — Stop hook
|
|
26
|
+
- `tests/memory/store.test.js` — 12 new tests (38 total passing)
|
|
27
|
+
|
|
28
|
+
### Honest disclosure
|
|
29
|
+
- "Self-learning" means **better context retrieval over time**, not model fine-tuning. The LLM is unchanged. We give it smarter context.
|
|
30
|
+
- Cloud-AI platforms (Windsurf, Antigravity, partial Cursor) store sessions server-side. Auto-extract from past sessions doesn't work there. Manual `/memory remember` still does.
|
|
31
|
+
|
|
32
|
+
### Counts
|
|
33
|
+
- Agents: 58 → **59** (+kodelyth-memory)
|
|
34
|
+
- Skills: 187 → **188** (+kodelyth-memory)
|
|
35
|
+
- Commands: 79 (+`/memory`, total stays 79 — replaces no slash)
|
|
36
|
+
- Rules: 15 → **16** (+memory-protocol)
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## v1.3.0 — God-Tier Intent Routing + 5 New Agents (May 2026)
|
|
41
|
+
|
|
42
|
+
### Removed
|
|
43
|
+
- **Kodelyth Lens dashboard** — bundled local dashboard removed. Cloud-AI platforms (Windsurf, Antigravity, parts of Cursor) don't expose token/cost data locally, which led to inaccurate or hardcoded zeros. The toolkit is now leaner and only does what it can do honestly.
|
|
44
|
+
- `dashboard/` folder, `scripts/agent-tracker-hook.js`, Lens auto-start logic in `install.sh`, Lens social SVGs
|
|
45
|
+
|
|
46
|
+
### Added — God-Tier Intent Routing Rule
|
|
47
|
+
- New `rules/common/agent-intent-routing.md` — auto-loaded on every session
|
|
48
|
+
- 10 priority tiers (crisis → multi-agent chains)
|
|
49
|
+
- 50+ trigger pattern groups across emotional state, error keywords, language hints, framework signals
|
|
50
|
+
- Mandatory routing format: `→ Routing to <agent>` + persona switch + explicit-form teaching
|
|
51
|
+
- Counter-patterns (when NOT to route) baked in
|
|
52
|
+
- Documents standard chains for new feature, bug fix, refactor, migration, OSS prep, git crisis
|
|
53
|
+
|
|
54
|
+
### Added — 5 New Specialist Agents
|
|
55
|
+
- `dependency-doctor` — npm/pip/cargo/maven dep hell, CVE triage, lockfile diagnosis, safe upgrade plans
|
|
56
|
+
- `git-rescue` — recovers broken git states (lost commits, bad rebases, force-pushes) without destroying history
|
|
57
|
+
- `release-captain` — owns the release ritual (semver, changelog, tagging, publishing, rollback rehearsal)
|
|
58
|
+
- `env-debugger` — "works on my machine" hunter (env vars, config layers, secrets, build-time vs runtime)
|
|
59
|
+
- `flake-hunter` — flaky test stabilization with 6-class taxonomy and real fixes (never adds blind retries)
|
|
60
|
+
|
|
61
|
+
### Added — 2 New Meta Skills
|
|
62
|
+
- `skills/intent-routing/SKILL.md` — documents the routing system, priority tiers, trigger design rules
|
|
63
|
+
- `skills/agent-handoff/SKILL.md` — standard multi-agent chain protocol with 10 documented chains
|
|
64
|
+
|
|
65
|
+
### Updated
|
|
66
|
+
- `README.md` — full rewrite emphasizing intent routing as the differentiator
|
|
67
|
+
- `KODELYTH.md` — reflects v1.3.0 changes
|
|
68
|
+
- `CLAUDE.md`, `AGENTS.md` — updated agent counts, intent routing guidance
|
|
69
|
+
- `install.sh` — removed all Lens install/auto-start blocks
|
|
70
|
+
- Counts: 58 agents (was 53), 187 skills (was 185), 79 commands, 15 rules (was 14)
|
|
71
|
+
|
|
5
72
|
## v1.2.0 — Lens Dashboard + Windsurf + npx (May 2026)
|
|
6
73
|
|
|
7
74
|
### Kodelyth Lens — AI Usage Dashboard
|
package/CLAUDE.md
CHANGED
|
@@ -1,90 +1,99 @@
|
|
|
1
1
|
# CLAUDE.md
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Guidance for Claude Code when working with this repository.
|
|
4
4
|
|
|
5
5
|
## Project Overview
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Kodelyth ECC** — a production-grade AI coding toolkit:
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
- **59 specialist agents** — debug-detective, code-reviewer, security-reviewer, kodelyth-memory, etc.
|
|
10
|
+
- **188 skills** — domain knowledge, patterns, testing, security, intent routing, local memory
|
|
11
|
+
- **80 commands** — slash workflows (`/tdd`, `/plan`, `/code-review`, `/memory`, ...)
|
|
12
|
+
- **18+ hooks** — automated quality gates, session memory, memory inject + capture
|
|
13
|
+
- **16 rules** — always-on coding standards + intent routing + memory protocol
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
node tests/lib/utils.test.js
|
|
17
|
-
node tests/lib/package-manager.test.js
|
|
18
|
-
node tests/hooks/hooks.test.js
|
|
19
|
-
```
|
|
15
|
+
Works with Claude Code, Windsurf, Cursor, Codex CLI, Antigravity, and OpenCode.
|
|
20
16
|
|
|
21
17
|
## Architecture
|
|
22
18
|
|
|
23
|
-
|
|
19
|
+
```
|
|
20
|
+
agents/ → Specialist subagents (planner, code-reviewer, debug-detective, ...)
|
|
21
|
+
skills/ → Workflow + domain knowledge files (loadable via slash commands)
|
|
22
|
+
commands/ → Slash commands users invoke directly
|
|
23
|
+
hooks/ → Trigger-based automations (pre-commit, session memory, etc.)
|
|
24
|
+
rules/ → Always-on guidelines including agent-intent-routing.md
|
|
25
|
+
scripts/ → Cross-platform Node.js utilities for hooks and setup
|
|
26
|
+
tests/ → Test suite for scripts and hooks
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Running Tests
|
|
24
30
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- **mcp-configs/** - MCP server configurations for external integrations
|
|
31
|
-
- **scripts/** - Cross-platform Node.js utilities for hooks and setup
|
|
32
|
-
- **tests/** - Test suite for scripts and utilities
|
|
31
|
+
```bash
|
|
32
|
+
npm test
|
|
33
|
+
# or directly
|
|
34
|
+
node tests/run-all.js
|
|
35
|
+
```
|
|
33
36
|
|
|
34
|
-
##
|
|
37
|
+
## Intent Routing (v1.3.0+)
|
|
35
38
|
|
|
36
|
-
-
|
|
37
|
-
- `/plan` - Implementation planning
|
|
38
|
-
- `/e2e` - Generate and run E2E tests
|
|
39
|
-
- `/code-review` - Quality review
|
|
40
|
-
- `/build-fix` - Fix build errors
|
|
41
|
-
- `/learn` - Extract patterns from sessions
|
|
42
|
-
- `/skill-create` - Generate skills from git history
|
|
43
|
-
- `/kodelyth-quickstart` - Friendly plain-language getting-started guide (Kodelyth)
|
|
44
|
-
- `/smart-debug` - Systematic debugging methodology (Kodelyth)
|
|
39
|
+
The toolkit ships with a god-tier intent routing rule (`rules/common/agent-intent-routing.md`) that auto-loads on every session. It maps user intent → specialist agent across 10 priority tiers.
|
|
45
40
|
|
|
46
|
-
|
|
41
|
+
When a user message matches a routing pattern, you MUST:
|
|
47
42
|
|
|
48
|
-
|
|
43
|
+
1. Acknowledge with `→ Routing to <agent>` (one line)
|
|
44
|
+
2. Behave as that agent for the response
|
|
45
|
+
3. Suggest the explicit form: `Tip: type "use <agent>"`
|
|
46
|
+
4. Never silently route — transparency is mandatory
|
|
49
47
|
|
|
50
|
-
|
|
51
|
-
|---|---|---|
|
|
52
|
-
| Agent | `kodelyth-advisor` | Guides users to the right agent/skill for their task |
|
|
53
|
-
| Agent | `debug-detective` | Traces bugs to root cause systematically, never guesses |
|
|
54
|
-
| Agent | `ux-reviewer` | Reviews frontend for UX quality and WCAG 2.1 accessibility |
|
|
55
|
-
| Skill | `kodelyth-quickstart` | Plain-language intro for new users |
|
|
56
|
-
| Skill | `smart-debug` | Structured 5-step debugging framework |
|
|
48
|
+
## Key Commands
|
|
57
49
|
|
|
58
|
-
|
|
50
|
+
- `/kodelyth-quickstart` — friendly onboarding guide
|
|
51
|
+
- `/smart-debug` — systematic debugging
|
|
52
|
+
- `/tdd` — test-driven development workflow
|
|
53
|
+
- `/plan` — implementation planning
|
|
54
|
+
- `/code-review` — quality review
|
|
55
|
+
- `/git-mastery` — git workflows + recovery patterns
|
|
56
|
+
- `/observability` — logging, metrics, OpenTelemetry, SLOs
|
|
57
|
+
|
|
58
|
+
## Specialist Agents (Pick the Right One)
|
|
59
|
+
|
|
60
|
+
| Use case | Agent |
|
|
61
|
+
|---|---|
|
|
62
|
+
| Lost / overwhelmed | `kodelyth-advisor` |
|
|
63
|
+
| Pre-implementation thinking | `pair-programmer` |
|
|
64
|
+
| Bug with error or stack trace | `debug-detective` |
|
|
65
|
+
| Bug with no error (silent fail) | `silent-failure-hunter` |
|
|
66
|
+
| Build / compile / type errors | `build-error-resolver` (or language-specific build resolver) |
|
|
67
|
+
| Slow code | `performance-optimizer` |
|
|
68
|
+
| Security review | `security-reviewer` |
|
|
69
|
+
| API contract check | `api-guardian` |
|
|
70
|
+
| Frontend / a11y | `ux-reviewer` |
|
|
71
|
+
| Framework upgrade | `migration-guide` |
|
|
72
|
+
| npm/pip/cargo dep hell | `dependency-doctor` |
|
|
73
|
+
| Broken git state | `git-rescue` |
|
|
74
|
+
| Cut a release | `release-captain` |
|
|
75
|
+
| "Works on my machine" | `env-debugger` |
|
|
76
|
+
| Flaky tests | `flake-hunter` |
|
|
77
|
+
| Tests / coverage | `tdd-guide` |
|
|
78
|
+
| Refactor / cleanup | `refactor-cleaner` |
|
|
79
|
+
| Open-source a project | `opensource-forker` (chain start) |
|
|
59
80
|
|
|
60
81
|
## Development Notes
|
|
61
82
|
|
|
62
|
-
- Package manager detection: npm, pnpm, yarn, bun
|
|
63
|
-
- Cross-platform: Windows, macOS
|
|
64
|
-
- Agent format: Markdown with YAML frontmatter (name, description, tools
|
|
65
|
-
- Skill format: Markdown with clear sections
|
|
66
|
-
- Skill placement: Curated in skills/; generated/imported under ~/.claude/skills/. See docs/SKILL-PLACEMENT-POLICY.md
|
|
83
|
+
- Package manager detection: npm, pnpm, yarn, bun
|
|
84
|
+
- Cross-platform: Windows (`install.ps1`), macOS / Linux (`install.sh`), or `npx` anywhere
|
|
85
|
+
- Agent format: Markdown with YAML frontmatter (name, description, tools)
|
|
86
|
+
- Skill format: Markdown with clear sections (description, when to use, how it works)
|
|
67
87
|
- Hook format: JSON with matcher conditions and command/notification hooks
|
|
68
88
|
|
|
69
89
|
## Contributing
|
|
70
90
|
|
|
71
|
-
|
|
72
|
-
- Agents: Markdown with frontmatter (name, description, tools, model)
|
|
73
|
-
- Skills: Clear sections (When to Use, How It Works, Examples)
|
|
74
|
-
- Commands: Markdown with description frontmatter
|
|
75
|
-
- Hooks: JSON with matcher and hooks array
|
|
76
|
-
|
|
77
|
-
File naming: lowercase with hyphens (e.g., `python-reviewer.md`, `tdd-workflow.md`)
|
|
78
|
-
|
|
79
|
-
## Skills
|
|
91
|
+
When adding a new agent:
|
|
80
92
|
|
|
81
|
-
|
|
93
|
+
1. Create `agents/<name>.md` with YAML frontmatter
|
|
94
|
+
2. Add trigger patterns to `rules/common/agent-intent-routing.md` (so the router knows when to call you)
|
|
95
|
+
3. If part of a chain, document the handoff in `skills/agent-handoff/SKILL.md`
|
|
82
96
|
|
|
83
|
-
|
|
84
|
-
|---------|-------|
|
|
85
|
-
| `README.md` | `/readme` |
|
|
86
|
-
| `.github/workflows/*.yml` | `/ci-workflow` |
|
|
87
|
-
| New users / onboarding | `/kodelyth-quickstart` |
|
|
88
|
-
| Any debugging session | `/smart-debug` |
|
|
97
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for full templates.
|
|
89
98
|
|
|
90
|
-
|
|
99
|
+
File naming: lowercase with hyphens (e.g., `dependency-doctor.md`, `flake-hunter.md`).
|