The Creators of Claude Code and OpenClaw don't Prompt Their Agents Anymore?!
Cole Medin · 2026-06-18 · 24м 39с · 17 807 просмотров · YouTube ↗
Топики: ai-loop-engineering
🎧 Аудио
📝 Summary
model=deepseek-v4-flash · prompt=summary-v7 · 8 302→2 381 tokens · 2026-07-20 11:56:02
🎯 Главная суть
Loop engineering — подход, при котором разработчик не пишет промпты напрямую, а конструирует циклы (loops), заставляющие AI-агентов выполнять работу непрерывно и автономно. Идею продвигают создатели Claude Code и OpenClaw, но на практике циклы требуют огромных затрат токенов, страдают от раздувания контекста и ненадёжности при долгой работе. Решение — комбинировать циклы с более детерминированными workflow и оркестрацией, где разработчик остаётся в контуре управления и может выбирать разные модели для разных этапов.
Что такое loop engineering и как оно работает
Создатель OpenClaw Питер Штайнбергер и ведущий разработчик Claude Code Борис Черней публично заявили, что больше не пишут промпты для AI — их работа сводится к написанию циклов, которые управляют агентами. В Claude Code для этого есть несколько встроенных инструментов:
- Slash loop — задаётся интервал (например, каждые 5 минут) и промпт, который выполняется в терминале; агент сам просыпается, проверяет внешнюю систему (скажем, новые GitHub issues) и обрабатывает их.
- Slash goal — задаётся критерий завершения, и агент работает до его достижения (аналог REIF-петель).
- Slash routines — запланированные задания: агент просыпается по расписанию, читает большой документ со спецификацией и выполняет следующую задачу.
Основная идея — иметь главного оркестратора, которому вы даёте минимальную высокоуровневую инструкцию, а он сам решает, как настроить цикл и распределить работу. В Claude Code это делается командой загрузить скилл loop, после чего агент автоматически прописывает себе последовательность шагов и запускает их по одному.
Проблемы loop engineering на практике
Несмотря на привлекательность, подход имеет три серьёзных недостатка.
Во-первых, низкая надёжность. Циклы часто «уходят в отрыв» — система работает сутки, а когда разработчик возвращается, результат оказывается мусорным. Длительная работа в одном сеансе раздувает контекст, модель перегружается и теряет нить.
Во-вторых, высокая стоимость. Оркестратор тратит массу токенов на размышление о том, как разбить работу, отправку промптов воркерам, приём результатов и повторное планирование. В одном из тестов автора на построение относительно простого приложения ушло более миллиона токенов. Даже с оптимизациями это остаётся проблемой: контекст постоянно передаётся между этапами.
В-третьих, отсутствие изоляции сессий. При использовании slash loop или slash routines все действия выполняются в одном сеансе Claude Code. Контекст быстро забивается, и если нужно распараллелить работу на много агентов, они начинают мешать друг другу. Необходима система, где каждый воркер работает в собственной изолированной сессии, а оркестратор координирует их через внешнее хранилище.
Как сделать циклы надёжными: детерминированные workflow
Вместо того чтобы отдавать всю логику на откуп LLM, эффективнее строить workflow с жёстко заданными шагами, где решение принимается только там, где оно действительно нужно (например, при написании кода). Такой подход реализован в инструменте Archon, который автор использует ежедневно.
Workflow описывается в файле: каждый узел — отдельный coding agent сеанс с собственной моделью. Например, типовой пайплайн для исправления GitHub issue:
- Извлечь номер issue и контекст.
- Классифицировать задачу (баг или новая фича) — здесь можно использовать дешёвую модель (Haiku, KimiK 2.7).
- Исследовать проблему.
- Реализовать исправление — применить более мощную модель (Claude Code).
- Проверить код — другую модель (Codex).
- Создать pull request.
Каждый шаг получает контекст в виде markdown-документа и выполняет только свою часть. Так контекст не раздувается, а стоимость можно оптимизировать, назначая на простые задачи маленькие модели.
Распараллеливание и изоляция: пример с GitHub issues
Автор показывает, как оркестратор в Archon запускает четыре параллельных workflow для фикса четырёх разных issues. Каждый workflow выполняется в своём дереве (work tree), чтобы изменения кода и базы данных не конфликтовали. После выполнения всех четырёх оркестратор запускает код-ревью для каждого — ещё четыре сессии. Итого девять независимых coding agent сеансов.
Такая архитектура позволяет:
- не перегружать один сеанс;
- использовать разные модели для разных этапов;
- вставлять human-in-the-loop: на любом узле workflow можно поставить паузу для ручного подтверждения перед продолжением.
Экспериментальная система: дашборд для loop engineering с Neon и Pi
Для исследования самого подхода автор построил открытую панель управления, решающую проблемы durability и observability.
- Вся информация о циклах (логи, состояние) хранится во внешней базе данных Neon (PostgreSQL). Это позволяет возобновлять workflow после перезагрузки машины или отмены.
- Оркестратор читает состояние из БД, решает, каких воркеров вызвать, отправляет задания — воркеры выполняют и обновляют БД. Затем оркестратор снова считывает обновлённое состояние и запускает следующую итерацию.
- Для снижения стоимости все вызовы идут через модель KimiK 2.7 (через сервис Pi). Благодаря жёсткой структуре harness (а не чистой LLM-логике) результаты остаются качественными.
- Дашборд отображает полную историю запусков, затраты токенов на каждом шаге, позволяя анализировать и улучшать петли. Например, в одном тесте на построение простой Kanban-доски первая волна планирования потребовала 6000 токенов и три воркера.
Система поддерживает human-in-the-loop: после каждого раунда можно просмотреть результат и только потом разрешить оркестратору двигаться дальше.
Развёртывание дашборда в облаке с помощью Retool
Чтобы сделать систему доступной из любого места и поделиться с командой, автор разворачивает фронтенд через платформу Retool. Импорт React-приложения занимает несколько кликов: достаточно загрузить zip-файл сборки и подключить backend (с Pi и Neon). Retool автоматически связывает компоненты с API.
После развёртывания появляется постоянный URL, где можно:
- просматривать логи и управлять циклами;
- настраивать разрешения (например, только одобренные пользователи могут ставить задачу на паузу или возобновлять);
- вносить правки в интерфейс прямо в облаке без повторного деплоя.
Итоговая позиция: loops vs harness
Loop engineering — не самостоятельная дисциплина, а часть более широкого понятия «harness engineering». Циклы полезны для быстрых прототипов и исследования идей, но для реальной продакшн-разработки нужны детерминированные workflow с изоляцией, выбором моделей, durability и human-in-the-loop. Именно сочетание циклов с такой обвязкой даёт надёжное масштабирование без астрономических затрат.
📜 Transcript
en · 5 409 слов · 61 сегментов · clean
Показать текст транскрипта
Apparently, we're not even supposed to be prompting our AI coding assistants anymore. The real skill is designing loops that prompt your agents so they work for you 24-7. And I gotta say, I am not sold on this idea right now. It feels like some of the bigger players in the AI space, like Peter Steinberger, the creator of OpenClaw, Boris Cherney is doing this as well, the lead at Claude Code, they're pushing this new fad, whether they like it or not, of loop engineering. It's becoming the next buzzword. And I promise, I'm not- not going to be hyping up loop engineering here. There are some good lessons to be learned from what's surfacing, but also with loops, and you've probably seen this with dynamic workflows and cloud code, for example, they're not always the most reliable and they are extremely token hungry. So unless you have an infinite budget like Peter, pretty much, then you have to be really careful with these kinds of systems. They're not always practical. And so that's what I want to cover with you in this video. I just want to get really honest and really practical with you. We're going to cover three things. We're going to cover loops in a really simple sense. It's not actually that complicated. So I want to show you how you can run these. And then I want to talk about the trade-offs and then solutions to that. So really nice and structured here. And so as far as some of the solutions we'll get into towards the end of the video, I want to show you how we can build a system where we can really observe the loops, the orchestrators and the workers, how we can optimize for cost with the workflow. we build and using different providers like pi and so it really it's like here's how you can run loops here are the downsides here's how we can solve for them and really get to the point where we're building harnesses for these longer running tasks because it is really powerful for certain things but then also covering the honest trade-offs with it Okay, so we saw what Peter said. Now let's take a look at what Boris, the creator of Claude Code said. And it is really similar. He said, I don't prompt Claude anymore. I write loops and the loops do the work. My job is to write loops. Okay, Boris, I think we get it. And like I said, loop engineering is kind of a buzzword, but also there are some really good takeaways when you dive into this. So like Boris, through a lot of like interviews and podcasts has shared his workflow. We can get glimpses into how it works. A lot of it is built around the newer... features in Claude code. Like slash loop is the most basic example. And I told you, we're going to simplify things here. Loop engineering is really not that complicated. I don't even know if it deserves its own term. And so with slash loop, we set an interval for running a prompt. So like, for example, every five minutes, I'm going to check for new GitHub issues in this repo and handle any that come in. So it's pretty neat. We set up Claude to basically wake itself up every five minutes. And of course, you can adjust this. And it's going to look for input in an external system like GitHub, for example. And so as long as our terminal is up and running with Claude code, it's able to autonomously handle this. So basically, it's every five minutes. minute loop looking at GitHub issues. There's also a slash goal that we have in Cloud Code and Codex. So we set some criteria like here is how you know you are done, and then we're forcing the coding agent to work until it is done. Kind of like RELF loops that went viral a few months ago. And then last, we have slash routines. And so these are the scheduled jobs. Like every hour, I want you to wake up, look at some larger spec document, and then handle the next task. And so really, loop engineering is combining or creating a system around all of these things, routines, slash loop. so that we can give a larger scope of work as input to an AI coding assistant and have it work through it incrementally, right? Because we never want to have a coding agent try to handle too much at once or it will get completely overwhelmed. And the main idea with loop engineering is we want to have some main orchestrator agent that we talk to. We do minimal prompting, just telling it what we want at a high level, and it figures out how to set up the loop and the entire system. And it's really easy to do this in Cloud Code. This is really cool. You just... tell it to use the loop skill. So there's a capability built right into the tool where it knows how to set up these loop systems based on what we ask it to do. So I passed in some kind of simple spec document here. Like I just have this as an example. These are the tasks that we want it to go through incrementally. And so my prompt is telling it to load the skill. So it knows how to set up the loop. And then every cycle, it's just going to do the first unchecked task, do the validation. And then that loop is done. And then on the next loop, it'll go through and do the next task. And so eventually, All the tasks will be complete. And then our primary Cloud Code session here that set up everything is going to report back to us, right? So like right here, Cloud Code is sort of the orchestrator, but then also the workers because it sets up the loop itself. But it is really cool to watch this run. So I'll send off a request here. And I'll wait for it to run a little bit. I'll come back and show you kind of how it works. But you can see that it loads the loop skill. It's the very first thing. So it knows how to orchestrate things. And it'll do the slash loop by itself that I just showed how you can do manually. Okay, so I came back a couple minutes later, and it's already done with the first two tasks. So it's gone through two iterations of the loop already. And so if we go up to the top, we can see that it says this is sequential task list. It's going to do the first task, and then it's going to schedule a quick wake up. So it sets up the slash loop. by itself. And if we scroll down a little bit after it does and validates the first task, we can see that it's resuming with a slash loop wake up. And look at that. I didn't write this prompt myself at all. I know this is a very, very basic example, but I want to stay simple on purpose. But it wrote the prompt, slash loop, work through plan.md, one task at a time. And so the kinds of systems that Boris is building is obviously going to be a lot more elaborate with how we're telling it to run the looping and building in routines and describing how we want it to prompt and work through our context. But by the basic sense, this is really all it takes. And so now it's just going to keep knocking things out one at a time. So that is loop engineering in the most... basic form possible. But now I want to get into some of the downsides here, which some of them are definitely pretty obvious to you already. Problem number one, there is no way you're going to convince me that loop engineering is the way to get the best results possible with AI coding assistance. I mean, come on, this has to be hyperbole here. Boris Churny says that there are days he manages tens of thousands of AI agents at once. Like really? Is that actually practical? Is that going to scale? Like, are you really building Claude code with tens of thousands of agents per day? I mean, maybe that does explain some of the bugs we have in Claude code. I feel like there's constantly a couple annoying ones. But yeah, overall, building these kinds of loops... If we make it a very tight, controlled system, that's what we'll talk about in a little bit, I think it's good. And for building proof of concepts and exploring ideas, like I think it's really good. But it's not like I want to drive all my AI coding with them. And then the second big problem is cost. Because with loop engineering, we're relying on some kind of orchestrator to set up the system and really determine how to get to the end goal. So it figures out how many workers to spin off, how many loops to do. And that gets super expensive. So the dashboard that I built that I'll show you at the end of this video. I built cost tracking into it. And so for a single run, like here are all the loops that the orchestrator went through, it costed me over a million tokens just to build a relatively simple application. And yes, I'm sure there are a lot of optimizations that I can do here. But I think you can see just by looking at this, I mean, this is part of why I built the dashboard. You can see why it would be so expensive. Because we send in our initial spec to the orchestrator. And it has to reason about that and then figure out how many workers to spin off. And then it has to prompt them all. They each spend tokens and then the results come back. The orchestrator has to then reason about that again and then send off the next wave. No matter how you design the system, there's a lot of context passing and reasoning to make everything work here in a distributed way. So it's a really powerful system and it's cool how far you can take this kind of stuff with the self-validation, but man, does it get so expensive. And then really quick, the third problem with loop engineering is at least for a lot of setups, you're... not really working between different coding agent sessions. Like when you're just using slash loop and cloud code, like Boris talks about a lot, it's really just continuing in the same coding agent session. So if you loop for a while, you're going to completely bloat your context for your LLM and overwhelm it. And so we need a system where we can distribute the work actually between different coding agent sessions and make it so that they can all communicate to each other and have an idea of like where they fit in the larger goal. And so that's what I wanna cover for the rest of the video here. So I wanna talk about how I actually work on a day-to-day basis because this will cover how we can solve for a lot of these problems we have with loop engineering. So I use my tool Archon, but I'm not just trying to like push Archon on you here. I just wanna talk about how I use it in a way that solves for the problems of cost, reliability, and how do we actually orchestrate many different coding agent sessions. And so go through this with me here. Archon is my harness builder. It allows us to build workflows that orchestrate many coding agent sessions to handle larger tasks. And so, for example, a really classic AI coding workflow is you do your planning. you do your implementation, and then you do your code review or your testing. And so we can build this as a single Archon workflow. There's a ton of content that I have on Archon on my channel. I'll link to a video right here to help you get started if you're interested in this. But again, I just want to focus on how I use this on a day-to-day basis to kind of do loops. You can do loop engineering with Archon. You can build the Ralph loop with Archon. So I'll show you an example of a workflow here. If I go into the default workflows, there's a ton that we have that ship with Archon. Let's take a look at fix GitHub issue, for example. And so I don't want to get too in the weeds here, but I just want to show you really quickly at a high level how this workflow works. And another really important thing with Archon is that we're not having the agent drive the entire thing. it's more deterministic because we set up the process in this workflow file. And then we even have certain steps that are deterministic, like the agent is not driving it, we are guaranteeing that it's going to happen. So when we're building these loops and larger tasks that we have our coding agent knockout We want to actually take the decision away from the coding agent as much as we can, only applying the reasoning of the LLM when we actually need it, to write the code, for example. Like we might want our agent to write the code, but not actually decide the test to run because we know what it looks like for our test to pass. And so for this workflow, first we extract the issue number. So the input here is some GitHub issue that we want to fix or address. So we extract the context, we fetch the issue context. And then we classify it. So we have a large language model decide at first, are we addressing a bug or are we implementing a new feature? And then the workflow is going to be dynamic based on that decision. So the kind of thing that your orchestrator would usually decide, we're more enforcing a specific process here. Like this is the kind of thing that I want to sort of layer on top of loop engineering. Like let me be in the loop. Let me determine how the workflow can progress. And so then we research the issue, investigate it, and then we go to the implementation and the validation and we create the pull request, right? Step by step, each one of the steps, we're using markdown documents as context. So we're handing things off between the steps, but then each step is running in its own coding agent session. So if we're handling a larger GitHub issue, it's not like this entire thing is running with slash loop and cloud code, getting totally overwhelmed with each of the tasks that we're doing as we're planning, implementing, and validating. And the way that I can... manage cost here is every single node in this Archon workflow, I can actually decide what model am I going to use. And so, for example, with the classify step here at the top, when we're figuring out, you know, what kind of issue do we need to address in the rest of the workflow? So it's kind of like the orchestrator decision. We can use a small model, like maybe using Haiku or Minimax M3, KimiK 2.7, for example, right? Like what we can do in Archon is even mix providers. So we can use Cloud Code for the implementation, and then we can use Codex for the review. And then for all of our context loading and exploration up front, we can use a smaller model like KimiK 2.7. And so that's one of the other big issues I see with using... slash goal or routines or loops in cloud code is you're just using one model for pretty much everything. That's part of the problem of why it's so expensive. Because when we're doing larger amounts of work like this, of course you're going to have to spend more tokens, but you don't always need to spend the most per token for every step of your workflow. And I know I'm really, really driving this in the ground right now, but yet another reason you want some kind of harness like what you can build with Archon is we have durability. So this is my Neon database. I'm storing all of my logs and runs in Postgres so that I can resume a workflow even if my machine goes down or I cancel things, like whatever I do, I'm always able to resume. on exactly the step that I was in that larger loop or that larger workflow. So I have all my conversations, the code bases that I'm operating on with Archon. Everything is durable and it's super easy to resume any work that I'm doing. Okay, cool. So now I wanna show you how I actually use Archon on a day-to-day basis. A lot of ties that we can draw to loop engineering and things that I really fixed with it, right? And so in a very, very basic sense, one of the most classic workflows that I use with Archon is fixing GitHub. issues. Most of the input for my day-to-day work is issues in a repo. Either I'll create them or someone else will. And so we can use Archon to send off workflows to run in parallel handling multiple GitHub issues at the exact same time. And this is very much like loop engineering because we have our primary cloud code here as our orchestrator and it's figuring out based on my higher level request, I'm going to create the prompts and dispatch the workflows. Work trees are also a really important part of loop engineering. Boris talks about this as well. If we're having many different agents handling tasks in a loop, we need to make sure they're running in isolation so they're not stepping on each other's toes. That is how we scale our output with AI coding assistance. And so... we have our cloud code here kicking off four workflows to handle GitHub issues. It's going to validate the PRs after, like make sure that they're actually created. And this is where we can come in with human in the loop as well. And then it'll run four more workflows to validate, like perform a code review on each of the issues as well. So very comprehensive, kind of a loop in a sense where it's like handle the issues, validate, and then do a code review. And another thing as far as like making this more reliable is with Archon workflows, we can also build human in the loop within any individual node in the workflow. So we can always have it pause for us to validate something before it continues, which is one of the biggest problems with loop engineering right now in general, is that a lot of times people set up these systems to just go, go, go, go. And then you have it run for a day. And by the time it comes back, you just have crap. Like I've had that myself as I've tested a lot of things within cloud code, like routines and slash loop. And so I'll send this off here and I'll just pause and come back once it's done so we can walk through everything that it accomplished here. And the best part about all of this is we actually have nine coding agent sessions for this entire loop or whatever you want to call this entire harness, right? Like one per GitHub issue fix, one per review, and then we have our primary orchestrator. So we're doing a ton of work, but at the same time, we actually are pretty lean for each individual session because actually I kind of have to correct myself. It's more than just nine sessions because even within each individual Archon workflow, we're running separate coding agent sessions where we can have different models. We can optimize for costs. There is a lot of engineering that goes on behind the scenes here. All right. So I'm back after the entire thing ran. I just want to show you how comprehensive we can be here. And so we have the four workflow runs for actually fixing the issues. And then cloud code here is really monitoring and orchestrating everything, right? So like as the different tasks are done, it's coming in. checking on them. And then finally, we have everything done together. So all four fixed workflows are done. Then it launches the code reviews because it confirmed that all of the pull requests are ready to be reviewed. And you can even ask for a status update. So like while the Archon workflows are running, if we want to see where we're at, we can of course check the logs in the Archon web UI. I have that as well. But then also we can just ask our orchestrator, right? Because it really is in control of our entire situation here. And then finally, all the reviews are done and it gives us the things that need our attention now. So we can really come in and direct things from here. So it's the harness driving everything, but we still can be in the loop wherever we want. And I know there's a lot that goes into effectively orchestrating parallel coding agents. So there's a lot of content on my channel where I cover this kind of thing. Like for example, one thing that you have to do a lot is branches in your database, right? Like if each coding agent is working on something in parallel, you don't want them to be stepping on each other's toes, not just with code changes, but also database changes. So work trees and Neon is a super powerful thing. A lot of different things like port conflicts that we want to solve for as well. So I'll link to a video right here where I cover that stuff and just generally how we can make parallel AI coding more reliable. So assuming you take care of all of that, you can really let Archon rip on as many GitHub issues or whatever in parallel. Very cool how far we can take our output here. All right, so we have covered a lot in this video already. Loop Engine. basics, the downsides of it, how I'm using Archon to extract the good parts out into more deterministic workflows. But last, I want to cover a system that I built for loop engineering in its purest form, because I presented these issues to you, but I do see a lot of promise with this. I want to try to build a system that solves for these problems. And so I've built this dashboard that I'm really excited to show you right now. I actually have it open sourced on GitHub, linked to this in the description. And I have built this to solve for a lot of the problems that we have with loop engineering right now. So first of all, we have durability. Just like with Archon, all of the loops that we run and the different events and logs, I'm storing this here so we can always resume a workflow later on. So we're managing all of our state in an external database, so we're not relying on that staying in any coding agent session. And so our main orchestrator, it is going to read through this state here and then figure out like, okay, what is the next thing that we need to do? And so then it's going to call upon the workers to accomplish all of that, like build a new feature, do some kind of validation, whatever it needs to do. And then those workers are going to go back and they're going to update the state that we have in our database. Like again, I'm using Neon for Postgres here. And so this is our loop, right? Because then the next time the orchestrator runs, it's going to get that updated state from the workers and then figure out the next workers. invoke. And there are a couple of problems that I'm solving by building something like this. And I want to start by saying, like, this is more experimental. I'm just showing you something that I'm working on and kind of building into my own second brain. But first of all, I'm driving everything with Pi. So I'm actually using my Kimi subscription with KimiK 2.6, now KimiK 2.7, to drive all of these workflows. So yes, it is a lot of tokens, but I'm not using Opus for everything. But I'm still getting really good results because of the harness. that I built here that elevates the model. And then I have a lot of observability built into this dashboard. I mean, obviously it being a dashboard, it solves part of that reliability problem, which obviously I'm still working on, but just being able to see exactly the decisions that are going on here means that it's easier for me to look at this, even have my coding agent analyze the runs in the database, and then figure out how to improve the loop, how to improve the harness here. And so I just have been going through a lot of really simple examples, but like non-trivial enough where it does have to go through quite a few rounds to build it. So like building a single page Kanban board as a static web app, I just take this prompt and I'll show you it running live right now. Like I'll just send this in and I will start a loop. And it's really cool. We can see that the orchestrator is deciding how to split up the work right now. And then we also have like the full run history here. It's pretty neat. Like it's super easy to get this up and running. If you just want to check out the GitHub repo linked in the description. But after a little bit, the orchestrator will decide, here is how I'm going to create that first wave. And then we'll see the workers dispatched. So there we go. The orchestrator spent 6,000 tokens with that initial planning and then prompting our first three workers in round number one. And so we don't have to watch paint dry seeing this go to completion here, but you get the idea. We saw the full run in the logs earlier of how it'll go round by round, doing validation each time. And we can even have human in the loop so that we get to actually take a look at. what has happened in the first round before the orchestrator moves on to the next. That is the kind of reliability that I feel like we really need to have right now in order to build anything more than simple demos with this kind of loop engineering setup. And so, yeah, I would encourage you to just play around with this kind of idea, like building a dashboard to manage more autonomous tasks in something like your second brain is a big thing that I'm focusing on right now. And we can even take this kind of dashboard and deploy it to the cloud as well so we can access it from anywhere, maybe even start to share our loop setup with our teammates. And these days, it's just so easy to take applications that you build locally for these kinds of control systems and deploy them to production so you can use it remotely or have a team. use it. Retool is a tool specifically I've been leaning on a lot for these kinds of deployments. And so it's just so easy to create an app here and then we can import React code. So I just had Cloud Code build the entire dashboard in React with the idea of I'm going to deploy this here. It's so incredibly easy. So I just go in and I take the zip file of the front end that I just showed you. And then its agent is going to go through wiring everything up. So it'll connect to the backend with the API that I have running with Pi. It'll get everything deployed to a real URL that I can use. It's really neat. So for example, here connecting to my Neon database where I'm storing all of the runs for durability, it asks me to set up a connection here. So I can create a new resource. I can select Postgres because that's what Neon is running under the hood. And then set up all of my connection information here. So really easy to make that connection. So I'm just deploying the front end here. connecting it to wherever I'm hosting my app, hosting Pi, running behind the scenes. So I'll get all this hooked up off camera and then I'll show you the final result here. And there we go, everything is deployed. We can see our app hosted in the cloud, just like it was running locally. Very cool. So now we have a URL where we can share this. There's also a lot of other cool things you can do in Retool. Like you can set up permission groups and so certain actions that you can gate with an API endpoint. So you have to approve it and have the right permissions to do so. So for example, able to pause the workflow and then resume it. If I click this right here, you can see that approve and resume and you can see the identity that I have through retool is giving me permission to actually do that. And then it's also very easy to edit this application. I can continue to make changes with it here in the cloud as I need, adding new features to the front end, whatever I need as I'm evolving my dashboard. So yeah, I've just been doing a lot of this with like deploying dashboards for observability and helping with all my systems for my second brain and my AI coding, very powerful stuff. And a quick shout out to the Retool team. Ever since I've been using their platform, I've been working with them and I even collab to bring this integration in the video today. It's a great platform because you get to build your applications directly in Retool or you can import it. like I showed earlier, but then your team regardless has a single governed path to production with audit trails, really easy to make your changes just with chat like I showed here and the review system with human in the loop, all of it that you need to ship your apps to production. And I'll have a link in the description. If you go now, you get free app imports through July 1st and bonus AI credits on all paid plans. So that's everything I have to cover for loop engineering, the basics, the problems with it, how I'm solving for it. Cause I really do want to incorporate loop engineering. Like I like the concept of it and I want to drive how autonomous my coding agents can be, but you gotta have the right system. Otherwise things are gonna completely fall apart like we've already talked about. And so I hope I've inspired some ideas for you, even like how to use Archon or start to build this sort of harness for yourself. Really, I would just fold loop engineering into harness engineering. It doesn't quite deserve its own buzzword, right? But like there are some good ideas here. And so I hope you found this useful. If you did, I would really appreciate a like and a subscribe. And with that, I will see you in the next video.
⚙️ Pipeline jobs
| Stage | Status | Att. | Updated | Error |
|---|---|---|---|---|
| download | done | 1/3 | 2026-07-20 11:55:18 | |
| transcribe | done | 1/3 | 2026-07-20 11:55:35 | |
| summarize | done | 1/3 | 2026-07-20 11:56:02 | |
| embed | done | 1/3 | 2026-07-20 11:56:04 |
📄 Описание YouTube
Показать
The best AI engineers barely prompt their agents anymore. Sounds crazy I know! They build a loop that does the prompting for them and let it run for hours while they step away. The head of Claude Code at Anthropic put it bluntly: he doesn't prompt Claude, he has loops running that prompt Claude for him. The only problem is this gets expensive (and hallucinations compound) - you need a harness with observability that can run reliably not always using the expensive frontier models. So I built one! It's a TypeScript app that runs Pi (on Kimi) in a loop, stores every run in a database, and shows it all in a dashboard. And the loop isn't one agent on repeat, it's agents prompting agents: an orchestrator decides the next tasks and spins up workers to run them in parallel. Think of it like an advanced Ralph loop with more control! ~~~~~~~~~~~~~~~~~~~~~~~~~~ - Build and deploy your AI built applications easily with Retool - plus when you sign up now you get free app imports till July 1st and bonus AI credits on all paid plans! https://fandf.co/4uh4uDD - Neon, my favorite Postgres platform: https://get.neon.com/LqufgGN ~~~~~~~~~~~~~~~~~~~~~~~~~~ - The Dynamous Agentic Coding Course is now FULLY released - learn how to build reliable and repeatable systems for AI coding: https://dynamous.ai/agentic-coding-course - Agent Control Plane (my open-source Pi loop dashboard): https://github.com/coleam00/agent-control-plane ~~~~~~~~~~~~~~~~~~~~~~~~~~ 0:00 The Loop Engineering Buzzword 1:42 The Core Concept of Loops 5:52 Downsides and Token Costs 8:34 Deterministic Workflows with Archon 13:18 Orchestrating Parallel Coding Agents 17:29 My Pi Loop Engineering Dashboard 21:11 Deploying Control Systems to Production 23:58 Outro ~~~~~~~~~~~~~~~~~~~~~~~~~~ Join me as I push the limits of what is possible with AI. I'll be uploading videos weekly - at least every Wednesday at 7:00 PM CDT!