Code 2025
Infra that fixes itself, thanks to coding agents — Mahmoud Abdelwahab, Railway
Overview
This talk introduces a system where an AI coding agent monitors application infrastructure for issues and automatically generates pull requests to fix them. Instead of just alerting developers to problems like memory leaks or high error rates, the system aims to detect, diagnose, and propose solutions, significantly reducing manual debugging and speeding up the resolution process. The core idea is to shift from reactive alerting to proactive, automated self-healing infrastructure.
Who should watch
- AI Engineers
- Platform Engineers
- Developers experiencing production issues
- Anyone interested in automating infrastructure maintenance
- Builders looking to integrate AI agents into their workflows
Key takeaways
- Applications deployed to production can have subtle bugs and performance issues that are difficult to detect through simple threshold alerts.
- A coding agent can proactively monitor infrastructure health by analyzing metrics, logs, and application architecture.
- Durable execution workflows are crucial for managing complex, multi-step processes like issue detection, context gathering, and fix generation, offering reliability and cost-effectiveness through caching and retries.
- Open-source tools like Open Code can be deployed as headless servers, enabling custom clients to interact with AI agents for tasks like code analysis and pull request generation.
- The system automates the process from issue detection to an open pull request, which can then be reviewed and merged by a human.
- Gathering comprehensive context, including application architecture, resource metrics, HTTP metrics, and even external service status, is vital for the AI agent to accurately diagnose problems.
- The AI agent can generate a detailed plan, including debugging steps and specific fixes, which is then executed to create a pull request.
- The proposed solution leverages tools like the GitHub CLI for interacting with code repositories and creating pull requests.
Notable quotes
*Your app's infrastructure should fix itself.*
*Instead of getting the alert and investigating, you just review a pull request and you're like, uh, looks good to me.*
Unofficial community note. Prefer the recording for nuance.