WEBVTT

1
00:00:00.000 --> 00:00:04.160
Today we're breaking down the clearest explanation of Ralph Wiggins.

2
00:00:04.160 --> 00:00:06.160
Now, not the Simpsons character.

3
00:00:06.160 --> 00:00:10.560
It's the AI coding loop that everyone is freaking out about.

4
00:00:10.560 --> 00:00:14.320
Ralph is a simple idea with huge consequences.

5
00:00:14.320 --> 00:00:18.800
You give an agent a list of small tasks and it keeps picking one,

6
00:00:18.800 --> 00:00:21.280
implementing it, testing it, committing the code.

7
00:00:21.280 --> 00:00:25.120
It's basically a way for you to have AI agents

8
00:00:25.120 --> 00:00:29.600
building your business, building your product overnight while you sleep.

9
00:00:29.600 --> 00:00:32.160
Sounds too good to be true, but it works.

10
00:00:32.160 --> 00:00:36.080
And it uses Claude Opus 4.5 to go and do it.

11
00:00:36.080 --> 00:00:40.400
So in this episode, this is the clearest explanation

12
00:00:40.400 --> 00:00:43.440
of how beginners can learn how to use Ralph.

13
00:00:43.440 --> 00:00:45.920
You don't need to be technical to understand it.

14
00:00:45.920 --> 00:00:50.960
By the end of this episode, you will be capable to implement Ralph

15
00:00:50.960 --> 00:00:54.240
so that you too could wake up to features

16
00:00:54.240 --> 00:00:58.960
fully done for ideas in your head for the startup you want to build.

17
00:00:59.040 --> 00:00:59.920
Enjoy the episode.

18
00:01:08.400 --> 00:01:11.040
We finally got Ryan Carson on the pod.

19
00:01:11.040 --> 00:01:12.720
This is a guy who...

20
00:01:12.720 --> 00:01:17.200
Ryan, I don't know if you know this, but I was a treehouse customer.

21
00:01:17.200 --> 00:01:19.760
I learned how to code many years ago.

22
00:01:19.760 --> 00:01:26.560
Many years ago, and he is one of the best communicators

23
00:01:26.720 --> 00:01:30.640
when it comes to learning AI, learning how to code.

24
00:01:30.640 --> 00:01:34.720
So we brought him on to figure out what the hell is Ralph.

25
00:01:36.480 --> 00:01:37.120
What is happening?

26
00:01:37.120 --> 00:01:38.400
Greg, it's so good to be here, man.

27
00:01:38.400 --> 00:01:40.000
Like, I literally watch your show.

28
00:01:40.000 --> 00:01:40.800
I'm not one of those people.

29
00:01:40.800 --> 00:01:42.400
It's like, I watch show and don't I do.

30
00:01:43.520 --> 00:01:45.120
It's packed with knowledge.

31
00:01:45.120 --> 00:01:46.400
Show is fun to get the invite.

32
00:01:47.120 --> 00:01:48.800
And it's crazy, you're a treehouse student.

33
00:01:48.800 --> 00:01:52.160
I mean, I learned how to code getting a computer science degree,

34
00:01:52.160 --> 00:01:54.640
which seems hilarious now, and I decided

35
00:01:54.640 --> 00:01:56.400
people shouldn't need a computer science degree.

36
00:01:56.400 --> 00:01:59.360
So launch treehouse, taught a million people how to code,

37
00:01:59.360 --> 00:02:01.520
and now people really don't need a computer science degree.

38
00:02:02.720 --> 00:02:03.200
That's right.

39
00:02:03.840 --> 00:02:07.840
So for this, for this episode, what are people going to learn

40
00:02:07.840 --> 00:02:09.760
and if they stick around to the end,

41
00:02:10.400 --> 00:02:12.320
well, you know, who are they going to be?

42
00:02:12.320 --> 00:02:18.400
So what I'm going to teach everybody is how to build an entire feature

43
00:02:18.400 --> 00:02:20.720
for your app while you sleep.

44
00:02:20.720 --> 00:02:22.240
So if you watch through the end,

45
00:02:22.240 --> 00:02:24.560
you're going to have all of the technical knowledge,

46
00:02:24.560 --> 00:02:26.560
even if you're not a hardcore developer.

47
00:02:27.520 --> 00:02:29.200
In fact, I would say this is perfect for you

48
00:02:29.200 --> 00:02:30.640
if you're not a hardcore developer.

49
00:02:31.360 --> 00:02:33.520
You're going to have all the knowledge, all the code.

50
00:02:33.520 --> 00:02:36.240
I literally have a repo that you can go and download the code.

51
00:02:36.960 --> 00:02:40.480
So watch to the end and you're going to have the sauce.

52
00:02:41.360 --> 00:02:42.640
All right, let's do it.

