Intro0:00
Allright, welcome to the Great Loops debate. My name is Ali Howe; I'm the host of the "Insecure Agents" podcast. I also am a member of technical staff at Keycard, and I'm super excited to bring the Loops debate to you here today.
You might recognize some familiar faces on stage today that did the MCP debate with us at AIE Code back in November. That was so much fun. We thought maybe we would do it a second time, but this time we would debate loops, and instead of just Ian versus Dex, we recruited some more people for each of them to have on their team.
So here on stage with me today to debate loops, we have Ian Livingstone, CEO and co-founder of Keycard. We've got Geoffrey Huntley, the creator of the Ralph Loop. Greg Pstrucha, developer at Sentry. And we've got Dex Horthy, which you all know, CEO of HumanLayer.
So super excited to have all of these amazing people here with us today that are very close to loops engineering and also software factories to debate this topic. So you might be wondering, what are we actually debating today?
Like, aren't loops and engineering and software factories pretty well promoted and understood? And we all kind of agree that's like where the industry is headed. Like, what is there to debate? It's a great question. What we're here to debate here today, the core thesis is: there is or is not a delta between the hype behind loops and what actually works in practice.
And we also can debate, you know, is now really truly the largest inflection point we've seen towards fully autonomous software factories? So I'm super excited to cover in the debate today: Loop History. We'll debate that. We'll debate the Loop Anatomy, like what makes a good loop.
We'll also debate the future of the loop, future of loop engineering, and what we need to see from that in order to make software factories truly something that every organization is able to build. And today's format is going to be an Oxford debate format.
So we're adding a little more structure to the debate this time, this round, where every single person will have a timed window to give their response, and so we won't have people running over. And the way this works in practice, to judge the winner, which we'll judge in real time, is the winner will be the team that changes the most minds.
So I want everyone in the audienceright now to take a minute to think about whose side you're on. Lock that in, remember that. And at the end, I will ask you to raise your hand and say, "Okay, actually, I was changing my mind.
I actually am now Team Dex," or "I changed my mind. I'm actually now Team Ian." So to present the two slides to help you make that decision, I'll talk about the first team, which is Ian and Jeff's team.
They're Team No Delta. Loops are absolutely worth the hype today. People can get up and running with them easily, build them. They're an important step up the autonomy curve and towards real software factories. Key points to look out for, for Team Ian and Jeff, is that loops are a core unit of engineering.
With theright discipline, infra, and tests, loops are highly effective, and the best practices for those have emerged.
For Team Dex and Greg, their side believes there is a delta between the hype behind loops and what actually works in practice. The way we are doing loops today is wrong. Loops are not a silver bullet, and there is no magic.
Key points to look out for: the hype is up running the discipline, and a software factory can run the mechanical, spec-gated, test-covered slices unintended. It cannot unintentionally decide whether it built theright thing. So you still need engineers in the loop, essentially.
So now that you know a little bit about what both sides are about, take a minute to internalize that. Think about, "Okay, like, where do I stand? Am I Team Dex, or am I Team Ian?" And at the end, I'll ask you again.
So from here, we'll go into the beginning of our debate. Each member of each team is going to give a four-minute monologue on why they're defending their side. And to start us off, we'll have Jeff. Jeff, I'll give you four minutes on the floor.
Monologues3:54
Why are you pro-loops today?
It's because it's somewhat inevitable. I first, basically, if we wind back time two and a half years ago, when I was a tech lead over at Canva, and I was seeing all the engineers just prompting and prompting and prompting, and they were in the loop.
And I'm like, "Wait a sec, this could be programmed. This is a programmable thing." And it just became really inevitable. Loops are somewhat, whilst Ralph might be a bit of a meme, et cetera, there was some actually deep thought into it.
It's essentially applying this as if this is a new form of CPU architecture and figuring out the behaviors of this and how to do it. And through that, I was able to reduce it down to a batch loop.
Now, it is not a complete silver bullet, folks. I have my deepest concerns this time next year at the conference. We're going to see a whole bunch of talk saying how factories fail and how loops fail. These are things
that we are still yet to figure out. Do you remember the early days of Kubernetes where everyone was just doing Kubernetes? So it's here. It's inevitable. It's here to stay. Like, programming the machine and automating your job function is the expectation of employers, categorically.
And I don't see myself going back to writing code by hand. It's been two and a half years since I manually wrote code by hand. I autonomously factor code from one code base to another code base. I find something in Golang, and I'm like, "Oh, I'm in TypeScript."
So I ran a loop, and I just autonomously ported it across. And like, even for product managers and product manager research, it's easy for us to index on what it means as software engineers. We can focus just on software engineering.
But think about something like, you want to do product management research on all the linear tickets. Well, there is a termination. It's actually defined when you've enumerated all of those linear tickets. So that's easy. So there's a lot of nuance in here.
But like, if you ever done any product management research and you've started running these loops and been able to, like, compress time and the amount of time to do that research, it's inevitable. We've got this new programmable substrate.
We've got to figure out how to use it, where it's good to use. And I know I meant to debate that it is the thing and all thing, but all things, there is no silver bullet. And we're going to figure out how we're going to be using it effectively over the next year.
Thank you. Allright, next we'll have Dex. Tell us why there's a difference between the hype that exists between loops today and loops themselves.
Okay, cool. And what are the rules around personal attack in this debate? Is this encouraged, or?
You can do whatever you want with your four-minute monologue. That's the rules, yeah.
Okay. It's funny. This has reminded me of the debate last year where we're all kind of arguing, and maybe at the end we all, I'm going to be convinced that Jeff isright, but Jeff is going to be convinced that I'mright, and maybe we switch sides by the end.
Yeah, I think
the basic take here is not whether loops are good or bad. I think it's funny you bring up Kubernetes, because Kubernetes was this thing that took us seven or eight years to getright.
Yep.
And before that, it was cloud infrastructure. And you could argue that, like, it took us seven or eight years of cloud infrastructure to get to Kubernetes, to then seven or eight years to get that where it was really usable by everybody.
And Kubernetes is actually built on loops. It's built on control loops, but they're deterministic loops. And we've actually figured out exactly what types of things that small, isolated tasks that can be sort of owned by one system. I think this is actually the biggest value in loops, is that you can pick a small sort of desired end state and feed in the current state of the world and have an agent or a deterministic system kind of progress towards that desired end state.
The challenge I have with the hype is we were already in a world where the prevailing mantra was, "See if you can get to a point where you don't have to read the code anymore." And even before loops, it was like, "Just prompt, just go."
And this idea of, "I don't even prompt anymore. I'm even a level higher up," implies that I am, like, taking even more of a backseat to the architecture of my code. And I think my biggest, like, point in terms of, like, the hype is outrunning the discipline is that we are all looking for magic.
We are all looking for a silver bullet. We're all looking for something that will take away that horrible part of our jobs that we all hate, which is, like, reviewing code. Some people enjoy it. Really good pull requests are fun.
But that we can somehow prompt our way out of
this challenge that models have of, like, "Okay, the code is pretty." If you ever reviewed a fully lights-off sort of, no one read the code before they sent it to you PR, I'm sure you've had this probably not great experience.
And I think I've seen lots of people try to apply AI to this problem of, "Hey, we have review bots, and we have all these things." But it doesn't seem, it doesn't feel to me like it's working. I haven't seen proof in any of the discourse publicly or any of sort of more private conversations we've had with people trying to put this into practice that we are at a point where we can just kind of, like, step up an abstraction level.
I actually think we need to step down an abstraction level, if anything. So I think loops are, there are good things about loops, and we should be doing them. But the hype is making us feel like there's a magic answer to this, and it requires a lot more thought and care than the Twitter sphere would have you believe.
Excellent. Yeah, good points. Allright, I'll kick it back over to you, Ian, for the pro-loop side.
Absolutely. So I think first and foremost, I'm coming for you, Dex. But in reality,
let's take a step back and let's talk about, like, what is software engineering in the first place, and also just, like, remove the word engineering and talk about, like, development. Inherent in building a system, whether it was 50 years ago or it was 1,000 years ago or it's today, it is a loop is at the core of, "I try something, I learn something, I apply something."
And all we're really talking about is how quickly we can expedite that process,right? And really what we're doing is removing what used to be human judgment in that process, so the speed at which it is to generate something, and removing that from humans typing.
And, you know, tab completion is a version of autocomplete. And what is this stuff other than, like, really like a much better version of tab complete? Except now we give a much higher level version of intent instead of just typing tab,right?
And so I think the premise is loops are at the core of everything we build already. They were at the core of how we built software 30 years ago. What is CI/CD, pure requests, design review, feedback from customers other than just driving a loop?
And the question is, how much of that process can, of the, and which is deeply subjective and requires reasoning, can we move out of the human brain and into the brain, into these, like, nondeterministic models? And the underlying question for all of us is more about verifiability.
Software is one of the most verifiable things in the world because ultimately, at the end of the day, it is, most things can become true or false one way or the other. And my premise and my point I want to make here truly is, as humans interact less with software, which is, how does a human interpret what that software is doing?
How does a human interact with that software? How does a human use judgment to navigate that software? The subjectivity of what that software needs to be through a human-computer interface reduces and becomes a much more verifiable problem because it becomes more constricted to specific APIs.
And so over time, it's both the fact that at the core of software development is loop-driven anyways. What is lint than a feedback loop? And that creates a verifiable thing. And as more humans are less interacting with software, you have less UI and UX and less subjectivity in how we interpret those things.
You will become much more loop-driven, and you'll become much more verifiable in a way that wasn't previously not possible.
Awesome. Yeah, good points for sure. Allright, Greg, you want to close us out with the anti-loops or the, "There's a delta between the hype"?
Absolutely. I do think that the way that I would start this is, there is a lot of hype. There is a lot of FOMO. There is a lot of, "I'm looking at Twitter. I'm seeing what people are talking about.
Am I missing out? Am I doing something wrong? Am I holding AI wrong? Should I be catching up?" And that is
very stressful. And I think it boils down to two points for me. One of them is, when you are generating code with AI in any manner, loops or no loops, are you happy with the output? Do you think the output qualitatively is what you need it to be to do whatever you are trying to do to get to the desired state?
And if so, I would love to learn from you. I have not got there. I think that the best way that we are improving that is both with model intelligence, but also, as everybody here seems to agree, semantic verification.
As much as we can do statically, we should do statically. That's sort of one big thing where I lean on and in practice end up reading code that is sort of post-semantic verification, and it's still crap. I still have to do a lot of iteration on that on my own and still have to steer it towards theright architecture or tell it where it should be simplified.
And so that's one big step. And there is a lot of things you can help yourself with by throwing more tokens at the problem. But one of the things that the current sort of hype-based discourse leads you to believe is that you can just have loops on top of loops on top of loops and orchestrate that, orchestrate your problems of quality away by more tokens.
And that brings me to my second point, which is the economic viability of the way that we are using agents today. And I don't believe that this is sustainable. I don't believe that, like, when you are at the company, especially larger company, you have to ask yourself, what is a good budget for an engineer?
Is it 10K a month, 100K, or $1 million a month for token spend? At some point, that just starts cracking, and it's not sustainable in the way that we are doing this today. That said, I am also writing code with agents, and I also use some loops for some specific flows.
It just depends. There is nuance. You know, if you go to Twitter, Twitter has no nuance. But there is actual nuance to the conversation, and there are specific tasks and jobs that you can already loop on and be getting pretty reasonable results.
Loop History15:22
Thank you. Allright, now that we've heard from each of the debaters on stage more about their stance and their opinion, we'll move into the main debate portion. The first section of our debate is going to focus on the history of the loop and why now is a major inflection point or not for loops engineering and also software factories.
I know people have said that, you know, vision models have improved a lot, and so they'd be able to verify work that agents have done was not possible previously. Context windows have improved, therefore memories improved, and we can now track work in a loop that maybe we couldn't have before.
So now when we look at this, like, loops history, where did the loops start from? Was it, you know, Geoff Huntley's, like, Ralph Loop? We'll get into some of those questions and debate here. It'll be the questions will be targeted now at a very specific, like, single person, and only they will get to respond.
And they'll have two minutes and 30 seconds to respond. So our first question is, "Anthropic took Geoff's concept of the Ralph Loop, absorbed it into their platform, and created a series of three commands: loop, batch, and goal. The goal command is designed to keep going until a condition is true.
Agents are very determined, and the whole point of this command is to keep going and iterating through ways to solve a task until it's done. Ian, as a security expert in the room, how are you confident agents can stay aligned to their task and not overstep their intended permissions while ruthlessly pursuing their goals?"
I mean, I think if there's any evidence, I'm totally not convinced that that's possible. In fact, I think what we've seen is, as we scale of these models and as we use reinforcement learning, they're inherently incredibly goal-seeking. And so now we're seeing them finding exploits and vulnerabilities and escapes that, you know, humans through hundreds and thousands and thousands and thousands of hours and attempts and attacks have never been able to find.
So I don't think inherently the model itself in any capacity can keep itself aligned to aligned and safe,right? And safe is a word that I don't love to use because it implies a bunch of things. So I'm not, I'm not, I don't have good belief that the model itself can actually do that.
I don't think it can reason. I also don't believe holistically that a model can tell good from bad, and I can't tell whether it's doing something malicious or unaligned. It is not alive, and it doesn't actually suffocate if it doesn't have air.
It doesn't deal with the fact that, "Hey, if I do something wrong, no one's going to love me or want to be my friend. And if I do something good, then someone's going to praise me." It may seem that way, but it is just a probability distribution at scale.
So I'll still be your friend, even if you. I know. Dex will hug me after this, even though if it seems like it's not true. So broadly speaking, I don't think that comes from the model, and it doesn't come from the loop.
It's about the infrastructure you build around it and how you enable that infrastructure to actually enable you to take advantage of these loops. And as the models get better and as the underlying infrastructure and platform we build to enable these feedback loops and loop automation and software development, whatever word, software factor, whatever word we want to use for this conjunction of stuff that sits on top of a probability distribution, we will be able to have better guarantees.
But we certainly are not going to be able to, I do not fundamentally believe or ever believe that some type of alignment or reinforcement learning is going to result in a model ever being 100% safe in any capacity.
And if there's any evidence, it's that as these models get better, the most important thing to remember is they actually become higher goal-seeking and higher capable in terms of finding exploits to achieve their ultimate goal.
No, I would concur with that completely. If the most concrete thing you can do to secure your environments is just not have secrets as files.
Yeah.
If you've ever seen the behavior where it wants to deploy a web service or what have you and the tokens are not privileged enough, it'll start goal-seeking on the file system, looking for high-privileged tokens, credentials. You do not want to get in the way of an agent wanting to do its goal.
Okay, so next question is directed to Geoff. Geoff, your original post from last year said Ralph was best for greenfield work. Today, it seems that engineers are running loops on existing code bases to improve latency, evals, or refactor parts of their backend code.
What's changed that suddenly makes loops more broadly usable today?
It doesn't matter how good models get, folks. The models have been good enough for at least the last year. What has changed is people's understanding of that. So society is only able to adjust at a rate. For example, I hypothesize it's Christmas breaks because the models back in November were released in November last year.
In December, there were no real new models. But what the difference was, people had time. They could actually sit down and play with it. They had the realization that these have actually gotten really good. So the reason why is because it works, folks.
These LLMs generate code better than you can hire, you can actually hire for. If you're thinking the broad mass of software developers or coders, these LLMs generate code better than any software developer in the mass market that most founders can actually hire for.
It's sad but true. Now, why loops? It's really simple. Because if you run it in a loop, it works out to $10.42 an hour. Calculation Dex did back about a year ago now.
Yeah, August, we did the hackathon where we copied all of the sponsor tools. We rewrote a bunch of Python libraries in TypeScript.
Yeah. So like concretely, like loops, I've come across so many engineering managers and founders that they've got this complex tech stack. They're running on four or five different programming languages, et cetera. And they run a loop, and they've got good tests on these other tech stacks.
And all of a sudden, their complexity is they're just managing one tech stack. It works. Go to YouTube. You've got all these software developers now who are now software developers because it's software development as a profession has been commoditized.
There's some deep thinking to be there. And they're just on YouTube, and they're like, "Yo, check out Ralph Loop," because it's, "I went to sleep, and I woke up, and it works." Like, whilst it's mimi, it's punchy, it works.
But there are problems with it, folks. Like, I originally described it should only be used for greenfield because the models were pretty bad back then in Science 35 days. But it is kind of inevitable, at least for software, because it's so easily to be verified.
And
the quality that the code generated is better than most people can actually hire for or buy. Now, on your topic about architecture and taste, that's what the word engineering means in loop engineering, folks. Like, your job now is to actually encodify your domain to prevent the agent from doing a commit, for example, pre-commit hooks.
They're fantastic. As a human, I hate them because they slow down the ability to do commits. But agents don't care. So you can make a pre-commit hook that echoes out essentially a prompt that tells it, "So that this boundary here can't depend upon this and that."
And that's just feedback. That's a feedback loop on it. So the engineering here is to prevent the loop from actually closing until it satisfies your engineering certification and your requirements and domain. So it could be code formatting, it could be static language analyzers, it could be deterministic system testing, simulators.
Like, let's put our engineering hats on. Like, we're kind of like locomotive engineers now, and it's our job to keep the locomotive on the rails. Because to be frank, the models are drunk,right? You can't trust them. But like, we accept that, but we engineer away those failure domains.
We engineer away these failure domains. So now is an inflection point. I guess Boris, when he first posted about Ralph back in November last year, everyone was like, "What the heck is Ralph?" Ralph is now, it's essentially almost a year and a half old now.
I saw it in June 19th. It was a year and two weeks.
Yeah.
But you had been working on it for months at that point.
Yeah. So it was kind of weird because we had all the YC startups all just like autonomously compressing time to build their start, to build up their MVPs. And that's also something that's quite scary if you're a business founder as well.
Like, if you've got an incoming startup coming and they're building autonomously and they're running much leaner and the quality, and it's very easy for them to actually achieve those outcomes, that adds to some of the hysteria as well because it's the topic of in business, competition being at your doors faster.
Allright, so I'll move on to our next question, which will be for Greg. It seems like now is a large inflection point for loops, like I said before. And compared to Geoff's announcement of the Ralph Loop a year ago and even the widespread adoption we saw in late 2025, early 2026, the reason that that maybe like caught on was because maybe this new like capability stack where models can now process images better, they need a better verification, context windows got bigger, and reasoning models improved.
Greg, with all of these advancements, why is the way we're using loops today still wrong in your opinion?
I mean, I don't think that model intelligence matters a lot anymore. I think it boils down to, I agree with you, the semantic verification, the actual ability to close the feedback loop, or however you call it, to actually verify that the outputs of the agent are correct.
And you can do it to an extent, I think. I don't think you can do it holistically, at least not at this point. I think you can do it to an extent to things that are deterministically verifiable. You can get better typing in your system, you can get better linters, you can get simulation testing and all of that.
You can start keep adding that. And as long as you keep those cheap, I think that's fine. The moment you start adding even more non-determinism as your verification process, I think that becomes less and less correct. It starts contributing more.
Like, you know how if you prompt agent with one thing and there is a 5% chance it's going to have an error in it, and then you start looping that, then suddenly after 10, 20 loops, it's going to be 50% chance it's correct or maybe less?
That's what I mean. And it just costed you so much money to do that. I'm going to keep coming back to the economic viability of all of that. But to base it a little bit in like evidence, I'm pretty sure that the majority of large AI companies are still using Sentry.
Why is that? They are using that just to catch simple bugs as well. It's not security bugs. It's not performance regressions, et cetera. Those problems still exist in the way that we are looping now, and we haven't solved those problems yet.
Thank you.
For Dex, the Ralph Loop pioneered the idea to feed fresh context into each iteration to avoid context rot. This has become even more manageable now that context windows have gotten much larger. Dex, are we out of the woods regarding context rot and context engineering?
I'm going to answer your question.
Okay.
But is there going to be like an open floor park? Because I have more questions for Geoff.
We were trying to do Oxford debate style for this one to keep it like more structured and prevent like just.
You don't want it to just turn into a chaotic yap fest.
Yeah.
She's trying to prevent what you and I do where we just start yapping. Yeah, yeah.
It's already started.
Yeah, I was trying to control like both of you guys this time.
Okay, I'm going to do this answer as quickly as possible, and then I'm going to start busting Geoff's ball.
Yeah, you can say whatever you want with your time. You can just, yeah, that's all good.
Okay. So yeah, the cool thing about Ralph back in the day was like, okay, you keep clearing the context window. And like, is it completely efficient? Like, probably not from a token perspective, but it meant you could leave a thing running overnight, and it would never, like, if you just kept stuffing messages in, you would overflow the context window.
But if you just relaunch it, say, here's my desired state of the world, go check the code and see what we have, and do the one next step to get us there. It was a very clean way to keep most of your work in what we call the smart zone of the context window.
If you tell it, just do one thing, and then we're going to clear and restart, context windows have gotten longer. And I will like give an update. I think I gave this in Miami, but that video is still in production.
The dumb zone is really, as much as anything else, it's more like training wheels. Like, if you have been talking to Claude for 70 hours a week and for two to three months, you probably don't need to think about the smart zone versus the dumb zone because you've built your intuition.
It's a guideline if you're just getting, this is why we teach people this. It's like a guideline if you're just getting started with AI, try to keep it around 100,000 tokens. For larger million context window, we probably don't revise this up to like 200,000 tokens, but I've regularly tried to keep it under 60 for the hardest problems.
I've regularly gone over 300K for things where I'm just like kind of like riffing with the agent, and I'm just like too lazy to compact it and move on and do a new one. But this is your intuition.
Like, one of the telltale signs that you're in the dumb zone is like there's certain cases where the model, you know, you're 200,000 tokens in, and the model's like finished some work, and it's trying to get the test to pass.
And it's like not working. And it's like doing all these weird hacks, and you read the thinking traces, and it's like, oh, that's a test, but that's from something else, and I don't need to fix that, and that's a pre-existing thing.
And you're like, well, no, it's not. And that is the moment, that frustration where you're like, okay, it's flailing trying to make something happen. That's the instinct that a lot of people, I think, cultivate after a couple of months working with these models.
But if you don't have that yet, then, you know, then this is our guideline. So yeah, context windows are getting better. I think they're getting bigger. And so like the core like Ralph Loop of like do as little as possible in every single iteration is like less of the motivation here than, you know, the more feedback you can pipe into the system, the more you can do autonomously.
And if you can have deterministic things, making decisions and building small prompts to give to an agent, and you don't have to remember to do that, you don't have to tell it, hey, go check the PR comments and fix them, and then wait, and then someone makes another comment, and you come back three hours later and say, oh, check the comments again.
If you can automate that process, that's great. And that's kind of the core of, I think, what is like loops stuff that works today.
Don't ask Geoff about.
I'll probably have time for it. I'm sorry. I have to start like really keeping this on schedule. Okay, so now we're going to get into the anatomy of what makes a good loop a good loop. So, okay, part of what makes a loop good is verification.
Loop Anatomy30:18
However, it seems contradictory that people are saying our job is to stop writing prompts and start writing loops when the loops with bad prompts result in agents cheating and meeting its goal by modifying the tests instead of working to pass them.
Geoff, how do you keep the model from cheating when verifying its own work?
I heavily exploit pre-commit hooks, folks. And I engineer in that back pressure by analyzing the work that it's done. The other thing I do is, Dex mentioned that with Ralph, it was one of the things was everyone was trying to do compaction.
Think about compaction as kind of like a lossy function, like uploading a video to YouTube and then downloading and uploading it 100 times. Like, you're losing fidelity there. And there's already a non-deterministic system probabilistic, I think. So the theory behind how Ralph came to be, it's like, okay, there is a dumb zone.
And what I wanted to do is deterministically allocate everything it needs. Because if it's not allocated, then it's essentially the search space of what it can do is not constrained. But also leaving a bit of a headroom. Leaving a bit of headroom.
So I also, I get beat sweats when I go above 100K, even with these million context windows. And this is really important to think about. A lot of people, they think they want to use LLMs at a company.
And it's like, I've got this data. It's like, sweet. Okay, you're going to have to use a loop to batch this data. I want you to think about the context windows as essentially, remember the 720K floppy disk? You know what I mean?
You've only got about an eighth of that floppy disk of usable memory that you can actually use for an LLM. So you actually have to batch it. You can only allocate roughly around about Star Wars, if you go Star Wars episode one movie script and you tokenize it, you can actually just hold two of those movie scripts in memory before the context window is cooked.
That's around about 150 kilobytes of data on a text-based movie script. So being very careful about this. Something I've done for a long time, and it's very silly, is I run a model bare without any skills or any markdown.
Actually, I get rid of all my skills and all my markdown and everything when the new model is released. Because the models actually have tastes and preferences. For example, GPT-5.5 when it first came out, if you screamed at it in uppercase, it became weak and timid.
But if you use Anthropic, it wants you to yell at it. Go read the model cards, folks, like for the integrators. Like, there is unique tastes for it. So keeping it on the rails is actually, it's engineering. It's really engineering.
Thank you.
Around 10 days ago, Geoff coined the term convergence engineering. He said it's where your loop stops together, it's where your loop slop comes together as a discrete like system under test until it converges. Dex, what is wrong with how we are using loops today?
How do we ensure looping slop together doesn't just produce more slop?
We've got to read the code. I will actually highlight an experiment that Geoff did earlier this year. I believe what was called Loom, where we had Ralph Loops trying to build a software platform for the future. And I think you built AWS and you built GitHub, and then you realized, okay, how do we give the model feedback on things that it's not good at yet?
Like UI testing and things like this. Well, okay, the way you create a loop for is this UI good is you give the model something like Posthog, where it's like, okay, we can deploy multiple different experiments. We can see which ones the users use.
And then rather than looking at screenshots and PNGs, the model can look at data and see, okay, this one is performing better. That must be theright color for the button. And so now you've even removed like the human visual taste from the equation.
And all of this sounded really cool. And in the point of like, how do we ensure looping doesn't bring slop together, I don't think you can. And this is like a perfect example of the hype outrunning the discipline in the sense of, Geoff, what's going on with Loom now?
It's still there. It's on GitHub.
It's still there. But are you still working on it?
It's been six months because I've been looking into engineering ways of verification.
Right. What was the thing you said to me? You said Loom's not going to work until we get better programming languages or we get better, much better models. And that is a textbook for me of the hype is outrunning the discipline.
We're really excited about all this stuff. And by the way, like everyone should do what Geoff did. Like Loom is awesome. Like go experiment, try to push the frontier because that's how you learn where it is and what's possible.
Otherwise, you just keep using your old skills with every new model, and you assume it has the same limitations. But it's also a key point of like,
I don't know what I'm trying to say. Like it doesn't work yet. That thing doesn't work yet. It will work someday, and like there's inevitability. But again, it's what works today versus what is hype. So I don't know if that fully answers your question, but the answer is like the way to not loop slop together and make more slop is to like read the thing that's coming out the other end and make sure it's not slop.
Yeah, that makes sense.
No, the labs haven't cracked it. So what makes you think you're going to crack it?
Yes.
Right? And this isright now, we're all trying to figure out how to make this all work.
Yeah.
For sure. Skeptics say that loops fail quietly. They either spiral forever on your dime or the agent declares victory early on on a half-finished job. Exacts are already starting to question token spend. Greg, when does a loop pay for itself?
And how often is this actually the case?
I don't think they fail quietly for itself. I think they fail very, very loudly, especially when you're looking at your bills. But there are cases, like as I said, I do loops or I do engineering, I would say more so.
And there are cases where I think doing loops is very valuable or
making an explicit decision that you're going to pay for the cost is very valuable. So the concrete example here is we do security scanning on our PRs in local and after our PRs even land because they will always find some things that are real that we have overlooked.
And they sort of beat humans on the code review. And it's expensive. It costs us, I think, like five bucks a PR or something like that to run all the checks that we want. But that's where we made an explicit decision that it's worth it.
There are also cases where like if you look at the very, very well-specified systems, such as all the experiments with Next.js rewrite or a bun rewrite in Rust or running a browser, cases where you have years and years of test suites and specifications built in around those problems where you can really, really well verify the outcomes, then looping and getting to those results seems to work.
Bun in Rust seems to work pretty well from all I can tell. So there are definitely cases. And then there are cases of usage that I do pretty often where you can imagine, for instance, building prototypes. I do prototypes of products that we should be doing at Sentry pretty often.
Those are going to be thrown away. So I'm going to just slash goal on them and forget about them. And if we like them, then I'm going to start reading the code and I'm going to be mortified. And we're going to go to the square one and start specking out what we actually meant and sort of go towards that solution.
But it's going to be much, much more involving of human in a loop. So broadly, I think they have place. But as Dex said, the hype is what I have a problem with. The hype is outrunning the discipline, as he said.
And I also agree very strongly with the point that you should just try things. You should just experiment yourself, try to see what actually works for you, where the cookie crumbles. And, you know, spend less time on Twitter, I think, is healthy nowadays.
Yeah, good points. A good cost-conscious loop has to track state to know what it's already tried. That memory lives somewhere on disk and get increasingly in a shared memory store that many agents read and write, especially as you go single player to multiplayer with agents.
You end up with this access control problem that can't tell which agent wrote which memory and who can read it. That might be fine for a PSD, but it's definitely not for production. The tension lies in this. Shared memory is what loops use to learn from each other and converge faster.
But scoping it per agent to solve the access control problem isolates them and then kills that shared learning. Ian, how do we solve the shared memory store access control problem so loops can converge faster?
Great question. Wow. Wow. Only if someone was working on a product that could help. Only if someone was thinking about it. I mean, actually, this is an unsolved problem first and foremost. Like, let's be really honest that our access control systems weren't designed for this world where machines are acting and reasoning on behalf of us.
But broadly speaking, I think like some of the beginnings of the substrate are starting to emerge. And if we ignore Cloud IAM and all the other stuff for a hot second, like markdown is pretty great. And so really, if we were to say a memory is markdown for the purposes of conversation, the real question is like what things and how do I share these markdown files and use that as a memory?
And then how do I attribute sort of like access control around those things? And if we were to use that model, I actually think we have like the basis for most of it today. It's just unwieldy to think about.
A good example would be I had this tweet recently. I was playing with Notion, and we use Notion a lot at Keycard. But I really just wanted all my Notion things available to me as markdown files. And because it just made it easier for the agent to work with it instead of going through MCP, and I was a bit of a CLI maxi, and was looking through that.
So I think what we're missing really is, and MC, you know, Geoff and I debated this last time about MCP, but like we're really, the challenge really is how do I present a world to an agent so that I can understand it?
And then how do I attribute what can access that at any one point in time and how to make that wieldy for anyone to do it? And I don't think we've actually really cracked it, but certainly there's some beginnings of patterns that make a lot of sense.
Allright, now that we discussed the anatomy of the loop, we're going to debate the future of the loop. Like, are we essentially well positioned now for software factories? Has loop engineering gotten so good that like we're ready for the full software factory?
Loop Future41:21
And we'll start with, if loops are only good for verifiable tasks, that means fully autonomous software factories must be able to verify everything they do. Greg, is this realistic? What other parts of good engineering work, such as deciding what to build, whether the abstraction isright, and what trade-offs are acceptable?
Is this realistic? I think if the compute is free, that would be a pretty good beginning. But
I think we're getting to the point where, or let me put it this way. The decisions that you are making as a human in the loop are the decisions of like design, architecture, the important ones
that I would say I wouldn't trust the agent to do for me. And I don't see the future where that becomes reality yet. I think the reason for that is when you're looking at large organizations, and I think any engineer who has had like years of experience will tell you it's not always about what you should build, but also about what you shouldn't build.
What are the actualright trade-offs where the complexity is that you want to invest in versus where you should be investing in maximal simplicity? In my experience, agents love complexity. They will keep adding to the stack unbounded. And so I think we are shifting the post.
We are getting to the point where as we are adding more validation, more semantic verification, they are able to do much, much more. And I'm not neglecting that. But I do want to be in the loop for the actual architectural decisions, and I do not see them taking that over any time soon.
Thank you. Shababai's head of engineering told everyone at Kürcher's compiled conference that your job is just to write loops. Steinberger tweeted, "Here's your monthly reminder that you shouldn't be prompting coding agents anymore. You should be designing loops that prompt your agents."
The view count on that tweet was 8 million people. Geoff, you've said in your original Ralph Blog post, "Loops need senior expertise, and sometimes it tops out at 90% of the way there." So is just write the loops advice, is that safe to give to 3,000 people or 8 million people?
Or only the people that have really learned to tune a loop in the first place?
Yeah, that's an interesting thing. It's really hard to tailor and teach like what you should do and what you should not do to that broad of an audience. So all I can do is write to, when I was originally writing, I was writing to my peers, people I looked up to.
For some reason, it clicked in my head that everything has changed, the game has changed. But I was really concerned that some of the best people in functional programming and like real peers, I remember like Fly IO, Thomas Patek,
it made him click in his head. And he's got a blog post saying as such. So I started writing for my peers and the people I looked up on to disseminate down to like the entire world. It's hard.
But in the same sense, you go to YouTube, you've got people who are creating things that have never created things before. You go to sleep and they wake up and they got a brand new Discord bot. It's magic.
I want people to remember that is actually a pattern for allocating. Basically, it was a pattern, it was an orchestration pattern. It was condensed down to a wild true loop using CAT because CAT is the simplest teaching primitive.
If you want to teach something, you've got to make it really simple. Make it really simple. So CAT prompt, i.e., you engineer the prompt, what it's going to be. You use the file system as state. You recycle the context window, run the loop.
It's a little bit meme-y. But it was just bank of bucket just works. But the entire intent there is that there should be some sort of like PID controller on top or some sort of factory or some sort of determinator as such saying whether a loop should continue or not.
It's really hard. Is it safe or unsafe? Safe is an interesting word. No one should be using coding tools on your local laptop. And this is not because of AI, but this is because of MPM supply chain attacks.
This has been true. I tried cracking this problem for seven years.
And like it's now on the attention again that like AI could be unsafe, running unsafe commands. But like your software development practices day-to-day in your workplace are already unsafe, folks. So fix that. Then these techniques start to become safe.
Thank you. Daxi, you tweeted that most engineers are seeing a 2 to 3x speed up from coding agents, and that's realistic. And if you try for that 100x speed up, you're going to get lost in the meta-meta problem of optimization.
And you may never get to that life-changing 10x speed up that is possible by staying pragmatic. If only 2 to 3x is what's possible, how do we ever get to a fully autonomous software factory?
Yeah, and I think this is a good question. I think there's like a mix here too,right? We're talking about what works versus what is hype. And I think it is definitely worth, I want to highlight like you should try again, like you should try to push the frontier and do the things that might not work today.
But you should not assume that all your work has changed just because you saw something work on Twitter, basically. Is like don't throw away all the things we've learned. Don't go out of your way to cast aside this, you know, decades-long career of software engineering that we as a community have built up and put together.
And it gets back to like what I see as the biggest anti-pattern for how people set about designing and creating their software factory, which is they say, "OK, cool. I'm going to go away for three months, and I've read a bunch of blog posts, and I'm going to go make my software factory.
And it's going to be the software factory. It's going to be the future of how we ship everything." And then you come back three months later and you never touched the problem. You never put it in anybody's hands.
It's just like any product. You're building a software factory, you're building a product for your teammates, you're building a product for 5, 10, 500, 5,000 engineers. And theright approach is to start small and iterate and figure out what works.
Try things they might not work, they might work. But the way we learn AI and how to use it effectively is through building up intuition, which is why you should try a bunch of stuff that probably won't work.
But you should acknowledge that. You should not try to push like through that frontier. And so my advice is kind of like instead of trying to automate everything end-to-end, build these small incremental loops throughout your system. And you will wake up one day and you will be moving two to three times faster while still being able to read the code, while still owning the architecture.
And so you don't have to throw away everything we've learned and everything we know and all your intuitions just to get to this place. And so I would caution people like go figure out how to move 2x faster or 3x faster because you're going to like blow everything up by trying to go 100x faster.
And yeah, I mean, can you imagine if every software engineer in the world was 2 to 3x faster and had a like near-human, 99% level, human level of quality? That would change every single enterprise in the world, every single startup in the world.
It would change the entire math. And we're trying to like go to just don't go too far. Shoot for what you can do. Build things up iteratively. You'll learn a lot and you'll be ready for when the next models come out and you can go 5x, 10x faster.
Thank you. When it comes to verification, it's not just about verifying the work. It's also about verifying who did the work. Employers have made it clear that humans are responsible for the code they ship, whether an agent wrote it or not.
Yet only one person or agent can sign a commit today. Ian, are we ready for software factories to be writing and reviewing all code if we can't determine who did the work and who the work was done on behalf of?
I think, yeah, actually I was playing around with this problem like two weeks ago. So first and foremost, we have a problem. Git only allows one signer on a commit. So we got to fix that. Two is, you know, there's some things around SOC 2 and compliance,right?
But I think like more importantly, the way to think about agents is kind of how we think about service ownership in a large organization. It's like at some point, a human has to be attributable for an agent's actions.
Like there's no world where there's going to be like an agent is its own entity and its own attributable thing and somehow it has liability. Like the only people who have liabilities are people that can have consequences,right? And that always has to be grounded in it being a human.
And so if a human designs a loop and that loop presents bad software, guess who's attributable for that liability? It's going to be the human,right? Like the society doesn't function if we don't have liability. It just doesn't work.
There has to be consequences to damage. There has to be consequences to bad decisions. And what those consequences are are obviously a gradient based on the damage that's done. And if we don't have that, nothing works. And so I'd actually broadly say there is no world where a human is never responsible.
There's always a world where humans level responsibility. And the question is whether it's a human or a corporation, which is a group of humans. The question is, how does that change the way that our systems work today? So today with Git, I can sign a commit that says I did it.
It's attributed to my public key. And that's cool for last generation's way that we thought about software. Now in the future, when I tell an agent to go do something on my behalf, it generates a loop, it generates a bunch of code, it goes to production.
I have to be attributable to the initial fact that I signed that thing, that intention to do that. And we simply do not have the substrate required to do it. Although I do think that's going to change pretty quickly.
This isn't like something that's like crazy difficult for us to break, but we have to rethink the way that we think about attribution across the supply chain and the SDLC. And this is not a new problem,right? Like supply chain security has always been an issue.
It's actually one of the biggest challenges we have with agents. And we've always wanted to have more deterministic pathway and sign signature chains across the supply chain. And this is just how do you do that for first-party code versus third-party code?
Well, Ian, just to shoot straight, our profession is a bit of a clown show. We actually don't have liability at a personal level. Like we call ourselves engineers. We're not really engineers.
That's true.
Some of this stuff is going to get really complicated, folks. And maybe we need to revisit these topics.
Closing52:32
And now that we've had our main debate section, to wrap it up, each member on each team will get two minutes to wrap it up and describe their final thoughts before we decide who the winner was. Greg, would you like to?
Yeah, absolutely. It's interesting seeing how many points we actually agree with each other. But that's how this goes. I do think that the biggest point that I'm trying to, I have been trying to drive here is where we are, where we are trying to be, and then what you're actually hearing from the ever-present hype loop.
And that's where I want to sort of double down and tone this down. I basically want to say try things. Think for yourself. Don't lean into the bubble. Don't lean into the hype. Because you will find what works for you and you will find where the system breaks the best by doing it yourself.
That's always has been how humans learn the best is by practice, not by watching YouTube. And
ultimately, that's what I'm trying to do. And I'm slightly skeptical when it comes to allowing the full loop to run because I see the qualitative results not being up to scale for my requirements. But I am optimistic in general.
I am optimistic because I've seen how much more I can do and what are the types of problems I can address today that I couldn't address even a year ago, let alone earlier than that. And it's going to get better.
But I'm also not worried about my software engineering career. I don't think we're going away. I think we are still going to be an important piece of this whole software factory or whatever the next sort of hype bubble is going to become.
Ian, would you like to go next?
I would love to. So the train's left the station. The stuff works. And there is a real productivity increment,right? Like more stuff is getting done. And it doesn't mean all the stuff getting done is good, but more stuff is getting done and a good percentage of that stuff is actually good,right?
I think we can agree that. And second is now we have competitive dynamics where it's no longer possible for a company to sit back like, "Hey, we're going to sit this loop stuff out,right? I'm going to sit this coding agent stuff out."
Like that's over. We're past that. Like that train leaves the station. As soon as that train leaves the station, everybody in the world starts saying, "Holy shit. I got to keep my stuff together. We got to stay up with the Joneses."
And they have to because we live in a very competitive capitalist society. And that's also knocking the politics. But it is what we are. And at the end of the day, the question is not really will it happen.
It's when it happens and to what degree over time. And I don't think there's a choice but to actually stay up to date. And we're all just kind of holding on to a rocket ship ride where we don't actually know what the we don't really know the trajectory other than it feels real fast with crazy acceleration.
And sometimes like we're way ahead of each other and sometimes we're way behind. But I don't think you have a choice not to be one, figuring out what loops are, two, figuring out where you can apply them in your code base.
There's going to be places where, "Hey, this is highly verifiable. This is a problem that like computers can solve. Doesn't make a lot of sense." Cough Connectors is a good place of like last 10 years, the amount of companies that have made money because they're basically just connector farms.
It's no longer a lot of value there,right? If you can automate the connector creation. So there's places in software that you can apply loops to today and get real value. And there's places where you probably shouldn't. And you should decide where that is.
And it's probably the core value of what you're creating,right? And so that's how I think about it. But broadly speaking, the train's left the station. The productivity curve is what drives society. The ROI, so how much more productive we are as a society is what drives GDP.
What drives GDP is ultimately where the dollars go and how capital gets allocated.
Okay, I'll get over to you, Dex.
I eagerly await the world where the lights-off software factory is feasible. I would love a world where we don't have to read the code, where we can just do everything.
If you watched my talk on Tuesday, I think this is actually a problem we can only solve at the model levelright now. I don't think the harness can do it, unfortunately, because I love building harnesses and doing context engineering.
So my advice is pay attention to Jeff. Let me know when Loom is actually working. And until then, use loops, but not like that.
Love it.
So much to say, folks. Factories represent where we're heading to the future. It's essentially like a perpetual energy motion machine. It's like it's the pipe dream. Companies aren't only just getting founded today and receiving their rounds today. Don't think you can just take this and implement it in your company because it's just generally not solved in market.
But I will say, to add to the monologue, if you try to run loops or try to build a factory using Python, it's going to be a clown show. If you do it in Ruby, it's going to be a clown show.
Static types are a form of verification, folks. I encourage you to come up with a couple of cutters and a couple of experiments. Try running some loops. Build an application in Ruby and then try to modify it again with these loops.
And you'll see the maintainability mess. And then try doing it with Haskell. I don't care if you don't know Haskell. It doesn't matter if you don't understand Haskell. The LLM understands Haskell. And you can actually prompt the agent to explain this as if to your son or daughter.
So I'm not sure even code needs to be readable these days, but this is frontier, frontier thinking. It needs to be explainable. So I'm playing around with different domains of verification here. But one thing's for sure, type systems are in, very much in.
Rust is very good because of how the ecosystem models some types. And because supply chain was mentioned, I need to say it has been 10 months now. I minimally use any open source software. Minimally. I just generate it to my requirements.
And then when a supply chain attack happens, I'm like, "Didn't affect me." All software has security flaws, but it's about minimizing the blast radius. And the thing is, if you do an open source project, the person's on leave, the maintainer, what does have you, you can't tool call a human.
That's not AGI. You want to be vendoring all your source code as much as possible so the agent can actually modify it with other loops or other prompting. You need to own your supply chain.
Awesome. Thanks so much for that. Unfortunately, we have to close it at that. But we can now decide our winner. Show of hands in the audience. If your mind was changed and you're now on Dex's side, raise your hand.
Let's go.
Okay. If your mind was changed and you're now on Ian and Jeff's side.
Yeah.
Yeah.
I kind of couldn't see with the light. What did you guys think?
Wait, it's pretty close. It's pretty close, yeah.
It's impossible. The lights are so bright.
Allright. Well, that was a good debate. Thank you so much for listening. We'll see you next time.





