1. Podcasts
  2. Latent Space: The AI Engineer Podcast
  3. ⚡️ Exo: Harnesses should see their own code and logs — Alex Krentsel, UC Berekeley / Google Research
Latent Space: The AI Engineer Podcast

15 Aug 2026 · 47m · 21 chapters

Episode artwork

⚡️ Exo: Harnesses should see their own code and logs — Alex Krentsel, UC Berekeley / Google Research

In short

EXO’s “fully recursive” self-improving agent architecture, arguing RSI is now feasible because agents iterate on their own harness code (not model weights). It contrasts EXO with OpenClaw-style extensibility (memory/skills/tools) and with “outer-loop” agents that inspect/modify inner agents.

Key claims

EXO uses a minimal, opinionated harness that partitions an agent into executor (stateless policy), exo-harness (state, conversation history, secrets, snapshots), and sandbox (isolated execution). A guardian process rebuilds the executor mid-step and rolls back on failure. Notable example: EXO running Pokemon inspected RAM, mapped memory to game state, and updated its integration to improve decisions. Another example: in the Discord adapter, EXO reduced context assembly cost ~96% by scoping which thread messages to include.

Guests

Alex Krentsel, PhD researcher at UC Berkeley (systems, core networking, formal verification; advised by Sylvia Ratnasamy; previously at Berkeley Skylab Sky Discover). Co-builders: Martin Casado (systems/PhD lineage; VC but deeply technical) and Ankur Goyal (systems thinker; Braintrust).

Written by AI. May contain mistakes.

Chapters

0:45

The EXO Project Introduction

Alex discusses the EXO project and its innovative architecture.

“They're both really excellent systems thinkers.”
2:42

Shifts in Machine Learning Focus

Exploration of the shift towards harness architecture in ML.

“And when we say models, we're talking about the weights.”
4:55

AI-Driven Discovery Systems

Alex explains his research on AI-driven discovery and optimization.

“and I have an external bot, Devin, that modifies the internal bot.”
9:01

Architecture of OpenClaw

Discussion on the architecture of OpenClaw and its extensibility.

“There are places that make this customizable.”
11:25

The EXO Architecture

Alex outlines the architecture of the EXO project and its capabilities.

“And so your system itself can try things and look at how it does and how its own internals perform and make changes to itself as it runs.”
14:00

The Tension in Model Research

Discussion about the tension between large model researchers and harness development.

“I do think that there is some tension that people don't address with regards to how large model researchers always say things like, oh, the next big model will wash things away, you know, will wash the harness away.”
14:30

Exploring EXO Architecture

An in-depth explanation of the EXO architecture and its components.

“We keep trying to, like, RLHF, like, try to align these models to do the right thing.”
18:35

Self-Improving Agents in EXO

Explanation of how EXO enables self-improving agents through architecture.

“is you can snapshot the sandbox environment and the agent, the policy itself, can choose at runtime, as it's running, to try to make some changes and roll itself back.”
21:34

The Importance of Teleportation

Discussion on the concept of teleportation in agent architecture and its applications.

“Is there something else that this refers to?”
23:14

Secret Management in EXO

Analysis of the importance of secret management in the ExoHarness architecture.

“because you only need a couple to be awake at a time, but you're going to have a lot of different customers being woken up at different times and different dedicated sandboxes coming up.”
Show all 21 chapters
28:00

Monitoring Secrets Access Patterns

Learn about the importance of monitoring access patterns to secrets in AI systems.

“to provide the secret without actually exposing it in the space where the tools can see what is being used, which is in the container.”
29:24

Introducing Exo and Real-Time Agents

Explore the capabilities of the Exo harness including real-time agent interaction.

“We have our GitHub here that is at github.com slash exoharness slash exo, and there is a bunch of docs here linked at the top.”
30:48

Architectural Innovations in Exo

Discuss how Exo's architecture allows for interruptible work and task management.

“Once an agent kind of goes and starts working on a thing in a thread, that thread is not interruptible.”
32:40

Self-Improvement in AI Systems

Understand the self-improvement capabilities of agents using the Exo architecture.

“sort of kind of housekeeping question, I guess, did you implement ACP, the protocol from Zed that normalizes over a lot of coding agents?”
34:52

The Role of Collaboration in Agent Development

Learn how collaboration among different experts shapes the Exo harness development.

“This project, I think, is pretty unique because it has these different, very different people coming in.”
36:28

Integrating AI-Driven Discovery with Exo

Discuss the intersection of AI-driven discovery and the Exo harness architecture.

37:26

Challenges in Defining Agent Goals

Explore the complexities of goal setting for self-improving agents and performance evaluation.

“which is enabled by the fact that you have this protected layer of the state in the middle and a separate protected layer of the sandbox?”
42:02

Exploring the Future of Agent Architecture

Discover how advancements in agent architecture are changing AI capabilities.

“I think we have some of the leading people here in the room for Exo thinking through that problem.”
43:10

The Medium of Code: A New Paradigm

Learn about the significance of agents producing and modifying their own code.

“And what I mean by that is the agent harness is a couple thousand lines of code.”
44:18

Programming Languages and Self-Improvement

Understand the parallels between programming languages and AI self-improvement.

“In the same exact, the code is the thing being produced and is also the thing running at this layer, which is why I think it's the right layer to think about RSI.”
45:28

Community Engagement in AI Development

Find out how to engage with the community around AI projects like Exo.

“that contains its own constructs within itself.”
A man walking through an airport, asking his phone a question

Ask about this episode

Get the gist, explore an idea or ask about something said.

Claude

