<img src="https://secure.leadforensics.com/794635.png" style="display:none;">

From 0 to 80% agent-assisted commits, and increased code quality

customer_loveholidays

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.

“AI must improve customer experience or business value — and ideally both — while measurably improving developer experience and efficiency.”

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.

  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 Prompting alone didn't hold the line. Agent output kept slipping past human review,
    and Code Health Hotspots dropped.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 Unguarded complexity compounds fast. Code that looks fine on the surface quickly
    becomes painful to change.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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.
“We were trying to use prompting techniques in agent files to encourage the LLMs to do the right thing. It didn't really work, because they just sort of do their own thing. So the code inevitably degraded as it got through human checks and went into our system, our Code Health Hotspots were dropping.”
AI-assisted_commits_loveolidays
80% of all commits are now agent-assisted, exceeding the internal target of 72.2%.
code_health_vs_ai_commit_rate
At the  same time, after CodeScene guardrails were in place, code health improved while loveholidays adopted AI.
Build_success_rate_loveholidays_1920x1080 px (2)
loveholiday's AI build success rates are now over 90%, and improved as AI adoption scaled.
change_failure_rate_loveholidays
Change failure rate remained stable through the AI ramp-up.
better_code_quality_faster_ai_adoption_1920x1080 px
Teams with better quality code (AI-ready code) adopted AI more rapidly than their peers.
token_cost_unhealthy_code_chart_codescene
Code quality drives token costs and success rates. CodeScene lets teams define "AI-ready code" and grow it.
hotspot_code_health_systems_loveholidays
Average code health rose across all repositories, and AI-ready surface areas expanded. A system-wide improvement, not isolated pockets of progress.
avg_code_health_systems_loveholidays
Average code health rose across all repositories, and AI-ready surface areas expanded, a system-wide improvement, not isolated pockets of progress.

The solution

loveholidays integrated CodeScene's CodeHealth metric as the quality guardrail inside the agentic loop itself:

  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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."
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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.
“Putting these hard guardrails in place was the game changer, forcing the agent to build the code at the structural quality that we wanted, and brought the code health back up. ”

The results

  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 80% of all commits are now agent-assisted, already past the 72% internal target. It's organisation-wide,
    not just one department.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 A code health dip reversed within days of adding the CodeHealth Safeguards. Critical code health
    recovered.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 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.
  • fiber_manual_record_24dp_FFFFFF_FILL0_wght400_GRAD0_opsz24 Average code health rose system-wide, not in isolated pockets. The share of AI-ready repositories grew
    steadily across the whole estate.
“We have truly increased our use of AI. 80% agentic-assisted code is not only in one department, but all over our engineering. The discipline is to keep the systems AI ready as per CodeScene.”
Website Unplanned Work Costs Visualization

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.