53
00:02:42.640 --> 00:02:46.080
Okay, so a friend of mine named Jeff Huntley

54
00:02:46.080 --> 00:02:48.320
thought up this idea called Ralph.

55
00:02:48.560 --> 00:02:53.840
And Jeff is super creative and he launched this a while ago.

56
00:02:54.640 --> 00:02:57.040
And the idea is really simple,

57
00:02:57.600 --> 00:02:59.120
but that's why it's so good.

58
00:02:59.840 --> 00:03:01.760
So yesterday, I thought, you know,

59
00:03:01.760 --> 00:03:06.160
I'm just going to post about this and give people a breakdown of what is this thing?

60
00:03:06.640 --> 00:03:07.440
How does it work?

61
00:03:08.160 --> 00:03:11.200
And you know, you never quite know when the algo is going to hit on X.

62
00:03:11.840 --> 00:03:12.560
Sometimes it does.

63
00:03:12.560 --> 00:03:14.800
Sometimes it doesn't and this went bonkers, right?

64
00:03:14.800 --> 00:03:17.440
So you can see we're over 700,000 views.

65
00:03:18.160 --> 00:03:21.600
And then there's been retreats of this thing that have got over 100,000 views each.

66
00:03:21.600 --> 00:03:24.480
So it's just gone ballistic.

67
00:03:24.480 --> 00:03:25.760
So what is it?

68
00:03:25.760 --> 00:03:26.960
Well, I'm going to walk you through it.

69
00:03:26.960 --> 00:03:31.680
I'm sure Greg will share all the links in the show notes.

70
00:03:31.680 --> 00:03:32.880
So you can click through and read this.

71
00:03:32.880 --> 00:03:37.520
But I'm actually going to walk you through a workflow of what is Ralph and how does it work?

72
00:03:38.080 --> 00:03:39.280
So let's start there.

73
00:03:41.040 --> 00:03:41.760
All right, so

74
00:03:41.760 --> 00:03:45.440
say that you're building an app, right?

75
00:03:45.440 --> 00:03:47.840
You know that you want to add a feature to it.

76
00:03:49.200 --> 00:03:53.520
This is often when you do what's called a product requirement doc or a PRD.

77
00:03:54.800 --> 00:03:58.880
The idea is that you want to build something like,

78
00:03:58.880 --> 00:04:01.680
hey, I want to add this new feature that does XYZ.

79
00:04:02.480 --> 00:04:05.120
And you want to build that, but it's pretty complex.

80
00:04:05.120 --> 00:04:08.800
Like this is not a one shot, you know, make me a landing page.

81
00:04:08.800 --> 00:04:12.160
Like this is a pretty complex thing you want to add to your app.

82
00:04:12.160 --> 00:04:13.200
Well, how do you do that?

83
00:04:13.200 --> 00:04:16.160
So you start off with writing a PRD.

84
00:04:16.160 --> 00:04:19.760
And a PRD, thankfully, is something that agents are really good at.

85
00:04:20.640 --> 00:04:27.280
So the way that you do that is that you actually have AMP or Cloud Code or

86
00:04:27.280 --> 00:04:30.640
or whoever's your agent of choice do that.

87
00:04:30.640 --> 00:04:32.480
So I'm going to show you how I do that.

88
00:04:34.160 --> 00:04:34.960
I'm going to

89
00:04:35.040 --> 00:04:40.160
show you this, which is called a PRD generator.

90
00:04:41.760 --> 00:04:45.120
So what I do is I fire up AMP and I basically start talking.

91
00:04:45.120 --> 00:04:46.960
I use whisper flow, love it.

92
00:04:46.960 --> 00:04:49.360
And I basically say, okay, I want to build this feature.

93
00:04:49.360 --> 00:04:50.960
And this is all the stuff it should do.

94
00:04:50.960 --> 00:04:55.120
And I just talk for often like two, three minutes.

95
00:04:55.920 --> 00:04:57.920
And then I tag this file, right?

96
00:04:57.920 --> 00:05:00.480
So this is a simple markdown file.

97
00:05:00.480 --> 00:05:04.320
This is a skill called PRD generator.

98
00:05:04.400 --> 00:05:05.760
And this isn't rocket science, right?

99
00:05:05.760 --> 00:05:09.680
So it's got the job that you want AMP to do or your agent to do.

100
00:05:10.480 --> 00:05:12.880
It's going to receive a feature description from the user.

101
00:05:12.880 --> 00:05:16.240
It's going to ask three to five essential questions that clarify.

102
00:05:16.800 --> 00:05:20.560
It's going to ask for answers to basic questions, right?

103
00:05:20.560 --> 00:05:23.040
So this is a pretty standard prompt, right?

104
00:05:23.680 --> 00:05:27.120
So what I've done, just to remind you as if we go back to our flow,

