kodelyth-ecc 1.4.0 → 1.5.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.
@@ -1,199 +1,397 @@
1
1
  # Agent Reference
2
2
 
3
- 53 specialist agents — each one a decade-experienced engineer in a specific domain.
3
+ 59 specialist agents — each one a decade-experienced engineer in a specific domain.
4
4
 
5
5
  ---
6
6
 
7
- ## Kodelyth Exclusive (6 agents)
7
+ ## How Agents Are Invoked
8
8
 
9
- These agents exist only in Kodelyth ECC.
10
-
11
- ### `kodelyth-advisor` — The Master Guide
12
-
13
- Reads your situation, understands what you're struggling with, and gives you the exact tool or approach needed. No hand-holding, no noise — direct senior-grade direction.
9
+ **Automatic (intent routing):** Most agents fire automatically from your message text. The routing rule analyzes 10 priority tiers and 50+ trigger patterns.
14
10
 
11
+ **Explicit invocation:**
15
12
  ```
16
- use kodelyth-advisor
13
+ use debug-detective
14
+ @code-reviewer
15
+ invoke security-reviewer
17
16
  ```
18
17
 
19
- Best for: "I don't know where to start", picking the right agent, unclear problems.
18
+ **Explicit always works.** When in doubt, use it. Routing is an accelerant, not a replacement.
20
19
 
21
20
  ---
22
21
 
23
- ### `debug-detective` The Root Cause Hunter
22
+ ## Kodelyth Exclusive Agents
24
23
 
25
- Never guesses. Traces every bug to its exact origin through a structured hypothesis protocol. Binary search debug, git bisect, minimal reproducers, advanced tracing.
24
+ These agents were designed and built specifically for this toolkit.
26
25
 
27
- ```
28
- use debug-detective
29
- ```
26
+ ### `kodelyth-advisor`
27
+
28
+ Master engineering advisor. Reads your emotional state, feels what you're stuck on, and gives precise senior-grade direction. Knows every agent, skill, and command. Responds differently to frustration vs. excitement vs. confusion.
30
29
 
31
- Best for: Hard bugs, intermittent failures, "I've tried everything" situations.
30
+ **When to use:** Lost, overwhelmed, don't know where to start, or need a second opinion on your approach.
31
+
32
+ **Triggers:** "help me", "what should I", "I'm stuck", "don't know where to start", "overwhelmed"
32
33
 
33
34
  ---
34
35
 
35
- ### `ux-reviewer` — The Interface Guardian
36
+ ### `debug-detective`
36
37
 
37
- Reviews frontend code for usability, interaction logic, and WCAG 2.1 AA accessibility. **Never touches design aesthetic** only behavior.
38
+ Systematic root-cause analyst. Never guesses. Never patches symptoms. Traces every bug to its exact origin through formal hypothesis protocol: CLAIM → EVIDENCE → TEST.
38
39
 
39
- ```
40
- use ux-reviewer
41
- ```
40
+ **When to use:** Any bug with a stack trace, error message, or reproducible failure.
42
41
 
43
- Best for: Before shipping any frontend feature, accessibility audits.
42
+ **Triggers:** "error", "bug", "crash", "exception", "undefined", "null", "traceback", "failing"
44
43
 
45
44
  ---
46
45
 
47
- ### `api-guardian` — The Contract Protector
46
+ ### `ux-reviewer`
48
47
 
49
- Detects breaking API changes before they ship. Classifies every change as BREAKING / SAFE / WARN, generates consumer impact reports, enforces versioning and deprecation headers.
48
+ Master UX and accessibility engineer. Explicitly never touches visual design. Focuses on interaction logic, error states, loading states, mobile/touch, keyboard navigation, and screen readers. Full WCAG 2.1 AA review with before/after code examples.
50
49
 
51
- ```
52
- use api-guardian
53
- ```
50
+ **When to use:** Frontend code review, accessibility audit, interaction behavior analysis.
54
51
 
55
- Best for: API changes, version bumps, public endpoint modifications.
52
+ **Triggers:** "UI", "UX", "accessibility", "a11y", "WCAG", "screen reader", "keyboard nav", "frontend"
56
53
 
57
54
  ---
