HomeVideos

Prompting is dead. Here is how you create loops

Now Playing

Prompting is dead. Here is how you create loops

Transcript

507 segments

0:00

Everyone and their mothers has been

0:01

talking about vibe coding loops lately,

0:04

aka loop engineering. I mean, take a

0:07

look here. Everyone from Peter Steinberg

0:09

has been saying, "Hey, don't prompt your

0:11

agents anymore. You should be building

0:13

your loops." Even Boris from Claude

0:16

Code, the guy who invented Claude Code,

0:18

all he's talking about is loops. "I

0:21

don't prompt Claude anymore. What I

0:22

mostly use now is loops. I create loops.

0:25

They do my entire job." Well, I'm here

0:28

to tell you they ain't lying. Here is

0:31

the issue though with all this. They've

0:32

all been talking about loops, but nobody

0:35

is telling you how to build a loop.

0:37

There's no one out there directing you

0:39

on what a loop actually is. I have good

0:42

news for you. I'm about to show you. I'm

0:45

here to report I've built an incredible

0:48

loop that's basically automated 95%

0:51

of the vibe coding work I do. In this

0:54

video, I'm going to show you how to

0:56

build it and use it. The most

0:58

beginner-friendly

1:00

loop engineering video you've ever seen

1:02

in your life. If you stick with me here

1:04

and build out the things I'm about to

1:06

show you with you. I'll include all the

1:07

prompts, instructions, everything. You

1:09

will produce 100x more with your vibe

1:13

coding, or I'll refund you all the money

1:15

you spent on this video. You are about

1:17

to watch a historic first video. The

1:20

first video that deep dives into

1:22

building an extremely powerful vibe

1:25

coding loop. This is loop engineering

1:28

101. Now, let's lock in and get into it.

1:31

So, let's talk about how you vibe code

1:32

before loop engineering and after loop

1:35

engineering. This is how you vibe code

1:37

before loop engineering. This is

1:38

probably what you're doing today. You go

1:41

to Claude Code, you go to Codex, you

1:42

send it a prompt, you say, "Hey, build

1:44

this UI, build this game, build this

1:46

feature." It builds it, and then you

1:48

test it, and you sit there and manually

1:50

test it. When that's done, you send

1:51

another prompt, "Okay, now add this

1:53

button." Then adds the button, and then

1:54

you test it. Every part of this is

1:57

manual, right? Everything you do is

1:59

completely manual. Everything you do

2:00

requires either you typing a prompt or

2:03

you testing it out. And here's the

2:05

biggest issue with it all. If you're not

2:07

at your computer and you're not actively

2:10

prompting or testing, nothing's

2:12

happening. Nothing's advancing. I'm

2:14

juggling like six different projects at

2:17

once right now. And before, if I wasn't

2:20

spending time on each one of those

2:21

projects, they weren't advancing. Only

2:24

one project was advancing at once. You

2:26

as the human being are the bottleneck.

2:29

And while this was a big advancement

2:31

over just manually writing code, right?

2:33

That's what people were doing before a

2:35

couple years ago. Insane, right? While

2:36

this is a big efficiency gain over just

2:39

manually writing code, it's still not

2:42

maximum performance. It's still not

2:44

maximum automation because you're still

2:46

doing everything manually. Let me

2:49

introduce you to the new age. Let me

2:51

introduce you to how you will be vibe

2:52

coding after you're done watching this

2:54

video. We're going to go over here. This

2:57

is the fin loop. That is right. I named

2:59

the loop. I've Hey, I invented the loop.

3:02

I'm allowed to name the loop. This is

3:03

the fin loop. Here is how it works. It

3:06

consists of three different skills:

3:09

spec, build, review. You spend a couple

3:12

minutes telling the agent exactly the

3:14

ideas in your head, and then it goes in

3:17

a loop and all day builds it out,

3:20

reviews it, tests itself, builds it out,

3:22

reviews it, tests itself over and over

3:24

and over again completely autonomously.

3:26

And then, at the end, you quickly click

3:29

through and it all merges. Instead of

3:31

having to work all day completely

3:33

manually prompting your agent and

3:35

testing it yourself, the only thing

3:37

you're doing is kind of loosely telling

3:39

it the ideas in your head, and it goes

3:41

and it just builds and reviews, builds

3:42

reviews tests, builds reviews tests, and

3:44

merges it all. Your work goes from

3:46

sitting at your computer all day to

3:48

coming in, waking up in the morning,

3:50

giving a couple ideas, and at the end of

3:52

the day you come back to computer and

3:53

they're all done and merged. 95% of your

3:56

work now is completely automated. You're

3:58

not sitting there and prompting over and

4:00

over again. You're giving a couple ideas

4:02

and the AI figures it all out on its

4:03

own, builds it all out, tests it. It's

4:06

constantly working even if you aren't

4:08

there. So, even if you have just 5

4:09

minutes free in the morning, you go into

4:11

this loop, which again, I'll show you

4:12

how to build out in just a second, stick

4:14

around here, and it will go and work

4:17

autonomously for you, knowing exactly

4:19

what to build, knowing exactly how to

4:20

test, knowing exactly how to merge. This

4:23

can be done with any vibe coding tool on

4:25

planet Earth you're using, whether it's

4:26

Codex, Claude Code, whatever you prefer.

4:29

Plus, there are some additional tools

4:31

added on, which I'm going to show you,

4:32

and they're all free. You just add them

4:33

onto your coding agent and you have this

4:35

really, really nice loop set up that you

4:37

can manage and control from anywhere in

4:39

the world. You don't even have to touch

4:41

Codex or Claude Code anymore. I'll go

4:42

into more details in a second. This is

4:44

super simple, super easy. I'll give you

4:47

the exact prompts on how to set up the

4:49

skills you need to set up this loop. And

4:51

now, what I'm going to do is show you

4:53

how it works, then show you how to set

4:55

it up. But before we do that, building

4:57

loops for your agent basically just

4:59

makes your agent way more reliable.

5:01

There are many other ways to make your

5:04

agent reliable as well, and thank God

5:06

for my friends at HubSpot. They built

5:09

the Claude Code Playbook, build systems

5:11

that make AI reliable. Just for the

5:13

subscribers of my channel, you get this

5:15

playbook for free. This playbook gives

5:17

you systems that help your agents go

5:19

from sometimes doing what you say to

5:22

always doing what you say and being

5:23

incredibly reliable. In this

5:26

easy-to-read playbook, you'll learn all

5:28

the systems and tricks to create a

5:29

really impactful, powerful Claude rules

5:32

file. You'll learn how to prompt your

5:33

agent better so you get better results.

5:36

Hooks that make sure your agent don't go

5:38

off the rail. And by the way, these all

5:39

work with the loop I'm about to show

5:41

you. They all integrate perfectly. It'll

5:43

make the loop I'm about to show you even

5:44

more reliable. Sub-agents so you can

5:46

have armies of agents working for you,

5:48

and so much more. It's going to improve

5:50

the quality of your Claude code output

5:52

by a ton. My favorite part is the

5:54

section on dynamic workflows. You can

5:57

have Claude write an orchestration

5:58

script that runs up to 1,000 agents

6:01

while keeping the lead agent's context

6:03

completely clean. That's really, really

6:05

relevant to if you're going to build out

6:07

the coding loop we're talking about in

6:08

this video cuz it all ties together.

6:10

This is one of the best educational

6:12

materials I've ever read about Claude

6:14

code. So, make sure check it out down

6:16

below. Link for this free playbook down

6:18

below. You got nothing to lose. And

6:20

thanks to my good friends and partner at

6:21

HubSpot for supporting the channel and

6:24

the Fin Fam community. So, as I talked

6:26

about earlier, there are three skills

6:28

involved this loop. I'm going to be

6:30

doing this in Claude code. You can do

6:31

this in Codex, Claude code, any tool you

6:34

want as long as you can build custom

6:36

skills, which basically every tool on

6:37

planet Earth allows you to do right now,

6:39

you can run this loop. Again, three

6:41

skills involved: spec, build, and

6:44

review. Mine are called him spec, him

6:46

build, him review. So, I'm just doing it

6:46

in my him project. But, all you need to

6:48

know is spec, build, and review. First

6:51

is spec. Again, spec is the first part

6:53

of this loop. This is what helps the

6:55

coding agent capture all of your ideas.

6:58

This is what's going to kick off the

7:00

entire loop you see here. Basically,

7:02

what I'm about to show you is the only

7:03

manual work you need to do to pump out

7:06

tons and tons of high-quality code. So,