105
00:05:27.760 --> 00:05:31.840
I've opened up AMP, I've clicked whisper flow and I've started talking.

106
00:05:32.480 --> 00:05:35.920
And then I tag this file or this skill and I say,

107
00:05:35.920 --> 00:05:39.840
use my PRD skill and turn this into a PRD.

108
00:05:41.040 --> 00:05:44.800
And you can actually see I've got a real life example of me doing this

109
00:05:47.360 --> 00:05:49.600
and a file that ends up being a PRD.

110
00:05:49.600 --> 00:05:50.880
So let's go back here.

111
00:05:50.880 --> 00:05:55.920
All right, so you've got this markdown file which is a product requirement doc.

112
00:05:56.560 --> 00:05:58.640
And again, just in kind of normal person language,

113
00:05:58.640 --> 00:06:01.840
that's just a description of what you want to build.

114
00:06:03.040 --> 00:06:05.920
And it often has things called user stories in there,

115
00:06:05.920 --> 00:06:11.360
which are specific things that you want the user to be able to do in this feature.

116
00:06:11.920 --> 00:06:13.440
So now you've got a markdown file, great.

117
00:06:14.320 --> 00:06:15.200
What do you do with that?

118
00:06:16.240 --> 00:06:21.200
So the next step is, this is a Ralph specific thing,

119
00:06:21.200 --> 00:06:24.400
is that you convert this into a JSON file.

120
00:06:24.880 --> 00:06:28.720
Now, I've shown sort of an example of a JSON file if you don't know what that is.

121
00:06:29.840 --> 00:06:32.880
It's basically a specific format that computers like.

122
00:06:33.840 --> 00:06:37.600
So what you can see is that this is a user story.

123
00:06:38.560 --> 00:06:40.960
So the title is add priority field to a database.

124
00:06:42.000 --> 00:06:44.800
And then the acceptance criteria, this is the most important thing.

125
00:06:44.800 --> 00:06:51.120
So how does AMP or your agent know if it's done with this thing?

126
00:06:51.600 --> 00:06:55.440
You have to give it clear what we call acceptance criteria.

127
00:06:55.440 --> 00:07:00.400
They're basically tests so that the agent by itself can build this thing and know

128
00:07:00.400 --> 00:07:02.320
if it was done without asking you.

129
00:07:03.360 --> 00:07:07.920
So the whole key of Ralph is that it's going to build this whole feature while you sleep.

130
00:07:09.040 --> 00:07:11.760
But how is it going to do that without you saying all the time?

131
00:07:11.760 --> 00:07:14.400
That's good or that's bad or this needs to be fixed.

132
00:07:14.400 --> 00:07:17.280
It has to know if it passed the acceptance criteria.

133
00:07:17.280 --> 00:07:22.160
So this is one of the big unlocks with Ralph or any kind of flow like this,

134
00:07:22.160 --> 00:07:28.480
is that the agent needs to have a feedback mechanism so that it knows if what it's doing is correct.

135
00:07:29.040 --> 00:07:33.600
So what you're saying is the alternative is you have to be Ralph.

136
00:07:33.600 --> 00:07:36.480
You have to be that person to be like, yes, no, maybe.

137
00:07:36.480 --> 00:07:38.240
Yeah, you have to do all the testing.

138
00:07:40.160 --> 00:07:41.280
And that's a pain.

139
00:07:42.880 --> 00:07:44.480
And the agents are smart enough now.

140
00:07:44.480 --> 00:07:49.600
Opus 45 is smart enough now that if you give it good acceptance criteria, it can do it.

141
00:07:49.600 --> 00:07:53.200
So all right, so we've got a PRD, a product requirement doc.

142
00:07:54.320 --> 00:08:00.400
We've used this skill. Let me take this here.

143
00:08:01.840 --> 00:08:05.120
Okay, so now this is called the Ralph PRD converter.

144
00:08:05.760 --> 00:08:12.720
And it says it converts a PRD to a PRD.json file for the Ralph Autonomous Agent System.

145
00:08:12.720 --> 00:08:16.640
And it basically says, okay, take a PRD and mark down format.

146
00:08:16.640 --> 00:08:19.680
And then output it like this, right?

147
00:08:19.680 --> 00:08:25.280
So this is telling the agent exactly what you need the PRD to be turned into.

148
00:08:25.280 --> 00:08:29.600
And it has a couple really important things here like the story size, the number one rule.

149
00:08:30.400 --> 00:08:34.400
Each story must be completeable in one Ralph iteration.

150
00:08:35.040 --> 00:08:41.040
So this is the other big unlock with working with agents is that they have a context limit, right?

151
00:08:41.040 --> 00:08:45.360
So, you know, with Opus, you're looking at about 168,000 tokens.

