Spotify's AI in Practice: How 3,000 Engineers Are Reinventing R&D with Agents

How Spotify's 3,000 engineers used AI Agents to boost PR frequency 76% and merge 2.5M automated maintenance PRs.
Spotify's engineering team has built a real-world AI Agent system across 3,000 engineers and 40M lines of code. With tools like Honk (LLM-powered code migration), FleetShift (automated maintenance), and Backstage (unified dev portal), PR frequency rose 76%. The key insight: as coding stops being the bottleneck, human decision-making quality becomes the new constraint.
At an Anthropic tech talk, Niklas from Spotify's engineering team gave a systematic account of how the streaming giant is using AI Agents to reshape its engineering organization. This isn't another hollow slogan about "AI productivity gains" — it's a real-world practice built on top of a massive engineering org: 3,000 engineers, 4,500 production deployments per day, and 40 million lines of code. It reveals a pivotal shift already underway: as coding ceases to be the bottleneck in software development, the center of gravity in engineering organizations is systematically moving elsewhere.
AI Tool Adoption: An Unprecedentedly Steep Curve
Spotify is a substantial engineering organization — nearly 3,000 engineers deploying to production roughly 4,500 times per day. Its codebase has a hybrid structure: the backend is a monorepo with 40 million lines of code, alongside thousands of smaller polyrepos.
This hybrid architecture itself reflects an ongoing industry debate about architectural tradeoffs. The core advantage of a monorepo lies in atomic cross-project commits, unified dependency version management, and simpler code reuse — Google, Meta, and Microsoft all keep billions of lines of code in a single repository. The cost, however, is dramatically increased toolchain complexity; ordinary git operations may require special optimization at extreme scale. Polyrepos offer cleaner service boundaries and independent release cadences, but cross-service changes require coordinating multiple repositories. Spotify's hybrid strategy — a single repo for the core backend, multiple repos for edge services — is a compromise between these tradeoffs, and it has profound implications for AI Agents as well: a monorepo gives Agents rich context and consistent code style, while fragmented polyrepos lead to fragmented context windows that degrade Agent reasoning quality.
Over the years, Spotify has continuously rolled out various productivity tools internally, but never seen an adoption curve this steep. According to Niklas, the uptake of AI coding tools was "absolutely explosive" — especially Claude Code. The real inflection point came around the release of Opus 4.5. Today, over 99% of engineers use AI coding tools every week, and in the latest engineering survey, 94% said AI tools made them more productive, with self-reported productivity at an all-time high.
The harder metric is PR frequency — what Spotify uses to measure delivery speed and volume. PR frequency is currently up 76%, and that number "keeps growing." You might not have noticed, but the vast majority of PRs at Spotify today are completed collaboratively by AI Agents and developers.
Honk: From Deterministic Scripts to LLM-Powered Code Migration
Spotify saw the problem of code growing explosively coming a long time ago. A few years back they noticed that production code was growing seven times faster than their engineering headcount — meaning engineers were spending more and more time maintaining existing code rather than creating new value.
Fleet Management: Infrastructure for Automated Maintenance
To address this, Spotify built infrastructure called Fleet Management (with an underlying system called FleetShift), with the goal of automating large amounts of tedious maintenance work: version migrations, API deprecations, security vulnerability fixes, and more. Previously, a Java version upgrade required pushing migration paths to hundreds of teams, manually completing changes across thousands of components — a process that often took months and was one of developers' biggest pain points.
Today, through this system, Spotify has merged 2.5 million automated maintenance PRs, the vast majority of which are auto-merged without human intervention — automated PR creation, automated safety validation, automated merging, all without developer involvement, happening thousands of times per day.

