Reenu90/devops-ai-agent
0
⚙️ DevOps AI Agent
A Gemini-powered AI assistant for DevOps and SRE engineers — chat, explain commands, analyse logs, and generate runbooks.

🚀 Live Demo
Try it now — no install needed: 👉 reenu90-devops-ai-agent.hf.space
✨ Features
🏗️ Architecture
User Input
│
├── Chat query
│ └──▶ Gemini 2.5 Flash
│ └──▶ Streamed response
│
├── DevOps command
│ └──▶ Command Explainer prompt builder
│ └──▶ Gemini 2.5 Flash
│ └──▶ Flag-by-flag breakdown
│
├── Raw logs
│ └──▶ Log Analyser prompt builder
│ └──▶ Gemini 2.5 Flash
│ └──▶ Root cause + fix plan
│
└── Incident description
└──▶ Runbook Generator prompt builder
└──▶ Gemini 2.5 Flash
└──▶ Downloadable .md runbook🚀 Run Locally
1. Clone the repo
git clone https://github.com/Reenu90/devops-ai-agent.git
cd devops-ai-agent2. Set up virtual environment
python3.11 -m venv venv
source venv/bin/activate3. Install dependencies
pip install -r requirements.txt4. Add your Gemini API key
cp .env.example .env
# Edit .env and add your key from https://aistudio.google.com/app/apikey5. Run the app
python -m streamlit run app.py🔑 Getting a Free Gemini API Key
- Go to Google AI Studio
- Sign in with your personal Google account
- Click Create API Key in new project
- Copy it into your
.envfile
🗂️ Project Structure
devops-ai-agent/
├── app.py # Streamlit UI
├── requirements.txt
├── .env.example
├── src/
│ ├── __init__.py
│ └── agent.py # Gemini 2.5 Flash integration
└── tools/
├── __init__.py
├── command_explainer.py # Prompt builder for command breakdowns
├── log_analyser.py # Prompt builder for log diagnosis
└── runbook_generator.py # Prompt builder for runbook generation🛠️ Tech Stack
🔮 Roadmap
- [ ] GCP Monitoring integration — pull real logs directly from Cloud Logging
- [ ] Terraform plan analyser — paste a
terraform planoutput → get risk assessment - [ ] Multi-turn incident response mode
- [ ] MCP server — expose tools as a standard Model Context Protocol server
- [ ] Slack bot integration
- [ ] Export runbooks to Confluence
👩💻 Author
Built by Reenu Jacob — Google Cloud Professional ML Engineer LinkedIn · GitHub
📄 License
MIT