152
00:08:46.000 --> 00:08:51.840
You have to be picking chunks of work that can be fully completed within that context window.

153
00:08:52.560 --> 00:08:56.560
And this is the, this is why Ralph works so well is that it runs little

154
00:08:58.400 --> 00:09:04.160
independent threads where it completes one user story because it's not very big.

155
00:09:04.800 --> 00:09:07.840
So you've got a bunch of very small user stories.

156
00:09:08.720 --> 00:09:12.560
Story ordering, it puts the ones that it should do first at the top.

157
00:09:13.520 --> 00:09:17.280
And then it says acceptance criteria, they must be verifiable, right?

158
00:09:17.280 --> 00:09:24.080
So this is really key. So good criteria is our add status columns to the to task table with default

159
00:09:24.080 --> 00:09:30.720
pending. You can filter drop down, has options, all active completed. And again, these are things

160
00:09:30.720 --> 00:09:38.080
that AMP wrote for me and I verified, but they're important that it's in there. So let's go back.

161
00:09:38.080 --> 00:09:44.720
All right, so we've created our product requirement doc. Great. We've used the Ralph skill to turn it

162
00:09:44.720 --> 00:09:54.080
into a JSON file. Great. Now we run a script. So this is a little different. So most of us are,

163
00:09:54.080 --> 00:09:58.880
who have used agents like an AMP or a cloud code or a cursor, you're used to opening up

164
00:09:59.520 --> 00:10:05.840
that program, right? So you open up cursor or you open up AMP and you start talking to it, right?

165
00:10:06.400 --> 00:10:13.760
This is actually a bash script, right? So this is a file that your actual local computer runs.

166
00:10:14.880 --> 00:10:17.440
So I'm going to show you actually what this looks like really quick.

167
00:10:19.040 --> 00:10:23.680
And for people who don't know it, bash is, it's just a way for...

168
00:10:24.640 --> 00:10:31.360
It's just a type of... So when you open up your command, your terminal, which is basically

169
00:10:32.240 --> 00:10:38.800
a text input box for your computer, you can type commands on it and you can also run scripts on it.

170
00:10:38.800 --> 00:10:43.760
So that's what a bash script is. It's a type of file that the computer can run from the command line.

171
00:10:43.760 --> 00:10:48.000
So I'll show you what this looks like. And again, this is open source and we're going to have all

172
00:10:48.000 --> 00:10:55.200
these links in the notes. And so you can literally take this Ralph public repo, I have download it

173
00:10:55.200 --> 00:10:59.520
and use it. So let's go and look what this actually looks like. Now this looks kind of scary,

174
00:11:00.960 --> 00:11:06.800
but let's look at what it's actually doing. So it's saying, okay, how many times can this script run?

175
00:11:08.240 --> 00:11:15.200
The default is 10. It has a script directory. It has the PRD file, right? Like we talked about this,

176
00:11:15.200 --> 00:11:20.400
so it's called PRD.json. It's got a progress file, which we're going to talk about.

177
00:11:21.360 --> 00:11:28.000
And then the idea is that it archives the script when it's done. And then basically it does a loop.

178
00:11:28.640 --> 00:11:34.000
And I'll explain how that loops works visually because it looks nicer than bash. But this is the

179
00:11:34.000 --> 00:11:41.920
actual file that runs. So once again, we'll quickly recap. We've got a PRD we wrote. We converted

180
00:11:41.920 --> 00:11:48.400
it into a PRD.json, which is just a list of user stories. Every user story is very small,

181
00:11:48.400 --> 00:11:56.000
right? It has very clear acceptance criteria. And then you go to the command line and you run the

182
00:11:56.000 --> 00:12:03.200
Ralph script, which is you type a couple characters and you hit enter. Now then what happens and

183
00:12:03.200 --> 00:12:10.080
why is this so exciting? So all right. So then what happens is the agent, you know, I use AMP,

184
00:12:10.080 --> 00:12:16.880
it picks one of the stories. Usually it picks the first one. And it's looking for any user story

185
00:12:16.880 --> 00:12:24.960
that has passes false, right? So you can see here has has this user story been does it pass or not?

186
00:12:24.960 --> 00:12:29.680
No, this one doesn't. So let's grab it, right? And this is the other really cool thing about Ralph.

187
00:12:30.560 --> 00:12:38.240
So for decades, right? Teams of engineers have been working this way. You have a list of usually

188
00:12:38.240 --> 00:12:44.800
sticky notes or now, now that's come on boards, right? And you have a user story, you pull it off

189
00:12:44.800 --> 00:12:50.320
and you say, I'm going to do that. You go to your desk, you start coding, right? And then you complete

190
00:12:50.320 --> 00:12:54.320
it, you commit it and you merge it, right? And then you come back to the board and you grab another

191
00:12:54.320 --> 00:12:58.880
sticky note, right? This is the way humans have been coding forever. And the reason why is because

