
Episode #73
Refactoring Street Fighter With AI — with Adam Tornhill
Today's guest is Adam Tornhill , founder of CodeScene, author of Your Code as a Crime Scene, and one of the very few repeat guests of the show. With Adam, we talked about how his team refactored the whole Street Fighter 3 code base, which is more than 300,000 lines of code in just a few days and spending a few thousand dollars in tokens, and measured how that led to better and cheaper AI development of new features. And then we discussed how the CodeScene team does agentic development, what the process looks like, what the bottlenecks are, and what are the crucial parts that Adam believes we still need to do as humans. (00:00) Episode start (03:38) Introducing Adam Tornhill (04:12) Refactoring 300K lines of Street Fighter with AI (09:50) The refactoring playbook: AI-invented patterns (21:41) Generalizing the approach to enterprise code bases (27:12) Why documentation of the "why" matters more than ever (32:25) CodeScene goes fully agentic: the MCP rewrite story (38:54) The development process: uncertainty drives rigor (47:51) Validation is the new bottleneck - Show notes: StreetFighter case study: https://codescene.com/blog/case-study-refactoring-at-scale-with-agents One of Adam's blog posts about coding processes: https://adamtornhill.substack.com/p/controlling-the-uncertainty-machine MCP-guided Claude vs. unguided Claude experiment on refactoring tasks (Code health-guided MCP did 2-5x more code health improvements): https://codescene.com/blog/making-legacy-code-ai-ready-benchmarks-on-agentic-refactoring - Today's episode is brought to you by Notion. Learn more about Notion’s Developer Platform today at https://ntn.so/refactoring - You can also find this at: • Newsletter: https://refactoring.fm • Spotify: https://open.spotify.com/show/7Luds9dmzZDoDC8Q7EMbSw • Apple: https://podcasts.apple.com/us/podcast/refactoring-podcast/id1719137305 — For inquiries about sponsoring the podcast, or appearing as a guest, email: luca@refactoring.club






