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