Skip to main content
01 // AI SRE & Multi-Agent DevOps4-Agent SRE • 122+ Tests

SavageOps

Multi-agent AI DevOps & SRE incident auto-remediation platform that triages Grafana/Loki alerts, performs root-cause analysis, roasts offending code patterns, and opens AST/Ruff-validated GitHub PRs with two human approval gates and a self-healing CI retry loop.

RoleCreator & Systems Architect
ContextProduction-Grade AI SRE Platform
Source Code
Test Suite
122+ Tests
Pipeline
4 Agents / 2 Gates
LLM Failover
3 Providers
INTERACTIVE SYSTEM SIMULATORLIVE CLIENT DEMO
LANGGRAPH SRE • 4 AGENTS / 2 GATES122+ TESTS • REDACTED
SENTINEL INGESTION|Semaphore: 1/3 Active
INGESTED · P1

[SENTINEL] Bearer-auth Grafana webhook verified (SHA-256 fingerprint).

[ALERTMANAGER] Poller synced: alertname=PaymentGatewayTimeout service=checkout

[DEDUPE] Fingerprint: f4a8b1... Group debounced. Concurrency slot acquired.

PATH GUARD + AST/RUFFPROMETHEUS /METRICS
01 // THE BOTTLENECK

Problem Space

On-call engineers burn hours at 3 AM digging through noisy logs across microservices only to find simple bugs, while blind autonomous bots risk pushing unverified code or leaking secrets to LLM APIs.

02 // THE SYSTEM

Production Architecture

Sentinel ingests Grafana webhooks (backed by a 15s Alertmanager poller), deduplicates via deterministic fingerprints, and dispatches up to 3 concurrent LangGraph pipelines across Triage, Analyst, Spokesperson, and Fixer agents with strict credential redaction and two mandatory human approval gates.

Execution Pipeline

  1. STAGE 01

    Sentinel Alert Ingestion

    Receives Bearer-authenticated Grafana webhooks (plus 15s backup poller), deduplicates with deterministic fingerprints, debounces alert groups, and enforces semaphore concurrency (max 3).

  2. STAGE 02

    Triage & Root-Cause Analyst

    Queries Loki via injection-safe LogQL, extracts repo-relative file/line paths, assigns P1–P4 severity, runs git blame, and drafts both fast_fix and permanent_fix proposals.

  3. STAGE 03

    Spokesperson & Human Gate 1

    Delivers a blunt post-mortem roasting the bad pattern with cloud burn-rate estimates, then pauses for explicit human approval or feedback.

  4. STAGE 04

    Fixer, Gate 2 & Self-Healing CI

    Validates diffs with ast.parse() and Ruff (E9,F), pauses at Gate 2, opens a GitHub PR, monitors GitHub Actions checks, and pushes retry commits automatically if tests fail.

Key Engineering Trade-Offs & Decisions

  • Built recursive regex credential redaction (redact_untrusted_data) stripping API keys, JWTs, URI passwords, emails, and SSNs before any untrusted log reaches an LLM.
  • Enforced path-safety guards blocking traversal, auth configs, migrations, and .github workflows while restricting auto-fixes to .py files under MAX_DIFF_LINES=200.
  • Engineered per-role LLM failover chains across Gemini, Groq, and OpenRouter with thread-safe rate limiting, daily call/token budgets, and Prometheus telemetry (/metrics).
  • Verified resilience across 20 test modules (122+ tests) including strict network-isolation blockers, LogQL sanitization, and durable Supabase Postgres checkpoints.

Tech Stack

PythonFastAPILangGraphSupabaseGrafanaLokiPrometheusDockerPyGithubRuff
Deployment & Runtime

Installable Python CLI (savageops run/doctor/models/simulate/init) with Docker Compose Grafana + Loki provisioning and Supabase PostgreSQL persistence.

Open-source repo: PRs, issues, and feature collabs are always welcome on GitHub.