Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ง AgentOps โ€” Self-Healing DevOps Agent

AI-powered incident detection, diagnosis, and auto-fix with collaborative human-in-the-loop.

AgentOps monitors a live production e-commerce application, detects failures in real time, uses Claude AI to diagnose root causes and generate fixes, validates safety through White Circle AI, and auto-deploys fixes when confidence is high โ€” or escalates to the team for approval when the risk is too great.

Built in 5 hours at the Iterate x CBS AI Club Hackathon at Columbia Business School.

Track 1: Build an Agent Python FastAPI


๐ŸŒ Live Demo

Deployed and running โ€” try it now!

Link Description
๐Ÿ–ฅ๏ธ Dashboard Main AgentOps dashboard โ€” login, inject faults, watch AI auto-heal
๐Ÿ›’ Shop E-commerce storefront โ€” browse products, add to cart, checkout
๐Ÿ“ก Live API Real-time API viewer โ€” products, orders, analytics, users (auto-refreshes)

Team Logins: Bhumika ([email protected]) ยท Yash ([email protected]) ยท Shweta ([email protected]) โ€” password: 1234


๐Ÿ“ธ Screenshots

Dashboard โ€” Real-Time Incident Timeline

Configuration error detected as BLOCKER at 95% confidence. Claude AI identifies the exact root cause, generates a targeted fix with diff, and White Circle AI validates safety โ€” all in under 15 seconds.

Dashboard - Config Error Detection

Auto-Fix in Action

Bug injected โ†’ Claude diagnoses a NameError at handler.py line 54 โ†’ White Circle validates the fix โ†’ auto-deployed at 95% confidence without human intervention. Full timeline from detection to resolution.

Auto-Fix Timeline

Live API Viewer

Real-time view of the e-commerce app running inside the Blaxel sandbox. Products, orders, analytics, and users โ€” all live. Status indicator shows current health + active incidents.

Live API Viewer

E-Commerce Shop

Full storefront with product catalog, cart management, and checkout โ€” orders flow through to the live API in real time.

Shop

Blaxel Sandbox

The target e-commerce app runs inside a real Blaxel persistent sandbox (agentops-ecom). 373+ API calls, 0% error rate, 7% resource usage.

Blaxel Sandbox

Analytics & Team

Track resolution rates, auto-fix performance, severity breakdown, and team activity. Role-based permissions matrix shows who can approve what.


๐ŸŽฏ The Problem

Production incidents are stressful, time-consuming, and often happen at the worst times. Engineers scramble to diagnose issues, worry about making things worse with a fix, and lack visibility into what's happening across the team. Traditional monitoring tools alert you โ€” but they don't fix anything.

๐Ÿ’ก Our Solution

AgentOps is a self-healing DevOps agent that:

  1. Detects failures via continuous health monitoring (every 5s)
  2. Diagnoses root causes using Claude AI with full traceback analysis
  3. Generates targeted fixes with code diffs and GitHub deep links
  4. Validates fix safety through White Circle AI guardrails
  5. Auto-deploys when confidence > 85% and severity is non-critical
  6. Escalates to the team with role-based approval for critical/blocker issues
  7. Learns from human decisions to improve future confidence scoring

All of this happens on a real running application in a real Blaxel sandbox โ€” not a simulation.


๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  E-Commerce App  โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  AgentOps Server  โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚   Claude AI   โ”‚
โ”‚  (Blaxel Sandbox)โ”‚     โ”‚  (FastAPI + WS)   โ”‚     โ”‚  (Diagnosis)  โ”‚
โ”‚  Port 3000       โ”‚     โ”‚  Port 8000        โ”‚     โ”‚               โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚                          โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚  WebSocket Dashboard  โ”‚    โ”‚  White Circle AI  โ”‚
                    โ”‚  Real-time updates    โ”‚    โ”‚  Safety Validationโ”‚
                    โ”‚  Role-based auth      โ”‚    โ”‚  Policy Engine    โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ”‚
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚    ElevenLabs TTS     โ”‚
                    โ”‚    Voice Alerts       โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

How It Works

  1. Health Monitor polls the target app every 5 seconds via the Blaxel sandbox
  2. On failure, the Agent Core captures error logs, tracebacks, and source code context
  3. Claude AI analyzes everything and returns: root cause, affected file + line, fix diff, confidence score, and plain-English explanation
  4. White Circle AI validates the proposed fix against safety policies (no destructive commands, no credential exposure, no data loss)
  5. Based on confidence + severity, the agent either auto-deploys or escalates to the team via WebSocket
  6. Team members approve/reject through the dashboard with role-based permissions
  7. The Learning System records every decision to adjust future confidence scores

Confidence-Based Escalation

