Back to Work
Case Study
Self-Healing Agent
An AI agent that wakes up before you do. It monitors production, diagnoses errors, and opens PRs with fixes—all autonomously.
Claude Agent SDKBunElysiaAzure
The Challenge
Production breaks at 3am. Nobody wants that call. But errors don't wait for business hours, and every minute of downtime costs money and trust. The question: can we fix bugs faster than humans can even wake up?
My Approach
I built an autonomous agent that never sleeps. It watches production logs, understands the codebase, and when something breaks, it diagnoses the issue and opens a PR with a fix. Humans review and merge—the agent does the grunt work.
Key Contributions
- Designed autonomous error analysis pipeline using Claude AI
- Implemented automatic PR creation with contextual fixes
- Built CI pipeline monitoring with retry logic (max 3 attempts)
- Added safety constraints: daily limits, budget caps, confidence thresholds
- Created kill switch and emergency override controls
- Implemented learning metrics for calibration improvement
Impact
- Production incidents get diagnosed before anyone wakes up
- Developers stopped dreading on-call rotations
- Fix patterns get learned and reused automatically
- Humans stay in control—agent proposes, team approves
- The system literally improves itself over time
Tech Stack
Runtime
Bun
Framework
Elysia
AI
Claude Agent SDKAnthropic API
Monitoring
Azure Log Analytics
Storage
Azure Table Storage
VCS
GitHub API
Want to see more projects like this? Connect with me on social media.
Connect on LinkedIn