How Spotify runs Honk, its background coding agent, and what it learned about quality at double the change volume
Spotify built Honk, a background coding agent that takes a prompt and returns a verified pull request, on top of the fleet tooling it already used for automated migrations. Its engineers have described the design in detail since November 2025, and in September 2026 Spotify published what happened to quality when merged changes more than doubled.
Based on: Spotify Engineering blog: Honk series (Nov 2025 to Apr 2026), Code with Claude 2026 talk write-up, quality report (Sep 2026)
What Spotify built, and why it started with migrations
Spotify's Honk began as a fix for a maintenance problem. In Part 1 of its series (6 November 2025), engineers Max Charas and Marc Bruggmann explain that Fleet Management, Spotify's system for applying one change across many repositories, had since mid-2024 automated around half of the company's pull requests. Those changes were deterministic scripts, and the scripts got unwieldy: the Maven dependency updater alone grew past 20,000 lines. Honk replaces the script with an agent that follows a plain-language prompt, while targeting, PR creation, review and merging stay as they were.
The June 2026 write-up of a talk by Niklas Gustavsson, Spotify's chief architect, at Code with Claude 2026 describes the current build. Honk runs Claude through the Agent SDK inside Spotify's own harness, deployed in Kubernetes pods so many sessions run at once, and it can run CI builds on several operating systems to check its work. Engineers can mention it in Slack mid-conversation, and Honk v2 adds shared sessions and team projects. Fleetshift, the system that runs Fleet Management, identifies targets, schedules changes and tracks progress; Honk makes the code change.
Spotify's own framing for why this works is consistency. The company standardises on a small set of technologies, tracks each component against a "golden state" of recommended practices through Backstage, its open-source developer portal, and exposes Backstage to Claude through MCP and CLI tools so the agent can look up owners and docs. The talk write-up says Claude performs measurably better in consistent codebases than in fragmented ones.
How a session runs: verifiers, a stop hook and an LLM judge
Part 3 (9 December 2025) is the most useful post for engineers. It names three failure modes in rising order of danger: no PR at all, a PR that fails CI, and a PR that passes CI but is wrong. The design is built against the third.
Verifiers handle formatting, building and testing, and switch on by themselves from what is in the repository: a Maven verifier activates when it finds a pom.xml in the root. The agent sees them through a single MCP tool (MCP is the open protocol agents use to call tools) that hides the build system, and verifiers parse failures down to the few relevant error lines. Before a session may end, all relevant verifiers run through Claude Code's stop hook, a hook that fires when the agent tries to finish; if one fails, no PR is opened.
The LLM judge came next, because some agents tried to do more than asked: refactoring beyond the task or disabling flaky tests. It reads the diff and the prompt. Spotify says that across thousands of sessions the judge vetoes about a quarter, and the agent course-corrects about half the time. The authors add that they have not yet built evals for the judge itself.
The sandbox is deliberately narrow. Per Part 3, "The agent runs in a container with limited permissions, few binaries, and virtually no access to surrounding systems." Pushing, Slack and prompt writing live in the surrounding infrastructure. Spotify's stated trade-off is that a less flexible agent is a more predictable one.
What Spotify reports
All figures below are Spotify's own. Part 1 reported more than 1,500 AI-generated PRs merged into production and 60 to 90% total time saved on the migrations it described, compared with hand coding. Part 4 estimated 10 engineering weeks saved on the dataset migration. The June talk write-up says more than 99% of engineers use AI coding tools every week, 94% report being more productive, PR frequency is up 76%, Fleet Management has merged more than 2.5 million automated maintenance PRs, the vast majority auto-merged with no human involved, and a recent Java migration across backend services took three days.
TechCrunch reported on 12 February 2026 that on Spotify's fourth-quarter 2025 earnings call, co-CEO Gustav Söderström said the company's best developers had not written a line of code since December. He gave the example of an engineer on a morning commute asking Claude, from Slack on a phone, to fix a bug in the iOS app. The report includes no metric behind the claim, and the claim covers the best developers, not every engineer.
The quality bill, in Spotify's own words
The most unusual source is a September 2026 post by Tyson Singer, Spotify's head of technology and platforms, about what higher velocity did to reliability. Merged changes in August more than doubled year over year. Spotify says incident reviews so far did not find AI-authored code to be "a material direct contributor"; the problem was that "the volume of change increased faster than some of our verification controls could adapt".
The post lists concrete failures. This year an automated dependency upgrade passed Spotify's checks and still failed in production, affecting users. Spotify says it is responding by strengthening safeguards, expanding rollback capacity and scheduling automated changes during owning teams' working hours. Monthly incident retrospectives now ask whether AI-authored code contributed and whether change volume strained review, testing, rollout or observability. Spotify points to its work mix as evidence against a simple quality-for-speed trade: quality and optimisation work rose from 27% to 31% of merged changes, while maintenance and configuration fell from 31% to 25%. It also rebuilt its rework-rate metric, which weights the age of the code being changed, and sees no rise, while it notes the FAROS 2026 report found an industry-wide rise in code churn. Code complexity and PR size are both creeping up, and Spotify says it is watching them.
The limit of all this is that it is self-assessment: we found no independent audit of Honk's output, and Spotify's incident conclusion comes from its own reviews. What makes the record credible is that the company published its failures alongside its wins. We think that September post is worth more to engineers than any output figure in this series, because it measures verification, not volume.
What your team can copy
- Shrink the agent's job. Let it read, edit and verify only. Push, PR creation and messaging belong to ordinary infrastructure with its own permissions.
- Expose all checks as one verify tool that picks the right build from files in the repo and returns only the relevant error lines, so the model does not burn context on logs.
- Block completion until checks pass. In Claude Code a stop hook can run your verifiers before the session may end; no green, no PR.
- Add a judge that compares the diff with the prompt and vetoes scope creep, such as deleted or skipped tests. Log the veto rate and build evals for the judge.
- Give migrations explicit mapping tables, not prose guides, and leave judgement calls unchanged with a comment pointing to the human guide.
- Fix the codebase before the agent. Repos without build-time tests give the verify loop nothing to work with; standardise frameworks first.
- Change your delivery rules for volume: land automated changes in owners' working hours, keep rollback capacity, add the AI question to incident retros, and track rework rate, not PR counts.
For the agent loop underneath, read how coding agents work. For a contrasting design that relies on isolated devboxes and a hard cap of two CI rounds, see how Stripe runs Minions.