On Latent Space: The AI Engineer Podcast, what are the key points of this episode?

Searching your listening

Transcript

Automatic transcript. May contain errors.

0:03Alex Krentsel: Okay, we're here in the remote studio with Alex Krentsel, a guest of EXO, but also UC Berkeley. Welcome. Thank you so much. Happy to be here. The reason we're recording is because I had to when you showed up on my timeline. I didn't know that you had already showed up before. This goes to show you how much persistence there is on YouTube, but I actually had watched your lecture and then didn't register your name on OpenClaw. That's cool. Yeah, maybe I probably should have said it a few more times or put it in the slides. I was so focused on just talking about the architecture. I didn't go to pitch myself.

0:32Alex Krentsel: Yeah, but also like maybe like your face on there, but also, you know, just like other work. But, you know, that's all that's all of a piece. Most recently, you showed up working with two of our former guests on Latent Space, Martin Casado and Ankur Goyal. When I actually talked to Martin on the podcast, he actually said that he was hacking away with you and he didn't like because he was like i want coding so much and i was trying to call out like you know this this vc pretending that he codes i was like you know what are you doing man and he was working on this and now you've announced it so i just wanted to give you the floor to talk about the exo story and then we can work our way back to whatever other background that you want to do yeah for sure thank you i mean i'll start by saying yeah i i've been building this with Martine and Ankur.

1:23They're both really excellent systems thinkers. As you might know, Martine's background is in a PhD in computer science, actually advised by my advisor, my PhD advisor, Scott Shanker at Berkeley. So that's kind of our shared lineage.

1:35Alex Krentsel: Shared lineage, yeah. He was my board member when I was working at Nellify and I was learning about virtualized networks and all those things. Yeah, yeah. We kind of come from systems backgrounds. My background is fully in systems. And I'll talk more about that later, but just briefly to introduce XO, so we're all on the same page. In a nutshell, XO is an agent that's fully recursive. So it's able to safely edit all aspects of itself at runtime to kind of get better at the task that it's working on. And it's enabled by this very kind of minimal but opinionated harness architecture that splits out different pieces of what an agent is today into components that can be safely isolated from each other and thus safely evolved.

2:20I can talk much more about how it does this, but you should think about it as an agent that really does full recursive self-improvement. And I think it's really enabled today by the fact that we're entering a new layer in the ML stack, in my mind, where up until recently, we've still been really focused on trying to make models better at what they do. And when we say models, we're talking about the weights. We are training the model. First, it was large pre-training runs. then it became kind of applying fine-tuning to these models to get them good at a particular task in their thinking. I think the shift over the last year to agents has made us much more aware of the power that lies in the harness, the tooling, the body that we provide to the brain of the LLM.

3:05And the shift that's happening now is we're really entering a space where we're starting to realize that as we tweak these harnesses, they're going to get really good at particular tasks, either better at doing them or more efficient. So doing them with less token calls, less usage, driving costs down. Costs are a huge concern right now because frontier models keep getting more and more expensive because they're larger, they're harder to serve, they require more GPUs, etc., etc. And so the project came from, I've spent the last year or so of my research at Berkeley on discovery systems, so AI-driven discovery.

3:37This project came out of the Skylab at Berkeley called Sky Discover, and it was this outer loop that tries to optimize and improve in a system. and what I got really curious about was how do we take this to its extreme you have some outer system that's optimizing some inner system what if you want to optimize the way you're doing you're optimizing then you need some outer outer loop and it's this infinite recursion out and the only way I think out of that is to collapse that loop down and make it so that the system itself is responsible for improving itself which I'm calling to collapse the loop so it's very different than having an outer observer that's looking and trying to make changes to the other system as it's running.

4:14I want the system to be able to change itself at runtime. And this is the kind of thesis for Excel.

4:20Alex Krentsel: Yeah. And I'll maybe add a couple pieces of commentary here. The first people to realize this was probably the Pi open claw people, right? Where they were like, well, the harness should modify itself to add whatever capability you need. But it is not fully self-recursive in the way that you envision it. Second of all, so we can go into that and you've already done an open claw lecture, which I'm going to link to in the description that people should see. And we can cover a bit of that if it's relevant to this conversation. The second of all is I haven't followed this at all for my stuff. So for my two companies, I have an internal bot that does work and I have an external bot, Devin, that modifies the internal bot.

4:59Alex Krentsel: The internal bot has no ability to modify itself. And I kind of like that separation, to be super honest, of like, okay, well, now this is like the pseudo do things and then there's do things and then pseudo do things, right? Like the difference, obviously, is it is not magical. It is like you drive the car, then you open the hood to modify the car if you need. But most of the time, the hood is closed. And so then the pushback is like, when do you need that AGI feeling of like, wow, it just modified itself without me asking. So those would be my two commentary pieces there. They're great points.

5:34Let me touch on both. So OpenClaw came around and took off in, really took off in February. And I think you're right. the thing that OpenClaw really discovered was how to make an agentic system that feels magical in that it kind of adapts to your workflow. It is adaptable. But I want to point something out. It's adaptable in a very particular narrow way. So if we were to go and look at the architecture, there are particular places where the OpenClaw folks in the architecture have made it extensible. Those are one, the one dynamic way, super dynamic way is memory. And all of these agent systems have some sort of memory.

6:10Literally, it is a memory.md file somewhere. There is a markdown file that things get written to. It gets injected in context every time the LLM, you know, it constructs, like we construct a call to the LLM and we can edit that file. That's the main super dynamic way. Otherwise, OpenClaw exposes these places where you can extend it. You can add skills. You can ask the agent here, look, go look at the skill, please add it. You can add tools. And by the way, this is very often kind of driven by a human. A human will come in and say, hey, I want a skill for this. Let me go install this skill and then ask OpenClaw to do this.