58
55
 
59
- ### `pair-programmer` — The Pre-Code Thinker
56
+ ### `kodelyth-memory`
60
57
 
61
- The engineer who sits next to you before you start coding. Catches the wrong approach, over-engineering, missed edge cases before a single line is written.
58
+ Self-learning memory manager. Captures problems and solutions from sessions. Recalls them via BM25 search when relevant. Manages the full memory lifecycle: capture review store inject recall.
62
59
 
63
- ```
64
- use pair-programmer
65
- ```
60
+ **When to use:** Search past solutions, manually store a learning, review pending captures, manage the memory store.
66
61
 
67
- Best for: Before starting any feature, evaluating approaches.
62
+ **Commands:** `/memory recall`, `/memory remember`, `/memory review-pending`, `/memory stats`, `/memory forget`
63
+
64
+ **Triggers:** "remember when", "we solved this before", "past solution", "memory", "/memory"
68
65
 
69
66
  ---
70
67
 
71
- ### `migration-guide` — The Migration Specialist
68
+ ## Debugging Agents
72
69
 
73
- Full migration playbooks: React 18→19, Next.js 12→15, Python 2→3, Node.js 14→22, TypeScript 4→5, Java 8→21. Phase by phase: audit → blast radius → phased plan → execute → validate.
70
+ ### `debug-detective`
71
+ *(see Kodelyth Exclusive above)*
74
72
 
75
- ```
76
- use migration-guide
77
- ```
73
+ ### `silent-failure-hunter`
74
+
75
+ Finds bugs that produce no error — swallowed exceptions, bad fallbacks, misleading success responses, missing error propagation. Reviews code for all the places errors go to die.
76
+
77
+ **When to use:** "It's not crashing but it's wrong", missing data, unexpected behavior with no error.
78
+
79
+ **Triggers:** "no error but", "silently", "swallow", "empty response", "missing data", "unexpected behavior"
80
+
81
+ ---
82
+
83
+ ## Security Agents
84
+
85
+ ### `security-reviewer`
86
+
87
+ OWASP Top 10 specialist. Flags secrets in code, SQL injection risks, SSRF vectors, unsafe cryptography, XSS, CSRF, path traversal, and authentication bypasses. Runs after every security-sensitive change.
88
+
89
+ **When to use:** Any change touching authentication, user input, database queries, file system operations, payments, or external API calls.
90
+
91
+ **Triggers:** "auth", "password", "token", "API key", "SQL", "user input", "permission", "encrypt"
92
+
93
+ ---
94
+
95
+ ## Code Quality Agents
96
+
97
+ ### `code-reviewer`
98
+
99
+ General quality reviewer. Checks readability, function size, file cohesion, nesting depth, error handling, hardcoded values, mutation patterns, and test coverage. Severity levels: CRITICAL / HIGH / MEDIUM / LOW.
100
+
101
+ **When to use:** After writing or modifying any code, before committing.
102
+
103
+ **Triggers:** "review", "check my code", "is this good", "look at this"
104
+
105
+ ### `typescript-reviewer`
78
106
 
79
- Best for: Framework upgrades, language version migrations.
107
+ TypeScript/JavaScript specialist. Type safety, async correctness, `any` avoidance, Zod schema validation, React prop types, idiomatic patterns.
108
+
109
+ **When to use:** TypeScript or JavaScript files.
110
+
111
+ ### `python-reviewer`
112
+
113
+ PEP 8, type hints, Pythonic idioms, security, performance. Flask/Django/FastAPI patterns.
114
+
115
+ **When to use:** Python files.
116
+
117
+ ### `go-reviewer`
118
+
119
+ Idiomatic Go, error handling patterns, goroutine safety, interface design, performance.
120
+
121
+ **When to use:** Go files.
122
+
123
+ ### `rust-reviewer`
124
+
125
+ Ownership, lifetimes, unsafe usage, error handling with Result/Option, idiomatic patterns.
126
+
127
+ **When to use:** Rust files.
128
+
129
+ ### `java-reviewer`
130
+
131
+ Spring Boot architecture, JPA patterns, async with CompletableFuture, security.
132
+
133
+ **When to use:** Java/Spring Boot files.
134
+
135
+ ### `kotlin-reviewer`
136
+
137
+ Coroutine safety, Compose best practices, Android patterns, clean architecture violations.
138
+
139
+ **When to use:** Kotlin/Android files.
140
+
141
+ ### `csharp-reviewer`
142
+
143
+ .NET conventions, async/await patterns, nullable reference types, Entity Framework.
144
+
145
+ **When to use:** C# files.
146
+
147
+ ### `flutter-reviewer`
148
+
149
+ Flutter widget best practices, state management, Dart idioms, performance pitfalls.
150
+
151
+ **When to use:** Flutter/Dart files.
152
+
153
+ ### `cpp-reviewer`
154
+
155
+ Memory safety, modern C++ idioms, RAII, concurrency, template usage.
156
+
157
+ **When to use:** C++ files.
80
158
 
