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.
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
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.
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.
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.
Full storefront with product catalog, cart management, and checkout โ orders flow through to the live API in real time.
The target e-commerce app runs inside a real Blaxel persistent sandbox (agentops-ecom). 373+ API calls, 0% error rate, 7% resource usage.
Track resolution rates, auto-fix performance, severity breakdown, and team activity. Role-based permissions matrix shows who can approve what.
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.
AgentOps is a self-healing DevOps agent that:
- Detects failures via continuous health monitoring (every 5s)
- Diagnoses root causes using Claude AI with full traceback analysis
- Generates targeted fixes with code diffs and GitHub deep links
- Validates fix safety through White Circle AI guardrails
- Auto-deploys when confidence > 85% and severity is non-critical
- Escalates to the team with role-based approval for critical/blocker issues
- 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.
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ
โ 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 โ
โโโโโโโโโโโโโโโโโโโโโโโโโ
- Health Monitor polls the target app every 5 seconds via the Blaxel sandbox
- On failure, the Agent Core captures error logs, tracebacks, and source code context
- Claude AI analyzes everything and returns: root cause, affected file + line, fix diff, confidence score, and plain-English explanation
- White Circle AI validates the proposed fix against safety policies (no destructive commands, no credential exposure, no data loss)
- Based on confidence + severity, the agent either auto-deploys or escalates to the team via WebSocket
- Team members approve/reject through the dashboard with role-based permissions
- The Learning System records every decision to adjust future confidence scores
| 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 |
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)
- 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
- 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-20250514with structured JSON output - Graceful fallback: Rich rule-based engine works when API is unavailable
- Every proposed fix passes through White Circle's guardrail API before deployment
- Endpoint:
POST /api/session/checkwith 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
- Critical/high severity incidents trigger voice alerts via ElevenLabs TTS
- Model:
eleven_flash_v2_5for low-latency alerts - Audio delivered via WebSocket to all connected dashboard users
- Alert script includes: incident title, severity, root cause summary, proposed fix
| 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 | 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 |
- ๐ฅ 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)
- ๐ 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
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
- 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)
# 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# 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- Dashboard: https://her-believe-page-bean.trycloudflare.com
- Live App: https://her-believe-page-bean.trycloudflare.com/live
- Shop: https://her-believe-page-bean.trycloudflare.com/shop
- Team Logins: Bhumika / Yash / Shweta (password:
1234)
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
- Yash Prasad โ Architecture, agent core, full-stack development
- Shweta โ Testing, role-based access design, demo flow
- Bhumika โ UI/UX, team collaboration features
MIT






