Kkarthik.dev
All posts

11 November 2026

It's 3 AM. Your service just crashed.

Who fixes it: you, or an AI agent?

I built one to find out πŸ‘‡

Most incident response still looks like this:
⏰ Alert fires
😴 Someone wakes up
πŸ” Digs through logs
πŸ” Restarts something
🀞 Hopes it holds

So I built AegisHeal, an agentic AI platform that heals running services by itself.

Here's the loop it runs:

1️⃣ Monitor services every 2 seconds
2️⃣ Detect failures (crashes, error spikes, memory leaks, latency, lost dependencies)
3️⃣ Collect logs and metrics
4️⃣ An AI agent finds the root cause
5️⃣ Decide the fix
6️⃣ Recover (restart, rollback, clear cache, reconnect, retry, throttle)
7️⃣ Verify it actually worked, and if not, try the next action

But an AI that can restart production is scary.

So the guardrails mattered more than the AI:

πŸ›‘οΈ Only whitelisted actions
πŸ›‘οΈ A confidence threshold before acting
πŸ›‘οΈ Cooldowns and a circuit breaker
πŸ›‘οΈ Blast-radius limits
πŸ›‘οΈ Supervised mode, where a human approves first

It also has a chaos lab: inject 7 types of failures and watch the agent detect, diagnose and recover live.

Built with React, Node.js and Claude, with 143 passing tests, role-based access and a full audit log. It's open source under the MIT license.

The biggest lesson:

β†’ Detecting failures is easy.
β†’ Fixing them automatically is hard.
β†’ Fixing them safely is the real product.

Would you let an AI agent restart your production services? Yes, no, or only with approval πŸ‘‡

#AIAgents #AgenticAI #SRE #DevOps #BuildInPublic

Discuss this on LinkedIn