Loading video...

Video Failed to Load

Go Home

255,006 views • 4 months ago •via X (Twitter)

42 Comments

Joseph Hurtado - Founder Granata Consulting's profile picture
Joseph Hurtado - Founder Granata Consulting4 months ago

A way to spend all your tokens faster and give your money to OpenAI, Anthropic and friends.

Matthew Berman's profile picture
Matthew Berman4 months ago

this is true

Elix's profile picture
Elix4 months ago

How is this any different than just saying " double check your work and test it before finalizing"? I understand that loops are for specific cases, are "designed" for verification, but at the end of the day it's just the AI agent verifying its own work one way or any isn't it?

Matthew Berman's profile picture
Matthew Berman4 months ago

you need a non-deterministic "loop" around the model to ensure it continues. it's not about double checking work, it's about checking against an end goal

Elix's profile picture
Elix4 months ago

Yeah... Like you said that's the hard part, most of the time I don't even know how it's supposed to work. I've been working on my characters to make a line queue to use a water cooler.. sounds easy "just make sure they all form a line".. It's been 2 days😅

NeuralCat's profile picture
NeuralCat4 months ago

In Codex or CC, is it feasible to have two loops running in parallel? One that analyzes output and gives feedback, raising the bar each iteration. The other that works towards the goals set by the first. Or better to design both inside one loop?

Matthew Berman's profile picture
Matthew Berman4 months ago

good question. I suspect one loop per goal is the right way.

GooGZ AI's profile picture
GooGZ AI4 months ago

This is a great summary. It’s surprisingly simple in concept (a trigger, and a goal) but the mechanism options (or even knowing how to define your goal) is where folk can get unstuck. Cheers.

Matthew Berman's profile picture
Matthew Berman4 months ago

yeah it was a lot simpler than I thought. still not easy to design loops though.

GooGZ AI's profile picture
GooGZ AI4 months ago

And the potential cost! The biggest elephant in the room…

Matthew Berman's profile picture
Matthew Berman4 months ago

the cost goes exponential with loops

Duckets's profile picture
Duckets4 months ago

/goal is the best loop

Matthew Berman's profile picture
Matthew Berman4 months ago

/loop is the best loop

Jacob Beers's profile picture
Jacob Beers4 months ago

I think this was a good video overall but I don't agree with the final speculation. Even in your scenario someone has to kick off the goal-oriented self-improving agent. There may not be someone sitting at a workstation directing it but that doesn't mean it isn't being pointed in a direction.

Matthew Berman's profile picture
Matthew Berman4 months ago

someone might kick off the initial loop, but if no humans are needed after that, it's self-improving.

am.will's profile picture
am.will4 months ago

@ThePrimeagen predicted this 😂

Ben Pielstick's profile picture
Ben Pielstick4 months ago

Recursive self-improvement is when a model can design a better model. A model designing a workflow that uses models is nested, not recursive.

Diogo Veluza's profile picture
Diogo Veluza4 months ago

Nice mat 🫡

stevefrenchfry's profile picture
stevefrenchfry4 months ago

Thanks for the explanation

Prismor's profile picture
Prismor4 months ago

thanks! a loop with immunity-agent is a dangerous combo:

Gordon McCreight's profile picture
Gordon McCreight4 months ago

Your point about feature development having amorphous goals (at 3:30) resonated with me. I haven't gotten pure spec-driven development to work well for complex features, mainly because I don't know exactly how the feature should work until I prototype it and then iterate on it.

Alpha Batcher's profile picture
Alpha Batcher4 months ago

i still didn't understand what is it loop

jibblitworld's profile picture
jibblitworld4 months ago

What is the tool you are using in the video?

Gilson Melo's profile picture
Gilson Melo4 months ago

Use Codex /goal with the product design plugin is another way to create a loop for a specific goal. Try that. I paused a /goal after 10 hours building a macOS app. Amazing results.

Naren's profile picture
Naren4 months ago

How this diff from Ralph?

Buddy Williams's profile picture
Buddy Williams4 months ago

Refine handles my loops.

Yusuf's profile picture
Yusuf4 months ago

/goal

Hybrid 🏃🏾's profile picture
Hybrid 🏃🏾4 months ago

Great video Matt

AR | Build Notes's profile picture
AR | Build Notes4 months ago

Matthew, you are the one asking the right questions! That’s why I follow you.

ዛውዲ's profile picture
ዛውዲ4 months ago

Bullshit on tokens becoming cheaper.

Chad Brewbaker's profile picture
Chad Brewbaker4 months ago

It is a fixed point iteration, not a "loop". Some are P-COMPLETE so unless P == NC there is no faster way to do it.

SlowBlade's profile picture
SlowBlade4 months ago

Just another reason why local AI will win.

Mo ShaRaf (sharaf.eth)'s profile picture
Mo ShaRaf (sharaf.eth)4 months ago

But if we used a local model that will have more frequent running loops to increase output quakity through iterations, the limitation won’t be tokens… it would be time to market

Mooo ಠ_ಠ's profile picture
Mooo ಠ_ಠ4 months ago

thanks for always keeping us in the, ummm.., loop! :D

Me's profile picture
Me4 months ago

Copilot Cli has done this for a while now. Just: /autopilot goal

Argin Gerigorian's profile picture
Argin Gerigorian4 months ago

What page is that on Claude?

ዛውዲ's profile picture
ዛውዲ4 months ago

What’s the point of the loop if the prompt contains the goal? Just produce the goal.

0xFastly's profile picture
0xFastly4 months ago

Game changing tech. Great explainer!

Praveen Singh's profile picture
Praveen Singh4 months ago

The way I understand it: a prompt is one instruction. a loop is a small operating system around the agent. It decides what context to load, what task to run, how to check the result, when to retry, when to stop, and what to report back. The hard part is not making the agent do more. It is giving it a repeatable way to know what "done" means.

MinisterOfDefenseSF's profile picture
MinisterOfDefenseSF4 months ago

I swear some of the most basic shit in programming get you guys going. A basic programming concept and you're treating it like its rocket science.

Harsh Kasana's profile picture
Harsh Kasana4 months ago

Ok so we have a new term that will replace vibe coding now.

Dinudsi's profile picture
Dinudsi4 months ago

Thanks for this.

Related Videos