Spotify's Background Coding Agent (Honk Part 2): Context Engineering with Claude Code
Spotify's background coding agent needed reliable context engineering to produce mergeable pull requests at scale across thousands of repositories, but early agent approaches struggled with complex multi-file changes, context window limitations, and the difficulty of writing prompts that generalise across repos.
Open source agents Goose and Aider could not reliably produce mergeable PRs at scale, and Spotify's homegrown agentic loop required overly rigid step-by-step instructions and struggled with complex multi-file changes and context window exhaustion.
Claude Code became Spotify's top-performing background coding agent, applied across about 50 migrations with the majority of background agent PRs merged into production, and at scale merging thousands of PRs across hundreds of repositories.
Frequently asked questions
What did this team achieve with this AI workflow?
Claude Code became Spotify's top-performing background coding agent, applied across about 50 migrations with the majority of background agent PRs merged into production, and at scale merging thousands of PRs across hu…
What tools did this team use?
Claude Code, Claude Agent SDK, Goose, Aider, Model Context Protocol, ripgrep.
What results were reported?
migrations completed with Claude Code: about 50; background agent PRs merged to production: majority of the background agent PRs merged into production; PRs merged across repositories at scale: thousands of PRs across hundreds of repositories (source-reported, not independently verified).
What failed first in this deployment?
Open source agents Goose and Aider could not reliably produce mergeable PRs at scale, and Spotify's homegrown agentic loop required overly rigid step-by-step instructions and struggled with complex multi-file changes…
How is this back office ops AI workflow structured?
User submits prompt and file scope → Agent edits code with build feedback → Build and test verification gate → Claude Code manages tasks and subagents → Pull request opened automatically.