Confidence Severity Action
โ‰ฅ 85% Medium/Low ๐Ÿค– Auto-fix โ€” deployed without human approval
โ‰ฅ 85% Blocker ๐Ÿ”’ Team Lead approval required โ€” too risky for auto
50-85% Any ๐Ÿ‘ฅ Human review โ€” team decides
< 50% Any โš ๏ธ Escalate โ€” needs expert investigation

Confidence Scoring

Base (0.50)
  + Error category match     (+0.10)
  + File identified           (+0.05)
  + Line number found         (+0.05)
  + Sandbox test passed       (+0.15)
  + Fix applied successfully  (+0.05)
  + Safety check passed       (+0.10)
  + Safety score bonus        (+0.10)
  + Claude AI reasoning       (+0.15)  โ† LLM trust boost
  + Learning adjustment       (ยฑ0.20)  โ† from past human decisions
  โˆ’ Severity penalty          (varies)

๐Ÿ› ๏ธ Sponsor Integrations

๐ŸงŠ Blaxel โ€” Sandboxed Runtime

  • Target e-commerce app runs inside a Blaxel persistent sandbox (agentops-ecom)
  • All file operations (read/write handler.py, config.json) go through Blaxel SDK
  • Process management (start/stop/kill) via Blaxel process API
  • Isolated code testing sandbox for validating fixes before deployment
  • 373+ API calls processed with 0% error rate

๐Ÿง  Anthropic Claude โ€” AI Reasoning

  • Root cause diagnosis: Analyzes health check errors, tracebacks, and source code
  • Fix generation: Produces targeted code diffs with file + line identification
  • Confidence scoring: Claude-diagnosed issues get a +15% trust boost over rule-based fallback
  • Model: claude-sonnet-4-20250514 with structured JSON output
  • Graceful fallback: Rich rule-based engine works when API is unavailable

๐Ÿ›ก๏ธ White Circle AI โ€” Safety Validation

  • Every proposed fix passes through White Circle's guardrail API before deployment
  • Endpoint: POST /api/session/check with deployment-specific policies
  • Custom policy: AgentOps Safety Guard โ€” flags destructive commands, credential exposure, data loss, security regressions
  • Allows: process restarts, file restores from backup, config rollbacks
  • Double verification enabled for production safety

๐Ÿ”Š ElevenLabs โ€” Voice Alerts

  • Critical/high severity incidents trigger voice alerts via ElevenLabs TTS
  • Model: eleven_flash_v2_5 for low-latency alerts
  • Audio delivered via WebSocket to all connected dashboard users
  • Alert script includes: incident title, severity, root cause summary, proposed fix

๐ŸŽฎ Features

Real Fault Injection (Not Simulated!)

Fault Type What It Does Severity Auto-Fix?
๐Ÿ’ฅ Crash Kills the app process (OOM simulation) ๐Ÿ”ด BLOCKER โŒ Team Lead only
โš™๏ธ Bad Config Corrupts config.json with invalid JSON ๐Ÿ”ด BLOCKER โŒ Team Lead only
๐Ÿ› Bug Injects NameError in handler.py ๐ŸŸก MEDIUM โœ… When confidence โ‰ฅ 85%
๐ŸŒ Slow Adds time.sleep(10) to handler.py ๐ŸŸก MEDIUM โœ… When confidence โ‰ฅ 85%

Role-Based Team Authentication

Role User Can Approve Permissions
Team Lead โญ Shweta All bugs (including BLOCKER) Full access, clearance reports, assign bugs
Senior Dev โšก Yash Medium + Low severity Approve medium bugs, assign tasks
Junior Dev ๐Ÿš€ Bhumika Low severity only View incidents, limited approval

Dashboard Tabs

  • ๐Ÿ”ฅ Incidents: Real-time incident timeline with animated detection โ†’ diagnosis โ†’ fix โ†’ deploy flow
  • ๐Ÿ“Š Analytics: Resolution rate, auto-fix rate, avg resolution time, severity breakdown, team performance
  • ๐Ÿ‘ฅ Team: Member profiles, role badges, permissions matrix
  • ๐Ÿ“‹ Reports: Clearance reports (auto-generated on resolution, sent to team lead)

Additional Features

  • ๐Ÿ”— GitHub Deep Links: Every fix links to the exact file and line in the repo
  • ๐Ÿ“– Human-Readable Explanations: Plain English explanations with analogies (restaurant kitchen, recipe typo, traffic jam) for non-technical stakeholders
  • ๐Ÿ’ฅ Impact Analysis: Automated blast radius assessment for each fault type
  • ๐Ÿ”” Notification System: Bell badge with unread count, clearance reports auto-sent to team lead
  • ๐Ÿง  Learning System: Records human approve/reject decisions to adjust future confidence
  • ๐Ÿ›’ E-Commerce Shop: Full storefront with cart, checkout, live order tracking
  • ๐Ÿ“ก Live API Viewer: Real-time view of all API endpoints with auto-refresh every 5s
  • ๐ŸŽค Voice Alerts: ElevenLabs TTS for critical incidents

