TL;DR AI agents break in production because codebases weren’t built for them. Mutable state, hidden dependencies, and entangled side effects make agent output non-deterministic and impossible to debug. Functional programming fixes the architecture. I formalized this into two frameworks: SUPER (five code principles) and SPIRALS (a seven-step process loop). They’re how I build everything now. Code examples in this post are available in five languages.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Cyrus
Contact Cyrus, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack