How Spotify Uses AI Agents to Manage 20M+ Lines of Code

In this interview, Niklas Gustavsson shares an inside look at how Spotify is operating at the frontier of AI-assisted software engineering . From personal workflow transformations to massive organizational shifts, discover how AI agents are fundamentally changing the way developers write, maintain, and test code at scale . Key Topics Covered: The End of the Traditional IDE: Gustavsson explains his personal shift away from traditional IDEs, opting instead to manage 5 to 10 terminal tabs running Claude sessions and background agents to solve real coding problems . Tackling 20 Million Lines of Code: Learn how Claude navigates Spotify's massive backend monorepo—which contains over 20 million lines of code—by analyzing surrounding code to find inspiration and context for problem-solving . The Evolution of "Honk": Discover the architecture behind "Honk," Spotify's internal fleet management tool . Originally designed to automate tedious code migrations across thousands of repositories, Honk now uses the agent SDK to empower AI to use internal tools, run CI builds, and orchestrate massive code changes . Why Verification is Everything: As AI takes over writing code, Gustavsson emphasizes that the real bottleneck to speed is infrastructure and test automation . Learn why Spotify removed the "AI judge" from their workflow and instead relies on robust CI testing, automated Mac OS builds, and iOS simulators to verify agent-driven code without human intervention . Measuring the ROI of AI: The results speak for themselves—Spotify has seen a 75% improvement in Pull Request (PR) frequency, with roughly 73% of all PRs now directly attributed to AI authorship . Democratizing Prototyping: AI isn't just for engineers anymore . Gustavsson shares how anyone at Spotify—from product managers to the co-CEO—can now use natural language to build end-to-end prototypes in an hour or two and share them via an internal app store . Advice for Engineering Leaders: Gustavsson advises CTOs and engineers to heavily invest in test automation, code standardization, and foundational capabilities, noting that consistent codebases make AI agents significantly more effective . 🔥 Don't forget to like, share, and subscribe for more tech tutorials in Tamil. =========================== Connect with me on other Medium: ===========================   / ruralbytestamil   https://x.com/RuralBytesTamil/ discord server   / discord   Connect with the WhatsApp channel link https://whatsapp.com/channel/0029Vakl... #LearnToCode #TamilTech #RuralBytesTamil