81
159
  ---
82
160
 
83
- ## Code Review (10 agents)
161
+ ## Planning Agents
162
+
163
+ ### `planner`
164
+
165
+ Full implementation planner. Generates PRD, architecture, system design, tech doc, and task list before any code is written. Identifies dependencies and risks. Breaks work into phases.
166
+
167
+ **When to use:** Any new feature or significant refactor.
168
+
169
+ **Triggers:** "plan", "implement", "build", "create a feature", "refactor"
170
+
171
+ ### `pair-programmer`
172
+
173
+ Pre-code thinking partner. Runs the "cost curve of bugs" check (thinking=0x, code review=6x, production=200x). Catches wrong abstractions, premature optimization, missing idempotency, over-engineering before a line is written.
174
+
175
+ **When to use:** Before implementing anything significant.
176
+
177
+ **Triggers:** "thinking about", "approach for", "design for", "before I write"
178
+
179
+ ### `architect`
180
+
181
+ System design and scalability specialist. Evaluates trade-offs, recommends patterns, designs for the long term. Use for decisions that are hard to reverse.
84
182
 
85
- | Agent | Language / Domain |
86
- |-------|------------------|
87
- | `code-reviewer` | General — quality, patterns, best practices |
88
- | `typescript-reviewer` | TypeScript + JavaScript |
89
- | `python-reviewer` | Python — PEP 8, type hints, security |
90
- | `go-reviewer` | Go — idiomatic patterns, concurrency |
91
- | `rust-reviewer` | Rust — ownership, lifetimes, unsafe |
92
- | `java-reviewer` | Java + Spring Boot |
93
- | `kotlin-reviewer` | Kotlin + Android + KMP |
94
- | `cpp-reviewer` | C++ — memory safety, modern idioms |
95
- | `csharp-reviewer` | C# + .NET — async, nullable, security |
96
- | `flutter-reviewer` | Flutter + Dart — widget best practices |
183
+ **When to use:** Architectural decisions, service boundaries, data modeling, scaling decisions.
97
184
 
98
185
  ---
99
186
 
100
- ## Build Fixers (8 agents)
187
+ ## Testing Agents
101
188
 
102
- | Agent | Platform |
103
- |-------|---------|
104
- | `build-error-resolver` | TypeScript / general |
105
- | `go-build-resolver` | Go |
106
- | `rust-build-resolver` | Rust + Cargo |
107
- | `java-build-resolver` | Java + Maven + Gradle |
108
- | `kotlin-build-resolver` | Kotlin + Gradle |
109
- | `cpp-build-resolver` | C++ + CMake |
110
- | `dart-build-resolver` | Dart + Flutter |
111
- | `pytorch-build-resolver` | PyTorch + CUDA |
189
+ ### `tdd-guide`
190
+
191
+ Test-Driven Development specialist. Enforces RED → GREEN → REFACTOR → VERIFY (80%+). Writes tests first. Never skips the failing-test step.
192
+
193
+ **When to use:** New features, bug fixes, refactoring — whenever tests are involved.
194
+
195
+ **Triggers:** "test", "coverage", "TDD", "write tests", "testing"
196
+
197
+ ### `e2e-runner`
198
+
199
+ End-to-end testing with Playwright (preferred) or fallback. Generates, maintains, and runs E2E tests. Manages test journeys, quarantines flaky tests, uploads artifacts.
200
+
201
+ **When to use:** Critical user flow testing, E2E suite setup or maintenance.
202
+
203
+ ### `flake-hunter`
204
+
205
+ Flaky test stabilization. 6-class taxonomy: async timing, test isolation, environment dependency, external dependency, non-determinism, race conditions. Real fixes — never adds blind retries.
206
+
207
+ **When to use:** Tests that fail intermittently, inconsistently, or "sometimes".
208
+
209
+ **Triggers:** "flaky", "intermittent", "sometimes fails", "flakey", "unstable test"
210
+
211
+ ### `pr-test-analyzer`
212
+
213
+ Reviews pull request test coverage quality. Checks behavioral coverage and real bug prevention, not just line count.
214
+
215
+ **When to use:** Before merging PRs, when reviewing test suites.
112
216
 
