Skip to main content

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 /slash commands
  • 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):

3-Layer Architecture

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:

Orchestrator Workflow

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:

  1. Planning (@PM) โ†’ Create project plan
  2. Requirements (@BA) โ†’ Define user stories
  3. Design (@SA + @UIUX) โ†’ Architecture & UI/UX specs
  4. ๐Ÿ›‘ HITL Gate 1 โ†’ Human approval required
  5. Verification (@TESTER + @SECA) โ†’ Quality & security review
  6. Development (@DEV + @DEVOPS) โ†’ Feature implementation
  7. ๐Ÿ›‘ HITL Gate 2 โ†’ Code review & PR approval
  8. Testing (@TESTER) โ†’ E2E testing with self-healing
  9. Bug Fixing (@DEV) โ†’ Issue resolution
  10. Deployment (@DEVOPS) โ†’ Production deployment
  11. ๐Ÿ›‘ HITL Gate 3 โ†’ Production approval
  12. Reporting (@PM) โ†’ CHANGELOG & review
  13. Self-Learning (@BRAIN) โ†’ KB sync & archive

Brain Intelligence Sub-Agents Network

The brain system consists of 21 specialized sub-agents working in harmony:

Brain Intelligence Sub-Agents

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:

Brain Learning Loop

8-Step Learning Cycle:

  1. Execute Task - Any SDLC phase
  2. Observer Monitors - Track actions & violations
  3. Judge Scores - Quality assessment (0-100)
  4. A/B Testing - Generate alternatives
  5. 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
  6. Knowledge Storage - Neo4j Graph + SQLite State + LEANN Vector Search
  7. Context-Aware Suggestions - Smart recommendations
  8. 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:

SDLC State Machine

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.template for 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:

  1. LEANN - Vector-based semantic search
  2. Neo4j - Knowledge graph with relationships
  3. File-based KB - Categorized markdown entries

๐Ÿ“– Documentation

Getting Started

Architecture

Tools & Setup

๐ŸŽฏ 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

๐Ÿ“„ License

MIT License - See LICENSE for details


Next Steps:

  1. Read GEMINI.md to understand the brain system
  2. Follow Quick Start to get started
  3. 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

agentic_sdlc-1.0.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentic_sdlc-1.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

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

Hashes for agentic_sdlc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1e67214175bb2788b158557e614d33d531ed2114e92b89a88e57b32ce2f3b279
MD5 a8d62038c4e29c8f8c3e4733c1bceaf5
BLAKE2b-256 811094467c37383cf15f8287c059ab601a3e2b54fffba37408b37466cb6c30fd

See more details on using hashes here.

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

Hashes for agentic_sdlc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85c714d61b39a49cd8b4dc493f75fee4da1dd0f3a38c8cbc8e77ef4742b54f27
MD5 44389772561b898d39308fe4dfca2cd8
BLAKE2b-256 16a97eb36585a23e81a63dcdaf40f29ea43d3f90e6889b2cf9192611fe5c7e1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page