At loveholidays, early agentic coding caused code health to decline. CodeScene's guardrails reversed that, enabling 80% agent-assisted commits, higher throughput, and AI build success rates above 90%, all without sacrificing code quality.
CodeScene enabled the team to define AI-ready code and scale it
Rapid, real AI adoption, not a pilot
80%
From 0 to 80 percent agent-assisted code, while increasing throughput and maintaining quality.
Teams at elite code health
94%
94% of teams maintained CodeHealth scores at an elite level, reaching the top 5% of the industry. Quality was rising, not falling.
Code health improved
>9.75
Code health rose above 9.75/10 as teams adopted AI, and teams with higher code quality adopted it faster.
The client
loveholidays is the UK’s fastest-growing travel agent, on a mission to open the world to everyone. The company set out to become an AI-first engineering organisation, but with one non-negotiable principle: AI had to measurably improve delivery efficiency and code quality, never trade one for the other. CodeScene became the enabling layer that gave loveholidays the confidence, data, and guardrails to scale agentic coding without accumulating technical debt.
The challenge
AI coding tools promise speed. But without guardrails, they can just as easily become legacy generators. loveholidays saw this firsthand once agentic coding took hold across engineering.
-
Prompting alone didn't hold the line. Agent output kept slipping past human review,
and Code Health Hotspots dropped.
-
Unguarded complexity compounds fast. Code that looks fine on the surface quickly
becomes painful to change.
-
The business impact had to be provable, not assumed. Leadership needed a way to
show that AI adoption was paying off in delivery efficiency, not just something
developers felt was happening.
The solution
loveholidays integrated CodeScene's CodeHealth metric as the quality guardrail inside the agentic loop itself:
-
A deterministic quality bar, not a suggestion. The team set a CodeScene CodeHealth score of 9.8 as the minimum for existing code to be considered healthy enough to hand to an LLM at all, treating both legacy code and AI output as potential sources of "garbage in."
-
CodeScene CLI as a commit-hook backstop. Agents.md instructs agents to keep code health at 10.0, and the CLI enforces that as a commit hook, closing the loop on agents "cheating" or goal-seeking past the quality bar, and throwing work back before it can land.
-
CodeScene's CodeHealth MCP Server inside the agentic loop. It feeds code health context to the agent at the point it writes code, not just after the fact. Output that falls below 10.0 triggers a refactoring loop until the code clears the AI-ready bar.
-
Measuring the impact with CodeScene. An adoption/cost/impact framework from day one. loveholidays measured AI's rollout across three dimensions — adoption, cost, and impact — treating impact as the metric that mattered most. CodeScene enabled that.
-
Team leaderboards as a culture mechanic. Making code health and AI adoption visible team-to-team turned quality into friendly competition rather than a top-down mandate.
The results
-
80% of all commits are now agent-assisted, already past the 72% internal target. It's organisation-wide,
not just one department.
-
94% of teams now operate at elite code health (>9.75), placing loveholidays in the top 5% of the
industry. Code quality is rising, not falling, as AI adoption scales.
-
The guardrails in place enabled the teams to shift left. Build reliability improved as adoption scaled. AI
build success rates now sit above 90%, Change failure rate stayed near 1–2%, well under the 5% "DORA Elite"
threshold even as AI-assisted commits rose.
-
A code health dip reversed within days of adding the CodeHealth Safeguards. Critical code health
recovered.
-
Teams with better quality code (AI-ready code) adopted AI more rapidly than their peers. CodeHealth
MCP ensures AI code is healthy enough, CodeHealth metric enables the deterministic measure and AI-ready threshold.
-
Healthier code is measurably cheaper to run through AI. When agents operate on code below the CodeScene 'AI-ready' threshold, it doesn't just raise the defect risk, it costs significantly more to run.
-
Average code health rose system-wide, not in isolated pockets. The share of AI-ready repositories grew
steadily across the whole estate.
Effects of reduced unplanned work go beyond numbers
SmartCraft could reduce unplanned work and allocate more time to make improvements on the platform itself, introduce new technologies and experiment wirameworks. The effects of unplanned work being reduced go beyond numbers. It has had a very positive effect on the whole organization and especially on the mindset, motivation and the well being of SmartCraft's developers.
More about loveholidays
loveholidays is the UK’s fastest-growing travel agent. They are on a mission to open the world to everyone. They’ve become the fastest-growing travel agent by offering unlimited choice, unmatched ease, and unmissable value. The bedrock of the loveholidays platform is technical excellence, allowing us to provide over 19 trillion package holiday offers each day. Read more about loveholiday's AI journey.
Want the same guardrails for your team?
Let's talk about what a safe AI rollout looks like for you.