AI-powered SDLC framework with self-learning brain, automated workflows, and intelligent knowledge management
Project description
Agentic SDLC
Transform your IDE into a complete Software Development Lifecycle team with AI-powered agents, automated workflows, and intelligent knowledge management.
๐ฏ What is Agentic SDLC?
Agentic SDLC is an AI-powered development framework that simulates a complete software development team within your IDE. It provides:
- 17 Specialized AI Roles - PM, BA, SA, UI/UX, QA, Security, Dev, DevOps, Tester, Reporter, and more
- 23 Automated Workflows - From planning to deployment with
/slashcommands - Reinforced Brain System - 21 Intelligence sub-agents including HITL, Sandbox, and Self-Healing
- Multi-Agent Teams - AutoGen-powered autonomous agent collaboration
- Cross-IDE Compatibility - Works with Cursor, Windsurf, Cline, Aider, Gemini, and any AI-powered IDE
- Monorepo Architecture - Shared brain system across multiple projects
๐๏ธ Architecture & Flows
3-Layer Concentric Architecture
The system is built on a robust 3-layer architecture where dependencies flow inward (Layer 3 โ Layer 2 โ Layer 1):
Layer 1 (Core) - The stable foundation that rarely changes:
- GEMINI.md - Universal guide and single source of truth
- Skills - 17 AI role definitions
- Templates - 20+ document templates
- Rules - 8 rule files for enforcement
- Workflows - 23 workflow definitions
Layer 2 (Intelligence) - The brain system with 21 sub-agents:
- Monitoring & Compliance: Observer, Monitor, Workflow Validator
- Quality & Scoring: Judge, Scorer, Evaluation
- Learning & Optimization: Self-Learning, DSPy, A/B Test
- Execution & Safety: HITL, Sandbox, Self-Healing
- Intelligence & Routing: Proxy, Router, Task Manager, Research
- Generation & Tracking: Artifact Gen, Cost, Performance
Layer 3 (Infrastructure) - External interfaces and tools:
- CLI, MCP Connectors, GitHub Integration
- Neo4j Knowledge Graph, Documentation
- Workflow Scripts, Communication Tools
Orchestrator Workflow with HITL Gates
The orchestrator workflow manages the complete SDLC lifecycle with mandatory human approval gates:
Key Features:
- 11 Phases: From Planning to Self-Learning
- 3 HITL Gates: Design Approval, Code Review, Deployment Approval
- 4 Checkpoints: State persistence at critical phases
- Self-Healing Loop: Automatic fix/retry on test failures
- Brain Status Checks: Validation at start and end
Flow:
- Planning (@PM) โ Create project plan
- Requirements (@BA) โ Define user stories
- Design (@SA + @UIUX) โ Architecture & UI/UX specs
- ๐ HITL Gate 1 โ Human approval required
- Verification (@TESTER + @SECA) โ Quality & security review
- Development (@DEV + @DEVOPS) โ Feature implementation
- ๐ HITL Gate 2 โ Code review & PR approval
- Testing (@TESTER) โ E2E testing with self-healing
- Bug Fixing (@DEV) โ Issue resolution
- Deployment (@DEVOPS) โ Production deployment
- ๐ HITL Gate 3 โ Production approval
- Reporting (@PM) โ CHANGELOG & review
- Self-Learning (@BRAIN) โ KB sync & archive
Brain Intelligence Sub-Agents Network
The brain system consists of 21 specialized sub-agents working in harmony:
Data Flow Patterns:
- Compliance Feedback Loop: Observer โ Judge โ Self-Learning
- Quality Improvement Loop: A/B Test โ Judge โ Self-Learning
- Persistence: All agents โ State Manager
- Learning: All agents โ Knowledge Graph (Neo4j)
- Approval Gates: HITL โ Critical phases
- Auto-Fix: Self-Healing โ Testing
- Model Routing: Proxy โ All agents
- Cost Tracking: Cost โ All agents
Brain Learning Loop
Every task execution improves the system through compound learning:
8-Step Learning Cycle:
- Execute Task - Any SDLC phase
- Observer Monitors - Track actions & violations
- Judge Scores - Quality assessment (0-100)
- A/B Testing - Generate alternatives
- Self-Learning - Extract patterns:
- Observer violations โ New rules
- Judge scores โ Quality patterns
- A/B results โ Best solutions
- Completed tasks โ Reusable solutions
- Fixed bugs โ Anti-patterns
- Knowledge Storage - Neo4j Graph + SQLite State + LEANN Vector Search
- Context-Aware Suggestions - Smart recommendations
- DSPy Optimization - Improve prompts
Side Flows:
- Error Path: Self-Healing โ Fix โ Back to execution
- Cost Path: Cost Monitor โ Budget alerts
- State Path: State Manager โ Checkpoints
SDLC State Machine
Complete state machine showing all transitions and error handling:
States & Transitions:
- IDLE โ
brain initโ PLANNING - PLANNING (@PM, @BA, @PO) โ User Approval โ DESIGN
- DESIGN (@SA, @UIUX) โ HITL Approval โ VERIFICATION
- VERIFICATION (@TESTER, @SECA) โ Passed โ DEVELOPMENT
- DEVELOPMENT (@DEV, @DEVOPS) โ HITL Code Review โ TESTING
- TESTING (@TESTER) โ Tests Passed โ DEPLOYMENT
- Tests Failed โ Self-Healing โ Back to DEVELOPMENT
- DEPLOYMENT (@DEVOPS) โ HITL Production Approval โ REPORTING
- REPORTING (@PM, @REPORTER) โ Complete โ LEARNING
- LEARNING (@BRAIN) โ Done โ IDLE
Error Handling:
- Any State โ ERROR โ HALTED
- HALTED โ Fix Issue โ Resume โ Previous State
Checkpoints:
- Planning, Design, Development, Deployment
๐ง The Brain System
At the core of Agentic SDLC is the Brain - an intelligent knowledge management system that:
- Learns from every task - Automatically captures patterns from bugs, features, and solutions
- Provides recommendations - Suggests approaches based on past successes
- Builds knowledge graphs - Maps relationships between skills, technologies, and solutions
- Enables compound intelligence - Each project's knowledge benefits all others
โ See GEMINI.md for complete Brain documentation
โจ Installation
๐ Quick Install
Install directly from GitHub:
pip install git+https://github.com/truongnat/agentic-sdlc.git
๐ฆ Initialize in Your Project
Navigate to your project and initialize:
cd your-project
agentic-sdlc init
This will:
- Create
.agent/directory with workflows, skills, and templates - Set up brain system configuration
- Initialize knowledge base
- Create
.env.templatefor API keys
โ๏ธ Configuration
After initialization, configure your API keys (optional):
cp .env.template .env
# Edit .env with your credentials
๐ง Development Setup (From Source)
For contributing or development:
git clone https://github.com/truongnat/agentic-sdlc.git
cd agentic-sdlc
# Run setup script
./bin/setup.sh # Linux/macOS
.\bin\setup.ps1 # Windows
# Or install in editable mode
pip install -e .
๐ง System Commands
All operations are centralized through the asdlc script.
Windows (PowerShell)
.\bin\asdlc.ps1 <command>
Linux / macOS (Bash)
./bin/asdlc.sh <command>
๐ System Dashboard
Monitor agents, costs, and approvals via the real-time dashboard:
python asdlc.py dashboard
๐ Reinforced Intelligence Features
The system has been enhanced with enterprise-grade reliability:
- ๐ก๏ธ Sandboxing: Securely execute agent-generated code in isolated Docker containers.
- ๐ HITL (Human-in-the-Loop): Mandatory approval gates for critical phases (Deploy, Security, Code Review).
- ๐ Persistence & Recovery: Workflow session state management with SQLite-based checkpointing.
- ๐ฉน Self-Healing: Automated QAโDEV feedback loops that learn from error patterns.
- ๐ฐ Cost Monitoring: Real-time token tracking and budget alerts per model/task.
- ๐ Evaluation: Robust benchmarking framework to measure and improve agent performance.
- ๐ Local LLM Support: Privacy-first execution using Ollama for local model hosting.
๐ Core Features
1. AI Role System (17 Roles)
Specialized AI agents for every SDLC phase:
Planning โ @PM, @BA, @PO
Design โ @SA, @UIUX
Review โ @QA, @SECA
Development โ @DEV, @DEVOPS
Testing โ @TESTER
Delivery โ @REPORTER, @STAKEHOLDER
Meta โ @BRAIN, @ORCHESTRATOR
2. Slash Commands (23 Workflows)
Execute complete workflows with simple commands (mapped to asdlc workflow <name>):
/brain # Brain system management (asdlc brain status)
/cycle # Complete task lifecycle
/explore # Deep investigation
/orchestrator # Full SDLC automation
/sprint # Sprint management
/monitor # System dashboard
/validate # System validation
/metrics # View metrics dashboard
/release # Release management
/emergency # Critical incident response
/housekeeping # Cleanup & maintenance
3. Monorepo Architecture
agentic-sdlc/ # ๐ง Brain (Root)
โโโ .agent/ # AI workflows, skills, KB
โโโ tools/ # Neo4j, research, utilities
โโโ docs/ # Documentation
โโโ projects/ # Your projects
โโโ project-1/
โโโ project-2/
โโโ [add-yours]/
Benefits:
- โ Shared brain across all projects
- โ Compound learning from every solution
- โ Consistent workflows and quality
- โ Centralized knowledge management
4. Knowledge Management
Automated Learning:
- Records error patterns and solutions
- Captures successful implementation approaches
- Builds skill and technology graphs
- Provides context-aware recommendations
Three-Layer System:
- LEANN - Vector-based semantic search
- Neo4j - Knowledge graph with relationships
- File-based KB - Categorized markdown entries
๐ Documentation
Getting Started
- GEMINI.md - Complete brain system guide (IDE-agnostic)
- Quick Start - 5-minute setup guide
- CLI Examples - Command usage examples
Architecture
- Monorepo Architecture - System design
- Project Structure - Directory organization
- Documentation Index - All docs
Tools & Setup
- Neo4j Tools - Knowledge graph system
- Research Agent - Automated research
- MCP Setup - Model Context Protocol
๐ฏ Use Cases
Solo Developer
/auto Create a SaaS platform with authentication and billing
# Complete automation from planning to deployment
Team Development
# Each team member uses the same brain
python asdlc.py brain sync
git pull # Share knowledge base
/pm Start Sprint 3
Existing Large Project
python asdlc.py setup
/brain # Index and analyze codebase
/pm Migrate authentication to OAuth2
๐ง Available Commands
# System Dashboard
python asdlc.py dashboard # Start the UI monitoring
# Brain & Intelligence
python asdlc.py brain status # Check system state
python asdlc.py brain health # Full health check
python asdlc.py brain sync # Sync knowledge graph
# Workflows
python asdlc.py workflow cycle # Run task lifecycle
python asdlc.py workflow orchestrator # Full automation
# Release Management
python asdlc.py release preview # Preview changes
python asdlc.py release release # Full release cycle
๐ Why Agentic SDLC?
| Traditional Development | With Agentic SDLC |
|---|---|
| Manual planning | Automated with @PM |
| Ad-hoc architecture | Structured with @SA, @UIUX |
| Inconsistent code quality | Enforced by @QA, @SECA |
| Lost knowledge | Compound learning brain |
| Repetitive tasks | Automated with @AUTO |
| Single-agent limits | Multi-agent teams with AutoGen |
| Solo problem-solving | 17+ AI experts available |
๐ Links
- Repository: https://github.com/truongnat/agentic-sdlc
- NPM Package: https://www.npmjs.com/package/agentic-sdlc
- Issues: https://github.com/truongnat/agentic-sdlc/issues
- Documentation: docs/
๐ License
MIT License - See LICENSE for details
Next Steps:
- Read GEMINI.md to understand the brain system
- Follow Quick Start to get started
- Explore workflows to see available automations
Questions? Check the documentation or open an issue.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentic_sdlc-1.0.0.tar.gz.
File metadata
- Download URL: agentic_sdlc-1.0.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e67214175bb2788b158557e614d33d531ed2114e92b89a88e57b32ce2f3b279
|
|
| MD5 |
a8d62038c4e29c8f8c3e4733c1bceaf5
|
|
| BLAKE2b-256 |
811094467c37383cf15f8287c059ab601a3e2b54fffba37408b37466cb6c30fd
|
File details
Details for the file agentic_sdlc-1.0.0-py3-none-any.whl.
File metadata
- Download URL: agentic_sdlc-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85c714d61b39a49cd8b4dc493f75fee4da1dd0f3a38c8cbc8e77ef4742b54f27
|
|
| MD5 |
44389772561b898d39308fe4dfca2cd8
|
|
| BLAKE2b-256 |
16a97eb36585a23e81a63dcdaf40f29ea43d3f90e6889b2cf9192611fe5c7e1b
|