Skip to content

ArshVermaGit/SentinelOps-Autonomous-DevOps-AI

Repository files navigation

πŸ›‘οΈ SentinelOps

AI-Powered DevOps Co-Pilot
Built by Arsh Verma β€” Bringing intelligence to the dev pipeline.

License: MIT Status: Production Ready Python Next.js FastAPI

SentinelOps is an AI-powered DevOps co-pilot that helps developers understand their delivery pipelines better. It stops the "fail-react" loop by predicting risks at the PR gate and explaining CI/CD failures in plain English.


  • 🎭 Autonomous Gatekeeper: Reports risk-based commit statuses directly to GitHub to block unsafe merges. Setup Guide
  • πŸ§ͺ Digital Twin Simulation: Monte Carlo simulations (1,000 iterations) to predict deployment stability.
  • πŸ—ΊοΈ Cluster Risk Heatmap: Real-time tile-based visualization of repository and cluster-level health.
  • 🧠 Automated Root Cause: LLM-powered log analysis provides natural language explanations.
  • πŸ” Similarity Search: Matches new failures against historical incident patterns.

🎯 Problem

Every engineering team suffers from the same pain:

  • CI failures that alert you after the damage is done
  • Raw logs with no context β€” hours of manual debugging
  • PRs that look fine but carry hidden risk
  • The same incidents repeating because patterns go unrecognized

Last month, a typical engineering team loses 12+ hours to CI failures alone.


πŸ’‘ The Solution

SentinelOps is a real-time engineering insights system that:

Feature Description
🎭 GitHub Gatekeeper Reports success/failure to GitHub to block risky PRs
πŸ§ͺ Digital Twin Engine Runs 1K Monte Carlo iterations to simulate deployment reliability
πŸ—ΊοΈ Cluster Risk Heatmap Premium tile-based health intensity mapping for entire infra clusters
🧠 LLM Root Cause Analysis OpenAI explains why the CI failed + suggests a patch diff
πŸ” Failure Similarity Search Vectorized search: "95% similar to Incident #234 β€” memory leak pattern"
πŸ“Š CI Health Analytics Build trends, anomaly detection, and "System Pulse" score

πŸ—οΈ Architecture

GitHub Webhooks β†’ FastAPI β†’ Redis Queue β†’ Celery Workers
                                              β”‚
                              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                              β–Ό               β–Ό               β–Ό
                        Risk Analyzer   CI Analyzer      LLM Engine
                        (Logistic       (Embeddings +    (OpenAI GPT-4o)
                         Regression)     DBSCAN)
                              β”‚               β”‚               β”‚
                              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                              β”‚
                                       PostgreSQL + Redis
                                              β”‚
                                    Next.js Dashboard
                                    (WebSocket real-time)

πŸ› οΈ Tech Stack

Frontend: Next.js 14 Β· TypeScript Β· Tailwind CSS Β· Recharts Β· React Flow Β· Framer Motion

Backend: FastAPI (Python) Β· Celery Β· PostgreSQL Β· Redis Β· WebSockets

AI/ML: OpenAI GPT-4o Β· scikit-learn (Logistic Regression) Β· SentenceTransformers

Infrastructure: Docker Β· Docker Compose Β· Vercel Β· Render


πŸš€ Quick Start

Prerequisites

  • Docker & Docker Compose
  • Node.js 18+
  • Python 3.11+
  • OpenAI API Key
  • GitHub Personal Access Token

1. Clone the repository

git clone https://github.com/YOUR_USERNAME/sentinelops
cd sentinelops

2. Configure environment variables

cp sentinelops-backend/.env.example sentinelops-backend/.env
# Edit .env and add your API keys:
# OPENAI_API_KEY=sk-...
# GITHUB_TOKEN=ghp_...

3. Start backend services

cd sentinelops-backend
docker compose up -d

4. Train the ML model

docker compose exec api python -m app.ml.train

5. Seed demo data

docker compose exec api python scripts/seed_demo_data.py

6. Start the frontend

cd sentinelops-frontend
npm install
npm run dev

7. Access the application


πŸ“ Project Structure

sentinelops/
β”œβ”€β”€ sentinelops-backend/        # FastAPI Python backend
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ main.py             # FastAPI app
β”‚   β”‚   β”œβ”€β”€ models/             # SQLAlchemy ORM models
β”‚   β”‚   β”œβ”€β”€ routers/            # API route handlers
β”‚   β”‚   β”œβ”€β”€ services/           # Business logic
β”‚   β”‚   β”œβ”€β”€ workers/            # Celery background tasks
β”‚   β”‚   └── ml/                 # ML model training + inference
β”‚   β”œβ”€β”€ scripts/
β”‚   β”‚   └── seed_demo_data.py   # Demo data seeder
β”‚   β”œβ”€β”€ docker-compose.yml
β”‚   └── requirements.txt
β”‚
└── sentinelops-frontend/       # Next.js 14 frontend
    β”œβ”€β”€ app/
    β”‚   β”œβ”€β”€ dashboard/          # Main dashboard
    β”‚   β”œβ”€β”€ incidents/          # Incident explorer
    β”‚   β”œβ”€β”€ repositories/       # Risk heatmap
    β”‚   β”œβ”€β”€ pull-requests/      # PR gatekeeper
    β”‚   └── analytics/          # Engineering insights
    β”œβ”€β”€ components/             # Reusable UI components
    β”œβ”€β”€ hooks/                  # Custom React hooks
    └── lib/                    # API client + utilities

πŸ“± Connect with Me

I'd love to hear your feedback or discuss potential collaborations!

GitHub LinkedIn Twitter Gmail


Built with ❀️ by Arsh Verma

About

πŸ›‘οΈ Autonomous DevOps AI Co-Pilot. We predict failures before they happen and fix them when they do. Powered by ML & Generative AI. πŸš€πŸ›‘οΈ

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors