Video: The Art of Loop Engineering: How to Build Agents That Improve Over Time | Duration: 2768s | Summary: The Art of Loop Engineering: How to Build Agents That Improve Over Time | Chapters: Introducing LangSmith (1.04s), Agent Development Lifecycle (102.605s), Agent Loop Engineering (200.35s), Event-Driven Loops (583.705s), Self-Improvement Loop (813.49s), Human Approval Loops (1163.635s), Agent Loop Recap (1283.75s), Memory and Graders (1473.465s), Automated Eval Generation (2215.255s), Agent Monitoring Practices (2289.305s), Measuring Verification Outcomes (2339.465s), Evaluation Engineering (2452.245s), Optimization Strategies (2650.36s), Closing & Announcements (2731.04s)
Transcript for "The Art of Loop Engineering: How to Build Agents That Improve Over Time": Agents are a new kind of software. Endless inputs and non deterministic outputs. Build them the old way, and they break. Enter Lingsmith, the agent engineering It's model agnostic, cloud agnostic, and framework agnostic. Organization is shipping the best agents iterate with a system, and we call that system the agent development life cycle. Build, test, deploy, and monitor. You build with our open source frameworks. Deep agents, langchain, or langgraph. LangSmith Fleet enables anyone to build agents without code. Test agents using evals and experiments. Deploy changes in one click with LangSmith Deployment. Monitor every interaction from a single dashboard. Governance is built into every stage of the agent development cycle with Lanesmith LLM Gateway. Lanesmith Engine helps you improve agents autonomously and move through the development lifecycle more quickly. Blanksmith Engine is your agent for agent engineering. Agents are a new kind of software. Endless inputs and non deterministic outputs. Build them the old way, and they break. Enter Lingsmith, the agent engineering Hey, folks. It's model agnostic, cloud agnostic, name is Sydney. and framework give, agnostic. folks maybe, like, fifteen more seconds to join, shipping the best agents iterate the Art of, Loop engineering we call. that system the agent development life cycle. Build, test, deploy, and monitor. You build with our open source frameworks. Deep agents, langchain, or langgraph. Alright. Let's get started. Fleet enables anyone, to build agents our latest. Linkchain webinar on the art of loop engineering. Test agents using evals and here is how we build agents that improve over time. Deploy changes in. one click with LangSmith you have any questions, feel free to drop them in the chat or the q and a. Because we have a lot of, Monitor every in today, from gonna single to. answer questions at the end, but feel free to send them anytime. And I think on the q and a, you Governance also upvote into every there stage any that the agent development wanna get answered. with Lanesmith LLM Gateway. Alright. So just starting with a quick intro here. improve agents autonomously My name is Sydney. move through the development a, lifecycle more quickly. project manager on the open source sorry. Product manager on the open source team at Linkchain, your agent previously agent engineering. software engineer, and I'm super excited to talk about how you can do loop engineering both with our open source frameworks and Linksmith and our, kind of commercial platform. So Linkchain, as a company provides the platform for what we call the agent development life cycle. And core to that agent development life life cycle is, the primitive of loops. So that's what we're gonna talk about today. So first, I'm gonna talk about why loops matter. So if we zoom out and think about why agents matter in the first place, it's because they can take action and do work for us. And agents are really only as useful as the kind of model and harness that you build them around. And so the model has some fixed level of intelligence, and then you can make it useful for your given use case, by building harness around it that connects it to your workflows. And so part of building a robust harness is building loops in. I have kind of these four points outlined here, and we'll dive into how those correspond to different loops. But another important piece here is, continuous integration. So having loops built into, like, every agent that you build, making sure that, every time you run an agent, it can get better and improve from that run. So let's kinda jump into to our levels of loops here. So the first loop is the core agent loop. We've been talking about this at LangChain basically ever since, LOMs gained popularity, and this is that that action taking loop. And so what happens here, is basically the the basic agent model and tool loop. So first, a model receives context for a given task, then it calls tools to complete given work for that task. Tools return observations, and then the model kind of continues in that core loop until it's done with a given task. And so when we talk about loop engineering here, what does that mean at loop level one? That means that you're giving the model the right tools for the given task, and then also that you're selecting the right model. So given the complexity of tasks coming in, you wanna match the model intelligence to those so that you can kind of optimize along the cost axis. And then for tools, you can also do kind of prompt engineering here. Right? Like, are your tool descriptions good enough that the model uses them effectively? And so, really, like, this is a pretty simple loop, but, at every level, there's, like, optimizations you can make. And so the power in the agent loop specifically is that the model has the discretion to take action and then also decide when it's done with actions for a given task. For each of these kind of loop levels, I'm gonna talk about an example agent. It's really not not, an example, but rather an agent that we use every day at Linkchain. So this is our docs improvement agent. So I'll start with the very basic infrastructure here. We send a docs improvement request. The model plans and drafts changes, and then we give it tools to, you know, clone the docs repository, read existing docs, write new docs, and then open a pull request with an appropriate diff and description. So this is, like, very basic docs writer agent. So the second loop is probably the loop that started to popularize the term loops in the first place, and that's the what you might call, like, a slash goal loop or a verification loop. And this adds reliability to agents basically via, like, grading and rubric criteria. So what does this look like? You can see outlined in purple here. I have that, like, core agent loop. But now we have this green grader. And so you send a request, the model and tools. We have that core loop, and it returns the results. So that's, like, one agent cycle. And then that gets fed into our grader, which decides if the task that came in with the initial request is actually complete. So agent attempts a task. That's part one. And then the actual loop that we're talking about here is the greater scoring against given criteria. If those criteria are not met, we feed it back into into the agent loop. And then if those criteria are met, then we move to done. So one basic example might be like, you know, slash goal, implement this new feature in my code base, and don't stop until all tests are passing and coverage is at 95%. And so your agent, your coding agent, maybe cloud code, deep agent's code, would take a pass at implementing that new feature. And then once it takes the pass, then we have that grader run over the criteria. One interesting thing that I'll call out with slash goal, or verification loops, we've, added support for this in decode, which is our, like, terminal coding agent based on deep agents. And one unique feature of our slash goal implementation specifically is when you give it a goal, it actually gives you criteria to review. So, like, a specific, basically, rubric that is gonna be checked every time. And so that allows you, like, a little bit more transparency into the criteria that you're scoring, success against. I think codex and Cloud Code don't have that kind of finer grained level of control. And then I'll also note because decode and deep agents are open source, we allow you to plug in this, like, goal or rubric middleware into any of your agents. So if you're like, oh, great. I love building, you know, link chain agents with create agent or deep agents with create deep agent, but I actually want it to be kind of more reliable and trustworthy against the, like, end goal. You can just plug in that middleware to support that. So, what does this look like for our docs agents? We have the docs improvement request coming in. Core agent loop opens a pull request, and then the greater agent ensures that all links resolve and that CI passes, before an actual done notification. Right? Like, it's a little bit of a waste of a human reviewer's time to review a Doc's PR if there's tons of, faulty links, for example. The last thing that I'll note about verification loops is that they are particularly powerful when, you want to use, like, a cheaper model, but still for more challenging tasks. So in the same way that we saw folks early on using the to do list to keep models on track, the kind of greater verification loop can help to keep those, like, major agent cycles on track, especially if you know your model is not, like, quite as powerful. Alright. So the third loop is the event driven loop. The reason that I'm excited about this loop is because it is what makes me personally actually use agents. And so agents become more powerful when they are, like, looped into the actual systems where they're relevant. So what do I mean by this? The TLDR is basically like, I wanna be able to use my agents in Slack and in GitHub, and in any of the places where I'm, like, having important conversations with people. And so I think this one might be the most of, like, stretch to call a loop, but, really, the loop is like you are able to trigger the agent in the system where it's relevant, and then inherently, you're making some other system better. And so you've got this, like, improvement loop. So what do those triggers actually look like? They can be scheduled or they can be event driven. For example, I have a background agent that runs over my calendar every morning, and gives me a summary of my day and, you know, anything that I might need to prep, etcetera. Or I have an email assistant agent, that is triggered on a specific event. So Sydney has received an email. Like, great. Let's kick off her email assistant that will kind of read the email, draft a reply, decide if it's spam or if it's worth servicing to me, etcetera. Again, I I'm pretty excited about this one because I think agents don't have that much value unless they're incredibly easy to use. You can see in the diagram at the right, we have the event trigger that are nested verification loops and the core agent loop, and then also a, like, system update, which again is, how we model this one as a loop. I'll also note in these diagrams, I'm doing the, kind of like Russian doll thing of, like, nesting every loop in itself. You don't necessarily have to do that for all four loops. For example, you could just nest a core agent loop in with an event driven loop. You don't need the verification loop, but, just kind of to demonstrate that they are all composable. So tying this back to our Docs writer event, what does this, actually look like? So we have a channel called docs, please. I can send it a Slack message and say, hey. Can you please update our deep agent's docs to showcase the value of verification loops on a new, you know, slash goal or slash rubric page? Then agent core agent runs, drafts a PR. My verification loop decides if links resolve and CI passes. We actually go ahead and send a Slack notification back that's like, here's your PR, Sydney. Like, please review. And then we have this merged live and, like, discoverable docs enhancement. And, hopefully, this can really help to illustrate why this event driven loop, is a loop, which is like, now those changes are live, and I can go look at the docs, which will motivate me to start another or trigger another event, which kicks off my docs agent. So this one is particularly relevant when you're, like, improving, systems where the agent is embedded. Alright. Maybe I said the most exciting loop for the goal loop, but I take it back. I think the self improvement loop is actually the most exciting. So we'll call this one the hill climbing loop, the learning loop, self improvement loop, all things of that nature. So this automates improvement, and we can automate improvement by finding signal in traces. So this is really the foundation of what Linkchain, the company, is built on, which is that, to build agents, you really need to have insight into what they're doing. As you saw in our new awesome intro video, agents are nondeterministic. And so unlike previous code where, like, you know, observability showed you, exact or or unlike previous code where the truth was kind of in the code itself, you couldn't tell exactly what it's gonna do. The story is actually in traces for agents, and so you need that trace signal to tell you how to improve your agent. So let's talk a little bit more about what this means. We run our docs agent. It or, actually, I'll I'll do the docs example on the next page. Let me talk a little bit more theoretically here. So we run our agent in response to an event trigger. The grader eventually decides that it's met the criteria. We update some system. And then in the background, after the main agent run is done, we run an agent over that trace or maybe traces in bulk for this agent. And that sort of helper agent, which at Lanechain, we call engine, is able to detect various failure modes from the trace itself. So what does that look like? Maybe a tool was called with improper arguments. Maybe a critical tool call was missed because the relevant context wasn't there. Maybe there were certain docs writing preferences that I have across requests that are not being respected when I make my docs, please, requests. So identifying recurring issues or kind of gaps in the core harness. And then the super exciting part is that this agent has the capability to update the prompts, tools, skills, memory, basically anything that's part of that core harness, and port that back to the source code. And so this outer loop makes each inner loop more effective. And and I have thirty minutes to talk and have saved a lot of time for this loop in particular because there's a lot to discuss here. So the first kind of category of things that you can do with the hill climbing loop are improve those, like, base kind of procedural things, like, tool descriptions and prompts. I would even say, like, skills that are more procedural. And that's like if your agent is not taking the right trajectory and it's something that you can inform with those kind of hard coded prompts, then you can extract that signal from phrases. The second category is more like memory information. So information that's persisted across runs. So let's take let's go back to the email assistant example. I probably want my email assistant to respond differently to my boss versus my coworker. Right? I would be a little bit more informal with my coworker, and and more formal with my boss. And so it's important to me that my email assistant understands the relationships that I have to different people who are sending me emails, and the kind of email styles that I wanna use. And so if I get an email from my boss and my email assistant drafts a reply that's super informal, and before it sends, obviously, because I probably want a human in the loop here, I would say, hey. Like, wait. That's that's my boss. Let's be, you know, more formal. I would hope that it would actually remember that guidance for future runs. And so one job that this background agent can do is kind of memory consolidation, again, so that the harness is, like, learning over time. And a lot of that comes in the form of, like, user preferences, etcetera. Yeah. So kind of procedural stuff and then more semantic stuff is what you can extract. The final note that I'll add on this hill climbing loop slide is that, it's actually really hard to close this loop if you don't have good evals. So it's pretty hard to have confidence merging changes to your, like, core harness if you don't have evals that can help you justify those changes. So engine or, you know, your assistant agent has made some change to it's added a skill and changed a prompt and updated memory for some user, like, how do you feel confidence, with that merge is probably, like, running your eval suite and making sure there's no regressions or even actually that there's, that there's improvements on some tasks. So just bringing this back to our kind of core example. What do we do with our docs writing agent? Well, we run engine again, our links with agent over our traces, and then we can, update all those things that I was talking about on the last slide. One really important note that I'll add here is that we talk about, like, automating things with loops. Right? The value of an agent at loop one is to automate things. The value of a grader at loop two is to, like, automate with reliability. You're basically adding, like, automated checks. The value at loop three is, like, in some ways, you're automating continuous improvements in a system. And then loop four, or or sorry. For loop three, you're, like, automating improvements to the system itself as in, like, your documentation. And then loop four, the most powerful loop arguably, is automating improvements to your agent, so self improving. That being said, a lot of things that agents do are still really sensitive. And so human approval totally has its place, in any of these loops. As I have here in blue, automation does not necessarily, mean removing humans. It means just, like, using them when human review or discretion or judgment adds value and not wasting time when it doesn't. Now let's talk about this at each loop level. So, let's go back to the email assistant. If there's a send email tool, I probably want, human approval in that cycle at least for, people that are important. So you can still add human approval at, core, you know, important or sensitive tool calls for, like, a transaction, for example. Before my travel agent books travel for me, I probably wanna click, like, yes. That flight looks great. The second is you can add, human loop into the, like, greater or verifier cycle. Right? So, basically, plugging in some form of human approval in that green stage of the loop we were talking about. The third, human approval on, like, workflow artifacts or results. So in our Docs writer, example, we always have to have human approval on those PRs, before they merge. And then the fourth is, approving harness and, like, code changes to your core agent is pretty important. I think you can start to man, now I'm thinking about loop five, which is, like, if you actually have a RL, or, basically, like, a learning environment where you can then, like, propose changes to your harness and run all of your emails against them and then decide if they meet some threshold of, like, improved behavior, then you auto merge. That's, like, level five. But, Yeah. I think for most development teams, the actual, like, changing to source code of an agent is gonna require some form of human review. So humans, still important, but, are not quite as important as they used to be. Putting it all together, just gonna do kind of a quick recap over the loops we've talked about. I'm gonna leave a couple of extra minutes for questions here because I do think we have a lot of folks, and everyone has good questions about loops on Twitter. So I'm sure there will be some good ones here. So first, the agent loop it the agent loop does the work. Model calls tools. Tools allow the agent to take action. And then the fact that this is done in a loop, makes it more powerful. The verification loop improves quality, especially for cases where, models aren't as powerful and need more of that, like, check checked work model. The event driven loop helps to scale execution and make sure that agents actually get used and are used to, like, improve systems. And then the fourth, my favorite, is the hill climbing loop. Call it the learning loop, self improvement loop. And this improves your agent system over time. And so we have the key takeaway here is the advantage is not just in the agent that you build to automate work, but rather in the loops that you build around it. Loops basically, like, amplify impact. We know agents are impactful, so building loops helps them do more. Alright. Gonna pivot back to the main screen here and then happy to answer questions. K. Great. First question. I would assume there's some kind of memory system for these advanced loops. How do you decide what information to save such that multiple agents are involved in the loop, have the right context to do their work? That is an excellent question. Perhaps our next webinar will be on memory. I would recommend for folks to check out our new deep agents memory docs, which do kind of a very deep dive into, all of the aspects of memory, when you read it, when you write it, what's worth, being saved, how different memories interact, etcetera. But I'll give a quick overview here, which is, yes, there's totally a memory system especially involved in that loop four. I I think you can almost argue that, like, information that's persisted across runs is some form of memory, and that's, like, inherently what we're doing with loop four. And so I think maybe, unfortunately, my answer is that, like, the information that is saved is very, specific to the agent itself. That being said, evals can really help you determine if the information that you're saving is helping your agent's, like, trajectory and performance. And the the one other thing that I'll plug here is that I think there's, like, two main types of memory stores that we're thinking about a lot at LaneChain right now. One is, like, man, we all use coding agents so much. Like, wouldn't it be great if they could traverse our repository super efficiently? And for that, you can build in, like, memory into your repository via a wiki structure. And then you can also build kind of, like, personal wikis that have more of that, like, semantic knowledge. And I would recommend checking out OpenWiki, which we just released built on top of deep deep agents to help you kinda build out that, initial memory system for your agent, and then loop four can help you update that system. Okay. It looks like the next question is, what are the best practices for designing your grader, and how does this work? Where correctness or your reward signal, if you will, is ambiguous or difficult to quantify? That's a good question. I think the very basic kind of verification loop that we think about is let's see. I'm I'm gonna pivot my answer here. So the basic verification loop that we can use as an example, as I mentioned, is the, like, slash goal example in Cloud Code or other coding agents. I think the, like, explicit criteria really help here. If you're able to have a human in the loop to score the criteria that your agent is coming up with for a given goal and then use that to basically train the model that comes up with the criteria, that's probably best. So, like, if your reward signal is ambiguous or different, difficult to quantify, then you, like, probably need some human annotation and signal on examples that you can use to, like, basically train your your criteria generator and evaluator. Any example public repositories to demonstrate this concept? Yeah. Great question. So we, have DeepAgents, which is our core, agent building library at Linkchain. It's fully open source. And that, I think, does a great job of demonstrating loops one and two, so core agent loop and then verification loop with that, like, rubric or goal middleware. In terms of good examples for three and four, so the fourth one, I would say, like, trying out links with an engine is the best way to sort of get a feel for, like, wow. I'm I'm tracing my, agent runs, and, like, I can already see improvements and suggestions being made back to that repository. The third, I would say the best place to try that is maybe with our fleet agent. So that's like a no code agent builder, but comes built in with all of these automatic, connectors like Slack, Gmail, etcetera. We also have for, like, a code version of that. We call it manage deep agents. But that's the best way to, like, start with integrations, and triggers. I think the last thing I'll say is we also have, like, open source email assistance throughout the eras of, like, link chain development, and and those all have triggers as well. The next question is, how does greeter work in a sub agent architecture? Does it always evaluate against the main agent in a deep agent context? Yeah. Great question. So the Rubik middleware inherently is tied to that, like, main agent loop, but you actually could assign, like, Rubik middleware or graders to sub agents specifically. So if you have, like, a very task focused sub agent that you wanted to add, kind of greater loops onto, you could do that. And that's kind of the beauty of link chains, like, composable, middleware stack. Oh, the next question is great. How do you deal with latency when you implement loops? That's a good question. So, basically, loops are, like, inherently going to add latency. If your model is not doing a good enough job and you so you have, like, tons of greater loops, for example, it's really just a trade off of, like, do you care a ton about correctness and quality, or do you care a ton about cost? So one thing you could do is, like, if you if you don't care that much about cost, you could use a more powerful model, which probably doesn't need quite as strict of a, like, greater loop. Yeah. That would that would be my kind of first push, is just you need to, like, optimize your needs for latency and cost. In terms of the other loops, I don't think, like, latency is actually a huge thing there. Like, the event driven one is more of a systems thing. The model loop, I guess, one one idea here is, like, adding, guardrails. So you might wanna, like, have sub agents, which are also called in that loop. Like, time out after a given amount of time or set a max number of, cycles, and then your agent, like, returns to the main user. So you can definitely put up, like, guardrails to control. And then I don't think latency is, like, a huge thing on the learning loop side. Probably the issue there is, like, do you have enough data to make, good choices about harness changes? What are the biggest problems agent builders are solving with loops on your team? That's a great question. We have lots of awesome, internal agents built on our lane chain open source. So I'm kind of, going through all of those. I'll say one really interesting one is our, like, go to market agent, that's accessible in Slack, has a really awesome memory system. And I think we're working on improving that memory system with loops by not only pulling from data sources, like, right when the agent is triggered, but also just trying to, like, distill other domain knowledge from resources like, you know, email, Slack, etcetera into things that are gonna be relevant for that agent and its communication. So that's kind of the, like, event driven memory self improvement loops. Another one is, in terms of self improvement stuff, just improving our repository context, and looking at traces. One thing I actually didn't mention with the learning loop that's really interesting is, like, not only can you make sure that your agent is doing the right thing, but is your agent doing the thing efficiently and correctly? So, like, is the tool called trajectory efficient? And if not, why not? And how can you fix that? So that's, like, a very interesting research problem we're working on with coding agents specifically. Cool. Human in the loop question. On human in the loop, how do you balance the bottleneck of requiring human approval, with the need to scale these agentic workflows in a production environment? That's a great question. Sort of two things here. One is I think if you're the if you can defer human approval, to someone who it's not, challenged to, approve things, then that's good. So, for example, like, with the travel agent, if the human approval relies on the, like, user of the travel agent, that, like, totally scales with the production environment. The other thing that I would say is if you can use some model discretion to decide when human approval, is absolutely necessary, that could help to kind of reduce the number of, like, approval requests that you're getting. For example, like, with the email agent, I don't really need human approval to say, like, yes. This is spam. Don't, don't reply. Maybe just, like, for my most sensitive emails, I want, like, human in the loop there. And then I would also say making sure, you have all of the, like, human in the loop requests that are essential in a place that's very accessible for people. So this comes back to the, like, event driven loop, right, which is, like, as soon as the docs agent has a PR that's ready to go, we send a Slack message with a ping so that you, like, keep the human in the loop. Right? Like, one of the worst things is if you have an agent doing valuable work, but it's not getting the approval it needs. And so if you can leverage integrations, so that the human in the loop flow is super easy for folks, then, that helps a lot. Alright. For agents developed with lang graph, in addition to using graders to tweak prompts and tool descriptions, do you use them to optimize the structure of the graph? This is a great question. I think we see more folks building with deep agents right now, so just around that, like, core agent loop. But we definitely do see folks still building with lang graph for those more, like, bespoke kind of custom workflows where you're mixing more, agentic and deterministic steps. We have not trained engine specifically to update well, actually, no. I think engine could update lang graph code if you wanted it to. And that definitely ties into the, like, trajectory of tool calls, etcetera. So, basically, my answer is yes. And I think the key for a lot of teams, just as they've learned at the, like, levels one, two, and three, is that your, like, self improvement agent does often have to be, like, tailored to your use case. Right? So, like, it needs to be very context aware, of what kind of improvements you might wanna be making to your system and just, like, your system in general. How do we address context rot in a loop? That's a good question. I think this could go in a lot of different directions, so I'm not exactly sure how to answer it. But, one interesting thing that I'll add is that we're considering, you know, lots of teams are struggling right now with increased cost associated with their agent runs, just because, like, state of the art models are getting more expensive. As things run-in these crazy loops, like, it's not super sustainable. And so prompt compression can be really helpful, especially prompt compression if, like, I have a quad code session where I've started talking about, like, you know, three different things in series, and I'm, like, only focused on the most recent thing, like, in the background compressing those old prompts, etcetera, can help to, like, address context draw and those longer running loops. So I think addressing context draw really is just a, like, context engineering game. Yeah. Hopefully, that answers that question. If there's, like, more specifics you were looking for, happy to help. How do we build eBells for scientific agents where we do not have a ground truth? This question might be above my pay grade, which is okay. I think it's great to have, questions that I don't know the answer to. Yeah. I don't know the answer to this one. I think having, humans involved in, like well, okay. Actually, I have an interesting answer to this one, which, like, points at more questions. But we recently released a blog post on eval engineering, and that basically helps you auto generate evals from live traces and the context of your repository. And so I would say I would point in that direction, which is basically, like, you probably need some way to test if your agent run was successful against some criteria that you have. And if you give an agent the context of your challenge and trace context, it can do a, like, pretty good job of generating eval. So that's, like, an an interesting research question is, like, would that do a good job at automated ish eval generation where your, agent doesn't have ground truth. Good question. I will forward along to some of our our more researchy folks. What breast best practices do you implement to make a mental model of work, and changes made to the, by the agent loop? Work and changes made by the agent loop. I would say version control, is great for changes may if you mean changes made by the agent loop for, like, the self improving one, version control, work done by the agent. I think, like, trajectory views of traces are very interesting. And, also, just traces are super key here. Right? Like, what the heck did my agent do? You're only gonna figure it out if you go through the trace and also if your tools have, like, breadcrumbs of impact. Hopefully, that answers that. Okay. Great question. How do you measure, and prove that the verification loop improves production outcomes rather than just increasing latency and cost? And do you have a reference architecture that you would recommend? That's a great question. My favorite quote that I heard this week that I probably need to tweet about is this just sounds like an eval in a trench coat, and that's exactly what this is. So, how do you prove that it improves production outcomes? Like, you can't unless you have online emails. And, like, offline emails are great too. And do you have a reference architecture? I mean, I think I would just point to our, like, stack that helps with the agent development, like, life cycle. Build, test, monitor, deploy. So we're building with open source. We're testing before deployment, deploy, observe. We use the results from observation to make improvements to the base harness. And then, yeah, you know, we're at the test step again. Yeah. That's that's really the only way to know. And then the last note that I'll have here is, like, increasing latency and cost. Yes. If it improves your outcomes, maybe that's, like, a trade off that's worth it. But, again, you can, like, play the optimization game between, like, where does my, like, greater and verification loop help, and, like, what power model should I use? For example, if I don't care that much about latency but, like, cost is a factor, you could use a, like, cheaper model and just, like, accept the latency of the greater verification loops. How do you deal with planner, to looping and token optimization for complex queries? Great question. I feel like I've kind of piecemeal answered this through some of the other questions, but, context engineering and, like, prompt compression is definitely an important factor here, especially as, like, you are doing more loops. You can you can probably compress some of the, like, earlier iterations and histories. Right? Because, like, once you reenter that, like, try again loop for an agent, it probably makes sense to compress most of the other, like, attempts, and just work with, like, the current state of the artifact and the rubric criteria and goal. Yeah. And then I I sort of talked about, how you can trade off cost and latency with loops. The hill climbing loop's performance would depend on the evals loop and, the the evals loop and work as planned. Do you have any insights on automatically improving evals over time and the efficiency of that loop as well? That's a great question. I've been finding myself happy learning more and more about evals by the week, because they're just, like, such an essential part of this cycle. I think I mean, the word automatically here, like, just points me directly into, like, another, oh, an agent could help with that thing. But I think the important part of, like, automating eval generation is that there's, like, some understanding of the context of your what your agent is doing and, like, what the success criteria are. And, again, I will point at the new skill that we just released on eval engineering that basically can look at traces and help to generate emails from those, but it also has the, like, base context of the, repository and agent. And then I'll also note that that skill actually it's it's meant for a coding agent to help you extract emails. But it is pretty interactive. Like, it asks you, the human, lots of questions about, like, the context in which you wanna generate these emails, etcetera. It almost, like, interviews you. And then the other thing that I'll note on emails, and, Nick from our open source team just released a great blog on, like, how we think about emails for deep agents, is you kind of want, like, two types of evals. One almost reminds me of, like, a unit test. It's like a baseline functionality thing. So, like, is the agent doing the, like, bare minimum and and not regressing in terms of behavior? And then the other one is, like, a a challenging integration test almost where it's like more of an end to end thing or even like a, shoot for the stars sort of eval that you can, like, hill climb on. And so I think making sure that your eval suite has both of those is good. And especially making sure that your baseline ones, are really good is great. I think I have time for just one more question here. Oh, great question. For the hill climbing loop, what types of changes are better in the harness? Changing code and architecture, some more runtime stuff, or updating memory slash skills slash prompts? This is a fantastic question. So, I can't unfortunately say which is better. But what I would push folks to generally try to do is, like, keep the agent architecture relatively similar, like trust in the power of that core agent loop, and then update the memory and skills and prompts and see how far you can get with that. Because, like, most of the time, the reason the agent does something wrong is not necessarily because the model isn't powerful enough, but just because it doesn't have the right information. And so I would lean towards, like, try to update memory and skills and prompts first. And then if there are important architecture changes, for example, something like, man, the agent is never following this compliance step, like, then you can definitely, you know, add, like, deterministic code or change the runtime structure there. So first, more of the memory stuff. Second, more of the runtime stuff, especially if it's like, I needed to take this deterministic step. Alrighty. Well, thank you folks for all the questions. I just have a couple more, things to chat about here. So the the first is that we are expanding our Interrupt conference. And so we now have Interrupt twenty twenty six planned in New York City, September 24, and then Interrupt twenty twenty six in London, on the October 13. So super excited to announce that we're growing Interrupt, and we'd love to have you all there. Thank you so much for attending. If you have more questions, feel free to bug me on Twitter. Yeah. Much appreciated.