113
217
  ---
114
218
 
115
- ## Planning & Architecture (6 agents)
219
+ ## Build Error Agents
220
+
221
+ ### `build-error-resolver`
222
+
223
+ TypeScript and JavaScript build error specialist. Fixes build failures with minimal diffs. Focuses on getting green quickly without architectural changes.
224
+
225
+ **When to use:** Build failures, TypeScript errors, compilation errors in JS/TS.
226
+
227
+ **Triggers:** "build failed", "TypeScript error", "compilation error", "tsc error"
228
+
229
+ ### `cpp-build-resolver`
230
+ C++ build, CMake, linker, and template error specialist.
116
231
 
117
- | Agent | Purpose |
118
- |-------|---------|
119
- | `planner` | Feature implementation plans |
120
- | `architect` | System design, scalability decisions |
121
- | `code-architect` | Blueprints from existing codebase patterns |
122
- | `code-explorer` | Deep codebase analysis and dependency mapping |
123
- | `chief-of-staff` | Communication triage — email, Slack, LINE |
124
- | `pair-programmer` | Pre-code thinking partner |
232
+ ### `dart-build-resolver`
233
+ Dart/Flutter build, `dart analyze` errors, pub dependency conflicts.
234
+
235
+ ### `go-build-resolver`
236
+ Go build, vet, and linter failures.
237
+
238
+ ### `java-build-resolver`
239
+ Java/Maven/Gradle build, compiler errors, dependency issues.
240
+
241
+ ### `kotlin-build-resolver`
242
+ Kotlin/Gradle build and compiler errors.
243
+
244
+ ### `python-build-resolver` *(via build-error-resolver)*
245
+ Handles Python import errors, syntax issues, pip conflicts.
246
+
247
+ ### `rust-build-resolver`
248
+ Cargo build, borrow checker, and Cargo.toml failures.
249
+
250
+ ### `pytorch-build-resolver`
251
+ PyTorch runtime, CUDA, tensor shape, and training errors.
125
252
 
126
253
  ---
127
254
 
128
- ## Security (3 agents)
255
+ ## Infrastructure Agents
256
+
257
+ ### `git-rescue`
258
+
259
+ Recovers broken git states: lost commits, bad rebases, accidental force-pushes, detached HEAD, corrupted history. Uses reflog, dangling commits, and surgical resets. Never destroys history.
260
+
261
+ **When to use:** Any git state that feels unrecoverable.
262
+
263
+ **Triggers:** "lost commit", "wrong branch", "rebase went wrong", "force push", "git mess"
264
+
265
+ ### `release-captain`
266
+
267
+ Owns the full release ritual: semantic versioning decision, changelog generation, git tagging, npm/pypi/crates publish, rollback rehearsal. Covers hotfix, regular, and major release paths.
268
+
269
+ **When to use:** Cutting any release.
270
+
271
+ **Triggers:** "release", "publish", "tag", "semver", "version bump", "changelog"
272
+
273
+ ### `env-debugger`
274
+
275
+ "Works on my machine" hunter. Traces environment variable mismatches, config layer conflicts, secrets misconfiguration, build-time vs runtime differences, Docker vs local discrepancies.
276
+
277
+ **When to use:** Code that works locally but fails in staging, CI, or production.
129
278
 