6:42And so it's absolutely improvement and extensibility and memory is a form of self-improvement. But there's so much more going on inside of these agents. What is an agent, by the way? I think it's worth getting on the same page. Everyone has, I'm sure your audience knows very well about agents, but having a shared definition is important. I think about an agent as an LLM call that is wrapped in machinery that's used to construct context. It's really a big context construction machine. And also it provides a way of executing actions. So part of the context is here are the things I can do. And the LLM can say, please go execute this tool or this action.

7:18And the agent is responsible for actually taking that action and then reflecting it back. The machinery for constructing that context, all of that I call policy. And so what goes into policy? It could be how you assemble the actual LLM call. Do you take the last 10 messages in your history? Or do you take the last 100? That's going to be more expensive, but provide more information. Or do you take the last 10 messages and then a summary of the previous 90, which is how we think about compaction, et cetera, et cetera. These are all policy decisions that are static, that are defined for OpenClaw or for Pi or for Clawed code if you look at their source code.

7:51And so that is the kind of, that is the policy of what an agent is, the tools it can use, the skills it has, how it includes them in its context, how it constructs context, anything about the actual agent's code, which is what Exo sets out to actually make fully recursively self-improving. It's not just certain points where you can insert additional skills. It has changed the very machinery of what skills are for your job.

8:12Alex Krentsel: Yeah, and the policies that make it up. I just wanted to, if actually we should have been screen sharing, we might have used some charts. This might be appropriate time to pull up a little architecture diagram. Totally. Let me actually bring that up. It'll be easier to talk through. So just in here, we can see, and this is again from my lecture on principles of autonomous system design, which was really a deep dive on OpenClaw because it came out a couple months, a month or so before I started working on EXO. But you can see in this architecture, the core layer of this, of what OpenClaw is, is this kind of gateway controller.

8:51There's a bottom layer that has the actual context assembly, and there's a top layer that has connectors, which is how you interact with it. And I've marked here in red the parts that are plugins. There are places that make this customizable. Let's say for your particular task, if you want to manage memory in a different way, let's say that you're working on something that is, you're doing some sort of development that's looking at a whole bunch of sets of different docs. You might want in your memory the docs for a bunch of different projects, but you probably, you might want to run rag over them to fetch the most relevant ones to include in the context.

9:24And so this memory plugin allows you to say, here's a different way of storing and indexing your memories. Great, a human comes along and sets that. Or there's tools, and you can say, here's an additional tool I want to give to my open claw. Or skills, and there's all of the claw hub sites that list out a bunch of tools or skills that you can install. This is all still a human coming in and modifying. And you can come and say, please install this tool for me. But the shift that we're trying to make is all of the other things that are not read here, all of the connective arrows, all of the components, we believe all of that needs to be improvable by the agent, especially as the agents keep getting better.

10:01Because as they keep getting better, it's this better lesson. You don't want to over-specialize because you don't want the human kind of deciding all these architecture bits. As the model gets better, it knows how to architect the agent in a way that's most optimal for the given task. So that's kind of the shift. If I were to put Exo's architecture next to this, I'd say I'd put red lines around all components here and say they are all changeable by the agent itself.

10:24Alex Krentsel: Yes. It's the most extreme version of what this does. What was the other question you wanted me to talk about? Do you want an explicit switch or an implicit switch is basically the question, right? Like implicit switch is the most trusty AGI to figure everything out moment. And the explicit switch is for people who don't trust machines to figure things out. I will say, and then I'll go to discuss the other architecture, but I do want to touch on this now while it's still top of mind. I'll just point out, you are still trusting a machine when you have an outer separate agent modifying the inner agent.

10:57It's still not you making the changes, right? You're maybe helping direct it, but you still have to have the same trust in the machine that's making the changes. The question is, do you have an external system that inspects an internal system, or do you let the running system itself inspect itself? And the cool thing that when you merge the two layers together, The cool thing is that the same system that is deciding to make changes is also deciding what to run and also deciding what to inspect. And so your system itself can try things and look at how it does and how its own internals perform and make changes to itself as it runs.

11:38So you could say, and I can give you a really good example. We've had Exo running playing Pokemon. And while it's running, the system itself decided to try inspecting the RAM of the game and then went and mapped the RAM to... And people have reversed... In the past, people have reversed engineered this manually. They figured out what components in the memory map to different things in the game. So there's like, in the memory, there are certain places where you store the positions in the world, the Pokemon that's currently active, are you in a battle or not? Literally Booleans in the code, in the memory.

12:06And the agent was able to modify, Exo was able to modify its own integration with the game and feed this into the system message to better inform its decision making as it progresses. An outer loop would have to kind of like think about that and potentially try design, tell it, launch it, see how it does, reflect back. If the system itself is evolving, as it makes changes, it can inspect things and use that inspection, runtime inspection to inform its design process. So I think it's a more powerful way, a more fully expressive way of doing self-improvement than an outer system. Yeah, fair enough.

12:40Okay, now maybe let me talk about, I'm happy to talk through the XO architecture if that's useful.

12:45Alex Krentsel: Yeah, let's do it. We love a good architecture diagram on this pod. Usually I'm the person drawing it on Excolibur. So you actually saved me a bunch of work here. By the way, so for context, I don't think I mentioned this earlier. I'm a PhD at Berkeley, advised by Sylvia Ratnasamy. I work Scott Schenker and Jan Stoica. And I'm coming strictly from systems. I started my PhD before ChatGPT really took off. And I was a core networking person. So I've done my work kind of in core systems, designing wider network architectures for SDN controllers. Just how you decide what path your data takes through the internet.