Hyrum's Law: The Ceiling of Script-Based Solutions
Pure scripting works well for simple changes like config modifications and dependency upgrades, but once you're dealing with more complex changes like replacing API calls, scripts become extraordinarily complicated. The reason is that code has an enormous API surface — there are countless ways to write the same thing, and when you run a script across millions of lines of code, you'll hit every edge case. This phenomenon even has a name: Hyrum's Law.
Hyrum's Law, coined by Google software engineer Hyrum Wright, states: "With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody." This profoundly captures the core challenge of large-scale software maintenance — scripts handle explicit syntactic patterns, while real codebases contain tens of thousands of implicit semantic dependencies. A concrete example: a Java library's hash function implementation has a particular ordering behavior that was never documented, yet somewhere in millions of lines of calling code, some code has implicitly relied on that "accidental behavior." When the library version is upgraded, code that depended on the implicit contract silently breaks. LLMs show a unique advantage here: they can understand contextual semantics, recognize that "this code looks different syntactically but is semantically equivalent," and thereby work around the limitations of pure symbol replacement.
So Spotify began experimenting with LLMs to replace deterministic scripts quite early. Niklas admits the early challenges were significant — "the models were too dumb, and our approach was too dumb." But after multiple iterations and improvements in model capability, a tool called Honk was born. Today Honk is powered by Claude under the hood, uses the Agent SDK, is wrapped in a Spotify-built harness, runs in Kubernetes Pods, can be scheduled at scale in the cloud, and is granted access to a set of trusted tools.
The key is verification capability: Honk can run builds across multiple operating systems in CI environments to ensure changes are correct. For AI Agents, CI isn't just a quality gate — it's a sensory organ for Agent self-correction: the Agent submits a change → CI runs tests → test failure information is fed back to the Agent → the Agent analyzes the error and corrects it → resubmits. This feedback loop enables Agents to iterate to a correct result without human supervision. Without this verification infrastructure, large-scale autonomous Agent operation would face enormous quality risks — "verification capability is a prerequisite for making Agents more autonomous." This essentially emphasizes that the maturity of the toolchain defines the boundary of what automation can be trusted to do.
Combined with FleetShift, this system has produced dramatic results — migrations that previously required hundreds of teams and took weeks or months can now be completed by a single engineer in a few days. Spotify's most recent Java migration took just three days.
From Batch Migration to Interactive Collaboration
Interestingly, developer creativity has pushed Honk to keep evolving. People quickly discovered they could call Honk through Slack — @mentioning it, asking it to do things, and having it come back with a PR. This pattern became increasingly common.

Honk V2 (actually the eighth version) moves further toward interactive use, integrating with Spotify's Agent orchestration tool Chirp to support running large numbers of Agent sessions simultaneously. What excites Niklas most is the multi-user collaboration feature — developers can share the same Agent session, collaborating like in Google Docs to give Claude feedback and ideas together, converging into team-level projects.
Optimizing the Codebase for AI Agents: The Core Value of Standardization
Beyond tooling, Spotify's other major thread is optimizing the codebase itself to help Agents work more effectively.
Less Is Faster: The Underlying Logic of Tech Stack Convergence
Spotify has a long-standing belief: the fewer technologies you use, the faster teams move. This rests on several layers of logic — deeply mastering a small number of technologies lets you build better things; it eliminates a huge number of trivial decisions for teams; it makes cross-team collaboration easier; and it makes it easier for people and components to move between teams. As a result, a typical Spotify backend service looks very similar across the board: same tech stack, similar design patterns.
Niklas believes this holds equally true for Agents: "If Claude can see lots of other code, and that code is broadly consistent, Claude performs better." Conversely, in more fragmented codebases, they have directly observed Claude performing worse.

Backstage: A Shared Entry Point for Humans and Agents
All of this starts with Spotify's developer portal, Backstage. It began as just a software catalog to answer basic questions like "who owns this component," and has since grown into a single entry point for operating all software components.
The core insight is: what's useful for human developers is equally useful for Agents. Spotify exposes these capabilities to Agents via MCP or command-line tools — Claude can look up component owners and even proactively reach out to relevant teams on Slack to ask questions.
The MCP (Model Context Protocol) mentioned here is an open protocol released by Anthropic in late 2024, designed to solve the fragmented integration problem between AI models and external tools and data sources. MCP provides a unified client-server architecture: MCP Servers encapsulate specific tool capabilities (like querying a codebase or calling an API), while MCP Clients communicate with them via a standard protocol. For a large engineering organization like Spotify, this means that once core Backstage capabilities are wrapped as an MCP Server, all AI tools connected to that server — whether Claude Code, Honk, or future Agents — can immediately access those capabilities, achieving "build once, reuse everywhere."
Standardization is driven through the Technology Radar, Golden State standards, and a Sound Check self-assessment UI in Backstage. The Technology Radar originates from a tool of the same name first created by ThoughtWorks in 2010, whose core mechanism categorizes technologies into four ring-shaped zones — "Adopt, Trial, Assess, Hold" — published periodically to guide organizational technology selection. Unlike top-down technology mandates, the Radar builds consensus through a visual "technology map." Golden State then translates this consensus into quantifiable standards.
Going further, these standards are encoded as static analysis and lint checks in the codebase — turning "organizational consensus" into "instant feedback within the codebase," shifting standards enforcement from depending on manual review to automated constraint. So when Claude is working in the codebase, it gets immediate feedback — if it uses a gRPC calling pattern that doesn't align with infrastructure best practices, the lint system corrects it right away. Niklas says he frequently sees Claude hit these checks and self-correct, calling it "an excellent way to drive standardization." In essence, this injects the organization's engineering wisdom into the Agent's working environment, making organizational norms the implicit guardian of Agent behavior boundaries.
Bottleneck Shift: From Coding Speed to Human Decision Quality
At the end of the talk, Niklas distilled several profound observations.

