Scaling AI-Driven Code Automation and Engineering Productivity at Spotify

spotify_/_anthropic · Media & Entertainment · 2026 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: AI-assisted software engineering at large monorepo scale

Spotify's codebase was growing far faster than its engineering headcount, making manual migrations, maintenance, and idea-to-production cycles too slow for the volume of product work the company wanted to ship.

Constraints:

Architecture

Spotify evolved fleet-management automation into Honk, an internal coding-agent platform built on Claude's agent SDK. Honk runs agents in Kubernetes pods, gives them tools and CI verification, supports custom user-added tools in V2, and automates code migrations, Slack-triggered tasks, UI generation, prototypes, and PRs across monorepos and polyrepos. The surrounding engineering system relies on standardized components, stronger test automation, continuous deployment, attribution metrics, and internal prototype infrastructure.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  A["Spotify engineers and non-engineers"] --> B["Honk platform"]
  B --> C["Claude agent SDK"]
  C --> D["Kubernetes runtime"]
  C --> E["Internal tools"]
  B --> F["Spotify repositories"]
  B --> G["CI verification"]
  G --> F
  F --> H["Production deployment pipeline"]
  H --> I["Work-item attribution"]
  A --> J["Prototype infrastructure"]
  J --> C
  J --> F
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Honk platform Spotify's internal agentic automation platform for code migrations, code tasks, PRs, and broader automation. Claude agent SDK, Kubernetes runtime, Internal tools, CI verification, Spotify repositories
Claude agent SDK Agent runtime used by Honk to inspect code, use tools, and perform coding tasks. Kubernetes runtime, Internal tools, Spotify repositories
Kubernetes runtime Execution environment where Honk agents run. Honk platform, Claude agent SDK
Internal tools Spotify tools available to agents, including user-added tools in Honk V2. Honk platform, CI verification
CI verification Linux and macOS builds, tests, simulators, and automated quality gates used to validate agent-authored changes. Honk platform, Spotify repositories, Production deployment pipeline
Spotify repositories Large backend monorepo, mobile codebases, and thousands of polyrepos where agents make changes. Honk platform, CI verification, Production deployment pipeline
Production deployment pipeline Continuous deployment system that ships validated changes and produces deployment signals. Spotify repositories, Work-item attribution
Work-item attribution Measurement layer connecting PRs and deployments to planned work, A/B tests, rollouts, and user value. Production deployment pipeline
Prototype infrastructure Internal app-store and end-to-end prototype environment for engineers and non-engineers to build and share ideas. Claude agent SDK, Spotify repositories
Spotify engineers and non-engineers Users who request tasks, review outcomes, ship prototypes, and shift from implementation work toward problem selection. Honk platform, Prototype infrastructure

Data flow

Maintenance or product tasks enter Honk through migrations, Slack requests, direct agent sessions, or prototype workflows. Claude agents inspect repository context, use internal tools, mutate code, run CI and platform-specific verification, and submit or auto-merge PRs when quality gates pass. PRs and deployments are later connected to work items, experiments, rollouts, and user-value signals.

3 supporting quotes
“honk architecturally is fairly simple. So it's the agent SDK running in a kubernetes pod.”transcript, stated
“one of the most important tools that it has access to is that it can run verification like basically run CI builds.”transcript, stated
“connect the deliverables that the engineer engineers do. So PRs, deployments into we call them work items.”transcript, stated

Why this architecture

Spotify needed code-aware agents that could work across massive repositories, but successful automation depended on verification and standardization as much as model capability. Honk therefore wraps Claude agents in Kubernetes, repository access, internal tools, CI builds, macOS/iOS verification, and measurement systems rather than relying on one-shot code generation.

3 supporting quotes
“We basically just put the code in front of the model and try to get it to one shot that that change. So that didn't work.”transcript, stated
“I think when you're doing this kind of closed loop development where it's an agent that it's given a task”transcript, stated
“you need to automate your quality practices so that it's better encoded.”transcript, stated

Models used: Claude · Claude agent SDK · LLMs as judge · Claude Code