130
- | Agent | Purpose |
131
- |-------|---------|
132
- | `security-reviewer` | OWASP Top 10, secrets, injection, SSRF |
133
- | `healthcare-reviewer` | HIPAA, PHI, clinical safety |
134
- | `api-guardian` | Breaking changes, versioning, contracts |
279
+ **Triggers:** "works locally", "only in production", "environment variable", "docker"
280
+
281
+ ### `dependency-doctor`
282
+
283
+ Dependency hell specialist for npm, pip, cargo, maven. CVE triage, lockfile diagnosis, safe upgrade plans, peer dependency conflicts, phantom dependency bugs.
284
+
285
+ **When to use:** Dependency install failures, version conflicts, CVE alerts.
286
+
287
+ **Triggers:** "dependency conflict", "CVE", "lockfile", "npm error", "peer dep", "pip install"
288
+
289
+ ### `database-reviewer`
290
+
291
+ PostgreSQL specialist for query optimization, schema design, security, and performance. Incorporates Supabase best practices. Catches N+1 queries, missing indexes, unbounded queries.
292
+
293
+ **When to use:** SQL queries, schema migrations, database performance issues.
135
294
 
136
295
  ---
137
296
 
138
- ## Quality & Performance (5 agents)
297
+ ## Specialized Agents
298
+
299
+ ### `api-guardian`
300
+
301
+ API contract protection. Classifies every change as BREAKING / SAFE / WARN. Consumer impact report with migration paths. Covers REST, GraphQL, gRPC, WebSocket.
302
+
303
+ **When to use:** Any change to a public or internal API surface.
304
+
305
+ **Triggers:** "API change", "breaking change", "endpoint", "contract", "versioning"
306
+
307
+ ### `migration-guide`
308
+
309
+ Full migration playbooks for React 17/18→19, Next.js 12/13→15, Python 2→3, Node.js 14→22, TypeScript 4→5, Java 8→21. Phase 0 audit through Phase 4 validation. Incremental strategy — never "stop the world".
310
+
311
+ **When to use:** Framework upgrades, language migrations, major dependency updates.
312
+
313
+ **Triggers:** "upgrade", "migrate", "React 19", "Next.js", "Python 3", "Node upgrade"
314
+
315
+ ### `performance-optimizer`
316
+
317
+ Performance analysis and optimization. Profiling, memory leak detection, render optimization, algorithmic improvements, bundle size reduction, query optimization.
318
+
319
+ **When to use:** Slow code, high memory usage, poor Core Web Vitals, slow queries.
139
320
 
140
- | Agent | Purpose |
141
- |-------|---------|
142
- | `refactor-cleaner` | Dead code removal, knip, depcheck |
143
- | `code-simplifier` | Clarity and consistency |
144
- | `performance-optimizer` | Bottlenecks, bundle size, render perf |
145
- | `type-design-analyzer` | Type safety and invariant design |
146
- | `silent-failure-hunter` | Swallowed errors, bad fallbacks |
321
+ **Triggers:** "slow", "performance", "memory leak", "bundle size", "optimize"
322
+
323
+ ### `refactor-cleaner`
324
+
325
+ Dead code cleanup and consolidation. Runs knip, depcheck, ts-prune to identify unused exports, dependencies, and types. Safely removes dead code.
326
+
327
+ **When to use:** Codebase cleanup, reducing bundle size, before major refactors.
328
+
329
+ ### `doc-updater`
330
+
331
+ Documentation and codemap specialist. Updates `docs/CODEMAPS/`, READMEs, and guides after code changes.
332
+
333
+ **When to use:** After significant code changes that need documentation updates.
334
+
335
+ ### `comment-analyzer`
336
+
337
+ Analyzes code comments for accuracy, completeness, maintainability, and comment rot risk. Flags comments that lie about what the code does.
147
338
 
148
339
  ---
149
340
 
150
- ## Testing (3 agents)
341
+ ## Open Source Pipeline Agents
342
+
343
+ Three-stage pipeline for open-sourcing internal projects:
151
344
 