192
00:12:58.880 --> 00:13:04.640
it works, right? You have a unit of work that you can understand that you can test and you can

193
00:13:04.640 --> 00:13:10.560
complete independently, right? And this is exactly what Ralph is doing. So it's picking a story,

194
00:13:11.200 --> 00:13:17.280
grabbing off the board and it's tackling it. So then, you know, it starts running, it starts working,

195
00:13:17.280 --> 00:13:20.880
right? This is what we're all used to if you're in cloud code or if you're an amp or if you're in

196
00:13:20.880 --> 00:13:26.880
cursor, you know, you say, OK, build this thing and you start seeing it working, right? So I'm actually

197
00:13:26.880 --> 00:13:35.280
going to show you today, I post and I said, OK, this is a real thing. I actually built an entire

198
00:13:35.280 --> 00:13:41.600
feature with Ralph. And these are the steps I took. I created the PRD, I created the user stories

199
00:13:41.600 --> 00:13:46.880
and then I started Ralph and then I'm just going to show you an example of kind of what this looks

200
00:13:46.880 --> 00:13:53.040
like for real. So this is a thread and amp. This is basically what you would usually look at and

201
00:13:53.040 --> 00:14:00.000
type into. And these are, this is the system prompt that Ralph gets, right? So it says, you're an

202
00:14:00.000 --> 00:14:07.520
autonomous coding agent working on my projects, your task, read the PRD, read the progress log,

203
00:14:08.480 --> 00:14:13.040
and just do a bunch of stuff. And then it basically says, and then it starts working on it.

204
00:14:14.080 --> 00:14:18.400
To do to do pretty straightforward. And then you can see down here, it's actually cranking, right?

205
00:14:18.400 --> 00:14:22.240
So this is the kind of stuff you're used to seeing. So there here, it starts writing code.

206
00:14:22.960 --> 00:14:29.600
Now the whole time that this is happening, I am sleeping, right? Or, you know, I'm having

207
00:14:29.600 --> 00:14:35.840
dinner with my amazing wife or something, right? I'm paying attention to my kids, right? But Ralph's

208
00:14:35.840 --> 00:14:42.240
slash amp is cranking on that first user story without me having to look at it, give it feedback

209
00:14:42.240 --> 00:14:48.480
to anything because it has everything it needs, the context, it has the acceptance criteria, it has

210
00:14:48.480 --> 00:14:55.840
everything. What about tokens? Is it burning through my tokens? No, this is the beautiful thing. So

211
00:14:55.840 --> 00:15:02.080
I actually looked at a couple of these. Let's actually look really quick. Yeah, so look at this.

212
00:15:02.080 --> 00:15:10.240
This was three bucks. I mean, $3. That's less than a latte. Totally. So the question is how valuable

213
00:15:10.240 --> 00:15:16.320
is your time, right? I think that, you know, for some people, $3 is going to be too much, right? So,

214
00:15:16.320 --> 00:15:22.560
so for instance, the typical Ralph cycle is probably 10 iterations. So you're looking at maybe 30 bucks.

215
00:15:24.080 --> 00:15:30.000
But think about how expensive and how hard that would have been with your time or developers time.

216
00:15:31.040 --> 00:15:36.800
So it becomes, you know, pretty amazing. And I'll do one plug, which is that we're about to launch

217
00:15:36.800 --> 00:15:45.600
a daily free token allowance on AMP. And so you get like 10 bucks a day. So you could do this for free.

218
00:15:45.600 --> 00:15:50.800
So, and so I think people are afraid of like, what if the agent runs by itself? Is it going to go

219
00:15:50.800 --> 00:15:56.000
off and do crazy things? And the answer is no, because you gave it a clear user story with clear

220
00:15:56.000 --> 00:16:02.240
acceptance criteria, right? It's going to be actually a pretty small thread. So, right. I mean,

221
00:16:02.240 --> 00:16:09.120
it only does a crazy thing if your criteria is crazy. Right. Yeah. So this is the whole point is

222
00:16:09.120 --> 00:16:15.840
you have these, these very small atomic user stories. So, all right. So AMP cranks, it actually finishes

223
00:16:15.840 --> 00:16:22.480
the feature, the user story. And then it commits the change, right? So it's like, okay, I did everything.

224
00:16:22.480 --> 00:16:27.760
And this is really important. This is in the system instructions for Ralph. When you finish commit,

225
00:16:27.760 --> 00:16:32.880
because you may need to roll back, right? You may need to go back and fix things. And this allows

226
00:16:32.880 --> 00:16:39.520
the agent to do that if it needs it. This is pretty standard stuff for agents. And then what it does

227
00:16:39.520 --> 00:16:45.360
next is it updates the PRD dot Jason. And if you look at this, it's going to change this from

