# SavageOps

> AI SRE that roasts your broken code — then fixes it

The page: https://tushar-is-a-dev-portfolio.vercel.app/work/savageops

2026 · System

🏆 4-Agent LangGraph · 3-Provider Failover · Human-in-the-Loop

Catches Grafana/Loki crashes, runs a 4-agent LangGraph triage with automatic provider failover, roasts the buggy commit, and opens a GitHub PR with a human still holding the merge button.

## What it does

- Orchestrates **4 LangGraph agents** (Triage, Analyst, Spokesperson, Fixer) behind **2 human approval gates** so no code ships without explicit sign-off.
- **Sentinel** gateway handles Bearer-authenticated Grafana webhooks, 15s backup polling, deterministic fingerprinting, cooldown debouncing, and semaphore concurrency (max 3).
- **Hardening & security** via `redact_untrusted_data()` secret scrubbing, LogQL injection sanitization, path-traversal blocking, **AST + Ruff** pre-PR checks, and a **self-healing CI retry loop**.
- **Multi-provider LLM failover** across Gemini, Groq, and OpenRouter with thread-safe rate limits, daily token caps, and Supabase `agent_runs` telemetry.
- Includes a first-class **`savageops` CLI** (`run`, `doctor`, `models`, `simulate`, `init`), Prometheus `/metrics`, and **122+ Pytest tests** across 20 modules.

## Built with

Python, FastAPI, LangGraph, Supabase, Grafana, Loki, Prometheus, Docker

- [Repo](https://github.com/tusharsingh-sde/SavageOps)

## Screenshots

![SavageOps 1](https://tushar-is-a-dev-portfolio.vercel.app/work/savageops-1.webp)

![SavageOps 2](https://tushar-is-a-dev-portfolio.vercel.app/work/savageops-2.webp)

![SavageOps 3](https://tushar-is-a-dev-portfolio.vercel.app/work/savageops-3.webp)

![SavageOps 4](https://tushar-is-a-dev-portfolio.vercel.app/work/savageops-4.webp)
