Autonomous Software Development Lifecycle - AI-powered development agent system
Current Phase: Phase 2 β
COMPLETE
Next Phase: Phase 3 (End-to-End Features)
Overall Progress: Multi-agent framework implemented, 121/137 tests passing (88.3%)
- Node.js 20+
- Docker & Docker Compose
- Git
# Clone repository
git clone https://github.com/reza899/AutoSDLC.git
cd AutoSDLC
# Install dependencies
npm install
# Ensure Docker is running
docker --version
# If Docker is not running, start Docker Desktop or Docker daemon
# Start complete development environment
npm run dev
# This automatically handles:
# - Building TypeScript code
# - Starting Docker services (PostgreSQL, Redis)
# - Running database migrations
# - Starting MCP server
# Verify health
curl http://localhost:8080/healthIf npm run dev fails, you can start services manually:
# Build TypeScript
npm run build
# Start Docker services
docker-compose up -d
# Wait for services to be healthy (30-60 seconds)
docker-compose ps
# Run migrations
npm run db:migrate
# Start MCP server
npm run mcp:server# Run complete test cycle with automatic setup and cleanup
npm test
# This automatically handles:
# - Starting test environment (Docker services)
# - Running all tests with real implementations
# - Cleaning up test resources and stopping services
# For development with persistent test environment
npm run test:coverage
# Run specific test suites (requires manual test environment)
npm test tests/unit/mcp-server.test.ts # No Docker required
npm test tests/unit/database.test.ts # Requires PostgreSQL
npm test tests/integration/docker.test.ts # Requires full Docker stack| Test Suite | Docker Required | Services Needed |
|---|---|---|
mcp-server.test.ts |
β No | None (unit tests only) |
database.test.ts |
β Yes | PostgreSQL container |
docker.test.ts |
β Yes | Full stack (PostgreSQL, Redis, MCP server) |
| Command | Description |
|---|---|
npm run dev |
Start complete development environment (build, services, migrations, server) |
npm test |
Run complete test cycle with automatic setup and cleanup |
npm run test:coverage |
Run tests with coverage report |
npm run build |
Build TypeScript |
docker-compose up -d |
Start infrastructure services (manual) |
docker-compose down |
Stop all services |
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Customer Agent β β PM Agent β β Coder Agent β
β Requirements βββββΊβ Coordination βββββΊβ TDD β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
βββββββββββββββββββββββββΌββββββββββββββββββββββββ
βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Reviewer Agent β β MCP Server β β Tester Agent β
β Quality/QA βββββΊβ (Communication) βββββΊβ Testing/CI β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β
βββββββββββββββββββ βββββββββββββββββββ
β PostgreSQL β β Redis β
β Port: 5432 β β Port: 6379 β
β Agent Status β β Cache/Queue β
βββββββββββββββββββ βββββββββββββββββββ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β GitHub Issues β β Real Workflows β β Web Dashboard β
β Integration βββββΊβ Complete TDD βββββΊβ Monitoring β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
- Red-Green-Refactor cycle strictly followed
- No Mocks - all tests use real implementations
- 80%+ Coverage required for all features
- All tests use real implementations (no mocks)
- Database tests run against real PostgreSQL
- Integration tests verify full Docker stack
- Minimum 80% coverage requirement enforced
βββ src/
β βββ agents/ # Multi-agent framework
β β βββ base-agent.ts # Abstract agent foundation
β β βββ simple-base-agent.ts # Practical agent implementation
β β βββ customer-agent.ts # Requirements validation agent
β β βββ pm-agent.ts # Project coordination agent
β β βββ coder-agent.ts # TDD implementation agent
β β βββ code-reviewer-agent.ts # Quality assurance agent
β β βββ tester-agent.ts # Testing and CI/CD agent
β β βββ mcp-client.ts # MCP outbound communication
β β βββ mcp-agent-server.ts # MCP inbound server
β β βββ message-router.ts # Agent discovery and routing
β β βββ tool-registry.ts # System-wide tool registry
β β βββ agent-output-writer.ts # Status file generation
β β βββ status-synchronizer.ts # Real-time status coordination
β βββ core/
β β βββ mcp-server.ts # MCP server implementation
β β βββ database-manager.ts # Database operations
β βββ workflow/
β β βββ workflow-coordinator.ts # Multi-agent orchestration
β βββ demo/
β β βββ workflow-demo.ts # Complete system demonstration
β βββ types/
β β βββ agent-types.ts # Agent type definitions
β β βββ config.ts # Configuration interfaces
β βββ mcp-server.ts # Application entry point
βββ tests/
β βββ unit/ # Unit tests (121 tests)
β β βββ base-agent.test.ts # Agent framework tests
β β βββ concrete-agents.test.ts # Specialized agent tests
β β βββ mcp-communication.test.ts # Communication tests
β β βββ agent-status-system.test.ts # Status coordination tests
β β βββ database.test.ts # Database integration tests
β β βββ mcp-server.test.ts # MCP server tests
β βββ integration/ # Integration tests (16 tests)
β βββ docker.test.ts # Full stack integration
β βββ docker-simple.test.ts # Basic integration
β βββ tdd-workflow.test.ts # TDD workflow tests
βββ Docs/
β βββ Phase-1-Technical-Report.md # Phase 1 documentation
β βββ Phase-2-Technical-Report.md # Phase 2 documentation
β βββ [30+ documentation files] # Complete system specs
βββ docker-compose.yml # Production services
βββ docker-compose.test.yml # Test services
βββ Dockerfile # Production container
βββ Dockerfile.test # Test container
# Server Configuration
MCP_PORT=8080
MCP_HOST=0.0.0.0
# Database Configuration
DATABASE_URL=postgresql://user:pass@host:5432/dbname
# OR individual settings:
DB_HOST=localhost
DB_PORT=5432
DB_NAME=autosdlc
DB_USER=postgres
DB_PASSWORD=postgres
# Redis Configuration
REDIS_URL=redis://localhost:6379The system uses Docker Compose for service orchestration:
- PostgreSQL: Database with persistence and health checks
- Redis: Cache and message queue
- MCP Server: Main application with health endpoint
Docker Requirements:
- Docker Desktop (macOS/Windows) or Docker Engine (Linux)
- Docker Compose v2+
- Available ports: 5432 (PostgreSQL), 6379 (Redis), 8080 (MCP Server)
Starting Docker Services:
# Development environment
docker-compose up -d
# Test environment (different ports)
docker-compose -f docker-compose.test.yml up -d
# Check services are healthy
docker-compose ps-
MCP Server:
GET /health{ "status": "healthy", "timestamp": "2025-06-09T01:05:50.640Z", "version": "0.1.0", "uptime": 28787 } -
Database: Connection pool status
-
Redis: Ping response verification
-
Write failing tests first
npm test -- --watch -
Verify tests are red
npm run test:verify-red
-
Implement minimal code to pass
-
Verify tests are green
npm test -
Refactor while maintaining green
-
Check coverage meets 80%
npm run test:coverage
- System Documentation: Comprehensive system specifications
- Getting Started Guide: Quick start guide
- API Documentation: REST, GraphQL, WebSocket APIs
- Architecture Overview: System design and patterns
- MCP Server with health checks
- Database with migrations and transactions
- Docker stack with service orchestration
- Comprehensive testing (80%+ coverage)
- 5 specialized agents (Customer, PM, Coder, Reviewer, Tester)
- Complete MCP communication system (Client/Server/Router)
- Real-time Agent_Output.md status coordination
- 121/137 tests passing (88.3% success rate)
- Workflow orchestration framework
- Clean development environment
- Complete TDD workflow implementation
- Real GitHub integration with pull requests
- Advanced multi-agent coordination
- Production web dashboard
- Enterprise-grade monitoring and security
- Fork the repository
- Clone your fork
- Install dependencies:
npm install - Start development stack:
npm run dev - Run tests:
npm test
- Create feature branch from
main - Write tests first (TDD)
- Implement features
- Ensure 80%+ test coverage
- Update documentation
- Submit pull request
- Database connections use parameter binding
- CORS configured for known origins
- Environment-based secrets management
- Container isolation for services
This project is part of the AutoSDLC system. See LICENSE file for details.
- Issues: GitHub Issues
- Documentation: Technical Documentation
- Health Check: Server Status
Built with: TypeScript, Express.js, PostgreSQL, Redis, Docker
Testing: Jest, Supertest, Real Implementations (No Mocks)
Development: Test-Driven Development (TDD)
Status: Phase 2 Complete β
- Multi-Agent Framework Ready