13:25And then I do formal verification for networks. And I've kind of come from a lineage of really thinking about system architectures and trade-offs and designs. I'm not an ML person kind of coming down into agents. I'm a systems person coming up. Yeah.

13:38Alex Krentsel: Well, I think the beauty about AI engineering is there's room for both systems people and model people. I would say Berkeley tends to be the systems over models or systems orchestrating models people, obviously, because it's the school of, what's the term? Compound AI. Confound AI systems, yeah. So yes, I do see both sides. I do think that there is some tension that people don't address with regards to how large model researchers always say things like, oh, the next big model will wash things away, you know, will wash the harness away. And obviously over here, we're building harnesses. Both can be true.

14:21I agree with you. My bet is this, though, that people keep trying to get models to do things that align with their goals. And alignment is an unsolved problem. We keep trying to, like, RLHF, like, try to align these models to do the right thing. In harness space, we actually have an opportunity to enforce certain properties by the architecture of the system that we design, which is totally different than trying to bet on the model, the LLM, the weights containing the rules that we want. Like, for example, if you never want to delete your history, you have to enforce that in the architecture of your harness rather than just asking in context, please, LLM, don't ever do anything that will delete my history because we keep seeing that there's ways to trick the model.

15:03So that's the place that I think architecture holds and really shines for a systems person. OK, so let me talk through the EXO architecture a little bit. This project EXO is really it's a self-improving agent, but that's enabled by this architecture for the harness that's opinionated and very carefully partitions agents. And so I just want to draw the parallel to how we think about agents today, if I come down here. When you think of cloud code, cloud code is both an agent, people colloquially think of it as an agent, it's also a harness, and they're kind of shipped together. And you drop it into an environment where it works.

15:41And so, you know, a common workflow for me is I spin up a VM. I go in there. I, you know, start Claude. I do Claude login. And then I work on a project in there. I clone a repo. I have to log in with my GitHub credentials, by the way, so that it can go and push things for me. And then I'm working in this isolated space. I trust it relatively. And then I do, you know, dangerously skip permissions so that in this VM. And then, by the way, I can accept here, oh, this is kind of risky because I've actually logged in. And I have to have my, like, maybe I have some keys there. I have my, certainly my GitHub credentials there, but okay, fine.

16:14At least it's not going to destroy my computer because it's running in a VM somewhere. The architecture that we're proposing is one that decomposes the idea of an agent into kind of three distinct important layers. And I'm going to show them first more generally, and then I'll come back to the detailed design here. It decomposes an agent into an executor, an exo-harness, and a sandbox. And these layers all have different properties. This is very important. So we think of the harness, the exo-harness down here, as needing to keep all staked, the minimal set of things that we want to have protected from the agent.

16:54It's stuff that the agent uses, but that we want to have protected. And the executor contains all of the policy. And we talked about policy earlier. Policy entails how you assemble your context. What are your prompts? How do you do compaction? What are your skills? What are your tools? is anything about how the actual agent is deciding what it's going to do, right? So in this way, we have a really nice split. The executor is fully stateless. So it's a fully stateless process. And the XR on this contains the layer that has the conversation history, any secrets that might be needed, such as API keys, artifacts, or snapshots of an environment.

17:30And finally, we have a sandbox layer, which is the actual environment where things are happening, where things are taking place. This is not supernatural to think about because today, Cloud Code runs in the same environment as the code itself that it's edited. You drop it in and Cloud Code is running as a process on your machine, editing other files on your machine. Or you drop Cloud Code into a VM where it runs in a VM and is editing files on that VM. We split that out where the actual actions, like you want to go, the agent wants to go run a bash command of some sort, gets executed in a sandbox, which is distinct from the actual policy process that can be running anywhere else.

18:08But what this gives you, this nice split, is it gives you an isolated execution environment down here. It gives you protected state. And then it has a very explicit stateless layer that's safe for self-evolution. So the executor can propose changes to itself in a way that you will not lose any history. You won't leak secrets because they're not exposed to the element itself. and our ExoHarness provides a mechanism for snapshots. And what this is really nice for is you can snapshot the sandbox environment and the agent, the policy itself, can choose at runtime, as it's running, to try to make some changes and roll itself back.

18:45So this is the fundamental architecture behind Exo. And I want to point out what these layers give us. So an agent now, and this is the hardest piece, I think, in understanding EXO and the EXO Harness architecture is decomposed, it's split across these three layers. It is the conversation history that's stored in the EXO Harness, the state, plus the policy that's running, which is an executor, plus a sandbox that it's running on. And those together define an agent as we think about them today. Hopefully that makes sense.

19:21Alex Krentsel: I like this breakdown, it's very clear. I have questions about some of the bullet points here, but I want to get the full top level first. before we go into details. Yeah, so I'll go one more slide to kind of just make this fully concrete, and then we'll go into all the details. So again, this is my view of the architecture that enables Excel. But in this architecture, again, to make this really concrete, you have sandboxes, you have a harness that holds onto your state that's fully stateful, and you have the executor up here that runs. And here you can see policies, all the compaction, tools, skills, the LM call, et cetera.

19:57So... the step that Exo takes, what really makes Exo be a self-improving agent, is it goes and it will mount in its sandbox its own code for the executor itself. And now as a result, the part of the decision-making that the LLM can make is it can say, hey, go edit some aspect of its own harness at runtime. And we have in the Exo harness a special guardian kind of process that will allow the executor to be rebuilt at runtime mid-step and also provide some sort of kind of soaking process where after being rebuilt, we try to bring up the executor, let it proceed one step, and if it breaks itself accidentally, it'll get rolled back to the previous state automatically.