228
00:16:45.360 --> 00:16:50.960
passes false to passes true. So awesome. It's like that person. They go back to the board and they

229
00:16:50.960 --> 00:16:58.000
put the sticky note back on and it's crossed off, right? And then this is one of the most important

230
00:16:58.000 --> 00:17:06.160
things is that it logs its progress. So this here is really important. So what's going to happen is

231
00:17:06.160 --> 00:17:10.800
when this iteration is finished, it's going to learn things. It's going to learn things about your

232
00:17:10.800 --> 00:17:16.800
code base. It's going to run into a, you know, walls and have to go around them. You don't want it

233
00:17:16.880 --> 00:17:22.080
learning that stuff every time, right? So what it does is a very simple prompt. It says, if you

234
00:17:22.080 --> 00:17:28.880
learned, if any of the files you edited have agents dot MD files in that folder and you learned

235
00:17:28.880 --> 00:17:35.520
something that's important, update that file. So not only are you, and this is what Karen and the

236
00:17:35.520 --> 00:17:41.360
team over at every absolutely crossed with their compound engineering concept is that your agent

237
00:17:41.360 --> 00:17:46.960
should be getting smarter every time it makes a mistake. And by updating agents dot MD, you're

238
00:17:46.960 --> 00:17:52.560
going to get that long term benefit. This isn't just during the situation. You're going to benefit

239
00:17:52.560 --> 00:17:58.480
every time from now on that using up for cloud code. And for people who don't know what agents dot

240
00:17:58.480 --> 00:18:04.880
MD is and the importance of it, can you give a quick primer on it? You bet. So what it's a very simple

241
00:18:04.960 --> 00:18:11.920
file. So let me mark down file and think of it as notes that you would give to a new developer

242
00:18:11.920 --> 00:18:17.200
who had never seen your code. And the neat thing is you can have an agents dot MD file in every

243
00:18:17.920 --> 00:18:24.640
every folder in your entire repo if you want. And what happens is amp well, if it amp starts

244
00:18:24.640 --> 00:18:31.280
looking at a file in a folder and it sees an agents dot MD file in that folder, it will read it

245
00:18:31.280 --> 00:18:37.040
first. So it's cool. It's like sticking out everywhere, right? So it's like if you, you know,

246
00:18:37.040 --> 00:18:41.440
have some knowledge about this part of the code base and you really want the devs to know, hey,

247
00:18:41.440 --> 00:18:46.640
before you mess with stuff, read this. That's what agents dot MD does. So you can have it at the top

248
00:18:46.640 --> 00:18:53.120
of your folders directory. So that gets read every time the agent works or you can put it

249
00:18:53.120 --> 00:19:00.400
bury it down in some subfolder so that it just reads that when it's adding that file. So that's

250
00:19:00.400 --> 00:19:05.200
really, really important. If you don't do this, you're going to have a bad time over and over again.

251
00:19:06.720 --> 00:19:12.720
And then what it does is it updates a progress dot TXT file. This is like short-term memory.

252
00:19:12.720 --> 00:19:17.520
So this is like saying, hey, during, during these 10 iterations that Ralph is going to do,

253
00:19:18.720 --> 00:19:23.600
what are some things that we're kind of learning? What are we doing? How does all this work? I'm

254
00:19:23.600 --> 00:19:28.000
actually going to show you. Actually, I won't show you the example because it's a bunch of text,

255
00:19:28.000 --> 00:19:33.440
but the idea is for each iteration, it's going to say, okay, here was the AMP thread that we used,

256
00:19:34.320 --> 00:19:38.320
which is great, because then the agent can go back and read it. So say that you get iteration 2

257
00:19:39.040 --> 00:19:43.280
and it wants to see, well, what I do in iteration 1, it can actually read that thread and figure it out.

258
00:19:44.240 --> 00:19:49.760
It also puts a couple of notes in there like, oh yeah, I probably shouldn't do that in the future

259
00:19:49.760 --> 00:19:54.320
or I should think about this. It's more of a short-term memory. Whereas agents dot MD is,

260
00:19:54.320 --> 00:20:01.520
it's long-term memory things that it really needs to remember. So that is logging in progress dot TXT.

261
00:20:02.640 --> 00:20:13.440
Anything confusing so far? Crystal clear. Nice. Okay. So what happens next? Well, then Ralph says,

262
00:20:13.440 --> 00:20:17.440
okay, is there any more stories? So it goes back up to the little board and looks for more sticky notes.

263
00:20:18.400 --> 00:20:23.840
And it says, oh, yep, there is more stories. So I just do it again. I pick a story.

264
00:20:24.400 --> 00:20:29.840
It usually picks the next one in the JSON file, but the nice thing about is it's like a human,

