https://github.com/pmutua/chaospilot
ChaosPilot is an intelligent log analysis platform that uses AI agents to automatically analyze error, warning, and critical logs, detect patterns, classify incidents, and recommend fixes.
https://github.com/pmutua/chaospilot
adk-python agentdevelop aiagents aiintegrations angular bash-scripting batch-script docker docker-compose gemini googleai googlecloud googlegen llms makefile mcp mcp-server mcp-tool-box-for-databases python vercel-deployment
Last synced: about 1 month ago
JSON representation
ChaosPilot is an intelligent log analysis platform that uses AI agents to automatically analyze error, warning, and critical logs, detect patterns, classify incidents, and recommend fixes.
- Host: GitHub
- URL: https://github.com/pmutua/chaospilot
- Owner: pmutua
- Created: 2025-06-13T06:37:46.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-06-24T00:10:55.000Z (11 months ago)
- Last Synced: 2025-06-24T01:25:33.870Z (11 months ago)
- Topics: adk-python, agentdevelop, aiagents, aiintegrations, angular, bash-scripting, batch-script, docker, docker-compose, gemini, googleai, googlecloud, googlegen, llms, makefile, mcp, mcp-server, mcp-tool-box-for-databases, python, vercel-deployment
- Language: TypeScript
- Homepage: https://chaos-pilot.vercel.app
- Size: 41 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChaosPilot โ AI-Powered Log Analysis Platform
> **Modern, full-stack AI platform for automated log analysis, incident classification, and intelligent remediation.**
---
[๐ Quick Start](QUICK_START.md) | [๐ Setup Guide](docs/setup-and-deployment/HOW_TO_RUN_AND_DEPLOY_THE_APPLICATION.md) | [๐ง ADK Integration](docs/setup-and-deployment/ADK_INTEGRATION_README.md) | [๐งช Test Integration](test_adk_integration.py)
---
## ๐ฏ What is ChaosPilot?
ChaosPilot is an intelligent log analysis platform that uses AI agents to automatically analyze error, warning, and critical logs, detect patterns, classify incidents, and recommend fixes.
**We manage the chaos of production errors through intelligent log analysis.**
---
## ๐ Features
- **๐ AI-Powered Analysis:** LLMs analyze logs for patterns and anomalies
- **๐ Incident Classification:** Auto-classifies by severity, impact, urgency
- **๐ Smart Response Planning:** Generates actionable response plans
- **๐ ๏ธ Automated Fix Recommendations:** Suggests and executes safe fixes
- **โก Safe Auto-Fixing:** Automated fixes with rollback capability
- **๐ข Smart Alerting:** Intelligent notifications and escalations
- **๐ Real-Time Dashboard:** Live metrics, workflow visualization, and insights
---
## ๐๏ธ Architecture
| Layer | Tech/Tools |
|------------|-------------------------------------------------|
| Frontend | Angular, TypeScript, TailwindCSS, RxJS |
| Backend | Python, FastAPI, Google ADK, async/await |
| Auth | Supabase (user/session management) |
| Data/AI | Google ADK agents, BigQuery, LLMs |
| DevOps | Docker, GCP, `uv`, `hatch` |
---
## ๐ Quick Start
### Prerequisites
- [Google Cloud CLI](https://cloud.google.com/sdk/docs/install-sdk)
- [Python 3.9+](https://wiki.python.org/moin/BeginnersGuide/Download)
- [Uv](https://pypi.org/project/uv/) - ๐ A single tool to replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, and more.
>
- [Node.js 16+](https://nodejs.org/)
- [MCP Toolbox for Databases](https://googleapis.github.io/genai-toolbox/getting-started/local_quickstart/)
### Setup
1. **Clone the repository**
```bash
git clone https://github.com/pmutua/ChaosPilot
cd ChaosPilot
```
2. **Create and activate a Python virtual environment**
- Create virtual environment
```bash
uv venv
```
- Activate virtual environment
```bash
# Linux/macOS:
source .venv/bin/activate
# Windows
.venv\Scripts\activate
```
3. **Install dependencies**
```bash
uv sync
```
4. **Rename `.env.template` to `.env` and add relevant environment variables:**
```env
APP_NAME="agent_manager"
VERSION=0.0.0
MODEL=""
# If you are using Google Gemini use this
GOOGLE_GENAI_USE_VERTEXAI=FALSE
GOOGLE_API_KEY=PASTE_YOUR_ACTUAL_API_KEY_HERE
# If you are using Azure Open AI use this
AZURE_API_KEY="add api key"
AZURE_API_BASE=https://example.openai.azure.com/
AZURE_API_VERSION="2025-05-05-preview"
```
5. **Set up Google Cloud, BigQuery, and MCP Toolbox**
(See [Setup Guide](docs/setup-and-deployment/HOW_TO_RUN_AND_DEPLOY_THE_APPLICATION.md) for full details.)
---
## ๐ฅ๏ธ Running the Application
### Start All Services
```bash
# Start MCP Toolbox
cd mcp-toolbox
toolbox --tools-file="tools.yaml"
# Start ADK API Server (with CORS)
cd ../agent_manager
adk api_server --allow_origins="*"
# or in root directory run:
adk api_server agent_manager --allow_origins="*"
# Start Frontend
cd ../web
npm install
npm start
```
## Debugging with Agent Development Kit UI
Simply run the following command:
```bash
adk web
# And navigate to port 8000. Now you can interact with the Agents and debug.
```
> **NOTE:** Make sure that you select "agent_manager" on "Select Agent" option.
---

## ๐ Documentation
- [Setup & Deployment Guide](docs/setup-and-deployment/HOW_TO_RUN_AND_DEPLOY_THE_APPLICATION.md)
---
## ๐ Usage Examples
### Analyze Error Logs
1. Go to the Log Analysis page
2. Select the "Log Analyzer" agent
3. Provide error logs or describe the issue
4. Get AI-powered analysis with confidence scores
### Get Fix Recommendations
1. Use the "Fix Recommender" agent
2. Share the analyzed logs and issues
3. Get specific fix suggestions with implementation steps
### Automated Incident Response
1. System detects critical issues
2. AI agents generate response plans
3. Safe automated fixes are applied
4. Teams are notified with detailed reports
---
## ๐ Production Deployment
See [Setup & Deployment Guide](docs/setup-and-deployment/HOW_TO_RUN_AND_DEPLOY_THE_APPLICATION.md) for GCP/Cloud Run instructions.
---
## ๐ง Troubleshooting
- **CORS Errors:** Use `adk api_server app --allow_origins="*"`
- **Service Account Issues:** Run the IAM role assignment scripts
- **Billing Errors:** Ensure GCP billing is enabled
- **Agent Not Found:** Verify you're running from the correct directory
---
## ๐ค Contributing
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Add tests if applicable
5. Submit a pull request
---
## ๐ License
MIT License โ see the LICENSE file for details.
---
## ๐ Support
- Create an issue in the repository
- Check the [documentation](docs/setup-and-deployment/)
- Review the [troubleshooting guide](docs/setup-and-deployment/HOW_TO_RUN_AND_DEPLOY_THE_APPLICATION.md#-troubleshooting)
---
**ChaosPilot** โ Managing the chaos of production errors through AI-powered log analysis.