Building pi in a World of Slop — Mario Zechner
Building pi in a World of Slop — Mario Zechner
Summary
In this transcript, Mario Zechner introduces “Pie,” a minimalist and highly extensible agentic harness created in response to the perceived bloat and instability of existing AI coding tools. Zechner argues that tools like Claude Code have become too complex, often breaking workflows with unpredictable context handling and a lack of observability. In contrast, Pie is designed to be “malleable,” allowing developers—or the agents themselves—to modify the tool’s capabilities using TypeScript extensions. By focusing on a lean core of four basic tools (read, write, bash, and search), Pie prioritizes performance and flexibility, aiming to adapt to a developer’s specific needs rather than imposing a rigid framework.
Zechner also addresses the broader cultural impact of AI on software engineering, warning against the “Armageddon of agents” and the rise of “clankers”—AI agents that flood open-source repositories with low-quality issues and pull requests. He contends that agents often compound errors because they lack a human’s ability to feel “pain” or learn from systemic failures, instead filling codebases with mediocre abstractions learned from the internet. To combat this, he advocates for a “slow down” philosophy: using agents for scoped, non-critical tasks like reproducing bugs or writing boilerplate, while insisting that humans must read and write critical code by hand. Ultimately, Zechner emphasizes that maintaining human agency and discipline is essential to preventing codebases from becoming unmanageable “slop.”
Highlights
”Agents are destroying OSS”
“Clankers are destroying OSS. Here’s KillDraw, they closed down their issue and pull request tracker.” — Mario Zechner, 10:58
Clip command
yt-dlp --download-sections "*10:58-11:40" "https://www.youtube.com/watch?v=RjfbvDXpFls" --force-keyframes-at-cuts --merge-output-format mp4 -o "clankers.mp4"
”Enterprise Grade Complexity”
“And every decision of an agent is local… So yeah, you get enterprise grade complexity within two weeks with just two humans and 10 agents. Congratulations.” — Mario Zechner, 13:42
Clip command
yt-dlp --download-sections "*13:42-14:04" "https://www.youtube.com/watch?v=RjfbvDXpFls" --force-keyframes-at-cuts --merge-output-format mp4 -o "complexity.mp4"
Key Points
- The development and extensibility of the Pi coding agent - Description
- Critique of current AI coding tools and context management - Description
- The impact of automated AI ‘clankers’ on open-source maintenance - Description
- The risks of ‘agentic slop’ and increased software complexity - Description
- Principles for effective human-AI collaboration and maintaining code quality - Description
Transcript
Mario Zechner: 0:15 Hey there, I’m Mario. I built Pie in a world of slop, and this is a strategy—a tragedy in three acts. Just to talk about this real quick, a bunch of people on the internet gave me money for ad space on my torso and all of that goes to a charity, so yeah, thanks guys. So, Act One: Building Pie. In the beginning, there was Claude Code, and it was good, right? We all got basically catnipped by that thing and stopped sleeping. A bunch of stuff before that, but Claude Code was the one thing that kind of clicked with me the most. And to preface all of this, I love the Claude team, they’re brilliant people, talented, super high velocity. So, they also created the entire game. Major props to them. So this is not a roast, this is just me, an old man, telling you why I stopped using Claude Code and built my own thing. In 2025, I started using Claude Code in about April, I think, thanks to Peter, because he told us the agents are working now. And back then, it was simple and predictable and fit my workflow. But eventually, the token madness got hold of them, I think, and the team got bigger and they started dogfooding that stuff and built a lot of features. A lot of features I don’t need, which is fine, I can just ignore them. But with velocity and more features come more bugs. And that’s bad because I used to work at construction sites and if my hammer breaks every day, I’m getting really mad. And if my development tools break every day, I’m also getting mad. So there was this. It’s just a running gag. And here’s Tariq telling us that Claude Code is now a game engine. And here’s Mitchell from Ghostly telling us, no it’s not. And eventually they fixed the flicker, but then other stuff broke and I think they’re now at the third iteration of a TUI renderer. Yeah, but that’s just a symptom. The real problem is that my context wasn’t my context. Claude Code is the thing that controls my context. And behind my back, Claude Code does things to the context. So you have the system prompt which changes on every release, including the tool definitions. They would remove tools, modify tools. Not good. They would insert system reminders in the most inopportune place in your context, telling the model, ‘Here’s some information. It may or may not be relevant to what you’re doing.’ That it actually says it may or may not be relevant what you’re doing. And that kind of confused the model and that kind of broke my workflows. On top of all that, there’s zero observability because that’s how the TUI is constructed, and I like knowing what my agents are doing. There’s zero model choice, which is obvious. It’s the native Anthropic harness, so it makes sense for them to want you to use Claude, right? And there’s almost zero extensibility. And some of you might have written some hooks for Claude Code, but I’m telling you, the number of hooks and the depth of those hooks is very shallow. And every time a hook triggers, what actually happens is a new process… …processes get spawned, basically the command you specified for the hook to be executed. And I don’t find that specifically efficient. So I took a step back and looked around for alternatives, and I’d like to especially call out Aide and Factory, the Porsche and Lamborghini of coding agent harnesses. So if you can afford them, please use them. They’re at the frontier, they’re really good, and the teams are fantastic. And there’s a bunch of other options, and I have history in OSS, so naturally I kind of gravitated towards OpenDevin. And again, brilliant team, super high execution velocity, and they don’t sell you hype, they sell you tools that work, for the most part. I started looking under the hood of OpenDevin with respect to context handling as well, because that’s the most important part for me. And I found a bunch of things like given some conditions, OpenDevin would just prune tool outputs after a specific minimum amount of tokens. And that basically lobotomizes the model. There’s also LSP server support, which means every time your model is calling the edit tool, OpenDevin goes to the LSP server that’s connected, asks, ‘Are there any errors?’ and if so, injects that as part of the edit tool result. Which is bad because think about how you’re editing code. You’re not writing a line of code, checking the errors, writing the next line, checking the errors. You don’t do that. You finish your work and then you check the errors. This confuses the model. There’s a bunch of other things like storing individual messages of a session in a JSON file. Each message is a JSON file on disk. There was this and this happens to all of us, no blame there, but it’s not great if by default a server spins up, CORS headers are set in such a way that any website you open in your browser can now access your OpenDevin server. That’s, yeah. And entirely unrelated to all of this, I started looking into benchmarks for coding agent harnesses and found Terminal Bench, which is a pretty good benchmark, all things considered. And the funny part about it is that it’s the most minimal kind of thing you can think of. All it gives the model is a tool to send keystrokes to a tmux session and read the output of that tmux session. There’s no file tools, no sub-agents, none of that stuff. And it’s one of the best performing harnesses in the leaderboard. Here’s the leaderboard from December 2025. Irrespective of model family, Terminal scores higher, mostly even higher than the native harness of that model. So what does that tell us? My first thesis is this: We’re in the ‘fuck around and find out’ phase of coding agents, and the current form is not the final form, right? So a second thesis is we need better ways to fuck around, and for me that means self-modifying, malleable agents. Things that the agent itself can modify and I can modify depending on my workflow. So I stripped away all the things, built a minimal core but made it super extensible and made it so that the agent can modify itself. With some creature comforts. It’s not entirely barebones. So that’s Pie. It’s an agent that… please Pi adapts to your workflow instead of the other way around. It comes with four packages: an AI package, that’s basically just an abstraction across providers and context handoff between providers; an agent core, which is just a while loop and the tool calling; a bespoke UI framework—I come out of game development, so I built a thing that actually doesn’t flicker too much; and the coding agent itself. Here’s Pi’s system prompt. That’s it. Eventually the industry created a new standard called skills, which is basically just markdown files. So we added that as well, and that needs to go in the system prompt. So begrudgingly, we had to add a couple more lines. And finally, here’s the magic that makes Pi able to modify itself. We ship the documentation, which was handcrafted by me and an agent, and code examples of extensions. And all we need to do for the agent to modify itself is tell it: here’s the documentation, here’s some code that shows you how to modify yourself by writing extensions. It comes with four tools. That’s all it has. Read, write, bash, and search. Here’s the tool definitions. Don’t read the text, just look at the size. That’s it. Here’s what happens when you start a new session in one of these tools. So the thing is, the models are actually reinforcement trained up the wazoo, so they know what a coding agent is because a coding agent harness is basically what they’re being trained when they are post-trained. You don’t need 10,000 tokens to tell them you’re a coding agent. They know because they are coding agents now. Pi is also YOLO by default because my security needs are different than yours, and I don’t think a little dialog that pops up every now—every time you call bash, asking you to approve, is a smart security mechanism. So instead, I give you so much rope that you can build anything that’s fit for your specific security needs. There’s also stuff that’s not built in. I’m a heathen because this is how I do it. But if you don’t like that, then you just ask Pi to build you sub-agent support, or plan mode, or MCP support, whatever you need. Extensibility comes with a bunch of table stakes, and then with the extensions itself. And extensions in Pi are just TypeScript modules. In the simplest case, a TypeScript file on disk. You point Pi at that, here’s an extension, load that as part of the harness, and with that, you get a basically an extension API that lets you hook into everything and define stuff for the harness to expose to the—to the model. And that includes tools, slash-command shortcuts, you can listen in on any kind of event and react and then save state in the session that’s optionally provided to the agent as well, or stored there for tools that analyze sessions as part of your organizational workflows. You can do custom compaction, custom providers, and you have full control over the UI, so you can modify everything in Pi. And you can then bundle all of that up and put it on NPM or on GitHub because I think we don’t need to reinvent another bunch of silos called marketplaces. We also have package managers. And all of that hot reloads. So if you develop an extension for Pi, you do so in the session, and you hot reload the changes and see the effects of that immediately, which is very great. And it’s also a game development thingy. In game development, you want high, very low iteration speed. And that’s great. So a couple of examples. Claude or Anthropic ships the slash by the way, which lets you talk to the agent while it goes on its main quest. I posted this little prompt on Twitter, jokingly, and somebody built it in five minutes with more features. And they didn’t have to fork or clone Pi, they just let the agent write the extension based on the prompt. Here’s Nico. He’s one of the most prolific extension writers. I don’t know what the fuck is going on here. It’s a chat room for all of his Pi agents and they talk with each other. I would never use this, but all of this is custom, including the UI. Or you can play NES games. Or you can play Doom. And there’s a bunch of other examples I’m not going to talk about. So how do you build a Pi extension? You don’t. You tell Pi to build it for you based on your specifications. And then you just iterate with it on that and hot reload during the session. I’m going to skip that example as well. And if you don’t like building things yourself, and I hope you do like building things yourself, but if you don’t, you can look on NPM or our little search interface on top of NPM to find packages for sub-agents, MCP and so on. So does it actually work? Well, here’s the terminal benchmark leaderboard from October before Pi had compaction. I added that for Peter’s Claw thingy. It scored sixth place. But none of this is actually about Pi. I basically want you to retake control of your tools and workflows. So build your own. And if you want to know more about Pi and OpenClaw, go to this talk please. Yeah, and then eventually Peter happened. He put Pi inside of OpenClaw as its agentic core, which meant my open source project became the target of a lot of OpenClaw instances, unbeknownst to their users. So this is Act 2: OSS in the age of clankers. Clankers are destroying OSS. Here’s KillDraw, they closed down their issue and pull request tracker. Here’s OpenClaw’s trackers. Here’s mine. Half of that is OpenClaw instances who post garbage. So I started to rage against the clankers. If you send a pull request, it gets auto-closed with a comment that asks you to please write a nice issue in your human voice, no longer than a screen worth of text. And if I see that, I write ‘looks good to me’ and your account name gets put in a file in the repository. And the next time you send a pull request, it’s let through. Clankers don’t read that comment. They don’t go back once they’ve posted a pull request. So that’s a perfect filter. Mitchell eventually turned that into Ouch. Here’s a clanker. I also labeled them. If you had interactions with OpenClaw, your issues get de-prioritized. I also built tools where I embed issues and pull request texts into 3D space so I see clusters of issues. I also invented OSS vacation. I just close the tracker whenever I want, so I have my life back. So does this work? Yes. Sort of. Which leads me to act three, slow the fuck down. Everything’s broken. And then there’s people that say, oh, product’s been 100 percent built by agents. Yes, we know, it fucking sucks now. Congratulations. And I’m hearing this from my peers, and this is entirely unhealthy. So here’s how we should not work with agents and why, at least in my opinion. I wrote this on my blog a while ago, but the basic gist is this. We are having Armageddon of agents, Devin’s using vites and you don’t know that it’s basically un-installable malware, and Anthropic built a C compiler, it kind of works, but actually doesn’t, and we’re hoping the next generation of models will fix it. And here is Perplexity building a browser and that’s also super fucking broken, but the next generation will fix it. And SaaS is dead, software’s solved in six months, and my grandma just built herself a Spotify with her Ollama. Come on people. So agents are actually compounding booboos, which is my word for errors, with zero learning and no bottlenecks and delayed pain. The delayed pain is for you. Here’s your code base on a human, on one agent, and 10 agents. How much of the agent code can you review? Here’s the same code base but expressed in number of booboos per day. How much of those booboos do you think you’ll find? Then you say, oh, I have a review agent. Let me introduce you to the wonderful world of the Ouroboros. Doesn’t work. It catches some issues. The problem is that agents are emergence of learned complexity. Where did they learn that complexity from? From the internet. What’s on the internet? All our old garbage code. There are some pearls on the internet, really well designed systems, but 90 percent of code on the internet is our old garbage. And that’s what the models learn from. And every decision of an agent is local, especially if the code base is so big that it doesn’t fit into its context. And if you let it go wild and add abstractions everywhere that are intertwined. So that leads to lots of abstractions and duplication and backwards compatibility. Who has seen that in the output of their agent? It’s fucking annoying, or defense in depth. So yeah, you get enterprise grade complexity within two weeks with just two humans and 10 agents. Congratulations. And then you say, but my detailed spec. Yes, sure. Know what we call a sufficiently detailed spec? It’s a program. So if you leave blanks in your spec, what do you think happens? How does the model fill in the blanks and with what does it fill that in? It fills it in with the garbage that it learned on the internet from our old code, which is garbage to mediocre. And then you say, but humans also. Yes, humans are horrible, fallible beings, but they can learn. And they are bottlenecks. There’s only so many booboos they can add to your code base on a daily basis. And humans feel pain, which is a very interesting property because humans hate pain. And once there’s too much pain, the human has a bunch of options. It can… Quit their job, it can blame someone else and make them fix it or everybody bands together and starts refactoring the shit out of the garbage codebase, right? Agents will happily keep shitting into your codebase. And now your agents and the super complex memory systems will not save you. Agents don’t learn the way we learn. Those are my most beloved people. “I don’t even read the code anymore.” Congratulations. Something is broken and your users are screaming, so who you gonna call? Not yourself, because you haven’t read the code. So you’re relying on your agents, but they are now also overwhelmed because the codebase is so humongous that there’s absolutely zero chance they can get all the context they need to fix the issues. And long context windows are a hack, as most of you will find out this year as everybody’s switching to one million tokens context windows. And agentic search is also failing. So the agent patches locally and fucks shit up globally. If you see this in your codebase, you’re fucked. So you cannot trust your codebase anymore and also not your tests because your agent wrote your tests, so good game. So here’s how I think we should work. There’s a bunch of properties for good agent tasks, that means scope. If you can scope it in such a way that the agent is guaranteed to find all the things it needs to find to do a good job, you’re done. That means modularize your codebase. If you can give it a function to evaluate how well it did the job, even better. Hill climbing, auto research. Anything non-mission critical, let it ride. Boring stuff, let it ride. Reproduction cases for user issues, which are usually only partial in information, perfect. I don’t spend my mornings anymore doing that. Or if you don’t have a human near you, rubber duck. So lots of tasks you can use them for and save time. At the end of that, you evaluate, you take what’s reasonable, most of it isn’t, and then finalize. My final slide more or less: slow the fuck down. Think about what you’re building and why and don’t just build because your agent can do it now. That’s stupid. Learn to say no, this is your most valuable capability at the moment. Fewer features but the ones that matter and then use your agents to polish the shit out of that and enlighten your users, not your token-maxing desires. Cap the amount of generated code that you need to review. And non-critical code, sure, let it ride sloppy ahead. Critical code, read every fucking line. See the keynote after me for more info on that. So how do you know what’s critical? Any guesses? Well, you read the fucking code. If you do anything important, write it by hand. You can use a Copilot to help you with that, but don’t let it make the decisions for you because we’ve learned all the decisions it makes are learned from the internet. And that friction is the thing that builds the understanding of the system in your head, which is important and it’s also where… learn new things. And all of this requires discipline and agency, and all of this still requires humans. Thank you.
