
Spotify's engineering team is using Claude's Agent SDK to automate complex codebase migrations at scale, merging more than 650 AI-generated pull requests into production each month.
The background coding agent allows engineers to describe what they need in plain text, including through Slack messages, and the agent handles the rest. It runs tests, opens pull requests, and manages the validation workflow without manual intervention. The approach represents a shift in how large engineering organizations tackle technical debt and infrastructure changes.
From Manual Migrations to Automated Workflows
Spotify operates one of the largest streaming platforms in the world, with a codebase that spans thousands of repositories and millions of lines of code. Migrations across this infrastructure traditionally required significant engineering time: identifying files to update, making changes, running tests, and shepherding pull requests through review.
The Claude-powered agent changes that workflow. Engineers specify the migration requirements in natural language, the same way they might brief a colleague. The agent interprets the request, identifies the relevant code, applies changes, runs the full test suite, and opens pull requests ready for review. What might have taken days or weeks of manual effort now happens in hours.
The 650+ monthly merged PRs indicate the agent is handling production-quality work at volume, not just experimental changes. That level of automation frees engineers to focus on architecture and product decisions rather than repetitive migration tasks.
Built on Claude Agent SDK
Spotify's implementation relies on the Claude Agent SDK, which provides the scaffolding for building autonomous agents that can plan, execute, and iterate on complex tasks. The SDK, as we previously covered, supports multi-step workflows where the model can call tools, interpret results, and adjust its approach based on feedback.
For Spotify, this means the agent can:
- Parse natural language requests and map them to code changes
- Navigate large repositories to find affected files
- Generate syntactically correct updates across multiple languages and frameworks
- Run automated tests and interpret failures
- Create pull requests with descriptive commit messages
The agent operates in the background, so engineers don't need to monitor its progress. They receive notifications when pull requests are ready for review, at which point human engineers verify the changes before merging.
Implications for Engineering Velocity
Automating migration work at this scale has direct impact on how quickly teams can adopt new standards, deprecate old APIs, or refactor infrastructure. Technical debt that might have lingered for quarters can now be addressed in weeks.
The Slack integration is particularly significant. Engineers don't need to learn a new interface or leave their workflow. A message in a channel can kick off a migration that touches hundreds of files. That lowers the friction for tackling maintenance work that often gets deprioritized.
Spotify's case study also suggests the agent produces reliable output. Merging 650+ PRs per month into production indicates a low rate of bugs or regressions, at least within Spotify's testing and review processes. That level of reliability is crucial for adoption; an agent that creates more work than it saves won't get used.
Other companies with large codebases and frequent migration needs are likely watching Spotify's results closely. The patterns Spotify established, pairing Claude's language understanding with existing CI/CD pipelines and code review processes, could become a playbook for similar implementations.
Details on the specific architecture and lessons learned are available in Spotify's full case study.
Sources
1 checkedHow we cover tool news: Create With's tool desk drafts these reports with AI from the sources listed above and checks them against those sources before publishing.








