AIDevOS is a self-evolving AI DevOps system that automates the development, deployment, and evolution of SaaS applications using AI-driven multi-agent collaboration and Durable Objects (DOs).
AIDevOS enables:
- Receiving a product spec from a user or business requirement
- AI agents discussing and refining the architecture
- Durable Objects acting as modular microservices
- AI writing, testing, and deploying code iteratively
- The system expanding itself dynamically as complexity grows
- AI agents with distinct roles: PM, Backend, Frontend, DevOps, QA, Security
- Uses debate/reflection cycles to refine architecture
- Output: System architecture + task breakdown
- Each DO acts as an independent service with its own logic
- AI deploys DOs dynamically to expand functionality
- AI can redeploy DOs to evolve architecture
- AI writes code β runs tests β deploys via a pipeline
- If an issue is found, AI refines and redeploys
- Logs and feedback loops ensure continuous improvement
- AI monitors performance and resource utilization
- Spins up new DOs or refactors existing ones
- Uses reinforcement learning to optimize architecture
Detailed architecture diagrams are available in the docs/architecture directory:
- System Architecture: High-level overview of the AIDevOS system
- Multi-Agent Workflow: Collaboration workflow between AI agents
- Durable Objects Architecture: Microservices architecture
- CI/CD Pipeline Architecture: AI-driven CI/CD pipeline
- Implementation Roadmap: Development phases and milestones
The AIDevOS system features a modern, responsive web interface built with:
- React: Component-based UI library
- TypeScript: Type-safe JavaScript
- TailwindCSS: Utility-first CSS framework
- Redux Toolkit: State management
- React Router: Navigation and routing
- Dashboard for system monitoring and overview
- Agent management and collaboration views
- Deployment tracking and visualization
- Performance monitoring and analytics
- Dark/light mode support
- Responsive design for all device sizes
- Reusable UI component library
- Accessible interface (WCAG AA compliance)
- Interactive visualizations for system performance
- Real-time updates for system events
# Navigate to frontend directory
cd src/frontend
# Install dependencies
npm install
# Start development server
npm run dev
# Run tests
npm test
# Build for production
npm run build
For more details, see src/frontend-plan.md.
AIDevOS can be enhanced with Claude Code, an agentic coding tool from Anthropic:
- Claude Code Integration: Detailed guide on integrating Claude Code with AIDevOS
- Claude Code Prompts: Specialized prompts for each agent role
- Agent SOPs: Comprehensive Standard Operating Procedures for each agent
- Enhances multi-agent workflow with AI-powered coding assistance
- Provides implementation plan and best practices for using Claude Code with AIDevOS
AIDevOS now includes integration with DSPy, an advanced language model framework from Stanford NLP:
- Enhanced Agent Reasoning: Improves agent capabilities with structured language model reasoning
- Optimized Prompting: Uses DSPy's prompt optimization techniques to improve agent outcomes
- Separate Implementation: Available as
dspy_team_collaboration.py
alongside the original implementation
- DSPy-enabled Agents: Each agent role (PM, Dev, DevOps, UX) has a DSPy-powered version
- Optimizable Modules: Agent capabilities are built as DSPy modules that can be optimized
- Pluggable LLM Support: Compatible with OpenAI, Anthropic, and other LLM providers
- Structured Reasoning: DSPy's structured signatures provide better reasoning patterns
# Install DSPy dependencies
pip install -r requirements-dspy.txt
# Set your API key in environment variables
export OPENAI_API_KEY="your-key-here"
# Run the DSPy-enabled team collaboration
python src/dspy_team_collaboration.py
For more details, see the implementation in:
src/agents/dspy_modules.py
: DSPy module implementationssrc/agents/dspy_agent.py
: DSPy-enabled agent classessrc/dspy_team_collaboration.py
: Main implementation using DSPy agentssrc/config/dspy_config.py
: Configuration for DSPy (API keys, models)
AIDevOS now includes a powerful self-modification system that allows agents to improve their own code:
- Auto-Generated Improvements: Agents analyze their performance and generate code improvements
- GitHub Integration: Automatic branch creation, commits, and pull requests
- Durable Objects Enhancement: Durable Objects can now evolve their own implementation
- Feedback Loop: Performance metrics drive continuous code optimization
- Code Mutator Engine: Core system for modifying code based on AI-generated prompts
- Self-Improvement Analysis: Identifies optimization opportunities based on metrics
- Version Control Integration: Safely deploys changes through GitHub workflow
- Transparent Explanations: All modifications include detailed explanations
# Set up GitHub integration
export GITHUB_TOKEN="your-token-here"
export GITHUB_REPOSITORY="your-username/your-repo"
# Run the self-modifying agent example
python examples/self_modifying_agent.py
For more details, see the implementation in:
src/deployment/code_mutator.py
: Core implementation of code modification capabilitiessrc/deployment/self_improvement.py
: Performance analysis and optimization identificationexamples/self_modifying_agent.py
: Example of a self-modifying DSPy agent
AIDevOS uses a multi-branch collaborative approach:
- PM-Architecture Branch: System design, feature planning, and architecture
- Backend-DB Branch: API design, database models, and business logic
- Frontend-UI Branch: UI/UX design, frontend components, and user interactions
- DevOps-QA Branch: CI/CD pipeline, testing, deployment, and monitoring
- Main Branch: Integration, merging, and release management
For more details, see docs/multi-agent-workflow.md.
- Python 3.8+
- Git
- tmux (for multi-agent workflow)
- Node.js 18+ (for frontend development)
-
Clone the repository:
git clone https://github.com/yourusername/aidevos.git cd aidevos
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
cp .env.example .env # Edit .env with your API keys and configuration
-
Start the multi-agent tmux session:
./setup-aidevos-team.sh
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.