kaizen-agentic/docs/INTEGRATION_PATTERNS.md

120 lines
4.8 KiB
Markdown
Raw Normal View History

# Integration Patterns
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
How kaizen-agentic composes with ecosystem repos **by contract** — no merged
codebases, no duplicated capabilities.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
Reference: [wiki/EcosystemIntegration.md](../wiki/EcosystemIntegration.md),
[KAIZEN-WP-0004](../workplans/kaizen-agentic-WP-0004-ecosystem-integration.md).
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
---
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
## Pattern 1 — Helix Forge correlation (agentic-resources)
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Problem:** Project metrics and fleet session metrics answer different questions.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Contract:** Optional `helix_session_uid` on ADR-004 execution records.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
| kaizen-agentic | agentic-resources |
|----------------|-------------------|
| `metrics record` at session close | Helix capture → digest store |
| `metrics correlate <uid>` read-only lookup | `Store.get_digest(session_uid)` |
| `HELIX_SESSION_UID` env auto-merge | `Session.session_uid` |
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Docs:** [integrations/helix-forge-correlation.md](integrations/helix-forge-correlation.md)
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Boundary:** kaizen-agentic does not ingest session JSONL.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
---
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
## Pattern 2 — activity-core triggers
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Problem:** Recurring kaizen checks need scheduling without custom cron in this repo.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Contract:** ActivityDefinition markdown files declare triggers + actions that
invoke kaizen-agentic CLI commands.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
| Definition | Trigger | CLI command |
|------------|---------|-------------|
| [weekly-metrics-optimize](integrations/activity-definitions/weekly-metrics-optimize.md) | Cron Mon 08:00 | `metrics optimize` |
| [post-install-metrics-scaffold](integrations/activity-definitions/post-install-metrics-scaffold.md) | `kaizen.agent.installed` | `memory init` validation |
| [low-success-rate-review](integrations/activity-definitions/low-success-rate-review.md) | `kaizen.metrics.recorded` | `metrics show` + `optimize` |
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Activation handoff (activity-core owners):**
1. **Copy definitions** from kaizen-agentic:
`docs/integrations/activity-definitions/*.md` → activity-core
`activity-definitions/kaizen-agentic/` (or org-equivalent path per ACT-ADR-002).
2. **Register in activity-core index** — ensure each definition slug appears in the
activity-core catalog consumed by the resolver.
3. **Run sync** in activity-core: `make sync-activity-definitions` (or repo-equivalent).
4. **Wire triggers** — map cron / NATS subjects (`kaizen.agent.installed`,
`kaizen.metrics.recorded`) to the documented CLI invocations.
5. **Enable gradually** — set `enabled: true` per definition after a manual smoke test
against a repo with `.kaizen/metrics/` populated.
6. **Verify credentials** — scheduled runs need `kaizen-agentic` on PATH and any
Gitea PyPI extra index if the runner installs from registry (see PACKAGE_RELEASE.md).
**kaizen-agentic maintainer checklist:**
- [ ] Three definition files committed under `docs/integrations/activity-definitions/`
- [ ] activity-core PR or issue opened to register definitions
- [ ] Smoke test commands documented below pass on a pilot repo
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Smoke test (manual):**
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
```bash
# Against a repo with populated metrics
cd /path/to/project-with-kaizen
kaizen-agentic metrics list
kaizen-agentic metrics optimize
# Verify analysis.json written
test -f .kaizen/metrics/optimizer/analysis.json && echo OK
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
```
**Boundary:** kaizen-agentic does not run Temporal schedules.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
---
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
## Pattern 3 — artifact-store evidence retention
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Problem:** Optimizer outputs need durable, attributable retention beyond local disk.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Contract:** `metrics publish` registers `analysis.json` + `recommendations.jsonl`
as an artifact package with `retention_class: raw-evidence`.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
```bash
export ARTIFACTSTORE_API_URL=http://127.0.0.1:8000
export ARTIFACTSTORE_API_TOKEN=<token>
kaizen-agentic metrics optimize
kaizen-agentic metrics publish --target .
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
```
**Manifest:** [integrations/optimizer-artifact-manifest.md](integrations/optimizer-artifact-manifest.md)
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
**Boundary:** Publish is optional; local `.kaizen/metrics/optimizer/` remains canonical.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
---
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
## Pattern 4 — Canon and knowledge (stretch)
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
Design-only paths for info-tech-canon and kontextual-engine:
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
- [integrations/canon-template-mapping.md](integrations/canon-template-mapping.md)
- [integrations/briefs/tdd-workflow-canon-brief.md](integrations/briefs/tdd-workflow-canon-brief.md)
- [integrations/kontextual-wiki-ingestion-spike.md](integrations/kontextual-wiki-ingestion-spike.md)
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
No runtime dependency in WP-0004.
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
---
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
## Environment variables
Implement complete Scenario 2: Integration with existing projects having agents Built comprehensive system for introducing Kaizen agents to existing projects: 🔍 **Detection System (detection.py)**: - Detects 9+ types of existing agent systems (Kaizen, Claude Code, custom agents, etc.) - Analyzes agent files with YAML frontmatter parsing - Identifies conflicts and functional overlaps - Generates integration strategies and migration recommendations 🔄 **Migration Framework (migration.py)**: - Creates detailed migration plans for each detected agent - Supports 5 migration strategies: replace, extend, preserve, merge, remove - Intelligent conflict resolution with multiple resolution types - Safe execution with backup creation and rollback capability 🔗 **Extension System (extensions.py)**: - Project-specific agent customizations and extensions - Multiple extension types: config overlay, functional extension, workflow integration - Template generation for basic and advanced extensions - Legacy agent integration with wrapper creation 🛠️ **CLI Integration**: - `kaizen-agentic detect` - Analyze existing agent systems - `kaizen-agentic migrate` - Execute migration plans with dry-run support - `kaizen-agentic extensions` - Complete extension management commands 📖 **Integration Patterns Documentation**: - 5 proven integration scenarios with detailed patterns - Conflict resolution strategies and decision matrices - Safe transition strategies with phased rollout - Best practices and troubleshooting guides **Key Features**: ✅ Respects existing project structure and workflows ✅ Safe transitions with comprehensive backup strategies ✅ Conflict detection and automated resolution ✅ Extension mechanisms for preserving custom functionality ✅ Comprehensive tooling for all transition scenarios Scenario 2 is now production-ready for integrating Kaizen agents into any existing project! 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 11:47:17 +02:00
| Variable | Used by | Purpose |
|----------|---------|---------|
| `HELIX_SESSION_UID` | `metrics record` | Fleet session correlation |
| `HELIX_REPO`, `HELIX_FLAVOR` | `metrics record` | Session context |
| `HELIX_TOKENS`, `HELIX_INFRA_OVERHEAD_SHARE` | `metrics record` | Fleet cost fields |
| `HELIX_STORE_DB` | `metrics correlate` | Digest lookup database |
| `ARTIFACTSTORE_API_URL` | `metrics publish` | Registry endpoint |
| `ARTIFACTSTORE_API_TOKEN` | `metrics publish` | Write auth bearer token |