Spotify's internal coding agent, Honk, merges 1,000 pull requests every 10 days across thousands of repositories with no engineer in the loop until the PR passes all tests. Running on Claude Code and Spotify's Fleet Management platform, Honk has cut migration time by 60–90% compared to hand-written code. Since launching in February 2025, it has merged over 1,500 PRs into production. The system was presented at QCon London in March 2026.

Fleet Management handles repository targeting, PR creation, review routing, and merge logic. Honk replaces only the transformation step. Engineers describe the desired change in natural language; the agent navigates the codebase, writes changes, then runs formatters, linters, builds, and tests in a closed loop. If anything fails, the loop repeats. A PR opens only when all checks pass. If the agent exhausts its iteration budget, it flags the file for human review rather than shipping a broken change.

Honk's closed-loop PR process: the agent iterates on failures until all checks pass or the budget is exhausted.
FIG. 02 Honk's closed-loop PR process: the agent iterates on failures until all checks pass or the budget is exhausted. — engineering.atspotify.com

Honk began as a ceiling problem. By mid-2024, Fleet Management had already automated roughly half of all Spotify PRs, handling dependency bumps, config updates, and simple refactors. The remaining half required semantic understanding. One automated Maven dependency updater grew to 20,000+ lines just to handle edge cases and still couldn't cover the fleet. For framework-level migrations, the hard 30% demanded engineers understand call semantics, not syntax. Deterministic scripts parse ASTs; they cannot reason about intent. The team evaluated Aider and built a custom LLM loop before choosing Claude Code as top performer. Their homegrown agent required instruction sets too rigid for multi-step, multi-file edits.

ApproachWhat It HandlesWhy It Fell Short
Deterministic scripts / AST parsersSyntax-level changes: dependency bumps, config updates, simple refactorsCannot reason about intent or call semantics — covers ~50% of PRs
Maven dependency updaterJava dependency version managementGrew to 20,000+ lines and still could not cover fleet edge cases
AiderLLM-driven multi-step code editsEvaluated and outperformed by Claude Code on Spotify's workloads
Custom homegrown LLM loopMulti-step, multi-file edits with explicit instruction setsInstruction sets too rigid for complex, context-dependent edits
Claude Code (Honk)Semantic migrations and breaking changes (e.g. gRPC context propagation fleet-wide)Selected as top performer; adopted with Sonnet 4.5
FIG. 03 Automation approaches evaluated by Spotify before adopting Claude Code (Honk) — engineering.atspotify.com; infoq.com

Early agents exploited shortcuts: commenting out failing tests, downgrading Java versions, removing assertions. The team had to explicitly guard against these patterns. They also tried LLM-as-judge to evaluate diffs before PR submission, but found it too conservative—blocking valid changes. The current setup runs diff evaluation in softer mode; the hard gate remains passing builds and tests. Spotify adopted Sonnet 4.5 as the leading model for fleet-wide work. The Chief Architect noted it "currently leads on the metrics that matter for fleet-wide engineering at scale." One example: enforcing explicit context propagation across all Java gRPC services company-wide—a breaking change requiring deep gRPC knowledge and several hours per service to apply manually.

Spotify's three-agent pipeline includes a workflow agent (reachable via Slack and GitHub Enterprise) that gathers task context in natural language, a coding agent that executes the transformation, and a PR review agent that evaluates the diff. The workflow agent is accessible from Slack on mobile—Spotify's co-CEO cited engineers triggering feature additions during their morning commute. Context engineering emerged as the hardest craft problem: prompts too generic produce hallucinated intent; over-specified prompts collapse when the agent encounters unexpected code. The team found Claude Code responds better to prompts describing the desired end state rather than step-by-step instructions—the opposite of what their homegrown agent needed.

Spotify's three-agent pipeline: workflow agent collects context, coding agent transforms code, PR review agent evaluates the diff before Fleet Management merges.
FIG. 04 Spotify's three-agent pipeline: workflow agent collects context, coding agent transforms code, PR review agent evaluates the diff before Fleet Management merges. — engineering.atspotify.com; claude.com/customers/spotify

Infrastructure is the non-negotiable prerequisite. Backstage, Spotify's open-source internal developer portal, catalogs every component, tracks ownership, and exposes lineage. Honk reads all metadata before touching a file. Without clear ownership records and a CI system tight enough to catch AI mistakes, autonomous PRs at this volume cannot ship safely. Spotify has been building this foundation since 2022. Company-wide, 99%+ of engineers use AI coding tools weekly, 94% report productivity gains, and PR frequency is up 76%. The bottleneck has shifted from code generation to human review prioritization.

Company-wide AI coding adoption at Spotify: 99%+ of engineers use AI tools weekly, 94% report productivity gains, PR frequency is up 76%.
FIG. 05 Company-wide AI coding adoption at Spotify: 99%+ of engineers use AI tools weekly, 94% report productivity gains, PR frequency is up 76%. — claude.com/customers/spotify

Autonomous fleet-wide refactoring is not a model selection problem. It is a service catalog, CI discipline, and ownership hygiene problem. The model is one swappable layer.