Hey guys, this is Erra. I'm a founding engineer at Klein, and today I'm going to be talking about recursively self-improving coding agents. So this is a very interesting conversation in the sense that everyone wants to understand what RSI is, how we accomplish it, how we go through it, and how it affects our career. So I'm going to start with giving you three goals of this entire conversation, and that would help you understand what we get out of it and what the future for this looks like. So the first goal is understanding the intent of the Frontier Labs. Everyone who's outside of the Frontier Labs is always trying to speculate: what is the topic in OpenAI, or what is DeepMind going to come out with, or what are they trying to make, and what's the future going to look like, who has cracked the RSI. So this helps you get a rough outline of what their roadmap looks like. And the second thing is that if the models are improving so fast, how do you think about your career over the next few years? Right? That is really what we want to understand. We want to understand: okay, things are changing so fast, the ground underneath us is shifting so quickly. Right now, it's like there used to be a time when you could demonstrate your side projects on your personal website on GitHub. And now it's just like you could literally one shot them using any Frontier coding. And with that, it's like: how do we demonstrate proof of work? How do you demonstrate that we know what we're doing? And how do we think of our career for the next coming years? Right? So it's very interesting times that we're living in. And then the third and the most important goal of the conversation is escaping the permanent underclass. Right? So I know this seems like a joke, but this really is a very valid possibility that people are contemplating. Everyone's like: if everything that we want to be doing can potentially easily be done by a Frontier model, what are we, what are we good for? And where does software go? Where is the future of technology going to go? And what are we going to do as things evolve so fast? Right? So I think that there's a lot of fear mongering, but also there's some very valid merits where people are concerned that if all the revenue of the planet is going to go to a few hardware companies that make Frontier GPUs and then a few AI companies that make the best models, how are we, how are the rest of us going to thrive and what are we going to do here? So I think I'll walk you through a few examples and a few ideas that will really help you reconsider the career choices and the life choices you're making and what problems you're picking up. And then that would help you realign what it is that we should be working on and what it is that you could work on that will stand the test of time and help you not just on a psychological level, but financial and other levels as well. So to give a very precise example, let's start with something very precise that I had done. So a couple of months ago, I came up with recursive improvements on a coding harness. So this was the first public example of an automatic eval improvement. So to give an example, we used to do this thing where we would measure the quality of a coding agent using evaluation scores. So in Terminal Bench 2.1, Kimi K3 with Klein would score, usually like 60, 70 percent. And then depending on how good the model is, you get better scores on Terminal Bench 2.1. So we noticed that when Kimi K3 came out, our score was 77.5 percent, which is a good score. But we were wondering: is this truly the best score that this model can get on this benchmark? And also, what does the model release paper claim about what their best score is? So the model's release paper said that they could score up to 85 percent or even more. So we were just like: okay, so we are not getting the sort of score. And often what we do with model releases and clients is that we try to optimize your score and try to get the best out of the model. So when we started hill climbing on the model, we realized that there's a lot of steps that we do, that we pursue the right kind of problems and do it the right way. And we started thinking: okay, if there's a lot of groundwork here, how do we automate it? And this is a demonstration of how we automated it. So I'll just leave that as a placeholder for now. And we'll get back to it later, where we talk in detail about how this automatic improvement loop of a client harness works. So this basically means that you have a coding agent harness that could basically improve itself and become better on the same set of problems. So let's start with the ground terms. What is recursive self-improvement? Recursive self-improvement is the idea that an AI system that helps build a more capable successor, which repeats the process, until you hit artificial general intelligence, right? You have better systems, you have better improvements, you have a better system, and then you have singularity. So a classic example is a self-improvement coding agent, right? A self-improvement coding agent is just a coding agent that can improve itself. So this is all a pie in the sky idea. Like, yeah, sure, this looks cool. But how did this even come out to be, how did we even get to here? So if you notice in OpenAI's roadmap in 2021, they very specifically said that they want to develop a general AI system that can interact conversationally with a user to create, edit, and explain software, it would display all the capabilities of a software engineer colleague. It would write functions, it would identify bugs, it would design an API, discuss style, and best practices, right? So they don't expect to reach this goal right away, but it's in the direction which they're striving. It's interesting how this was more than five years ago. More than five years ago, people had predicted that there would be a day where you will have a full-blown general assistant that can basically act like a colleague, which we do have right now. Then in 2022, ChatGPT got released. We all know how that happened. It was a fun moment. It was the first time things got sparked for us. Then in 2023 and 2024, there was the first time chat models could call functions. These functions would be simple functions like: what's the weather? Or what's this competition? Or what are these competitions results in Python? And then finally, in 2024, when Sonic 3.4.5 was released, that was when the agents could truly call actual tools, the way we call Think tools. So it's like reading a file, editing a file, searching something on web, listing a folder, searching and grabbing through a file system, things like that. And in 2024, we had the intuition: what if chat models could actually talk to each other? So then that was the first time when we had multi-agent conversations. Now at the time, these things were very janky. They were just taped together in weird, bizarre ways where you have these classes and these links and then these hierarchies of classes. And it was all a very janky attempt to make us think that these models could have these pipelines of flows or responses that can all communicate with each other. But a lot of it was mostly deterministic and it was not as free-flowing as it is right now. So we started getting the intuition. So this was the Autogen project, but only in 2025, we started getting the intuition: what if the agents just kept getting better and faster and cheaper? What if that just kept happening? And then in 2026, we had the intuition: what if the agent could improve itself, which is the final part of the whole process. So let me give an example: what does it mean for an agent to improve itself? Right? So a lot of times when we think of evaluating an agent, we initially used to think of evaluating an agent in the form of a single-term conversation. So we would tell agents to ask a simple question, like how many toes does a cat have? And then the agent would go through and answer.
but only in 2025, we started getting the question: what if the agents just kept getting better and faster and cheaper? What if that just kept happening? And then in 2026, we had the intuition that what if the agent could improve itself, which is the final part of the whole process. So let me give an example of what it means for an agent to improve itself, right?
So when we think of evaluating an agent, we initially used to think of evaluating an agent in the form of a single-turn conversation. So we would tell agents to ask a simple question, like how many toes does an animal have? Like, let's say, how many does a cat have? And then the agent would go through and prepare a response and then we would grade the response. So a cat has maybe 10 toes, 18 toes, whatever. I actually don't know how many toes a cat has. But anyway, we grade the responses as a yes or no. But when you work with an agent, there's a ton of things that you're doing. So let me give an example.
You're going to ask an agent, hey, set up this MCP for me. Now it's not just a trivial one-shot thing. It will search online and go, what's the MCP? What is the config? It will edit and download some files. Maybe I need to add database, update the MCP tool. Maybe you need to read and edit some files. Maybe you need to run some bash commands, right? So you do all of that. And then the agent responds, hey, I did it. And then you grade that with a bunch of tasks to gauge, did the agent actually accomplish the thing that it said it would do?
To do that second part, which is more intricate, where you're actually truly testing agents to their best extent, we use this thing called Terminal Bench. Terminal Bench is a benchmark for AI agents in terminal environments. That is something that we have a lot of experience with. And it's one of the best ways to really gauge if your coding agent is accomplishing the tasks that you want to be doing with a model.
There are many different parts of evaluation suites. Ideally, you want that to run in individual sandboxes. Then you have independent graders that check everything: how many turns it took, how many tokens, how much latency, how many tool calls did it make? What was the trajectory looking like? And then grading all the results for things like, did you not reward hack? Did you not cheat through the solution? Did you not just look up the solution online?
So a lot of these datasets of evaluation problems have a set of tasks. So when you have Terminal Bench 2.1, they have 89 tasks. So what we do is spin up 89 parallel containers where they all run online in parallel in their sandbox, and they each try to solve a problem. They're all in parallel and independent of each other. And then at the end, we get a score. Our score could give us measures: is this model performing well, and what kind of failures it has, right?
So you run the evaluation, you get a score. You get an aggregate score and that aggregate score could reveal a set of failures. Failures could be of any kind. Failures could be, hey, the file tool is not working. Sometimes the inference is so slow that the agent's working, it's making progress, maybe it's running in a circle, but it's so slow that it literally runs out of time—45 minutes or whatever time was given for the task—and just stops working.
Once you do that, once you understand what you ran and what failures you got, you bucket the failures into different categories. So maybe 10 failures of this kind, 20 failures of inference not working or something else, right? And then once we bucket the failures into different categories, we try to make an improvement to the harness because what if there's something wrong with the harness that we could change such that the model score would improve, right? And on and on. You do this iteratively. It takes a while. Hill climbing is a very laborious kind of process. Usually we used to take a lot of time trying to do this, but it was a great way for us to learn how to improve models.
One way to hill climb on public benchmarks is we could have a thing where we started doing this where we could just have a long-running agent that runs for a while and automatically improves the model score. And that's what we did. So we ran GPT-4 for 5.6 hours. And then Claude K3 was just running benchmarks. So what it was doing is GPT-4 5.6 was like, hey, run these benchmarks, get these scores. Let me look at the failures. Let me look at where it went wrong. And then I'll make changes to the harness. And then I'll run these benchmarks again, and then I'll keep trying.
You can see how quickly this can go off the rails, because running the evaluation itself takes an hour, then you have to read the feedback, then you have to see if you're properly interpreting the feedback to make reasonable changes to the harness that are not reward hacking, they're just actual genuine improvements, and then run the benchmark again.
So we ran that for 17 hours. And when we ran that for 17 hours, there was legitimate hill climbing. And what we found was very interesting—this happened with a very detailed prompt—that we had a baseline score of 27%. And we found issues like loop detection, where a harness just runs in circles around the problem, right? We found background process grinding where background processes would run too long. We found some file index issues and other things as well.
When I say we, what I actually mean is GPT-4 5.6 solved it, right? So GPT-4 5.6 found and bucketed those issues and said, hey, how about I make those changes in the harness and I run the benchmark again? And it iteratively dealt with the hill climbing process completely autonomously on its own without my interference. And 13 hours later, when I came back to it, it had improved the harness's performance in so many ways.
So what does that mean? It just basically means that we are at a point where the agent could make the harness better. There's a two-level learning loop where the harness does some action, interacts with the environment, understands whether or not it did the right thing or the wrong thing and gets some reward. And then there's a meta agent that's observing the main harness and finding changes to it and just incorporating those changes and improving.
In my personal opinion, it's much harder to do in real time, because if you do it in real time, you over-index on solving certain problems or you're just too curtailed to a specific thing. But I do think that this works on a broader scale, working on a wider range of problems. And you want to be able to justify the changes you're making on a broader active applicability, so that the changes you make here will apply to a broader range of problems as well.
So what does that mean? What am I trying to get at here? The point I'm trying to get at is that the models are so good right now that they can improve the harness, they can improve a lot of other things. So what else can they improve? This is a post primarily from OpenAI, where GPT-4 5.6 autonomously rewrote and optimized its own
solving certain problems, or you're just too curtailed to a specific thing. But I do think that this is something that works on a broader scale of working on a wider range of problems. And you want to be able to justify the changes you're making on a broader active applicability, so that the changes you make here will apply to a broader range of problems as well. So what does that mean? The point I'm trying to get at is that the models are so good right now that they can, if they can improve the harness, they can improve a lot of other things. So then what else can they improve? This is a post primarily from OpenAI, where GPU to 5.6 SOL autonomously rewrote and optimized its own production kernels, and those production kernel improvements removed the entry and serving costs by 20%. It also had 15% higher token generation efficiency. And this was completely done by 5.6 SOL on itself. So what that means is that inference is becoming much cheaper. And that means that if for a company like OpenAI, if you're having 20% lower serving cost for a frontier model, that could be a billions of dollars of improvement in price. And you could do that as well for your own models. Another interesting thing is that when people have kernel writing competitions, Core Auto is a company which has kernel writing competitions, and you'll notice that they mentioned that the person who won the kernel writing competition, the XLSDC said that I've never handwritten a GP operator, it's all ALM and agent driven. So notice how the best inference improvements, kernel improvements are at this point completely exclusively done by a swarm of agents or generally just agents doing magic to magically improve the kernel code and have faster inference, cheaper inference.
So basically the improvement surface that you think of is not just the harness improvement, it's literally the whole surface stack. So the whole stack from evaluation to harness improvements to training data to post training to world interaction to inference, literally the entire part of the pipeline, like all the way from electricity going through your machine to making an error request, going through the model, models doing inference and making a response and getting back to you, every single part of the pipeline, we can optimize it.
So the whole RSI loop has a couple different parts. There's pre-training, examples of AI curated pre-training data that was good. There's post-training examples which are where there's constitutional AI examples of post-training improvements than inference. I gave you the example of GPT 5.6. So for evals and eval generation, I give you our own example of how we improved ourselves on our own evals. In general, what you want to think of is that any time a model is trying to do something and it's not able to do it or not able to accomplish it. For example, imagine you're having a long conversation where you ask the model something obvious, or something that you think is not necessarily obvious, but it's hard, but you would assume that the model could potentially do it. So to give an example, let's say you want to make, add a new column to a database and then fill that column, and then put a cache in front of it. So what happens is that it does the whole thing, but for some reason, the way it pushes the cache in front of the whole database, it kind of doesn't do it right. So at that point, you were setting this cache differently, setting this as the TTL, and then you gave a correction signal. And then that kind of fixes your problem and you go about your day. But the way I want to think of it is that every single time a human correction to the digital landscape is a part of a delta that needs to be covered. And what that means is that every single time you're finding the edge of model capabilities of how far it can push for infants, how much it can push for this, how much it can push for solving your problems. You want to find the delta and we want to push that frontier a little bit further. And that's what post training does. In post training, we find these really interesting and really hard long horizon problems for coding agents or for other kinds of problems, and then slowly hill climb the models on those kind of problems. So anything that has a verifiable loop can be optimized. But this is not just limited to software. The physical world itself could have a verifiable loop. So to give an example, let me give you a very funny and bizarre example where you look at this robot and it's typing something and it's really interesting what the robot is typing.
Notice how the robot is itself typing how it wants to solve robotics. And imagine if the robot itself could interpret the results of the answers and just keep improving, then that means this is basically an ASI robot. Another example that I could give you from my personal life is that I have this chip that has the ability to see and has a speaker and has a microphone inside of it. So I was trying to set up this with my machine and it was a gift that I had for my girlfriend. And what I find very interesting about this is as I was setting it up, it's very slow. It was slow to respond. It had higher latency. It had an agent in and of itself. So what I did was I connected this chip to my computer and I let coding agents run on this hardware and automatically make tests to it. So my computer would talk to my hardware, give it some tests like hey, do this, do that and what do you see right now? So then it would notice the end-to-end latency of the inference response of how fast my hardware is responding. And then what I found is that it was able to do the breakdown of every single case and scenario where there was higher latency, slower response or the algorithm wasn't right. And I could then set up a recursive loop where both the firmware could be updated, the tool calls, the inference model used, the speech-to-text model used, all those could be improved automatically with an open router key which I'd given to a coding agent and then overnight with self-running experiments with the hardware, my tiny little piece of beautiful hardware that I have was deeply optimized. So even hardware could be a part of the RSI loop. So what happens when you connect these loops? That's the next question. You could have cheaper inference, you could have more experiments budget, you have better data and better models. So is this singularity? It's a very close question to ask and I think that the parts of the loop are already weird. We really are very close to parts of the RSI loop. And what do we do? How do we think of that in terms of our career? And how do you think of that in terms of our lives and what do we want to do next? So here's my advice to everyone who is watching this: please, please, please move closer to the RSI loop. Right now people are working on all these different kinds of software which is agents for construction agents for this agents for that. And I think that you're missing the forest for the trees. You really are. You have this very interesting god-like technology that can change the course of humanity and then we're not ambitious enough to pursue the best problems. We really are not. And it's not just that the problem is that we're not ambitious and we're also what we're pursuing, a lot of those things are just one model release away from being completely wiped out. So it's also that it may not be that intellectually stimulating because all we're essentially doing is sitting all day and it's like hey cloud do this for me, cloud do this for me. And I don't know if that's the most intellectually stimulating or thoughtful use of a person's time. Maybe we're supposed to be solving harder and
Very interesting god-like technology that can change the course of humanity and then we're not ambitious enough to pursue the best problems. We really are not. And I think that it's not just that we're not ambitious, and we're also like what we're pursuing—a lot of those things are just one model release away from being completely wiped out, right? So it's also that it may not be that intellectually stimulating because all we're essentially doing is sitting all day and it's like "hey cloud do this for me, cloud do this for me." And I don't know if that's the most intellectually stimulating or thoughtful use of a person's time. Maybe we're supposed to be solving harder and more frontier problems and I think that the ceiling is our ambition. So instead of working on these tiny things, my suggestion to people is to do things that goes without saying but you should do things you believe in and you know I'm just a guy on the internet but do things to help you move closer to the RSI loop, right? So anything that's the end-to-end pipeline of like hey this is where the models are lacking—whether that's inference, whether that's post-training, whether there's literally physical interaction, whether that could be sending end-to-end pipelines of truly any kind or whether that's hardware problems, whether that's networking problems, whether that's building a sense of community, things that help you as an engineer get closer to the benefits of the improvements in the model. So this is a very interesting slide from Sasha Dentropic, they mentioned that you only have one to five years left to contribute to the world, what do you do, right? So they gave great suggestions where you prefer ambitious targeted and fast collaborations, right? And in general the time scale, all the timelines that you give to yourself, they should be completely squeezed out, because a lot of times and you also have to think through that if the problem that you're working on is too ambitious, is it probably better to wait for the next frontier model to come out or not? That's something you also have to wait through, right? And you ideally want to work on problems that benefit from scale and you also at the same time want to avoid projects that can be solved by scale alone because then if you're working on a problem and the next model release comes out and solves the problem, that's probably not a good thing to do. So you have to think philosophically of what is the endeavor that benefits greatly from other improvements but isn't also completely wiped out from it and then ideally if the endeavor could also be a part of the improvement pipeline that could be amazing. So you see a lot of companies raising on making data pipelines and there's a lot of money there, there's a lot of companies working on physical hardware and stuff. So I think if you're a software engineer watching these, I think that if you feel like the delta of your intellect and ability in your day-to-day is not contributing—as in like you have the intellect you can make a difference but cloud is just one-shotting all those problems in your day-to-day and you're just becoming a meat proxy—we should work the thing through, take a step back and think through it: okay where are the problems where you're actually truly contributing and that they will stand the test of time? And that kind of reflection and realignment right now would I think have very interesting consequences for you in the long term. So yeah, thank you so much for your time. I think that if you're watching this and if you've gone this far I think that you're definitely contemplating one of the most interesting improvements in the course of humanity and there's many philosophical arguments here. Some people might say hey, I think I maybe I'm off on the timelines or maybe I'm being too pessimistic or maybe I'm being too optimistic but I would love to hear all those thoughts. So this is my QR code, please feel free to scan it and let me know all your thoughts. Thank you so much, very kind of you to give me your time.
software go? Where is the future of technology going to go? And what are we going to do as things evolve so fast? Right? So I think that there's like a lot of like fear mongering, but also there's like some very valid merits where people are concerned that like, if all the revenue of the planet is going to go to a few hardware companies that make Frontier GPUs and then a few, few AI companies that make the best models, like, how are we, how are the rest of us going to thrive and what are we going to do here? So I think I'll walk you through a few examples and a few ideas
that will like really, really help you reconsider the career choices and the life choices you're making and what your problems you're picking up. And then, and then that would help you like realign what it is that we should be working on and what it is that you, you know, would, would, that you could work on that will stand the test of time and help you both just not just like on a psychological level, but like financial and other levels as well. So to give a very precise example, let's start with something very precise that I had done. So a couple of months ago, I came up with
recursive improvements on a coding harness. So this was the first public example of an automatic eval improvement. So to give an example, we used to do this thing where we would measure the quality of a coding agent using evaluation scores. So in Terminal Bench 2.1, Kimi K3 with client would score, usually like, you know, 60, 70 percent. And then depending on like how good the model is, like you get better scores on Terminal Bench 2.1. So we noticed that when Kimi K3 came out, our score was 77.5 percent, which is a good score. But we were like, oh, is this, is this truly, is this truly
the best score that this model can get on this benchmark? And also like, what does the model release paper claim about what their best score is? So the model's release paper said that they could score up to 85 percent or even more. So we were just like, okay, okay. So we are not getting the sort of score. And often what we do with model releases and clients is that we try to like optimize your score and try to get the best out of the model. So when we started hill climbing on the, on the model, like we, we realized this, we realized that like, you know, there's a lot of steps that we do,
says that we do it gracefully, says that we pursue the right kind of problems and do it the right way. And we started thinking like, okay, if we, there's a lot of groundwork here, how do we automate it? And this is a demonstration of like how we automated it. So I'll, I'll just leave that as a placeholder for now. And we'll get back to it later, where we talk about in detail of like, how does like this automatic improvement loop of a client harness work? So this basically means that like, you have a coding agent harness that could just like basically improve itself and become better on, on the same
set of problems. So let's start with the ground terms. What is recursive self-improvement? Recruous self-improvement is the idea that an AI system that helps build a more capable successor, which repeats the process, you know, until you hit our artificial general intelligence, right? You have better systems, you have better improvements, you have a better system, and then, you know, you have singularity. So a classic example is like a self-improvement coding agent, right? It's a self-improvement coding agent, it's just like a coding agent that can improve itself. So, you know, this, this is all like a pie in
the sky idea. Like, it's like, it's like, you know, yeah, sure. This looks cool. But how did this even come out to be like, how did we even get to here? So if you notice in Topic Roadmap in 2021, in 2021's roadmap, they very specifically said that they want to develop a general AI system that can interact conversationally with a user to create, edit, and explain software, it would display all the capabilities of a software engineer colleague. It would write functions, it would identify bugs, it would design an API, discuss style, and best practices, right? So we don't expect to reach this
goal right away, but it's in the direction which we're striving. It's interesting how this was more than five years ago. More than five years ago, people had predicted that there is a day where you will have like a full-blown general assistant that can basically act like a colleague, which we do have right now. Then in 2022, chat-tpd got released. We all know how that happened. It was a fun moment. It was like the first time things got sparked for us. Then in 2023, 2024, there was the first time chat models could call functions. These functions would be simple functions like, hey, what's the weather? Or what's this competition? Or what are these competitions
results in Python? And then finally, in 2024, when Sonic 3.4.5 was released, that was when the agents could truly call actual tools, the way we call Thinko tools. So it's like reading a file, editing a file, reading, searching something on web, listing a folder, searching and grabbing through a file system, things like that. And in 2024, we had the intuition that what if chat box could actually talk to each other? So then that was the first time when we had multi-agent conversations. Now at the time, these things were very janky. They were just taped together in this weird, bizarre ways where you have
just these classes and these links and then these hierarchies of classes. And it was all kind of a very janky attempt to make us think that these models could have these pipeline of flows or responses that can all communicate with each other. But a lot of it was mostly deterministic and it was not as free-flowing as it is right now. So we started getting the intuition. So this was the Autogen project, but only in 2025, we started getting the just like, what if the agents just kept getting better and faster and cheaper? What if that just kept happening? And then in 2026, we had the intuition that like,
what if the agent could improve itself, which is like the final, you know, the final part of the whole process. So let me give an example, like what does it mean for an agent to improve itself? Right? So like, it's like a lot of times when we think of like evaluating an agent, we initially used to think of evaluating an agent in the form of like just a single-term conversation. So we would tell like agents that like ask a simple question, like how many toes does a dash animal has? Like it could be, let's say, how many does a cat have? And then the other one would go through and the element would
like prepare a response and then we would grade the response. So like a cat has maybe 10 toes, 18 toes, whatever many, I don't, I actually don't know how many toes a cat has. But anyway, yeah, so then we grade the responses like a yes or no. But like when you work with an agent, there's a ton of things that you're doing. So let me give an example. Let me give an example. So for example, you're going to ask an agent like, hey, set up this MCP for me. So now it's not just like, it's not just like, you know, a trivial one shotable like thing, like it will like search online and go, what's the MCP? What is the config? So I'll like edit and download some sub files.
Like maybe I need to add database update the MCP tool. Maybe you need to read and edit some files. Maybe you need to run some bash commands, right? So you do all of that. And then the agent responds like, hey, I did it. And then you grade that with a bunch of tasks to gauge like, hey, did the agent actually accomplish the thing that it said it would do? So to do that thing, the second part, which is like more intricate, where you're actually like truly, you know, testing agents like to their best extent, like it's like, you know, we use this thing called Terminal Bench. Terminal Bench is a benchmark for, you know, AI agents in terminal environments. And that
is something that we are, we have a lot of like experience with a client. And it's like, it's like one of the best ways to like really gauge like, is your coding agent accomplishing in general, the tasks that you're doing that you want to be doing with HR and model. So there's a couple, there's many different parts of like evaluation suits. So ideally, you want that to run in, you know, you, you want that to run in individual sandboxes, then you have like independent graders that like check everything, like how many turns it took, how many tokens to do, how much latency took, how many, how many, how many tool calls did it make? What was the trajectory looking
like? And then grading all the results for things like, hey, did you not reward hack? Did you not cheat through the solution? Did you not just like look up the solution online, things like that. So we basically like a lot of these datasets of evaluation problems have a set of tasks. So when here's our terminal bench 2.1, they have 89 tasks. So what we do is like, we spin up 89 parallel containers where they all run online, and they run in parallel and their sandbox, and then they each try to solve a problem. So then they're all in parallel and independent of each other. And then at
the end, we get a score. So our score could like give us measures like is a, is this is the model performing well, and what kind of failures it has, right? So like you run the evaluation, you get a score. So you get an aggregate score and there's aggregate score could reveal a set of failures. Okay, failures could be of any kind. Failures could be, hey, the refile tool is not working. Sometimes the inference is so slow that like, you know, the agent's working, it's doing, it's making progress, maybe it's running a circle, but it's so slow that it literally like runs out of time, it runs out of like 45 minutes or whatever, or many that were given for the task and just like
stopped working. So once you do that, once you understand, hey, this is what we ran, this is what the failures we got, we bucket the failures in different categories. So like 10 failures of, you know, this kind of tool called 10, 20 failures of like say inference not working or something else, right? And then we once we bucket the failures into different categories, we're like, we try to make an improvement to the harness because like, what if there's like something wrong with the harness that we could change such that the model score would improve, right? And on and on and on. You do this
iteratively, it takes a while. It's just like, you know, hill climbing is like a very grunt worky kind of process. And, you know, usually, usually we, we took, we used to take a lot of time trying to do this, but it was a great way for us to like learn how to improve models. So one way to hill climb on public e-wells is that like, and you know, we could have a thing where, you know, we started doing this thing where we could just like, what if we could have like a long running agent that runs for a while and automatically improves the model score. And that's what we did. So we ran for 5.6. So that led
the work and that was like the main agent. And then Kimi K3 was just running e-wells. So what it was doing is that like, GPT 5.6 was like, hey, run these e-wells, get these scores. Let me look at the failures. Let me look at where it went wrong. And then I'll make changes to client's harness. And then I'll run these e-wells again, and then I'll keep trying. So again, you can see how like, very quickly this can like go off the rails, because this is supposed to be like the running evaluation itself takes like an hour, then you have to read the feedback, then you have to like,
see if you're properly interpreting the feedback to make reasonable changes to the harness that are like not reward hacking, they're just like actual genuine improvements and then run the e-well again. So we ran that for 17 hours. And when we ran that for 17 hours, there was like a legitimate hell climbing. And what we found that was very interesting, this happened with a very detailed prompt that accomplished this is that like, we had a baseline score of 27%. And then, you know, we found issues like loop detection, loop detection is when a harness just runs in circles around the problem, right?
We found like background process grinding where background processes would run too long. We found some file index issues and other things as well. I mean, when I say we, what I've actually made is GPT 5.6 solve, right? So that found those issues that found and bucketed those issues is like, hey, how about I make those changes in the harness and I run the e-well again. And iteratively dealt the hill climbing process completely autonomously on its own without my interference. And 13 hours later, when I come back to it, it's like, it has improved the harnesses performance in so many
ways. So see, what does that mean? What does that mean? It just, it just basically means that like, we are at a point where the experience could make the harness better that like, there's like a two level learning loop where the harness does some action, interacts with the environment, understands whether or not it did the right thing or the wrong thing and get some reward. And, and like almost, and then has, there's like a meta agent that's observing the main harness and finding the changes to it and just like incorporating those changes and improving. Now, it's, I think in my personal
opinion, it's much harder to do in real time, because if you do it in real time, you over index on solving certain problems, or you're just like too curtailed to a specific thing. But I do think that this is something that works like on a broader scale of like working on a wider range of problems. And you want to be able to like, you want, you want to be able to justify the changes you're making on a broader active applicability, so that the changes you make here will apply to a broader range of problems as well. So what does that mean? Like, what am I trying to get at here? The point I'm trying
to get at is that the models are so good right now that they can, if they can improve the harness, they can improve a lot of other things. So then what else can they improve? So this is, this is a, this is a post primarily from OpenAI, where GPU to 5.6 SOL autonomously rewrote and optimize its own production kernels, and those production kernel improvements remove the entry and serving costs by 20%. You know, it also had 15% higher token generation efficiency. And this was like completely done by 5.6 SOL on itself, right? So what that means is that like inference is becoming much cheaper.
And that means that like, if on, if, if for a company like OpenAI, if you're having 20% lower serving cost for a frontier model, that could be a billions of dollars of improvement in price. And you could, you could do that as well for your own models. Another interesting thing is that like when people have kernel writing competitions, so Core Auto is a company which has a kernel writing competitions, and you'll notice that like they, they mentioned that like the person who won the kernel writing competition, the XLSDC said that I've never handwritten a GP operator, it's all ALM and agent driven. So notice that like
how like the best inference improvements, kernel improvements are at this point completely exclusively done by a swarm of agents or generally just like agents doing some magic to, you know, magically improve like the kernel kernel code and have faster inference, cheaper inference. Yeah. So basically like the improvement surface that you think of is not just like the harness improvement, it's literally the whole surface stack, right? So the whole stack from like evaluation to harness improvements to training data to post training to world interaction to inference, like literally the entire part of the pipeline, like all the way from like electricity going through
your machine to like making an error request, going through the model, models doing inference and making a response and getting back to you, like every single part of the pipeline, we can optimize it. So the whole RSI loop has like, there's a couple different parts. So it's like pre-training, nematronic examples of like, you know, AI curated pre-training data that was good. There's like post-training examples which are, you know, where there's like constitutional AI examples of like post-training improvements than inference. I gave you the example of GPT 5.6. So for evals and eval generation,
I give you our own example of how we improved ourselves on our own evals. In general, what you want to think of is that like any time a model is trying to do something and it's like not able to do it or not able to accomplish it. So for example, like imagine you're having a long conversation where you ask the model something obvious. So like it's like, or something that you think is not necessarily obvious, but it's like, it's hard, but you would assume that the model could potentially do it. So to give an example, let's say you want to make, add a new column to a database and then fill that
column, right? And then put a cache in front of it. So what happens is that it does the whole thing, but for some reason, the way it pushes the cache in front of the whole database, like it kind of doesn't do it right. So at that point, you were like, oh no, set this cache differently, set this as the TTL, and then you gave like a correction signal. And then that kind of like fixes your problem and you kind of go about your day. But the way I want to think of it is that I want to think of like every single time, like a human correction to the digital landscape is a part of a delta that needs to be
covered. And what that means is that like every single time you're finding like the edge of model capabilities of like how far it can push for infants, how much it can push for this, how much it can push for, you know, solving your problems. You want to find the delta and we want to like push that frontier a little bit further, a little bit further. And that's what post training does, right? So post training is in that post training. We find these like really interesting and really hard long horizon problems for coding agents or for other kinds of problems, and then just like slowly hill climb the
models on those kind of problems. So anything that has a verifiable loop can be optimized. But this is not just limited to software. Like literally like the physical world itself could have a verifiable loop. So to give an example, like let me let me give you a very funny kind of bizarre example where like it's like you you look at this and you look at this like robot and it's it's typing something and it's like really really like interesting what the robot is typing.
So notice how like notice how the robot is itself typing like how it wants to like solve robotics. And imagine if the robot itself could like interpret the results of of like the answers and just like keep improving, then that means that like this is you know basically like an ASI robot. Another example that I could give you from my personal life is that like yeah, I have this chip that has the ability to see and has a speaker and has a microphone inside of it. So I was trying to set up this with my machine and it was a gift that I had for my girlfriend. And what I find very interesting about this is as I was
set it up. It's very slow. It was slow to respond. It had higher latency. It had an agent in and of itself, right? So what I did was I connected this chip to my computer and I let I let coding agents run on this hardware and basically run on this hardware, automatically make tests to it. So like my computer would talk to my hardware, give it some tests like hey, do this, do that and just like what do you see right now? So then it would notice the end-to-end latency of like the inference response of like how fast my hardware is responding. And then what I found is that like it was able to do the breakdown of like every single case and scenario where there was
like higher latency, slower response or just the algorithm wasn't right. And I could then set up a recursive loop where both the firmware could be updated, the tool calls, the inference model used, the speech-retext model used, all those could be improved automatically with like an open router key which I'd given to a coding agent and then overnight with self-running experiments with the hardware. My, this tiny little piece of beautiful hardware that I have was like deeply optimized. So this also, like even hardware could be a part of the RSI loop. So what happens when you connect these loops,
right? That's the next question. Like you could have cheaper inference, you could have like more experiments budget, you have like you know better data and better models. So is this singularity? It's a very close question to ask and I think that the part is the parts of the loop are already weird, right? Like we are really, we really are very close to parts of the RSI loop, right? And what do we do? Like what do we do about this? And it's like how do we think of that in terms of like our career? And how do you think of that in terms of you know our lives and what do we want to do next? So here's my advice
to everyone who is watching this, like please, please, please, please move closer to the RSI loop, right? So it's like right now like people are working on all these like different kinds of software which is like you know agents for you know construction agents for this agents for that. And it's like I think that you're, you know, well the way I see those things is that like I think of those as like you're missing the forest for the trees. You really are. And it's like you have this very interesting god-like technology that can change the course of humanity and then we're not ambitious enough to pursue the best problems. We really are not. And we're just like,
I think that it's not just like the problem isn't just that we're not ambitious and we're also like what we're pursuing, a lot of those things are just like one model release away from like being completely like wiped out, right? So like it's also like it's also like it may not be that intellectually stimulating because like all you're essentially all we're essentially doing is like sitting all day and it's like hey cloud do this for me, cloud do this for me. And I don't know if that's like I don't know if that's like the most intellectually stimulating or like or like um thoughtful use of a person's time. Like maybe maybe you know we're supposed to be solving harder and
more uh more frontier problems and I think that like it's like the ceiling is like our ambition. So instead of like working on these tiny things, my suggestion to people is to like you know do things that of course like goes without saying but you should do things you believe in and you know I'm just a guy on the internet but do things to help you move closer to the RSI loop, right? So like anything that's just like the end-to-end pipeline of like hey this is where like the models are lacking like it's like whether that's inference, whether that's post-training, whether there's literally like
physical interaction, whether that could be you know sending end-to-end pipelines of truly any kind or you know whether that's hardware problems, whether that's um networking problems, whether that's um building a sense of community, things that just you know um things that just like help um you as an engineer get closer to the benefits of the improvements um in uh in uh um in the model. So this is a very interesting slide from Sashadentropic, so um um they mentioned that like you want to have like this you're in this space where it's like you know you only you only have like one to five years left
to contribute to luxury to the world, what do you do, right? So it's like um they they gave great suggestions where like prefer ambitious targeted and fast collaborations, right? And you know in general like the time scale like all the timelines that you give to yourself like they should be just completely squeezed out, completely squeezed out, because it's like a lot of times and you also have to think through that like if if the model if the problem that you're working on is too ambitious like it's like is it probably is it probably better to wait for just like the next next frontier model to
come out or not? Like that's that's something you also have to wait through, right? And uh you you ideally want to work on problems that benefit from scale and you know you also at the same time want to avoid projects that can be solved by sale alone because then you know if even if you like it's like if you're working on a problem and then the next model release comes out it solves the problem so that's not that's probably not a good thing to do so it's very like you have to like think philosophically of like what is the endeavor that benefits uh greatly from other improvements but like isn't also
completely wiped out from it and then ideally like it's like if the if the endeavor could also uh be a part of the even like the improvement pipeline uh that could be amazing so you see a lot of companies raising on uh say um making data pipelines and there's a lot of money there there's a lot of companies working on physical hardware and stuff so i think if you're a software engineer watching these it's like i think that if you're if you feel like you're like here the delta of your intellect and ability in your day-to-day it's like not contributing as in like you have the intellect you can make a difference but like if cloud
is just like one-shotting all those problems like in your day-to-day and you're just like kind of like becoming a meat proxy we should work the thing through take a step back and think through it's like okay where are the problems where where you're actually truly uh contributing and that they will stand the test of time and then those that kind of reflection and realignment right now would i think like have like very interesting consequences for you um in the long term um so yeah so thank you so much you know thank you so much for your time like i think that i think that if you're watching this and
if you've gone this far i think that you're definitely contemplating like one of the most interesting improvements in the course of humanity and uh you know there's many philosophical arguments here some people might say hey you know i i think i maybe i'm off on the timelines or maybe maybe i'm just being too pessimistic or maybe i'm being too optimistic but i would love to hear all those thoughts so this is you know my qr code please feel free to scan it and let me know all your thoughts thank you so much very kind of you to give me your time