2026-03-17 23:10:12 +01:00
# SCOPE
> This file helps you quickly understand what this repository is about,
> when it is relevant, and when it is not.
> It is intentionally lightweight and may be incomplete.
2026-06-16 01:34:13 +02:00
> For strategic purpose and boundaries, see `INTENT.md`.
2026-03-17 23:10:12 +01:00
---
## One-liner
2026-06-16 01:34:13 +02:00
KaizenAgentic: a digital talent agency framework — agent personas, project memory, measurable improvement loops, and CLI tooling for deploying continuously refining AI coding agents into Claude Code sessions.
2026-03-17 23:10:12 +01:00
---
## Core Idea
2026-06-16 01:34:13 +02:00
This repo is the canonical home for the **KaizenAgentic** operating model (`INTENT.md` , `wiki/` ). It packages recurring development workflows as named agent personas invoked in Claude Code. The **agency layer** adds project-scoped memory (`.kaizen/agents/<name>/memory.md` ) and a **Coach** meta-agent for cross-agent orientation. The **kaizen loop** — measure, analyse, refine — is defined in `wiki/` and partially implemented: `OptimizationLoop` exists in Python, but per-execution metrics collection and optimizer integration are in progress (WP-0003). Runtime execution remains Claude Code's responsibility.
2026-03-17 23:10:12 +01:00
---
## In Scope
2026-06-16 01:34:13 +02:00
- **Strategic framing**: `INTENT.md` (purpose, boundaries, design principles) and `wiki/` (mission, agent template, guidance model, brand/pricing)
2026-06-16 01:41:26 +02:00
- **20 agent definitions** (`agents/agent-*.md` ) — markdown persona instruction sets with YAML frontmatter (reference fleet; see `INTENT.md` boundaries)
2026-06-16 00:58:43 +02:00
- **Agent categories**: project-management, development-process, code-quality, infrastructure, testing, documentation, meta
2026-06-16 01:34:13 +02:00
- **Agency framework**: project memory convention (ADR-002), session-start/close protocols, Coach meta-agent (`agent-coach.md` )
- **Protocol runbooks** (`agents/protocols/<agent>/<slug>.md` ) — procedural checklists distinct from agent prompts
- **CLI tooling** (`kaizen-agentic` ): `init` , `install` , `update` , `remove` , `list` , `status` , `validate` , `templates` , `detect` , `migrate` , `extensions` , `memory` (show/init/brief/clear), `protocols` (list/show); `metrics` commands planned in WP-0003
- **Project templates** (python-basic, python-web, python-cli, python-data, comprehensive) — agent bundles in registry code
2026-06-16 00:58:43 +02:00
- **Python framework** (`src/kaizen_agentic/` ): `Agent` /`AgentConfig` , `AgentRegistry` , `AgentInstaller` , `OptimizationLoop` /`PerformanceMetrics` , detection/migration/extensions
2026-06-16 02:19:48 +02:00
- **Packaged agent data** (`src/kaizen_agentic/data/agents/` ) — agents bundled for pip installs (sync with `agents/` via `make agents-update` )
- **Gitea PyPI publication** — `make publish-gitea` , tag-triggered `.gitea/workflows/publish-python-package.yml` (v1.1.0+)
2026-06-16 01:34:13 +02:00
- **Custodian MCP integration** (owned by `the-custodian` ): `list_kaizen_agents()` and `get_kaizen_agent()`
- **ADRs and workplans** for memory, protocols, workplan, and metrics conventions
2026-03-17 23:10:12 +01:00
---
## Out of Scope
2026-06-16 00:58:43 +02:00
- Agent runtime / execution engine (agents are persona definitions; Claude Code executes them)
- LLM orchestration, scheduling, or multi-agent debate systems
- Project-specific implementation (agents guide work; they do not build the target software)
- Custodian State Hub, MCP server code, or cross-domain governance (consumed, not owned)
2026-06-16 01:34:13 +02:00
- Full KaizenGuidance codemod pipeline (vision in `wiki/KaizenGuidance.md` ; not yet implemented)
2026-06-16 02:19:48 +02:00
- Public pypi.org distribution (optional; Coulomb Gitea registry is primary)
2026-03-17 23:10:12 +01:00
---
## Relevant When
2026-06-16 01:34:13 +02:00
- Understanding **why** KaizenAgentic exists and what it must not become (`INTENT.md` )
- Exploring the conceptual model: agent template, optimizer, guidance, composable capabilities (`wiki/` )
2026-06-16 00:58:43 +02:00
- Starting a guided development workflow (TDD, refactoring, testing, requirements, scope analysis)
2026-06-16 01:34:13 +02:00
- Deploying agents with persistent cross-session memory or Coach-mediated orientation
- Scaffolding projects with agent bundles; looking up personas via CLI or Custodian MCP
- Contributing agent personas, protocol runbooks, or improvement-loop conventions
2026-03-17 23:10:12 +01:00
---
## Not Relevant When
2026-06-16 00:58:43 +02:00
- Ad-hoc scripting with no need for structured agent guidance
2026-06-16 01:34:13 +02:00
- Non-Claude-Code development environments (primary target; patterns may transfer)
2026-06-16 00:58:43 +02:00
- Need for runtime orchestration, task scheduling, or autonomous agent execution
- Repository capability profiling or SCOPE.md generation at scale (see `repo-scoping` )
2026-03-17 23:10:12 +01:00
---
## Current State
2026-06-16 02:19:48 +02:00
- Status: stabilizing (v1.1.0 published on Gitea PyPI; WP-0001– 0004 completed)
- Strategic layer: `INTENT.md` and `wiki/` established; ecosystem integration docs in `wiki/EcosystemIntegration.md`
- Implementation: 20 agents, full CLI (`metrics` , `memory` , `feedback` ), agency memory + ADR-004 metrics + optimizer wiring
- Stability: CLI stable (Click workaround in place); Gitea CI on main; publish workflow on `v*` tags
- Usage: internal dev projects and Custodian MCP hub-wide; pip install via Gitea extra index
2026-06-16 02:21:36 +02:00
- Active work: **WP-0005** (adoption polish, fleet parity, publish verification → v1.2.0)
2026-03-17 23:10:12 +01:00
---
## How It Fits
2026-06-16 00:58:43 +02:00
- Upstream dependencies: Claude Code (agent invocation), kaizen continuous-improvement philosophy
2026-06-16 01:34:13 +02:00
- Downstream consumers: Custodian State Hub (MCP agent discovery); domain repos that install agents and maintain `.kaizen/` state
- Often used with: `the-custodian` (MCP integration), `markitect_project` (project-management patterns), `activity-core` (scaffolding references), `repo-scoping` (SCOPE.md generation)
2026-03-17 23:10:12 +01:00
---
## Terminology
2026-06-16 01:34:13 +02:00
- Preferred terms: KaizenAgentic (product), agent, agent persona, agency, project memory, protocol runbook, Coach, kaizen loop
- Also known as: "kaizen agents", "kaizen-agentic" (repo/package slug), "the agent library"
- Potentially confusing terms: "Agent" is a persona/instruction set, not a running process; "agency" means memory + coaching, not autonomous orchestration; repo slug `kaizen-agentic` vs product name `KaizenAgentic`
2026-03-17 23:10:12 +01:00
---
## Related / Overlapping Repositories
2026-06-16 00:58:43 +02:00
- `the-custodian` — hosts MCP tools that load agents; integration code lives there, not here
2026-06-16 01:34:13 +02:00
- `repo-scoping` — generates/refreshes SCOPE.md from approved characteristics
2026-03-17 23:10:12 +01:00
- `markitect_project` — references kaizen-agentic as a capability submodule
2026-06-16 01:34:13 +02:00
- `sys-medic` (source repo) — origin of sys-medic agent; canonical copy in `agents/agent-sys-medic.md`
2026-03-17 23:10:12 +01:00
---
## Getting Oriented
2026-06-16 01:34:13 +02:00
Read in this order for full context:
1. `INTENT.md` — stable purpose, boundaries, design principles
2. `wiki/KaizenAgenticMission.md` — product narrative and key components
3. `wiki/EcosystemIntegration.md` — how KaizenAgentic composes with adjacent repos
4. `wiki/KaizenAgentTemplate.md` — intended agent specification format
5. `README.md` — quick start and agency overview
6. `docs/agency-framework.md` — memory, coach, protocols, metrics (ADR-004)
7. `history/` — persisted assessments and gap analyses
8. `workplans/` — active implementation roadmap
Key directories: `wiki/` (conceptual model), `agents/` (personas), `agents/protocols/` (runbooks), `src/kaizen_agentic/` (Python framework), `docs/adr/` (conventions)
Entry points: `kaizen-agentic --help` ; MCP: `get_kaizen_agent("scope-analyst")` ; docs: `docs/GETTING_STARTED.md` , `docs/AGENT_DISTRIBUTION.md`
2026-06-16 00:58:43 +02:00
---
## Provided Capabilities
```capability
type: process
title: Guided development agent personas
description: Named markdown instruction sets for TDD, refactoring, documentation standards, requirements engineering, and project management workflows in Claude Code sessions.
keywords: [agents, personas, tdd, refactoring, claude-code, workflows]
```
```capability
type: infrastructure
title: Agent deployment and project scaffolding CLI
description: Install, update, validate, and bundle agents into new or existing projects via the kaizen-agentic CLI and registry-backed templates.
keywords: [cli, install, templates, scaffolding, registry]
```
```capability
type: process
title: Project-scoped agent memory and coaching
description: Convention and CLI for .kaizen/agents memory files, session protocols, and Coach-mediated orientation briefs across a deployed agent fleet.
keywords: [memory, coach, agency, kaizen, cross-session]
```
```capability
type: infrastructure
title: Kaizen agent discovery via Custodian MCP
description: Single source of truth for agent definitions consumed by the Custodian State Hub list_kaizen_agents and get_kaizen_agent tools.
keywords: [mcp, custodian, discovery, agent-library]
```
2026-06-16 01:34:13 +02:00
```capability
type: process
title: KaizenAgentic conceptual model and agent specification standards
description: Strategic framing, design principles, agent template, optimizer spec, and improvement philosophy via INTENT.md and wiki/.
keywords: [kaizen, intent, template, optimization, digital-talent-agency]
```
2026-06-16 00:58:43 +02:00
---
## Notes
2026-06-16 02:21:36 +02:00
- `agents/` (20 files) is the development source of truth; `src/kaizen_agentic/data/agents/` must stay in sync (enforced in WP-0005 T09– T10)
2026-06-16 02:17:30 +02:00
- Agent definitions use minimal frontmatter today; full `wiki/KaizenAgentTemplate.md` conformance is a maturity target, not current reality