The concept of Agentic DevOps got introduced in Microsoft Build conference 2025. Agentic DevOps is a paradigm, not a product. It's accessible to all, regardless of your tech stack or tooling. Use AI-powered tools like Cursor, Windsurf, Claude Code, Continue, Cline, or open-source models like Llama 4, Mistral, DeepSeek, Qwen. Deploy on-prem with vLLM, SGLang, or in the cloud with AWS, GCP, Azure.
A comprehensive demonstration of Agentic DevOps using DSPy and Model Context Protocol (MCP). The convep
This suite includes three specialized agents and a combined demo showcasing automated PR reviews, tech debt analysis, and incident response.
- PR Review Agent: Automated security analysis, documentation review, and impact assessment
- Tech Debt Agent: Dependency analysis, code complexity scanning, and test coverage reporting
- Incident Response Agent: Automated incident diagnosis, remediation, and reporting
- Python 3.8+
- Node.js 14+
- OpenAI API key
- GitHub personal access token
- Mac OS X or Linux (Windows support may vary)
- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate- Clone the repository:
git clone https://github.com/superagenticai/agentic-devops.git
cd agentic-devops- Install Python dependencies:
pip install "agenspy[mcp]" dspy openai- Install Node.js dependencies:
npm install -g @modelcontextprotocol/server-github- Set up environment variables:
# For macOS/Linux
export OPENAI_API_KEY="your-openai-key"
export GITHUB_TOKEN="your-github-token"
# For Windows PowerShell
$env:OPENAI_API_KEY="your-openai-key"
$env:GITHUB_TOKEN="your-github-token"Alternatively, create a .env file:
OPENAI_API_KEY=your-openai-key
GITHUB_TOKEN=your-github-tokenpython pr_review_agent.pyThis will analyze a sample PR and provide:
- Security analysis
- Documentation review
- Implementation suggestions
- Impact assessment
python tech_debt_agent.pyThis will scan a repository for:
- Deprecated dependencies
- Complex code modules
- Test coverage gaps
- Refactoring opportunities
python incident_response_agent.pyThis will simulate incident handling with:
- Automated diagnostics
- Remediation attempts
- Incident reporting
- On-call notifications
python agentic_devops_demo.pyThis will run all three agents in sequence, demonstrating:
- PR review workflow
- Technical debt analysis
- Incident response simulation
agentic-devops/
├── pr_review_agent.py # PR review automation
├── tech_debt_agent.py # Technical debt analysis
├── incident_response_agent.py # Incident response automation
└── README.md
- Visit OpenAI API
- Create an account or log in
- Navigate to API Keys section
- Create a new secret key
- Copy and set as
OPENAI_API_KEY
- Visit GitHub Settings > Developer Settings
- Generate new token (classic)
- Select scopes:
repo(full access)read:orgworkflow
- Copy and set as
GITHUB_TOKEN
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
-
MCP Server Connection Failed
# Check if server is running ps aux | grep mcp # Restart server npx @modelcontextprotocol/server-github
-
API Key Issues
# Verify environment variables echo $OPENAI_API_KEY echo $GITHUB_TOKEN
-
Dependencies Missing
# Reinstall dependencies pip install -r requirements.txt npm install -g @modelcontextprotocol/server-github
MIT License - feel free to use and modify for your needs.
For issues and questions:
- Check the Issues section
- Create a new issue with detailed information