20:45And that's the minimal set of components that are needed because now you have an executor that can see its own code, it can edit its own code, it can ask to rebuild its own code and swap mid-run, and as a result, and finally is protected by an exo harness that will roll it back. And also this mechanism can build new tools, write new skills, change anything about how the context is assembled, adjust adapters, etc., etc. So that is the final step that allows exo to be kind of fully recursively self-envolved. It also means that changes can be parallelizable because there's atomicity in the commit

21:25Alex Krentsel: of the changes in the in the executor the harness overall a good separation of concerns if you want to go back yeah the first thing i land on is is the this last point transferable for teleportation how important is that you know teleportation classically i think people want to run things locally and then they're like i want to close my laptop i want to move it to the cloud that's kind of the only reason that people do teleportation of agent state? Is there something else that this refers to? Yeah, this is a great point. So in a world where you're running a single agent, working on a single task, there is like very little need for teleporting your stuff away.

22:11You either run it locally while you're working, or by the way, if you want it to just be always on, you have to run it remote to begin with. Like it has to be on a server somewhere so that when you shut your laptop, it's still going. So I get your point. So the benefit here is, what if you want to scale up to working on a bunch of different tasks in parallel? You have a bunch of different conversations. This is a very real need. It's not a need for you and I managing our email, but it could be a need for a company. Let's say that a company is wanting to spin up a conversation in an agent or a dedicated agent to each user's usage logs.

22:43The user comes in, uses your app. You have some library that goes and logs to a database. There's a stream of events coming in, and there's some kind of reasoning you want an agent to do over that stream as it happens. Well, you might want to wake up a dedicated kind of sandbox environment for each of those conversations, which, by the way, is fully doable in the ExoHarness architecture. If you're trying to do this for 100 users, great, it's going to fit on your one machine, up to 100 containers running at once. If you want to do this for 50 ,000 users, you're going to start running out of space on your machine.

23:13So you might have enough policy processes because you only need a couple to be awake at a time, but you're going to have a lot of different customers being woken up at different times and different dedicated sandboxes coming up. So a benefit of this teleportation is once you start running out of space for running kind of sandbox containers on your machine, you can start moving some of them off to the cloud, either starting new ones up in Daytona or moving existing ones up to Daytona or some other provider. You might want to give access to some sort of resources that aren't available locally. So that's the benefit I see of teleportation.

23:42Alex Krentsel: Why Daytona? you just know them? For me, it's actually, I'm coming from, some of my previous evals were done on Harbor, the makers of Terminal Bench, and they had Daytona just integrated. We actually have integrations for a number of other providers, E2B. I use actually exe.dev for some of my stuff where I move it off, so I only give it as an example. Yeah, well, no, we've had both Daytona and E2B on the podcast, but I just think this single recommendation by the Harbor guys is driving most of Daytona's growth right now which is very funny obviously daytona has good sales and i i should be clear that daytona has done a lot of other gtm work outside of just harbor but like yes just on the pod itself like the number of people that are very influenced by by that preference is is nice nice to nice to see that you you can actually reward good experiences there okay so i want to keep going on other parts.

24:38Alex Krentsel: Can we go back to the architecture diagram? I think there are some things here that can be maybe like dived into. Things I've wondered, for example, are where do subagents live, right? The things I've wondered are, do you need a router to do the DSPy type of recursive optimization, you know, prompt and tool call and LLM optimization, which does help. And then, yes, actually, I have often thought about secret store, which most agent setups do not have. And you really do need a secret store. So I'm just calling out things that stand out to me here. Tackle whichever gets you going. And I want to remind you here that we're kind of, there's two things we're talking about.

25:30There's XO, the agent built over top of this. that's done by kind of mounting the executor code in a sandbox. And there's the exo harness here, as I'm describing it, this architecture. And some of the questions you're asking about how we decide where to put components of the exo harness, which I will talk through now. But exo is a thing built over top of this that's fully recursively self-improving, whereas this is an architecture to enable that.

25:52Alex Krentsel: Yeah. So looking here, the decisions on like, how do I want to spawn out sub-agents? it's kind of a policy decision in the executor. So you have code written that can go and spawn subagents. That is a kind of a decision that happens. When do you spawn them? When they run? What tools do they have? What access do they have? All of that, to me, is up in the executor and is used at runtime. The simple XO as it's built today doesn't natively come with subagents, but absolutely can be implemented in the same pattern, just in code. Like really the way to think about this executor is it's a block of code.

26:32And these modules here are really me laying out conceptually what components go in that block of code, but it's up to you how you write that code. But state that you have, for example, like memory, you might see memory here. The way you choose to record or inject memory lives in the executor. But the actual memories themselves go down in the XO harness as artifacts for that conversation or for that agent. And so it's kind of like the how you do things is defined in the executor. The actual state at runtime lives in the exo-harness.

27:05Alex Krentsel: Yeah, you have to separate compute and storage, basically, in order to make it teleportable to resumable everything, right? Like people sloppily commingle these things a lot. Then we can mention the secret store. The secret store is really great. We want it to live in the exo-harness so that it's not exposed directly to the LLM. So this is, again, if you think about dropping an LLM, let's say you're working on a project, building a harness even. Well, for that harness to be able to run in your environment, you probably need an API key. And if your agent is running in the same environment as your API key, that is now fully kind of exfiltratable, like fully readable.