265
00:20:29.840 --> 00:20:34.480
it can also figure out, well, I could do that story or that story. I'll pick this one because that

266
00:20:34.480 --> 00:20:42.560
would be smarter. So it grabs it, then it implements it, it commits a change, it updates the prd.json file,

267
00:20:43.200 --> 00:20:47.840
it logs its progress updating any agents dot MD and it just does this over and over again,

268
00:20:48.800 --> 00:20:59.520
until it's done. So this, I'm going to show you again, this was a real example of me using Ralph

269
00:20:59.520 --> 00:21:09.840
today. So this morning, I built a big feature into my app. So I created the prd and then I created

270
00:21:10.000 --> 00:21:15.360
the user stories and then we cranked and we started doing this. Now this Ralph iteration took

271
00:21:15.360 --> 00:21:21.760
14 iterations to do. And just to kind of zoom into like one of these, right? What does this actually

272
00:21:21.760 --> 00:21:29.680
look like? So again, same system prompt. And now this is the keys. I think people don't get it like,

273
00:21:29.680 --> 00:21:36.000
well, why is this different than me just like using amp or cloud code like on my computer?

274
00:21:36.000 --> 00:21:42.960
And what's happening is you're getting a fresh loop every time. So you're getting a brand new

275
00:21:42.960 --> 00:21:48.320
thread or a brand new instance of cloud code every time. So you're starting fresh with a brand

276
00:21:48.320 --> 00:21:53.680
new context window, starting from fresh. So these are the instructions. This is what we're doing.

277
00:21:54.320 --> 00:22:03.840
Read the prd, do the stuff, progress report format, append to it. Here's how to append. So the

278
00:22:03.840 --> 00:22:08.400
things it's putting the progress file are the amp thread so that it can read it again.

279
00:22:09.520 --> 00:22:13.360
What was implemented, the files that were changed, any learnings for feature iterations,

280
00:22:14.080 --> 00:22:19.040
you know, patterns discovered, gotchas useful context. And then it kind of cranks through.

281
00:22:19.680 --> 00:22:26.960
And then it starts down here. And that's pretty much it. I mean, it's very, very simple.

282
00:22:27.360 --> 00:22:34.960
And with that, you can ship massive features while you sleep. And, y'all, I've been,

283
00:22:34.960 --> 00:22:39.600
you know, I got my computer science degree 26 years ago, right? I've taught a million people

284
00:22:39.600 --> 00:22:46.320
how to code, right? I've started companies with huge engineering teams, right? This loop is

285
00:22:46.320 --> 00:22:54.720
basically an entire engineering team while you sleep. It's unbelievable. And this just wasn't

286
00:22:54.720 --> 00:22:59.600
possibly four, plus four, five. I think with opus four, five, this is absolutely the real deal.

287
00:23:01.040 --> 00:23:06.880
And just wait till opus five comes out. I mean, it's so, so exciting to be alive right now.

288
00:23:07.680 --> 00:23:13.600
Yeah. And I think it's not just an engineering team. It's a high quality engineering team that

289
00:23:13.600 --> 00:23:19.440
have, you know, run by best practices. Right. For $30. For $30.

290
00:23:19.760 --> 00:23:27.840
So it's okay. Now, now in a perfect, the real world is, so let's look back at this thread.

291
00:23:28.880 --> 00:23:34.080
At the bottom, I said, you know, after I finished, I tested it manually and did find a few edge bugs.

292
00:23:34.720 --> 00:23:39.920
This is normal, right? You're going to probably run into a couple things that don't quite work right

293
00:23:39.920 --> 00:23:45.280
or perfect. But, you know, Amp and I just worked on it and cranked out fixes like really fast.

294
00:23:46.160 --> 00:23:48.720
And the feature shipped this morning.

295
00:23:50.400 --> 00:23:56.640
So that's what all the hubbub is about with Ralph. Again, it's exciting because it's so simple.

296
00:23:56.640 --> 00:24:02.160
It's a loop, right? It's grabbing a user story and doing it. It's having clear acceptance

297
00:24:02.160 --> 00:24:07.840
criteria. And then it's writing down what it learns. So that doesn't make the same mistakes.

298
00:24:08.480 --> 00:24:15.840
The last thing I will say very, very, very important, I'm going to zoom in, is this,

299
00:24:16.880 --> 00:24:24.400
this, these two steps, writing a PRD and converting them to user stories. This is where you should

300
00:24:24.400 --> 00:24:30.800
spend a huge amount of time. Like you should spend an hour on this, right? It's very, very,

301
00:24:30.800 --> 00:24:36.960
very important that you get your PRD right and that your user stories are small atomic and that you

302
00:24:36.960 --> 00:24:42.720
have clear acceptance criteria. Because if you don't take your time on that, you're going to get

303
00:24:42.720 --> 00:24:46.160
10 iterations of Ralph and you're going to end up with something that's not very good.

