正在加载视频...

视频加载失败

Loop Engineering is getting hype now. But not many talks about how to actually do it So I open-sourced the template my team uses to build agent loops: - a shared artifact / knowledge layer - logging, verification - and a codebase harness so work compounds across runs Plus...

393,671 次观看 • 4 个月前 •via X (Twitter)

39 条评论

Gabriel Asher 的头像
Gabriel Asher4 个月前

If you actually want examples of loops implemented simply and cleanly check out

Gerard Sans | Axiom 🇬🇧 的头像
Gerard Sans | Axiom 🇬🇧4 个月前

Reminder:

josh 🏔️ 的头像
josh 🏔️4 个月前

super cool deep dive. How often do you find that your agent needs to draw connections between recent logs and other decisions? Would you consider that a failure mode?

Jason Zhou 的头像
Jason Zhou4 个月前

thanks! i think this system is designed for agent to draw insights from logs contributed by other loops, so it is kind by design?

josh 🏔️ 的头像
josh 🏔️4 个月前

got it, i'm curious if there's anything you currently do to make sure it doesn't ignore older evidence or decisions? I have often found that something i thought through several months ago is relevant. obviously surfacing that presents a signal vs noise problem though

Christal.Z 的头像
Christal.Z4 个月前

验证和日志这块一直头疼,这个模板解决了我好多问题

Jason Zhou 的头像
Jason Zhou4 个月前

还在持续改进模版中,有反馈和我说哈~

Stefanescu Liviu 的头像
Stefanescu Liviu4 个月前

