2026-03-17 22:21:16 +01:00
## Architecture
kaizen-agentic has two distinct layers:
### 1. Python framework (`src/kaizen_agentic/`)
- **`core.py` ** — `Agent` (abstract base) + `AgentConfig` (dataclass). Tracks performance, supports config updates, implements kaizen interface.
- **`optimization.py` ** — `OptimizationLoop` (runs improvement cycles, detects trends, generates recommendations) + `PerformanceMetrics` (execution time, success rate, quality scores).
2026-06-16 01:49:27 +02:00
- **`metrics.py` ** — `MetricsStore` + `OptimizerStore` (project-scoped `.kaizen/metrics/` per ADR-004).
2026-03-17 22:21:16 +01:00
2026-06-16 01:49:27 +02:00
### 2. Agent definitions (`agents/` — 20 files)
2026-03-17 22:21:16 +01:00
Markdown instruction sets read and followed by Claude. Not executables. Naming convention: `agent-{name}.md` .
2026-06-16 01:49:27 +02:00
Packaged copies live in `src/kaizen_agentic/data/agents/` for `pip install` distribution.
2026-03-17 22:21:16 +01:00
| Category | Agents |
|----------|--------|
| Testing | `tdd-workflow` , `test-maintenance` , `testing-efficiency` |
2026-06-16 01:49:27 +02:00
| Quality | `code-refactoring` , `datamodel-optimization` |
2026-06-18 02:06:14 +02:00
| Process | `requirements-engineering` , `keepaTodofile` , `keepaChangelog` , `keepaContributingfile` , `project-assistant` , `priority-evaluation` , `scope-analyst` |
2026-06-16 01:49:27 +02:00
| Infrastructure | `setupRepository` , `tooling-optimization` , `sys-medic` |
2026-03-17 22:21:16 +01:00
| Release | `releaseManager` |
| Docs | `claude-documentation` |
| Support | `wisdom-encouragement` |
2026-06-16 01:49:27 +02:00
| Meta | `coach` , `optimization` |
2026-03-17 22:21:16 +01:00
### Custodian integration
The state-hub MCP resolves the agents directory via `host_paths[hostname]` → `local_path` . Tools: `list_kaizen_agents(category?)` , `get_kaizen_agent(name)` .