7:08

you wake up in the morning, you grab

7:09

your cup of coffee. Now, you want to get

7:12

some things built out. So, you're

7:13

basically going to your agent saying,

7:15

"Hey, here's everything that's top of my

7:16

mind." What you do is you use the spec

7:18

skill, you give a high-level what your

7:20

idea is, what the feature is, and what

7:23

the spec skill is going to do is going

7:25

to ask you enough questions about what

7:27

your idea is until it understands it

7:30

completely and can build out a ton of

7:33

features for your agent to build. It's

7:35

basically going to interview you, come

7:37

up with a ton of details. So, To you

7:40

have a game you want to build, you do

7:42

{slash} spec, then say I want to build a

7:44

game, then you hit enter. And now my

7:47

agent's going to start asking me a bunch

7:49

of questions until it feels fully

7:51

confident it can spec out everything it

7:53

wants to build in detail. So, I just

7:55

answered about 15 questions that allows

7:58

it to understand in detail exactly the

8:01

feature I'm trying to build in my app,

8:03

Henry. It came back and now has five

8:05

issues it's going to file for me and

8:07

send to the building loop. Again, the

8:10

spec skill comes up with a bunch of

8:12

issues. Issues are basically detailed

8:15

tasks with acceptance criteria, sends it

8:18

to our loop, build review test, build

8:20

review test. The agent handles all this

8:23

for us, and then we come back at night

8:25

after all the work is done and merge it

8:27

really quick. So, we did spec, it came

8:29

up with five different issues it's going

8:31

to send to the loop, we just need to

8:33

approve it. So, as you can see here, the

8:35

spec skill filed five new issues. And

8:38

now if we go into Linear, which is the

8:40

free app we're using to track all these

8:43

issues, we can check them all out. So,

8:45

here's an example one of the issues it

8:47

made. The AI built out this incredibly

8:50

detailed document with everything about

8:54

the issue or the task the AI agent needs

8:56

to build, all the acceptance criteria

8:59

including the non-goals, so what it

9:00

shouldn't be doing, everything about the

9:02

scope, notes, and expectations on how to

9:05

test it. This is all automatically built

9:07

out by that spec skill. Multiple of

9:10

these issues, and this is all in Linear.

9:12

For those who haven't used it, I've told

9:14

you to download it a million times.

9:15

Completely free project management tool

9:18

that basically acts as a second brain

9:21

for your coding agent. As you can see

9:23

here, it has all these different issues

9:25

I'm tracking. It basically allows my

9:27

coding agents, Codex, Claude code,

9:29

whatever I'm using, to remember every

9:31

task it's working on, so that when I

9:33

come back or spin up new agents, it can

9:35

resume from its current state. It's

9:37

basically a second brain and it's

9:39

awesome, free, you should download it.

9:41

So, all those issues are here. Next,

9:43

after those issues are built, it's time

9:45

for the automated part. Our work here is

9:47

done. We came in in the morning, we

9:49

drank our coffee, we gave a couple

9:51

ideas, answered a couple questions. Now,

9:53

the AI takes it from here and now it's

9:55

going to use our two other skills, build

9:57

and review, to autonomously build

10:00

everything out, then verify what it

10:02

built works. Previously, what you were

10:04

doing in Vibe Coding was you were

10:06

saying, "Okay, now build this out."

10:08

You're waiting there while it codes and

10:09

prompts, then you were opening up

10:10

localhost, testing it out, clicking

10:12

around, then going back, "Hey, build

10:13

this now. No, change this." Now, we have

10:15

skills that describe in detail the best

10:19

practices around how to build out these

10:21

specs and how to review them and test

10:23

them. I mean, it is doing thorough

10:25

testing on its own. It's opening up

10:28

browsers, it's clicking around, it's

10:29

doing everything. Let me show you how

10:31

this works. So, let's set up the build

10:33

loop. The build loop that I'll go over

10:35

and over and over again building out

10:37

every single spec that is in our

10:39

backlog, right? As you saw in the last

10:41

screen, we had five specs built out from

10:43

our spec skill. Now, the build loop will

10:45

go through and over and over and over

10:47

again build all of them out. In Claude

10:49

Code, all we would need to do to do this

10:50

is do {slash} loop five min {slash} him

10:55

build. What this does, {slash} loop

10:58

basically tells the chat, "Do this next

11:01

thing over and over and over again."

11:03

Five min tells it how often to do it.

11:05

So, every five minutes it's going to do

11:07

it. And what it's going to do is run him

11:09

build, our new skill. Again, I'll give

11:12

you the prompt in a second how to set it

11:13

up that builds out any spec in our

11:16

backlog inside Linear. So, those five

11:19

specs that we just built out. So, it's

11:20

going to every five minutes run him

11:22

build. So, basically, put it on a loop

11:25

all day just building, building,

11:26

building, building, building for us. And

11:28

again, all the build skill is is a skill

11:32

that tells Claude code or Codex or

11:34

whatever you're using exactly how to

11:36

read and build out each one of those

11:39

issues in linear. It also tells it how

11:42

to move it along our pipeline, how to

11:44

push it to the review skill, and how to

11:45

keep our entire loop running even when

11:48

we're not at our computer. So, I'm going

11:50

to hit enter on that, and it is going to

11:52

start building out our specs. At the

11:55

same time as that, we are going to set

11:58

up our review loop. So, let's do this.

12:00

I'm going to open up another chat. I'm

12:02

going to do the exact same thing,

12:03

{slash} loop

12:04

5 min {slash} review, and I'm going to

12:08

hit enter on that. This is going to set

12:10

up another loop where our agent is now

12:12

going to review every spec built out,

12:15

every spec marked as waiting. So, when

12:17

our agent is done building out each one

12:20

of the specs, it gives it a label that

12:23

says, "Okay, ready for review." And then

12:25

our review loop waits to see that label

12:27

to start reviewing everything. And all

12:30

our review skill is is basically just

12:32

instructs the agent how to review

12:34

everything built out, so how to open it

12:36

up in a browser, test it out, click

12:38

around, how to apply the label once it's

12:40

done being reviewed, how to spin up its

12:43

own pull request with that specific code

12:46

in it, how to put that pull request into

12:49

a sandbox environment so you can test

12:51

out just that specific change, and how

12:54

to write instructions for the user on

12:57

how to test it themselves. Each one of

12:59

these new skills that I'm going to have

13:01

you build out is really, really simple

13:03

to do. It's just one prompt. All it's

13:05

doing is instructing the AI how to push

13:08

issues through our loop here, and how to

13:11

keep everything moving, and how to save

13:13

you way more time, and get you way more

13:15

productive. So, the agents are

13:16

autonomously building out the issues,

13:19

then another agent is autonomously

13:21

reviewing them. What happens when the

13:23

agent reviews an issue,

13:25

tests it out, sees that it works well,

13:28

what it does is it takes that pull

13:30

request and sends it to us in our

13:32

messaging service of choice. So, for me,

13:35

that messaging service is Slack. You can

13:37

use anything for this. You can use

13:39

Discord if you want. You can use

13:40

Telegram if you want. Slack is really

13:43

built for this type of workflow, but you

13:44

can 100% do this in Discord as well, no

13:47

big issue. One of the prompts I'll give

13:49

you down below as well will instruct

13:51

your AI agent on setting this all up.

13:53

You don't need to set up Slack. You

13:55

don't need to set up Linear. You don't

13:57

need to set up the loops. The AI does it

13:59

all for you with the prompts I'm going

14:01

to give you. So, I have this channel

14:03

merge ready. The review loop messages me

14:06

here. As you can see, Henry loops. It

14:08

describes the pull request. It describes

14:10

the issue, what it did. It gives me a

14:12

link if I want to test it myself, so I

14:15

can open up this preview. It's just like

14:16

a preview branch in Vercel that just has

14:19

the one change the agent made. It gives

14:22

me step-by-step on how to test it if I

14:25

want to test it myself. And then when

14:27

I'm ready, all I need to do is react

14:30

with a rocket ship emoji. When I react

14:32

with the rocket ship emoji, the agent

14:35

goes, "Got it. I'll merge it." And then

14:37

it goes, "Merged by me." and puts a nice

14:39

green check mark right on that merge to

14:41

say, "Yep, it's merged in. It's live in

14:44

the app." And just like that, the code

14:46

was built, right? All we had to do is

14:48

come in at the beginning of the day,

14:49

answer a bunch of questions from our

14:51

agent. The agent then autonomously

14:53

builds and reviews and tests everything.

14:56