304
00:24:47.760 --> 00:24:53.840
And I will say one tip, one like really good at the call face with your pick as you're working

305
00:24:54.880 --> 00:25:01.680
is figure out how to connect your agent to a browser, right? So I have a specific skill,

306
00:25:02.320 --> 00:25:08.080
which is in, let me actually show you. Let's go to

307
00:25:10.480 --> 00:25:17.360
Snark Tank. I'm going to show you this repo called AMP Skills.

308
00:25:19.280 --> 00:25:26.240
If you can download all these, these are open source. Now, not open source, but this one is what

309
00:25:26.320 --> 00:25:36.720
I would use, which is your web is your browser. Okay, so dev browser use this because what this

310
00:25:36.720 --> 00:25:45.280
does is this allows AMP or cloud code to actually use your browser and test and your user stories

311
00:25:45.280 --> 00:25:53.600
that involve front end code. Remember that the agent needs to be able to test that and testing

312
00:25:53.680 --> 00:25:57.600
browser is hard for agents. So you have to give a specific skill like dev browser. This is

313
00:25:58.320 --> 00:26:02.240
a free skill that a friend of mine made. It's really good. So one small tip for you.

314
00:26:03.280 --> 00:26:09.680
Cool. We'll include that in the show notes. If people want to get started today, how did they get

315
00:26:09.680 --> 00:26:17.120
started with Ralph? So I would probably go to this repo. So just go to get hub.com,

316
00:26:17.120 --> 00:26:22.880
forward slash, snark tank, forward slash Ralph. It's completely free. Look at the code, but just

317
00:26:22.880 --> 00:26:29.040
tell your agent to look at this code. So tell your agent to go set it up if using AMP great,

318
00:26:29.040 --> 00:26:33.760
you know, and it will crank it out. Get it all set up and then say, okay, I want to, you know,

319
00:26:33.760 --> 00:26:37.760
ship my first feature. How do I do it? And it will walk you through it.

320
00:26:39.680 --> 00:26:44.640
And you believe that even if you're non-technical, you can do it?

321
00:26:44.720 --> 00:26:50.240
Yeah. I think you need to be curious. I think you need to have agency,

322
00:26:51.280 --> 00:26:54.400
but I think if you have those two things, what you probably do if you're watching the show,

323
00:26:56.160 --> 00:27:00.320
you can do this. Now it helps to be technical, right? There's a couple of things that are

324
00:27:00.320 --> 00:27:04.800
useful, but I think we're now in a world where if you want those skills, you can acquire them

325
00:27:04.800 --> 00:27:10.960
very, very quickly. And I'd encourage you go out there and get your hands dirty. That's the

326
00:27:10.960 --> 00:27:16.000
most important thing is use the thing, figure out how it works. And then if you don't get it,

327
00:27:16.000 --> 00:27:21.600
ask AMP, ask log code like you have this superhuman tutor to help you. So just ask that.

328
00:27:22.960 --> 00:27:30.400
Ryan, thank you so much for coming on. You explain this exactly how I wanted you to crystal clear,

329
00:27:31.120 --> 00:27:37.520
unbelievable. I would love to have Ryan back on the pot if he would come back. But you know,

330
00:27:38.320 --> 00:27:42.000
would you, A, would you come back on the pot? Let's do it. I love you. Let's share as much

331
00:27:42.000 --> 00:27:49.520
knowledge as we can. And I want that comment section on YouTube buzzing for Ryan, because listen,

332
00:27:49.520 --> 00:27:54.560
it might, it might look easy. Now you might be like, oh, I get Ralph. That was super easy, but it's

333
00:27:54.560 --> 00:28:00.000
because he explained it in a simple way, which, which I think is the beauty about you, Ryan. So

334
00:28:00.080 --> 00:28:06.800
thank you so much. I'll include links for all of this to get started. Links to follow Ryan on X,

335
00:28:07.440 --> 00:28:13.120
you know, links to AMP, links to cloud code and Ryan, anything else you want to make mention to.

336
00:28:13.680 --> 00:28:17.600
Well, thanks Greg for your content. Like it is a big unlock. I think if people want to learn

337
00:28:17.600 --> 00:28:22.480
these things, they can. And your content is a big piece of that. And the second thing as I would

338
00:28:22.480 --> 00:28:29.120
say is you do not need a computer science degree. Y'all, you can do these things. Like if you are

339
00:28:29.120 --> 00:28:36.720
curious and hardworking, you can now do anything. And now is your moment. So if you've got an idea,

340
00:28:36.720 --> 00:28:41.520
build, build, build. Yeah, cool watching us right now. Get out of here. Go cut out of here.

341
00:28:42.400 --> 00:28:45.040
All right. We'll see you next time. Thanks again, Ryan.