Scale

Alternatives considered (roads not taken)

Manual migrations by every team

Rejected because: Hundreds of teams repeating migrations across thousands of components took months and barely kept up.

“Hundreds of teams doing the same operation manually over thousands of components. So each of these migrations took months and months and months to complete.”transcript, stated

Deterministic scripts for every code change

Rejected because: Code's API surface made static transformations explode into edge cases.

“code has an enormous API surface. So trying to make changes to code gets very complicated very quickly.”transcript, stated

One-shot LLM code changes

Rejected because: Early attempts that simply put code in front of the model did not work well.

“We basically just put the code in front of the model and try to get it to one shot that that change. So that didn't work.”transcript, stated

Keep an LLM judge in Honk permanently

Rejected because: Spotify removed it after models and agent behavior improved enough that the judge was no longer needed.

“So we used to have a judge in honk but we actually have removed that because we found that the uh agent and models just again going back to four or five got good enough”transcript, stated

Keep teams in the loop for every automated PR

Rejected because: Automated changes required better test automation so teams would not need to inspect every PR before merge.

“you might not no longer be in the loop for for these changes. We're going to be automerging most of these changes”transcript, stated

Patterns

tool-use-orchestration (agent-architecture)

Honk runs Claude agents with access to repository tools, CI builds, user-added tools, and task interfaces such as Slack.

“Now in V2 um users can add their own tools just off those tools. So now the agent can use any of our internal tools”transcript, stated
“I want to mention this thing on Slack and have it do a task for me”transcript, stated

eval-driven-development (evaluation)

Spotify made CI verification, test automation, ROI measurement, and PR/deployment attribution central to scaling agent-authored changes.

“one of the most important tools that it has access to is that it can run verification like basically run CI builds.”transcript, stated
“We want to connect basically be able to connect the deliverables that the engineer engineers do.”transcript, stated

structured-output-contract (engineering-practice)

Spotify standardized components, ownership, and codebase patterns so agents could reason from consistent examples.

“we've been driving you know more consistent code bases more alignment on the tools that we use the um frameworks that we use”transcript, stated
“the more consistency we have the more the better our agents work.”transcript, stated

llm-as-judge (evaluation)

Earlier Honk iterations used an LLM judge to raise PR success rates before later removing it as agents improved.

“The judge was very important in the first iterations of honk. It it made us go from if I remember the numbers correctly like roughly like 20 30% success rate on PRs to like 80% success rate.”transcript, stated

human-in-the-loop-gate (governance)

Spotify moved some migration PRs out of direct team review only after strengthening automation, while engineers still guide problem choice and validate higher-level product direction.

“that team was in the loop for every change that got merged to their their code base.”transcript, stated
“you might not no longer be in the loop for for these changes.”transcript, stated

context-engineering (context)

Spotify benefits from agents finding relevant examples in monorepos and from consistent repository conventions that make context easier to interpret.

“how good Claude is looking at other code in the repository to get, I guess, inspiration for the problem you're trying to solve.”transcript, stated
“if they look in 10 different ways claude is going to be more confused.”transcript, stated

Tradeoffs

Migration automation strategy

Chose LLM agents with decomposition and verification over deterministic codemods for every edge case.

Rationale: Static scripts became too complex as API-surface edge cases multiplied.

“So trying to make changes to code gets very complicated very quickly.”transcript, stated

Honk verification architecture

Chose CI/test verification as the enduring gate over keeping an LLM judge as the main checker.

Rationale: The judge helped early success rates, but stronger models and agents let Spotify remove it while relying on verification infrastructure.

“we have now eliminated that judge from from honk. So honk architecturally is fairly simple.”transcript, stated

Quality versus speed

Chose automated quality practices to enable speed over treating speed and reliability as a tradeoff.

Rationale: Spotify argues faster delivery requires encoding quality into tests, skills, and tools rather than relying on slower human checks.

“if you want to go faster, the thing that you need to do is you need to automate your quality practices”transcript, stated

Repository strategy for agents