LoopTroop ( does exactly this in practice: it runs structured Ralph loops for execution + recovery (fresh worktrees on failure, compact error traces), paired with LLM councils for planning and bead-based tasks. Focuses on reliable, long-running, high-correctness agent work with human approval gates. Fully local & open source

lawyer i hardly know her 的头像
lawyer i hardly know her4 个月前

can someone explain to me how any of this is possible without spending over $100 per finished loop (workable feature) in tokens

Vandos ❓ 的头像
Vandos ❓4 个月前

Worth pinning a number to this: we ran similar loops and the difference between "loop with shared artifact layer" vs "loop without" was 3.2x fewer duplicate actions per run. The logging + verification layer is what most open-source templates skip — you just shipped the part that actually matters. Bookmarked.

Andrew Dryga 的头像
Andrew Dryga4 个月前

There is a different approach you can take with loops. Instead of building one that burns tokens you can use loop supervision that will force agent to work on tasks until they are all done, ideally in a sandbox. Works great for me -

Brian Rowe 的头像
Brian Rowe4 个月前

This is great for the token Rich, but for even the token middle class, this is unattainable. Weather $100 a month Clyde code account. You can do a little bit of looping and research with no actual code generated burned in just a few minutes.

Kirill Balakhonov 的头像
Kirill Balakhonov4 个月前

loop engineering is a trend nobody will remember in a month

THC Humor 💹🧲 的头像
THC Humor 💹🧲4 个月前

everyone talking agents, nobody talking infrastructure

Sheldon Stack 💹🧲 的头像
Sheldon Stack 💹🧲4 个月前

Up and running, cheers 🥂

Jason Zhou 的头像
Jason Zhou4 个月前

Great to hear, let me know any feedback on the template!

Voltage (Fella) 的头像
Voltage (Fella)4 个月前

What Not to do; use more than one agent. If you need more than one agent, your wasting API calls and wasting money. It can be done with ONE agent and good prompt engineering.

Palmer 的头像
Palmer4 个月前

Check out Puppetmaster for cost savings/context! The durable state architecture vs transcript allows closed loops like this much more capability and scale friendliness. Crushes token costs, $0 re-queries, beat frontier models alone on SWEBench & NL2 Repo Bench

Kevin Simback 🍷 的头像
Kevin Simback 🍷4 个月前

Hey Jason, this is good stuff! You may also like a complementary tool I built called Looper which helps you design good loops and gives you a visual flow right in Claude/Codex to see how it works before you run it

Makoto Kern 的头像
Makoto Kern4 个月前

Let me know if I’m wrong here but isn’t this just simple feedback loops that I learned in my basic control system course in college 25 years ago? Loop engineering seems like a cool new word salad term.

Alfred 的头像
Alfred4 个月前

Built exactly this for a single agent — Vespera. 4-layer memory stack with a background thinking loop that runs every 3 minutes. Repetition filter, contradiction checker before anything hits core. Work compounds across every session.

dilpreet 的头像
dilpreet4 个月前

The shared artifact layer is the part that matters most here. Once agents work off a shared store instead of each other's raw output, the loop stops drifting

Pavlo Grubyi 的头像
Pavlo Grubyi4 个月前

@grok extract actionable insights from this video

fornews 的头像
fornews4 个月前

How to archive a good loop about memory , this is a perfect solution : only need a plugin cc

Nico Baier 的头像
Nico Baier4 个月前

Is this available on youtube?

Roxy 的头像
Roxy4 个月前

what does the verification layer actually check for in practice?

book or technique 的头像
book or technique4 个月前

Finally someone shares actual code. No more hype threads. Going to clone this tonight.

Laura 的头像
Laura4 个月前

This agent loop template is spot on. Shared knowledge layer, logging, verification and that compounding harness actually make work stick across runs. Appreciate the open source plus the deep dive!

Rotaze Software 的头像
Rotaze Software4 个月前

Spot on, Jason. The cognitive loop harness is mandatory for compounding work. The next bottleneck is real-world state corruption: what happens if the agent's action loop fails halfway through execution? We open sourced Rotaze-TAF ( handle this execution layer, adding transactional state machines and deterministic LIFO rollbacks to agent actions. Coupling a knowledge harness with a transactional executor is the way to go for enterprise.

Haebin 的头像
Haebin3 个月前

solid template. AdaL Engineer goes one level up — it manages the entire loop for you automatically, so you just give the goal and it handles plan→build→test→iterate. just launched:

Decklabs 的头像
Decklabs4 个月前

the shared artifact layer turns each loop run into cumulative context instead of isolated experiments

Peon 的头像
Peon3 个月前

How do you deal with growing number of memories/logs/artifacts ? do you do any compaction/compression or you just let it grow indefinitely?

Magica 的头像
Magica4 个月前

Magica already ships the artifact layer, the harness, AND the loop — in one chat. But love seeing the blueprint go open source.

ByronLeachAI 的头像
ByronLeachAI4 个月前

Agreed on logging being underrated. I run a loop that drops a WhatsApp voice note into my Notion pipeline tagged and ready, and it only stopped drifting once every step read and wrote to one knowledge layer instead of rebuilding context each time.

Thomas Chaigneau 的头像
Thomas Chaigneau4 个月前

to make loop smoother i created Ernest. it prevents super slop from ai, because I faced that even gpt 5.5 can drift sometimes and produce full garbage

Dipanshu Kushwaha 的头像
Dipanshu Kushwaha4 个月前

That’s awesome! Love seeing practical resources shared. This will definitely help others get started on the right foot. Keep up the great work!

Secta 的头像
Secta4 个月前

the compound state across runs is the part most people miss loops without persistent knowledge just repeat instead of compounding

Aether 的头像
Aether4 个月前

The 'shared artifact / knowledge layer' is the part most people skip. Everyone focuses on the loop mechanics but forgets that agents need a shared memory surface or each cycle starts from scratch. The codebase harness that compounds work across runs — that's the difference between a demo and a system that actually ships.

AI Mastery Guide 的头像
AI Mastery Guide4 个月前

The shared knowledge layer part is the piece most people skip. Without it agent loops just repeat the same mistakes across runs

相关视频

HOW TO USE AI LOOPS TO RUN YOUR BUSINESS 24/7 A lot has been written about loop engineering for building products. Almost nothing about using loops to run the business itself. That's the bigger idea. A loop is when you give an agent a goal, a way to check its own work, and permission to keep trying until it hits that goal. Build. Verify. Repeat. Stop when the condition is met. Here's what it looks like in practice: 1/SEO loop You're position 30 for a term you want. The loop runs once a month, makes changes, checks where you rank, and keeps pushing until you're on page one. This is running in production right now on Inbox Zero. 2/Ads loop You're spending $100 a day and losing money. The loop tests creative, checks profitability, kills what fails, and keeps going until the account is in the black. 3/Eval loop Your AI feature is only 88% accurate. The loop keeps adjusting the prompt and swapping the model until it passes 90%. 4/LLM visibility loop People search in ChatGPT now, not just Google. Same loop, new scoreboard. Are we the answer or not? The whole thing hinges on one thing: a metric that comes back black and white. Where do I rank? Did it hit profitability? Did the evals pass? Give an agent that scoreboard and it runs for months. Loops used to run for 30 minutes. These run for a year. Take a step, sleep, wake up next month, take another one. You're basically hiring an agency that never sleeps, gets paid in tokens instead of invoices, and undoes its own mistakes when the number goes down. Full episode on The Startup Ideas Podcast (SIP) 🧃 watch

GREG ISENBERG

83,734 次观看 • 3 个月前