Then we come in and just click rocket

14:57

emoji, rocket emoji, rocket emoji,

14:58

rocket emoji, and it's all merged and

15:00

done. Our work went from 100% manual,

15:04

take all day, you have to sit at your

15:06

computer, to you just come in at the

15:08

beginning of the day, answer a few

15:09

questions, and at the end of the day you

15:11

hit merge, and you're good to go. This

15:13

is the thin loop. This was what makes it

15:15

so powerful. If you look down below,

15:18

there is a Google Doc. The Google Doc

15:21

has several prompts in it. It has

15:23

prompts for setting up each of the three

15:25

skills, as well as a prompt you can give

15:28

to your agent, whether it's Claude,

15:29

Code, Codex, or whatever, to set up the

15:31

Slack, Discord, Linear, whatever you're

15:34

using, and get the entire system

15:36

connected in place. This isn't gate-kept

15:38

behind an email or anything. It's

15:40

completely free. Just click the link.

15:41

You don't have to do anything. It's just

15:43

a Google Doc you can copy and paste into

15:44

your agent. We don't gate-keep here on

15:47

the Fin Fam channel. AI, especially with

15:49

stable 5 and GBT 5/6, has become so

15:53

smart. There is no more need to baby-sit

15:56

every step of the way. Basically, every

15:59

part should be automated, right? And

16:01

we're still doing manual work. I'm

16:04

working on now figuring out how to

16:05

automate even the manual work. How can

16:07

we automate coming up with ideas? That's

16:10

what I'm building out right now. I want

16:12

to get the spec step even easier and

16:14

even less human-intensive. And as AI

16:16

becomes smarter, it might even already

16:18

be at that point. We don't even need to

16:20

merge it ourselves. We can probably just

16:21

trust it to merge it for us. But right

16:23

now, I still want these two manual

16:25

steps, beginning of the day, end of the

16:26

day. But all that hard work in the

16:28

middle of the day, that's done. You

16:29

don't have to worry about it anymore.

16:30

That's all handled by the Fin loop. All

16:33

the tools you need for this, completely

16:35

free. I'll link them all down below. The

16:38

prompts to set this up, completely free,

16:40

link down below. You have nothing to

16:42

lose by setting up this loop. It just

16:44

saves you tons and tons of time and

16:46

helps you get done way more. You take

16:48

this a step further, you start five or

16:50

six different projects, you just come in

16:52

the morning, answer specs for all six of

16:55

them, they work autonomously all day, at

16:57

the end of the day you have six projects

16:58

moving forward without your work all the

17:01

time. Everyone on the internet's been

17:03

talking about coding loops. Now you know

17:05

it, now you can implement it. And if you

17:07

implement this, you are ahead of like

17:10

literally 99.99999%

17:13

of people. I'm not even joking. Even the

17:15

most hardcore vibe coders right now are

17:18

not setting up loops like this. Do

17:20

yourself a favor, block off half an

17:22

hour, go through this again, take the

17:25

prompts from down below, give them to

17:26

your agent, get this set up. If you want

17:29

to take it even a step further, you can

17:31

copy the link of this video up above or

17:33

hit share down below, give it to your

17:35

agent, say, "Hey, look at the transcript

17:37

of this video and set it up for me."

17:38

Like that's actually probably the

17:39

easiest way to set this up. If you

17:41

learned anything at all, make sure to

17:43

leave a like down below, turn on

17:46

notifications, and subscribe because all

17:48

I do is make amazing videos about AI.

17:51

It's an absolute honor and a pleasure to

17:53

be helping you out, to be educating you,

17:55

to be working with you on these things.

17:56

I'm discovering new things every day.

17:58

All I do is discover things, then share

18:00

it with you. So, I hope you're enjoying

18:02

it. Hope you're learning something from

18:03

it. I absolutely love this stuff. It is

18:05

so much fun, and I hope you're having

18:07

fun with it, too, and I'll see you in

18:08

the next video.

Interactive Summary

The video introduces the 'Fin loop', an automated workflow for coding agents that replaces manual prompting with a system based on three skills: specification, building, and reviewing. By utilizing these loops, a developer can start projects by providing initial ideas in the morning and have the AI autonomously build, test, and prepare code for review throughout the day, significantly increasing productivity and allowing for parallel project development.

Suggested questions

3 ready-made prompts