27:45And so it's very helpful and very handy and actually quite important to separate out a secret store that stays in the exo-harness on the host process from the sandbox in which operations are taking place. And so that secret is kind of injected in the executor's LLM call to provide the secret without actually exposing it in the space where the tools can see what is being used, which is in the container.

28:11Alex Krentsel: Yeah. And also like an access log in case you need to sort of do some history of debugging after something goes wrong. Yeah. Yeah, exactly. Also, I guess like even the very facts of secrets being accessed, if there's an unusual pattern of access, that should be monitored as well. If my very routine task is somehow requesting my AWS keys, like something's wrong, even if I have it there, you know, and I often wish that there was more work on like monitoring of that kind of stuff, where typically we just have like, it pipes out to like a Slack channel and people just keep an eye on it. but that sounds terrible.

28:53Yeah, yeah, yeah, yeah. I think there's a lot of things happening right now that are just, the space is so new and these things are so powerful that we just are going to do this, whatever we can just, to start extracting value from these systems, we're just going to do whatever is easiest and works right now. But it is not necessarily the place we're going to settle, I think.

29:12Alex Krentsel: Yeah, well, I mean, you have the, I guess, the leeway because you're designing EXO to, I guess, you know, put the recommended best practices in there from day one and then you know everyone who gets your harness gets uh the benefit yes yeah i further variant variants of this if uh if we want to dive in there a very quick one which i'm not expecting a ton of responses for any thoughts on real-time agents uh does that change anything at all just like voice agents or like things that have to respond in like relatively real time if i can briefly just share if people want to go try this. I want to point out where they can go.

29:51We have our GitHub here that is at github.com slash exoharness slash exo, and there is a bunch of docs here linked at the top. You can kind of learn about the architecture of exo and how it works and some tutorials. But coming back over to the GitHub, there's a quick start of just a one-line install script that'll get you going and get you running, and I can show what that looks like soon. but I'll point out we also have Exo comes with some pre-built adapters so the same way that I showed you you know people familiar with OpenClaw know that it has adapters that are really the way it interacts with and can receive messages from the outside world we ship Exo with an adapter for Discord an adapter for IRC and for WhatsApp you can very easily add your own and this all leads into the answer to your question we actually went and built voice mode into Exo to the to the discord adapter so you can have you can have exo kind of join and chat with you in in discord in a voice chat but it's still in a it's not an interactive model the way that you were talking about yeah or it's kind of yeah it's a pipeline cascade thing yeah it's a pipeline thing so as i think about how this needs to change for i think there might need to be some better notion of like interruptible work for agents on their side this is another thing that kind of really, I noticed has bothered me with the open claw architecture, as wonderful as it is.

31:16Once an agent kind of goes and starts working on a thing in a thread, that thread is not interruptible. As the thing is off working, if you try to ping it, it just won't respond. You don't even know what it's doing, which is really frustrating. So the way you have to get around this is you go and you start a different conversation. You say, hey, do you know what's going on over in that other thread? Like, why is it not answering? Which is like not entirely correct. So the way that we're going to need to reinvent what that kind of interactive, interruptible work looks like in the agent layer, which is separate from the work going on, I think, in the model layer and in this interactive model space.

31:53But I think we'll look much more like a systems OS-y thing where the same way that when you're working in your terminal, you want to start something, you maybe put it in a background or you open Tmux and you put it in a separate and a pain on the side. I expect this will be an architecture decision of how you put tasks in the background and expose them to the agent as they're running.

32:12Alex Krentsel: That's the extent of my thinking. I thought you were going to say, you know, you send signals, right? SIGINT or SIG... Yes, yeah, yeah, totally. No, no, exactly. So same way that you can background a process and when it's done, it'll send some signal. You can be woken up. Yeah, there'll be some sort of signal passing or some sort of pub-sub bus where you start a process. There's a pub-sub. You write to the pub-sub. I think that's the architectural systems-y you thinking for me on this? Yeah. Okay. So I think that that all makes sense. And then another sort of kind of housekeeping question, I guess, did you implement ACP, the protocol from Zed that normalizes over a lot of coding agents?

32:51Alex Krentsel: Do you know about it? Do you have any opinions, differences of opinion? That's a great question. No, actually, we haven't gotten there yet. I remember seeing it in the OpenClaw architecture as a way of allowing spawning other coding agents. within OpenClaw. That's actually a great suggestion for something to do next week. Throw your clanker at it. Throw XO at it. Yeah, I mean, you know, I think that everyone's trying to normalize. I think this is a classic systems design thing. You know, you have like 10 coding agents. Well, let's make the one API to rule them all. And so ACP is the current one.

33:25Alex Krentsel: You have a different one. Databricks has like a slightly different one too. And like, well, let's just figure out what it is. but then also there's just the general discomfort of like any common protocol is always going to be lowest common denominator so and then what, right? Like does it actually provide the value versus just having like a pi, right? Like that's why OpenClaw adopting pi instead of saying like we will you know, interop with like 10 different agents it makes it simpler to be super honest like you don't have to have modules for everything. No, that makes sense. I think it's something we'll look into.

34:04We've been really focused on, first, what does the architecture need to look like to enable self-improvement? And then second, building out that kind of self-improving agent piece. And I think now that we have people starting to want to use XO for different things, this is running in production. The XO harness and agents built over top of it is running in production at Braintrust. So these pieces are hardening. I think it's time to think about how to make this as easy for others to integrate with as possible. So that's a great call out.