152
- | Agent | Purpose |
153
- |-------|---------|
154
- | `tdd-guide` | Write tests first, 80%+ coverage |
155
- | `e2e-runner` | E2E tests with Playwright |
156
- | `pr-test-analyzer` | PR test coverage review |
345
+ ### `opensource-forker`
346
+ Stage 1: Copies files, strips secrets (20+ patterns), replaces internal references with placeholders, generates `.env.example`, cleans git history.
347
+
348
+ ### `opensource-sanitizer`
349
+ Stage 2: Verifies the fork is fully sanitized. Scans for leaked secrets, PII, internal references. Generates PASS/FAIL/PASS-WITH-WARNINGS report.
350
+
351
+ ### `opensource-packager`
352
+ Stage 3: Generates complete OSS packaging: `CLAUDE.md`, `setup.sh`, `README.md`, `LICENSE`, `CONTRIBUTING.md`, GitHub issue templates.
157
353
 
158
354
  ---
159
355
 
160
- ## Documentation (3 agents)
356
+ ## Analysis Agents
357
+
358
+ ### `code-explorer`
359
+ Deeply analyzes existing codebase features by tracing execution paths, mapping architecture layers, and documenting dependencies.
360
+
361
+ ### `code-architect`
362
+ Designs feature architectures by analyzing existing codebase patterns and conventions. Provides implementation blueprints with files, interfaces, data flow, and build order.
161
363
 
162
- | Agent | Purpose |
163
- |-------|---------|
164
- | `doc-updater` | CODEMAPS, READMEs, guides |
165
- | `docs-lookup` | Context7 — library docs and API examples |
166
- | `comment-analyzer` | Comment accuracy and rot detection |
364
+ ### `code-simplifier`
365
+ Simplifies and refines code for clarity, consistency, and maintainability. Focus on recently modified code unless instructed otherwise.
366
+
367
+ ### `type-design-analyzer`
368
+ Analyzes type design for encapsulation, invariant expression, usefulness, and enforcement.
369
+
370
+ ### `seo-specialist`
371
+ Technical SEO audits, on-page optimization, structured data, Core Web Vitals, sitemap and robots issues.
167
372
 
168
373
  ---
169
374
 
170
- ## Open Source (3 agents)
375
+ ## Healthcare Agent
171
376
 
172
- | Agent | Purpose |
173
- |-------|---------|
174
- | `opensource-forker` | Fork and strip secrets for public release |
175
- | `opensource-sanitizer` | Verify fork is clean before release |
176
- | `opensource-packager` | CLAUDE.md, setup.sh, README, LICENSE, templates |
377
+ ### `healthcare-reviewer`
378
+ Reviews healthcare application code for clinical safety, CDSS accuracy, PHI compliance, and medical data integrity. Specialized for EMR/EHR and clinical decision support.
177
379
 
178
380
  ---
179
381
 
180
- ## Specialized (6 agents)
382
+ ## Meta Agents
383
+
384
+ ### `harness-optimizer`
385
+ Analyzes and improves the local agent harness configuration for reliability, cost, and throughput.
386
+
387
+ ### `loop-operator`
388
+ Operates autonomous agent loops, monitors progress, and intervenes safely when loops stall.
181
389
 
182
- | Agent | Purpose |
183
- |-------|---------|
184
- | `debug-detective` | Root cause hunting |
185
- | `ux-reviewer` | UX + accessibility |
186
- | `seo-specialist` | Technical SEO, Core Web Vitals, schema |
187
- | `database-reviewer` | PostgreSQL — queries, schema, Supabase |
188
- | `comment-analyzer` | Comment accuracy |
189
- | `kodelyth-advisor` | Master guide |
390
+ ### `kodelyth-advisor`
391
+ *(see Kodelyth Exclusive above)*
190
392
 
191
393
  ---
192
394
 
193
- ## GAN Harness (3 agents)
395
+ ## Full Agent Count
194
396
 
195
- | Agent | Purpose |
196
- |-------|---------|
197
- | `gan-planner` | Expand a prompt into a full product spec |
198
- | `gan-generator` | Implement features, iterate on feedback |
199
- | `gan-evaluator` | Test the live app via Playwright, score against rubric |
397
+ 59 agents across all categories. Use `kodelyth-advisor` if you're unsure which one to reach for — it knows the full roster and will point you in the right direction.