Chose continued standardization and monorepo-friendly context over letting patterns diverge across repositories.

Rationale: Consistent code gives agents better examples and reduces confusion.

“if they look in 10 different ways claude is going to be more confused.”transcript, stated

Prototype enablement

Chose internal app-store and simple end-to-end prototype paths over requiring product ideas to wait for full engineering-team allocation.

Rationale: Natural-language prototyping lets engineers and non-engineers validate ideas quickly in real app contexts.

“we have a very simple way of getting going to build an end toend prototype in our uh mobile apps and our back end”transcript, stated

Gotchas (what bit them)

Static code-migration scripts hit a complexity ceiling.

Root cause: The same API can appear in many forms, requiring variable and state tracking across a huge API surface.

Resolution: Spotify moved from deterministic scripts toward LLM-based agents with decomposition, iteration, and verification.

“each script that we had to migrate code turned into thousands of lines of taking care of every edge case in that code.”transcript, stated
“We started breaking down the problem, decomposing the problem in various ways.”transcript, stated

Early LLM one-shot code edits did not work.

Root cause: The models and Spotify's prompting/orchestration approach were not mature enough.

Resolution: Spotify iterated through judges, decomposition, internal hacks, and multiple Honk versions.

“early on it didn't work at all all that well. Uh partially because the models weren't good enough partially because we just we were very naive”transcript, stated
“So many many many iterations of this uh and many internal hacks to try to take on this problem in different ways.”transcript, stated

Agent-authored PRs expose weak test automation.

Root cause: Teams used to review every change, so post-test automation could be looser.

Resolution: Spotify strengthened test automation and verification before relying on automated merges.

“that team could always check every PR if they needed to. But with starting to automate PRs towards our source code”transcript, stated
“that meant then having to build out much better test automation”transcript, stated

Verification must cover platform-specific environments.

Root cause: iOS work requires macOS builds and sometimes simulator-level checks.

Resolution: Honk can run CI builds on Linux and macOS and integrate simulator-based tests for some workflows.

“it can run those both on Linux and Mac OS. So Mac OS is particularly important to us because any iOS development for example needs Mac OS builds.”transcript, stated
“we integrate the simulator and claude to automate things like going directly from uh designs and Figma to UI implementations”transcript, stated

Agent performance depends on codebase consistency.

Root cause: Inconsistent frameworks and patterns confuse agents looking for examples in the repository.

Resolution: Spotify continued standardization work across codebases, tools, and frameworks.

“if they look in 10 different ways claude is going to be more confused.”transcript, stated
“the same sane engineering practices that we had before still applies in this new world.”transcript, stated

Evaluation

Spotify evaluates the program through CI/build verification, test automation, PR success history, PR-frequency lift, AI-authored PR share, deployment counts, work-item attribution, A/B tests, rollouts, productivity, cost, and quality metrics.

Metrics: 20-30% to 80% PR success improvement from the early judge · 4,500 production deployments per day · 2,900 engineers · 75%+ improvement in PR frequency attributable to AI tooling · 73% of PRs attributed to AI-authored changes · Quality metrics kept neutral while speed improved · PRs and deployments connected to work items, A/B tests, and rollouts

3 supporting quotes
“It it made us go from if I remember the numbers correctly like roughly like 20 30% success rate on PRs to like 80% success rate.”transcript, stated
“We're seeing a 75% plus improvement in PR frequency, for example, uh that we can directly attribute to AI tooling.”transcript, stated
“We're seeing that we're keeping our quality metrics neutral while significantly improving our our speed.”transcript, stated

Outcomes

Spotify reports 2,900 engineers, a backend monorepo over 20 million lines of code, thousands of polyrepos, 4,500 production deployments per day, 75%+ PR-frequency improvement, 73% AI-authored PRs, and prototypes built in one or two hours.

3 supporting quotes
“we're keeping our quality metrics neutral while significantly improving our our speed.”transcript, stated
“that then became what we now call honk.”transcript, stated
“within an hour or two, you have a working prototype that you can start sharing with people”transcript, stated