34:31Alex Krentsel: Oh, let's bring that in. So again, one of my favorite podcasts of last year, I think, was with Ankur. Very great founder and systems thinker. Incredible thinker. What's he done? Basically, can you attribute credit to what did Martine do? What did Ankur do? And then also, let's talk a bit about what has been seen in production. Whatever stories you have. Totally, yeah. This project, I think, is pretty unique because it has these different, very different people coming in. Ankur is an incredible systems thinker. He sees a lot of how people are using agents out in his role at BrainTrust. And is just also, yeah, he's excellent to work with.

35:09Martin, obviously, fantastic VC, also an incredible systems thinker, but coming from a different perspective as a VC, sitting and looking at these different pitches that are happening in different products that are out there. And obviously, also deeply very technical. And you have me as a researcher at Berkeley. I'm in the milieu of the things that are not directly on the production path, but are on the kind of, where is the research bleeding, cutting edge? And especially I've been focused on evolutionary systems and AI-driven discovery and loops on how you improve things. You know, loops really came into the discourse some couple of months ago with some big tweets.

35:45In the research space, we've been talking about these loops, I think, since last summer and really deeply, but, you know, they weren't trending on Twitter.

35:51Alex Krentsel: That's how these things go, right? But also, I don't know if you got the memo, but loops are dead, graphs is all we talk about now. Graphs are back, okay, yeah. No, no, no, this is a shitpost. This is, to be clear, this is a shitpost. This is just influencers making fun of themselves for like, well, every few months you got to cycle it so you have something new to talk about. Do you know what's coming after graphs? I'd love a tip-off. I don't know, markdown is all you need again, I don't know. Yeah, I look forward to that. But to go back to kind of, I have these three players, and so this started from i gave my kind of lecture on principles of autonomous systems back some months back and it got a lot of engagement from the community i love to see people's responses martin came and gave a talk also on at berkeley on the future of where harnesses are going and we kind of linked up there and met up to talk and at the same time he said hey we there you know encore is thinking about this at brain trust we should get together and talk so we got together in a meeting room and just started talking about you know what does this architecture need to look like what are the properties that you need and really this started with a bigger focus on the exo harness how should you architect these agents to provide scalability and safety and encore took a first stab at the layered architecture and again brilliant systems thinker and as we started building that out the first three four weeks i got very interested in what this layered architecture will enable us to do with self-improvement.

37:18And coming from the space of AI-driven discovery, I was really wondering, what if you collapse the AI-driven discovery loop into the executor itself, which is enabled by the fact that you have this protected layer of the state in the middle and a separate protected layer of the sandbox? And so after spending three, four weeks on really the three of us building out the exo-harness or hardening it, originally kind of driven by Encore more, we shifted to focus on this self-improvement that a lot of my research has been in that space and so I think my imprints are really there and Martin, you know, you said earlier, hey, oh maybe this is just a VC just talking about, oh yeah yeah right, you code, Martin really codes, you know, Martin's really in this coding day-to-day so it's been super fun the three of us working together, if you look at the commits we're all there, so Martin is not just posing, as I'm sure you know but yeah, this is, yeah

38:12Alex Krentsel: Well, you know, you got to see the proof in the pudding. I guess the last question, yes, RSI is like a very trending, big topic here. Have you tried just telling Exo to improve itself with no goal? Or do you give it a goal? What do you do? This is such an excellent question. So let me say a few words about this. And this is also coming out of some of my research that I'm doing at Berkeley with Yon. We're about to put out a paper on exactly this, which is in all these optimization problems, the final difficulty is you always have to provide some evaluator and that evaluator has to kind of reflect your goals because otherwise there's no signal for the thing to hill climb or to optimize or that signal it might find a signal for itself but it might not align with what you actually want and that's also a dangerous pernicious failure mode so there's a couple cool things that we do for this for one one very standard thing that you might want your agent to do is you might want your agent to run more cheaply costs for improvements are really high and one of the big issues is like even just how do you assemble your context?

39:12How much of the history do you include? I can tell you with OpenClaw, my bills for running OpenClaw ran way up because of the way it assembles its context. It puts so much stuff in there. One of the things we did in Exo, which is really cool, the Exo harness, the conversation log, stores not just what you talked about, but it also is annotated with costs for each of the messages. And so because of that, then when the executor has access to constructing context and also reasoning over the past conversations and the costs associated with different parts of those conversations. So very early on, one of the first things that was most exciting to me was after we built self-improving kind of XO, we asked it, hey, I noticed, I asked it, hey, but how much did the last message cost in the Discord adapter?

39:53And it was like, it was 16 cents. It's like, are you serious? 16 cents? That's actually crazy. Like, go work on driving that down. And so it went and re-architected its own Discord adapter, got runtime, made changes, observed them, tested them, to really scope down the context that was included in each of the LM calls as they were built, by scoping it to certain conversations and certain threads only, rather than pulling messages from across different threads in Discord, in a way that drove down the cost to, I think, like, it was like a 96 % decrease. And by the way, we committed this back afterwards.

40:25So the changes it made improved itself, decreased its cost, and then we ended up committing that to the actual code that's there now.

40:31Alex Krentsel: Are you doing this subject to no regressions and evals? You know, there's no box that says evals in there, But like, should an XO harness ship its own evals? Yeah, with the Discord case, it's a little easier because it can go and then test and try reading messages from different places. As I'm using it, I can say, hey, something's wrong here. It's a slightly simpler case. If you're going off and having it do some other task that it wants to improve its costs on, a very funny failure mode is it could totally be like, okay, I'm just not going to do it because that's the cheapest way for me to save money, right?