Strong engineering practices aren't obsolete — they're more important than ever. Good test coverage and verification capabilities that Agents can invoke are precisely what allow Agents to be more autonomous and produce better outcomes.
Human judgment remains critical — the question is where to apply it. The flip side of a 76% increase in PR frequency is a 76% increase in review volume — "too many PRs to review" has become the most common complaint. Spotify has already started auto-approving PRs that are sufficiently safe, concentrating human review where it truly matters. This "reallocation of human judgment" will be an ongoing area of exploration.
The most important insight is: coding is no longer the bottleneck. Previously, Spotify's product development lifecycle was primarily constrained by developers implementing features, whether for early validation or production deployment. Now, anyone (including the CEO) can rapidly prototype in the real production codebase using Claude and a set of skills, get an installable app to test, and compress what used to take days or weeks of prototyping work into minutes.
As the coding constraint loosens, bottlenecks are shifting to other stages — especially human decision-making: deciding what to build, which ideas to explore. This shift can be understood through the classic Theory of Constraints: a system's output is determined by its weakest constraint; when one constraint is removed, the bottleneck inevitably moves to the next one. AI Agents dramatically accelerating coding speed effectively removes the "implementation capability" constraint, immediately exposing the upstream "decision quality" constraint. At the same time, Conway's Law — "systems tend to mirror the communication structures of the organizations that build them" — takes on new meaning in the AI era: when AI Agents can rapidly generate code across team boundaries, the organization's decision structure (who has authority to decide what gets built) becomes more critical than its communication structure (who collaborates with whom). "Concentrating human review where it truly matters" is fundamentally about redesigning the allocation mechanism for human judgment — this is an organizational design problem, not a technical one.
In the past, because build speed was limited, these kinds of decisions were relatively infrequent; now that the constraint is removed, there's actually a need for more efficient decision-making mechanisms. Niklas predicts that in six months, the way Spotify builds products will look completely different from the past.
Conclusion
Spotify's case provides a complete model of AI transformation for a mature engineering organization. Its value lies not in any single tool, but in revealing a clear causal chain: the efficiency ceiling for AI Agents depends on codebase consistency, the completeness of verification capabilities, and the maturity of engineering practices. The tool (Honk), the infrastructure (FleetShift/Backstage), and standardization (Golden State/lint) are all interconnected, collectively amplifying the leverage effect of AI. And when the technical bottleneck is removed, the real challenge returns to the oldest question of all — how humans can make better decisions.
Key Takeaways
Related articles

Kimi K3 Launches on Telnyx Inference API: A New Path for Chinese LLMs Going Global
Moonshot AI's Kimi K3 is now available on Telnyx Inference API. Explore how Chinese LLMs are entering global developer ecosystems through third-party inference platforms.

The Truth Behind Codex 'Build a Website in 5 Minutes': AI Isn't Creating Sites—It's Helping You Copy Them
Exposing the truth behind viral Codex 5-minute website videos: creators aren't building original sites with AI—they're copying shared prompts or scraping others' work. Learn AI coding tools' real limits.

Getting Started with AI Agent Development: A Complete Guide from Concept to Practice
A comprehensive guide to AI Agent architecture and development, covering automated marketing, intelligent customer service, and investment analysis scenarios with single and multi-agent collaboration.