๐Ÿงช Demo Flow

1. Login as Shweta (Team Lead)
         โ†“
2. Inject Bug โ†’ NameError in handler.py
         โ†“
3. Agent detects failure in ~5 seconds
         โ†“
4. Claude AI diagnoses โ†’ identifies handler.py:54, generates fix diff
         โ†“
5. White Circle AI validates โ†’ "โœ… SAFE โ€” no policies flagged"
         โ†“
6. Auto-deploys at 95% confidence (MEDIUM severity โ†’ no human needed)
         โ†“
7. App recovers โ†’ healthy in ~30 seconds
         โ†“
8. Inject Crash โ†’ process killed (BLOCKER severity)
         โ†“
9. Agent diagnoses โ†’ 90% confidence, but BLOCKER โ†’ needs Team Lead
         โ†“
10. Login as Bhumika โ†’ try to approve โ†’ "โŒ Insufficient clearance"
         โ†“
11. Login as Shweta โ†’ approve โ†’ fix deploys โ†’ clearance report generated
         โ†“
12. Browse Shop โ†’ Cart โ†’ Checkout โ†’ Watch order appear in Live API view

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.10+
  • Blaxel account + API key
  • Anthropic API key (optional โ€” rule-based fallback works without it)
  • White Circle AI API key + deployment ID
  • ElevenLabs API key (optional โ€” for voice alerts)

Setup

# Clone
git clone https://github.com/prasad-yashdeep/agentops.git
cd agentops

# Virtual environment
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# Configure
cp .env.example .env
# Edit .env with your API keys

# Run
python3 main.py

Environment Variables

# Blaxel โ€” Sandboxed Runtime
BL_API_KEY=your_blaxel_key
BL_WORKSPACE=your_workspace

# Anthropic โ€” AI Reasoning
ANTHROPIC_API_KEY=sk-ant-api03-...

# White Circle AI โ€” Safety Validation
WHITECIRCLE_API_KEY=wc-...
WHITECIRCLE_API_URL=https://us.whitecircle.ai/api
WHITECIRCLE_DEPLOYMENT_ID=your_deployment_id

# ElevenLabs โ€” Voice Alerts
ELEVENLABS_API_KEY=sk_...
ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM

Access


๐Ÿ“ Project Structure

agentops/
โ”œโ”€โ”€ main.py              # FastAPI server, auth, proxy, analytics, WebSocket
โ”œโ”€โ”€ agent_core.py        # Agent brain: monitoring, diagnosis, fix generation, confidence
โ”œโ”€โ”€ monitored_app.py     # Blaxel SDK integration, fault injection, health checks
โ”œโ”€โ”€ safety_check.py      # White Circle AI integration + local safety engine fallback
โ”œโ”€โ”€ voice_alerts.py      # ElevenLabs TTS voice alert generation
โ”œโ”€โ”€ sandbox.py           # Blaxel sandbox for isolated code testing
โ”œโ”€โ”€ db.py                # SQLite models: User, Incident, Notification, LearningRecord
โ”œโ”€โ”€ schemas.py           # Pydantic schemas
โ”œโ”€โ”€ config.py            # Environment variable loading
โ”œโ”€โ”€ static/
โ”‚   โ”œโ”€โ”€ index.html       # Dashboard: login, incidents, analytics, team, reports
โ”‚   โ”œโ”€โ”€ app.js           # Frontend: WebSocket, auth, tabs, role-based UI
โ”‚   โ”œโ”€โ”€ live.html        # Live API viewer (auto-refresh 5s)
โ”‚   โ””โ”€โ”€ shop.html        # E-commerce storefront with checkout
โ”œโ”€โ”€ target_app/
โ”‚   โ”œโ”€โ”€ server.py        # Target e-commerce HTTP server
โ”‚   โ”œโ”€โ”€ handler.py       # Request handler (products, orders, analytics, users)
โ”‚   โ”œโ”€โ”€ handler.py.bak   # Known-good backup for fault recovery
โ”‚   โ”œโ”€โ”€ config.json      # App configuration
โ”‚   โ””โ”€โ”€ config.json.bak  # Known-good config backup
โ””โ”€โ”€ docs/
    โ””โ”€โ”€ images/          # Screenshots for README

๐Ÿ‘ฅ Team

  • Yash Prasad โ€” Architecture, agent core, full-stack development
  • Shweta โ€” Testing, role-based access design, demo flow
  • Bhumika โ€” UI/UX, team collaboration features

๐Ÿ“„ License

MIT

About

๐Ÿ”ง Self-Healing DevOps Agent with Collaborative Human-in-the-Loop | Blaxel + Anthropic + White Circle AI + ElevenLabs

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages