AI Coding meets Code Health πͺ β with Stuart Caborn
Summary
Love Holidays, an online travel agency, has achieved remarkable engineering efficiency by integrating AI coding with a strong focus on code health. Their engineers deploy to production over 80 times monthly, with more than 60% of production code written by AI, while maintaining an elite change failure rate under one percent and perfect code health. This success stems from a deliberate, multi-year journey that prioritized improving code quality for human engineers *before* AI adoption, using tools like CodeScene to identify "hot spots" and make quality visible through data products. They found that higher code quality leads to more successful LLM outcomes and lower token spend, highlighting the mutual benefits of human-centric code practices and AI efficiency.
Key takeaway
For Directors of AI/ML or MLOps Engineers aiming to scale AI coding, prioritize foundational code health and robust data product strategies. Your investment in high-quality, well-documented code directly translates to more efficient and successful AI agent performance, reducing token costs and accelerating deployment frequency. Implement "shift-left" guardrails and integrate AI-driven "skills" for processes and knowledge to empower both human and AI contributors, ensuring quality and fostering a flywheel of continuous improvement.
Key insights
High code quality significantly boosts AI coding success and reduces LLM token spend, creating a virtuous cycle.
Principles
- "What's good for humans is good for AI."
- Prioritize code health before AI adoption.
- Shift left guardrails to prevent waste and rework.
Method
Love Holidays built data products for code health, incidents, and deployments, exposing metadata to AI agents (like Claude) via an MCP server. This enables AIs to access and correlate data. Guardrails, including unit testing and code quality checks, are integrated into the agentic loop.
In practice
- Turn tribal knowledge and SOPs into "skills" for AI agents.
- Use AI to generate and refine project specifications.
- Measure engineering sentiment alongside quantitative metrics.
Topics
- AI Coding
- Code Health
- LLM Efficiency
- Data Products
- DevOps Metrics
- Agentic AI
Best for: CTO, VP of Engineering/Data, Executive, AI Engineer, MLOps Engineer, Director of AI/ML
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Refactoring.