41:02And we see this in AI German Discovery. It's a reward hack. Reward hack, exactly. preventing reward hacking. And so you definitely want some sort of eval-ish thing that it can go and check that the performance is still at the place that you would like. So in Discord, performance is very easy. Are you responding to my messages? Are you including the right context? Context that makes a reasonable response possible. It's kind of more of a binary. It's easier to check. If you have an insurance agent that's trying to make the right decisions, you might want some sort of holdout eval set. And you can either provide that to your agent or you can work with the agent collaboratively to construct internal tools for itself to check that at runtime as it's evolving itself.

41:41So I agree with you. The problem of specifying what you want to an agent is still an open one. So I expect us to build out a bit more tooling in the process of in the context, providing it that as it improves itself, it should also track performance and define some way of tracking that.

41:59Alex Krentsel: Well, you know, if you ever need an evals guy, I've heard brain trust is pretty good. I don't know. Might be biased here. That's exactly right. I think we have some of the leading people here in the room for Exo thinking through that problem. Excellent. Okay. Well, thank you for, you know, you're a great speaker. Clearly you do this a lot. You're about to go teach in Ethiopia for God knows why. But like, thank you for sending some time with us, especially on your time off. So this is excellent work and I'm really inspired. I hope more people study this and also adapt the ideas. You don't even have to use the architecture.

42:34Alex Krentsel: As long as you get the idea right, I think that it will make for much more generally useful agents, which is something I want. Yeah, thanks for having me. I wanted to ask one other thing. If we have a minute, there's one other case I want to make that I think is of interest to this audience. I think I want to answer a question that you didn't ask me, but you could have, which is like, why am I claiming that RSI is possible now with this architecture in a way that it wasn't before? What's the difference? And I want to point something out that's happened the last six months, which is we've moved from iterating on model weights, training model weights, to iterating on this harness and this agent layer.

43:09And the big difference here is that the medium is now, the medium for these agents, for this harness layer, is the same as the actual building material. And what I mean by that is the agent harness is a couple thousand lines of code. And our LLMs are producing output tokens in that same space. They're writing code. They're getting good at writing code. And so this is the crucial difference. You had LLMs before, but the process of improving the actual LLM was changing weights. It was deltas. You do back propagation, gradient descent, changing weights, modifying weights. But you have a trillion parameter model.

43:46You can't feed the weights of that model back into itself and ask it, how do you adjust yourself? It just doesn't scale. it's not in the context. You could ask an LLM, hey, give me some ideas for how to train, and then go try to apply those ideas and run them. But it was not in the same medium, whereas now the harness as it runs, the agent is producing and writing code, and can change its own code as it runs, which is why I believe we're entering a stage where this is fully self-recursive. It's not just autocatalytic, which is where you use a computer to help design the next computer, but the computer itself is made of physical chips that are laid out, right?

44:17So there's layers in between as you loop back around.

44:19Alex Krentsel: This is in the... In the same exact, the code is the thing being produced and is also the thing running at this layer, which is why I think it's the right layer to think about RSI. Well, I mean, you know, you want to be fully, fully self-recursing. You got to train your own models, right? Like you got to like hook up some GPUs and like, well, like, you know, the model's not good here. Let's find you there. Agreed. But I'll just point out that there you get auto-catalytic improvement. You are using the system to help improve yourself, but it is not in the same medium. So that's the thing I want to call out.

44:49You're very curious about this. I'm very purist about this. Maybe coming from academia, this is my fault.

44:57Alex Krentsel: Yeah. Does this remind you of other systems? What I'm thinking about is like, you know, people often bring up like small talk and like stuff, conversations like this, where, you know, it is on the order of a programming language type of abstraction, if you really think about it. Like that is a system. And programming language design and PLT, programmation theory, does translate. I feel that a little bit. Yeah, yeah, that's a great comparison. I hadn't thought about that. Yeah, there's probably some comparison to draw here to some sort of programming language that contains its own constructs within itself.

45:33Alex Krentsel: Yeah, Lisp. Yeah, Lisp definitely comes to mind. Yes, yeah, yeah. There's a moment like that happening now, and this is the moment that's going to be a flywheel, I feel like, because this takeoff moment will come from being iterating in the same layer that you are producing, I think. So that's why I'm so excited to be in this space right now. I think we're all super lucky to be like just in this moment in time. Yeah, excellent. Well, I am very glad to at least make this initial contact. I'm sure this is not the last time you'll be on the show, but it's good to at least get an introduction to your work.

46:03Alex Krentsel: I'm sure there's more that we'll see from you. But thanks for the overview. Thanks so much for having me on. A really fun conversation. I look forward to talking again. We'll put your contact details below. If people want to contribute in any meaningful way, what is the best place to get started? Yes, we so welcome contributors. You know, Marti and Ankur and I are all building together with a handful of other people. Please come to check out our GitHub, github.com slash exoharness slash exo. And on there, there's a link to our Discord. Just come hop in, come hang out. If you're just interested in these topics, come join and discuss with us because it's a very formative time.

46:39This is still very early. We're always looking for contributors and more discussion partners. So yeah, just reach out there, follow me on Twitter. It'll be linked, links below.

46:46Alex Krentsel: So yeah, pro tip when you join these kinds of early communities is actually not just about the project. It's also about people and what you end up doing with them in future years. So whenever I've seen these kinds of early communities, it's actually a really good time to join these things. So awesome. All right. Well, I'll cut it there. Thank you so much. Thank you.

From the publisher

Watch the full show on YouTube: https://www.youtube.com/watch?v=5lFD-34dhqE

More from Latent Space: The AI Engineer Podcast

All episodes