Modern Creator
Cole Medin · YouTube

I Was Wrong About Ralph Wiggum

A 21-minute course correction: the Anthropic plugin is not the real Ralph Wiggum, and the real one can build a working app overnight.

Posted
5 months ago
Duration
Format
Tutorial
educational
Views
16.4K
506 likes
Big Idea

The argument in one line.

Ralph Wiggum becomes a powerful proof-of-concept tool when paired with structured PRD planning and clear validation criteria, enabling autonomous app development in hours rather than vibe-coded dead ends.

Who This Is For

Read if. Skip if.

READ IF YOU ARE…
  • You're exploring a new feature or architecture idea and need to validate it with a working proof of concept before committing to production code.
  • A developer who has dismissed Ralph Wiggum based on surface-level exposure (like the Anthropic plugin) and wants to understand its actual capabilities with structured planning.
  • You're in the early exploratory phase of a project and want to rapidly spin up multiple application versions to test different tech stacks or approaches.
SKIP IF…
  • You're building production-grade applications where code quality, maintainability, and rigorous testing standards are non-negotiable from day one.
  • You already have a mature AI coding workflow for complex projects and aren't interested in proof-of-concept tooling or exploratory-phase acceleration.
TL;DR

The full version, fast.

The Anthropic plugin most people associate with Ralph Wiggum is not the real thing, and dismissing the loop based on it misses the point. The real Ralph is a philosophy: a bash loop that re-invokes a coding agent on a fresh context window each iteration, anchored by three files � a PRD that lists every feature with explicit validation steps and a passes flag, a prompt that re-loads scope each turn, and an activity log that carries state forward. The exit condition is every feature marked passing after the agent validates its own work through browser automation. Used this way, Ralph is not for production code; it is for spinning up full proof-of-concepts overnight to validate architecture and tech-stack choices before committing to the real build.

Free for members

Chat with this breakdown — free.

Sign in and you get 23 free chat messages on us — ask for the hook, quote a framework, find the exact transcript moment, generate a markdown action plan. Bring your own key when you want unlimited.

Create a free account →
Chapters

Where the time goes.

00:0002:55

01 · The Retraction + Reframe

Cole credits Geoffrey Huntley (creator) who commented on his previous video and shared the real Ralph philosophy. States the single takeaway: Ralph is for proof-of-concept validation, not production apps.

02:5504:18

02 · Planning Is Everything

Introduces the ralph-loop-quickstart template. Argues the harness only works with a structured, clearly-scoped plan. Without clearly defined goals these harnesses do not work.

04:1805:39

03 · Setting Up the Right Way

Walks through the full README: /create-prd slash command, ralph.sh bash script, settings.json sandbox mode, Vercel Agent Browser CLI for self-validation.

05:3909:47

04 · How the Ralph Loop Works

Explains the three key files: PROMPT.md (per-loop context), PRD.md (atomic task list with passes flags), activity.md (long-term memory). Only exit: every feature passes true. References Anthropic effective harnesses post.

09:4713:48

05 · Live PRD Creation

Runs /create-prd on camera. Claude Code asks multi-choice discovery questions. Cole builds PRD for agent-driven habit tracker (Clerk + Neon + OpenRouter). 19 tasks, 0 complete.

13:4816:03

06 · Agent Rules and Safety

Shows CLAUDE.md global rules: test Clerk credentials, Neon migration permissions, .env blocked from reading. settings.json sandbox mode limits what commands the agent can run.

16:0317:00

07 · Kicking Off the Loop

Runs ./ralph.sh 50. Sets max 50 iterations. Cuts to next day.

17:0020:55

08 · Showcase: Completed App

Next day reveal. 19/19 tasks passing. Live demo: dark-mode AI Habit Coach dashboard, habit check-off grid, goal tracking, AI coach chat with conversation history in Neon. Total LLM cost: about 7 cents.

20:5521:21

09 · Conclusion + CTA

Like and subscribe ask. Teases upcoming video on full agentic workflow for production-scale projects.

Atomic Insights

Lines worth screenshotting.

  • The Anthropic official Ralph Wiggum plugin is not the real Ralph Wiggum — it doesn't even reset the context window, which defeats the entire purpose of the loop.
  • Ralph Wiggum is a philosophy, not a framework: treat each loop as a clean-slate agent run with a structured PRD as the only persistent context across iterations.
  • A PRD created in five to ten minutes using a /create-prd skill that interviews you is the minimum planning artifact required for Ralph Wiggum to produce reliable results.
  • The activity.md file — a log of what each loop implemented and how many PRD tasks are complete — gives the agent long-term memory without relying on a conversation history.
  • Agent harnesses for long-running tasks are most valuable for proof-of-concept validation — they can build multiple entire application versions to stress-test architecture choices before production.
  • Running Ralph Wiggum in sandbox mode with a restricted set of allowed commands lets the loop run for hours without risk of it going haywire on the file system.
  • The Vercel agent browser CLI gives Ralph Wiggum a validation loop — the agent can check its own work in a browser after each iteration before moving to the next task.
  • Proof of concepts built with Ralph Wiggum are not throwaway code — they validate architecture, tech stack, and feature scope at a speed that justifies the method even for enterprise work.
  • The PRD scope must be clearly defined and bounded for the Ralph loop to succeed — vague goals produce vague loops that never converge on a working application.
  • Ralph Wiggum's creator Jeffrey Huntley builds extensive planning into the loop, which Cole Medin missed by focusing only on the official Anthropic plugin in his original review.
  • Adding structured planning upfront transforms Ralph Wiggum from a vibe-coding toy into a legitimate autonomous build harness with a defined completion state.
  • A single /create-prd command that interviews you and generates the scope document represents the minimum viable planning discipline for any agent-driven long-running build.
Takeaway

A Proof-of-Concept Harness Built on a Structured Plan Can Build a Working App Overnight for Seven Cents

Autonomous coding agents

Cole Medin's retraction shows that the failure mode he criticized was not the harness — it was the missing planning layer. With a structured PRD as the input and atomic flagged tasks as the exit condition, an autonomous agent loop produced 19 passing features without human intervention.

01The Retraction + Reframe
  • The original dismissal was based on the Anthropic plugin version — the creator's intended philosophy includes extensive planning that the plugin does not enforce
  • Ralph Wiggum is for proof-of-concept validation, not production apps — that scoping constraint is what separates legitimate use from hype
02Planning Is Everything
  • The harness only works with a clearly-scoped, structured plan — without defined goals and atomic tasks, the loop has no reliable exit condition
  • The ralph-loop-quickstart template provides the planning scaffold — use the template, not a blank CLAUDE.md
03Setting Up the Right Way
  • /create-prd slash command, ralph.sh bash script, settings.json sandbox mode, and a browser CLI for self-validation are the four setup components
  • Self-validation via browser CLI means the agent can test its own output — the loop does not rely on human review between iterations
04How the Ralph Loop Works
  • PROMPT.md (per-loop context), PRD.md (atomic task list with pass flags), activity.md (long-term memory) — three files, clear separation of concerns
  • The only exit is every feature marked true — an incomplete PRD means the loop runs until the iteration cap, not until the work is done
05Live PRD Creation
  • Claude asks multi-choice discovery questions to build the PRD — the planning step is a conversation, not a blank document
  • 19 tasks, 0 complete at kickoff — the PRD is the contract the agent will fulfill
06Agent Rules and Safety
  • CLAUDE.md global rules test credentials, set migration permissions, and block .env from reading — explicit permission rules are not optional for overnight runs
  • Sandbox mode in settings.json limits the command surface the agent can reach — scope the permissions to the minimum the task requires
08Showcase: Completed App
  • 19/19 tasks passing after an overnight run: dark-mode AI habit coach, check-off grid, goal tracking, AI coach chat with conversation history
  • Total LLM cost: approximately seven cents — the economic case for autonomous proof-of-concept builds is clear when the input is a well-structured PRD
Glossary

Terms worth knowing.

Ralph Wiggum
An open-source agentic loop framework where Claude Code runs in a repeated bash loop, autonomously tackling development tasks one at a time until a project is complete.
vibe coding
Using an AI to write or generate code through loose natural-language prompts, without the developer maintaining close control over each decision — often contrasted with structured, plan-first coding.
agentic loop
A programming pattern where an AI agent runs repeatedly in cycles, completing one task per iteration and updating a shared log, until a defined completion condition is met.
PRD (Product Requirements Document)
A structured planning document that lists the features, tech stack, and success criteria for a software project — used here to give the AI a clear scope before it starts coding autonomously.
context window
The maximum amount of text (instructions, code, conversation history) an AI model can hold in memory at once during a single session.
context bloat
The problem that occurs when a single AI session accumulates too much history, degrading performance — agentic loops mitigate this by resetting context between iterations.
completion token
A specific phrase or signal an AI agent outputs to indicate it has finished all its tasks — used as the exit condition to stop a looping automation.
browser automation
Programmatically controlling a web browser to perform actions like navigating pages, clicking, and filling forms — used here so the AI can test its own applications end-to-end.
Vercel agent browser CLI
A command-line tool that lets an AI agent control a browser session for automated testing and validation of web applications.
sandbox mode
A restricted execution environment that limits which commands an AI or script is allowed to run, preventing it from accidentally deleting files or making irreversible changes.
Neon
A serverless PostgreSQL database service that scales to zero when idle, commonly used for Next.js and other cloud-hosted web applications.
Clerk
A managed user authentication service that handles sign-up, login, and session management, letting developers add auth to an app without building it from scratch.
OpenRouter
An API gateway that provides unified access to multiple AI language models from different providers under a single API key and billing account.
Drizzle ORM
A TypeScript-native database library (Object-Relational Mapper) that lets developers query and manage SQL databases using JavaScript/TypeScript code rather than raw SQL.
SHADCN
A collection of accessible, copy-paste React UI components built on Tailwind CSS, commonly used to quickly add polished interface elements to Next.js projects.
proof of concept (POC)
A minimal working prototype built to validate whether an idea, architecture, or technology works before committing to building a production-ready version.
regression testing
Re-running tests on previously working features after new changes are made, to confirm that nothing that used to work has been accidentally broken.
Resources

Things they pointed at.

03:40linkJared Blue Ralph Wiggum Guide
08:07linkAnthropic: Effective harnesses for long-running agents
02:55toolVercel Agent Browser CLI
02:55productClerk
10:28toolOpenRouter
10:28toolDrizzle ORM
10:28toolshadcn/ui
Quotables

Lines you could clip.

09:09
Ralph Wiggum is more of a philosophy than it is a framework.
Clean, quotable reframe that stands alone without setupTikTok hook↗ Tweet quote
02:22
These harnesses do not work well if you do not have very clearly defined goals.
Universal truth applicable beyond Ralph WiggumIG reel cold open↗ Tweet quote
20:03
You only have to have your hands on the keyboard for about ten minutes. Otherwise, you just let it rip.
Visceral efficiency claim with a memorable image -- the dream of autonomous buildTikTok hook or newsletter pull-quote↗ Tweet quote
19:56
It only used about 7 cents.
Shocking cost anchor after 5 hours of autonomous agentic workTikTok hook↗ Tweet quote
The Script

Word for word.

Read-along

Don't just watch it. Burn it in.

See every word as it's spoken — crank it to 2× and still catch all of it. The same dual-channel trick behind Amazon's Kindle + Audible.

metaphorstory
00:00Recently, I called Ralph Wiggum the peak evolution of vibe coding, and I did not mean that as a compliment.
00:07If you've been on my channel before, you know that I'm not a fan of vibe coding. We need to be in the driver's seat when we're working with our coding agents. So, yeah, I was in the camp of Ralph Wiggum is overhyped, let's just move on.
00:20But after learning about it more recently, I'm honestly not so sure about that stance anymore. Now, don't get me wrong. It is still vibe coding to an extent and so a lot of what I covered in the last video still stands true.
00:33But one of the biggest gripes that I had with Ralph Wiggum is that there's no planning process really built into it or at least I thought because I was really focused on the Anthropic plug ins specifically for Ralph Wigham. But this my friend is not the official Ralph Wigham. And actually after I put out this video, Jeffrey Huntley, the creator of Ralph Wigham, he commented and he shared some resources, some videos on his channel, which I'll link to in the description, where he talks about how he builds extensive planning into Ralph Wiggum.
01:04Treating Ralph Wiggum as a philosophy versus this really shiny object framework like Anthropic has presented to us. And so there's a lot more to Ralph Wiggum than you would think.
01:14That's what I wanna cover with you in this video. Now, I am absolutely not saying that with proper planning, Ralph Wiggum is the best thing in the world. In fact, even in my last video, I said that when we add planning upfront to guide our coding agent, it is still not enough.
01:29And so if you really want to see what my process looks like starting complex projects from the ground up, I got a video on my channel coming soon for that, so definitely stay tuned. But there's still a lot more use cases for Ralph Wiggum than I outlined in that other video because proof of concepts are a very powerful thing.
01:47Even when I was working in an enterprise setting, a lot of times I would be building proof of concepts to prove out ideas to upper management or even myself as I'm in the exploratory phase. And it is just fascinating that with AI coding assistance and philosophies slash tools like Ralph Wiggum, our exploratory phase can literally go so far as to build out multiple entire versions of our application as a proof of concept to validate things like our architecture and our tech stack.
02:16That is as long as you have a structure plan. These harnesses do not work well if you don't have very clearly defined goals, and that's one of the things I'll show you in a little bit. So if there is a single takeaway for you to have from this video, it's that at least in my humble opinion, the real use of Ralph Wiggum and any agent harness for long running tasks is validation of your own ideas.
02:38Because now with these tools and frameworks, it is so incredibly easy to build even multiple entire proof of concepts to make sure you're heading in the right direction before you go build the full production ready application applying your more rigorous AI coding workflow.
02:53And that's what I'm gonna show you how to do right now. So I have this template that I'll link to in the description. You can use this to create a plan for the Ralph Wiggum loop in literally just five to ten minutes.
03:04And as long as it is a clearly defined scope in your plan, you can send this off to the Ralph loop and it'll build a beautiful proof of concept for you. So I'll cover how this works and then I'll do a live demonstration with you. And so we'll build something that's not even that trivial.
03:19We'll be using Neon for the database, Clerk for authentication, the Bracel agent browser CLI, so we have the validation loop within Ralph Wiggum. That's also super important.
03:29And so you'll see by the end of this, so we can use this to build proof of concepts very, very quickly. And you can apply this to anything you'd want to make.
03:37Alright. So let's get into this now and build something out together. And credit where credit is due, what I have for you here is very inspired by Jared Blue's Ralph Wiggum guide.
03:47So this is one of the resources that I looked into when I wanted to really see how to use the Ralph Wiggum loop, not following the Anthropic official plug in which is not the real Ralph Wiggum. And again, focused on that way too much in my last video. And so I took a lot of inspiration from this, but I built something that I customized a lot for you to make it as easy to start as possible.
04:08And so scrolling past the introduction here where I also talk about why we're not using Anthropic plug in because it doesn't even reset the context window. Like, it's just a bad idea to use it. Here we get to the prerequisites.
04:19So you can use Ralph Wiggum with any coding agent. I just have it set up to use Claude code in the actual, uh, Ralph loop. So this is the bash script that drives everything with the Ralph Wiggum loop.
04:30And then going back to the read me here, I'm also using the Vercel agent browser CLI for browser automation because a big part of the loop is we want the agent to be able to check its own work at the end of each loop before we go to the next one. So you could use something like the Playwright MCP as well. This is just my preferred tool.
04:46I also made a video on it recently. And then we have all of the project files already set up ready for you to go. So I'll talk about this more in a little bit.
04:55But the process for using Ralph Wiggum with structured planning here is super simple. And so we start with this create p r d slash command that I've built for you. And so again, using Clive code here where you can invoke create PRD and it'll ask you questions, basically doing the discovery for your application to figure out all the context that it needs to create the structure plan for you.
05:18It'll even do research if you wanted to and then it'll generate this PRD. This is the list of features that you have to knock out to build your entire proof of concept. So this is the main context that goes into the Ralph Wiggum loop.
05:32And then there are some other markdown files that we have here. So I wanna explain this really quickly and then I'll talk more about how the actual loop works. And so first we have the prompt dot m d.
05:42So this is the context that we send into Ralph every single time we do a loop. And so as a part of it, we're also telling it to read the PRD so it has the full scope of work, what are we building for this proof of concept, and then also the activity dot m d.
05:57This is the markdown file where we keep track of what has happened in previous loops. And so every time we end a loop, we're going to update this file as one of our last steps. So we have this basically long term memory for the loop.
06:11So every single iteration we know what was implemented already. We can see like how many tasks, uh, from the PRD have been completed, last time that is updated, things like that. And so again going back to the read me here, after you create your PRD, you're going to have a prompt on MD that is customized to what you're gonna build.
06:28Obviously, the scope of work customized too, and then you'll have your settings dot JSON. So we have security built into Cloud Code as well. It's running in sandbox mode.
06:37So we're going to be doing a lot of trusting here running the Ralph Wingham loop, but at least we can limit the specific commands it can run. So we can let this go for a while and it's not just gonna go haywire and delete everything from our computer. So we have the settings dot JSON here to prevent the things that it can do and it only allows certain actions.
06:55So very important to have that as well. That's another one of those things that's not built into the anthropic plug in when it really should be included in the guide and that's why I want to give it as a part of the guide for you here. And so once we have all this set up and we have our PRD that is when we can run the Ralph loop.
07:12And so this is the classic bash script because all Ralph is is just running Claude code in a bash loop. And so there's a bit more here than I really need to explain. The main thing though is we check to make sure we have all the files that we need, our prompt PRD and activity markdown documents, and then we start the loop.
07:28So we can limit the number of iterations as well. We can specify the max iterations, but otherwise what we're going to do is run Claude at just piping in this prompt. So it knows like here's your PRD, here's the activity log, now go and knock out the next feature.
07:43And the really cool part about our PRD, I'll show you this here, that the feature list is structured in exactly the same way as it is in the anthropic harness for long running agents. So I covered this on my channel as well.
07:57There's a lot of really great takeaways from this and one of the big things to be learned from Anthropic harness is how they list out the features that need to be knocked out for us to be able to say the application is actually complete. And so it's this combination of we have the category, the feature description, the steps for validation when in our case we're using the Vercel agent browser CLI.
08:19And then also this flag, is the feature working or not? And so the only time that we tell Ralph, you are allowed to do that completion token.
08:28So we have this, like, know, like when you're done, that is when you can say promise complete. The only time that we're allowed to output this to exit the Ralph loop is when passes is true for every single feature that we have in our PRD. Right?
08:44Like this it's important to key in on this here for a sec because this is our only exit condition. Otherwise, this Ralph loop is going to run forever or until we reach the max iterations. And then like I said earlier, at the end of every single loop, we're also going to update the activity log here.
09:00So that's essentially how we take the output of one agent and we feed it in as the input for the next in the next loop of Ralph. And that's pretty much everything to cover in the loop here and also everything that I have in the read me. So I just wanted you to understand exactly how Ralph works because it's more of a philosophy than it is a framework.
09:19It's how can we keep track of state over time having many different agents knocking out these different features in different context windows so we avoid context bloat. That's also the main thing that I had as a takeaway from Anthropix harness as well. And so with that, let's go ahead and start from the beginning together.
09:37I have a completely empty code base here besides the template. I'll start by creating the PRD, we'll build an entire application together and I'll show you the end results as well. Alright.
09:47So over in Claude now, this is the only time that I'll run the Claude command myself because once we have our PRD, then I just run the Ralph Bash loop and that's it. And then at the end, we'll have our full application.
10:00Hopefully, things are working perfectly. Fingers crossed. So little bit of vibe coding, but this is the driver's seat part right here creating our plan.
10:08And so we're having the coding agent walk us through a bunch of questions so it can create the plan, but it's still us determining things like the tech stack and architecture. So we'll see this in just a second here. So for each of the questions that Claude asks you to help create the PRD, it's multiple choice and you can also type out your own answers.
10:27So this is using one of the new features in Claude where it can ask questions natively in the CLI. It's super cool. And so I added multiple choice just in case you wanna rip through things really quickly and get to the Ralph Wiggum loop.
10:38Generally though, the more specific the better. So I will type out all the answers myself. And for the application, I have a pretty awesome idea to throw at Ralph Wiggum here.
10:47I wanna create an agent driven habit tracker application. Because keeping track of our habits, it's pretty important. So being able to check them off each day, but using an agent to give suggestions for us and helping keep us accountable.
11:00And so I'm gonna be using Clerk for authentication, Neon for the database to keep track of conversation history, and OpenRouter for the LLMs for the agent. And so it's not a super trivial application overall, and I wanna be quite specific about my tech stack here.
11:14So I'm gonna answer this question and all the other ones off camera just to not have to bore you with going through the details there. And I'll come back after and show you what I planned for the PRD. Okay.
11:24So our PRD is now generated. I wanna show you my answers to the questions really quickly if you wanna take inspiration from this to go through this whole process yourself. And so first of all, I said I wanna build an agent driven habit tracker application just like I described to you.
11:40And then all the text in gray here, this is the question it asked me and the answer that I gave as well. So it asked me who the audience is. I just said general personal users.
11:50I listed some of the features that it suggested to me actually. And so one of the things I love doing with coding agents in the planning phase is I keep myself in the driver's seat by still having it make recommendations to me, but in the end, I'm the final one to say, yes, this is our tech stack or these are the features that I want to implement.
12:08And so it asks about the tech stack, speaking of that. And so this is where I specify that I wanna use Clerk for my authentication, Neon for my serverless Postgres, and then I have an API key set up in OpenRouter as well.
12:21And so this API key is going to be slowly exhausted as Ralph Wiggum runs the validation with the Vercel agent browser SDK. So as a protection, I have a $5 limit here. So I will be spending real money in order to go through the loop, but I'm already spending real money for the coding agent anyway.
12:40And so as long as you have limits to make sure it doesn't go in infinite loop and exhaust all of your API credits, then you're good. So protection's in place.
12:48I've got that covered. And then it asked me for some other ideas for the tech stack as well. So I'm gonna be using Next.
12:54Js and Tailwind. I'm going to be using Drizzle for the ORM. So a couple of different things just to finish off the tech stack, SHATCN as well.
13:02That's the main thing that I asked about deploying to Vercel, which I don't really care about deployment currently, but it's, I guess, good that I asked that too. And then the last question, understanding the success criteria. So when can we actually exit from the Ralph Wiggum loop?
13:17And I just said once we have all of the features marked as done in the PRD so that it knows like, okay, we're using Ralph Wiggum. We have to knock out everything in the PRD. Only then can we exit the loop.
13:28And now finally, with all those questions answered, I know takes a bit of time, but it's worth doing that to create the structure plan because now it edits all of the placeholders that we have here. It crafts a prompt that is specific to how we wanna start our application.
13:42It gets the activity log kicked off for us here. We have zero out of 19 tasks complete. And then we have our PRD.
13:49This is the single source of truth or what we are building here with Ralph Wiggum. And so we have things that we decided together with our agent in planning, the target audience, the core features. The most important thing though is the task list that we have here.
14:05And so step by step here are all the things that you're gonna knock out. So generally, each loop of Ralph Wiggum is going to focus on one of these tasks.
14:14And so it's not always a one to one, but we'll run something around 19 loops to implement all 19 of these tasks. And then one other custom thing I wanna show you quickly before we run the loop is there's some things that I added to my global rules, my claw .md. And depending on what you're building, you might have to do something like this as well.
14:35Because think about it, we have our agent doing self validation with browser automation tools. So it's gonna create this habit tracker front end and it's going to visit it and navigate it as a user would. But it's gonna have to sign into Clerk.
14:48It's gonna have to set things up in our database. It needs environment variables. And so I'm telling it, here's this test account that I already made in Clerk.
14:56You can use this to sign in with username and password authentication. And then I am specifically prohibiting it from reading the dot ENV file.
15:06This is blocked in the settings dot JSON. But I'm telling it here that you can't read the dot ENV, but within it I already have set the credentials you need for clerk, for authentication, for postgres, you can run the migrations and create the tables, and the open router API key and open router model so you can set up everything to interact with the LLM as well.
15:26So everything that it needs to test the complete end to end application I have set up for it here. I don't want it to mock things, I don't want it to just create unit tests, I want it to be able to verify the entire application just like I would when I do manual validation because that way once the control is passed to me with all these loops that I've run, things are actually working well and verified.
15:47And so we can leverage what's in the dot ENV without reading it itself. So we finished creating our PRD, it made all these changes to these files and created our PRD.
15:57After it does that, I would recommend validating these files to make sure everything's aligned with the goals that you have for the project. Then we go into running the loop, and it is as simple as just simply running this Ralph Bash script. This is going to kick off Claude and then just work in the cycles until we have that completion promise.
16:14And so I'm gonna go into my terminal here. I'm going to exit out of Claude because we're not running Claude ourself, we're just running the loop and the loop itself calls Claude. And so I'll open up a new window here, paste in ralph.sh and then 20 for 20 max iterations.
16:30You can do this however you want. Whatever you wanna do to prevent burning hundreds of thousands of tokens, you could do 10 if it's something simpler, but I would recommend something around twenty and twenty five. I'll just do 50 because I just wanna be absolutely sure that it gets through the end here.
16:44And I have the MaxClod subscription, I know that I'm not gonna run out of tokens here. So I'll send this in, and there we go. We are starting in three seconds.
16:51And so what I'm gonna do here is I'm going to pause, and I'm gonna come back once we have this promise, once the application is fully complete and we will see the results together. Alright. I am back the next day and the application is completely finished.
17:05I ran it overnight. I didn't actually need that much time. I think it took about five hours to do everything, including all of the validation.
17:12And so take a look at all the artifacts that we have here. So we have the screenshots directory, all the different images that it took as it was building the application.
17:20I had it switched to a dark theme towards the end here, so we'll see that in just a second. There we go. So things start to, like, really shape up and actually look fantastic.
17:28We have all of the AI coach features built in as well. We have our activity logs. We can see essentially the long term memory for the Ralph Wiggum loop.
17:37Every single loop, it updated this file with its progress and the things it did for validation. We have our PRD and scrolling down to the big part right here. Every single one of the features passes is set to true because we are done done.
17:52And going to our read me here, we have instructions for how to spin this up ourselves. So generally, after you build out a proof of concept, you still wanna do the manual validation even though we have the browser automation tools for the agent to do it itself. But ideally, since it did all the checks itself and even all the regression testing, what we see now should work really, really well.
18:12And so I followed all these instructions to get it set up, and I've got the site running right here. So we got our sign in page with our Clerk integration, so I'll go ahead and sign in with the, uh, just test user that I created here. So my password, this is the same one that I told it to use to sign into the account.
18:29So I'll go ahead and continue. Very good. Take a look at that.
18:32So we can go to our dashboard here. And man, this is looking really beautiful. And take a look at this.
18:38It even generates this little like AI encouragement message every single time I visit. I can refresh the page as well. Don't know if I wanna do that every single time.
18:46It's a little bit expensive, but this is super cool. And so I can go to my habits here and I can see all my habits. I can check them off or uncheck them.
18:54I can add new habits like let's say, uh, drink coffee. I wanna drink coffee every morning. Uh, do it daily.
19:00Description optional. Very good. Create habit.
19:02Boom. Take a look at that. Drink coffee.
19:04This is amazing. We have our goals here so we can set longer term goals. We have the coach tab so we can see insights.
19:11So the agent is running I don't know exactly how often it does this, but it's generating insights based on the goals and habits that we set and how we check them off over time. User struggles with maintaining exercise motivation after initial strong start.
19:25So I guess as it was going through the testing here, it kind of like phased out checking things off. It's probably why it says this. This is super cool.
19:31I can ask the agent what habits should I focus on to improve my productivity, and I can have a conversation with my PadNTAI agent running under the hood. It's storing all the information, the conversations in my Neon database.
19:44Like, this is actually fantastic. Maybe I should do some better markdown rendering here. So, like, certainly there are some things especially the UI that should be touched up like the rendering and the spacing of the components here.
19:55But overall, like, this is fantastic. It built this entire thing for me end to end.
20:01I didn't do any human in the loop until the very end here. So I wouldn't trust this entirely to be the perfect application.
20:08But for a proof of concept, this is exactly what I need. If I'm just trying to validate an idea, just see it in action, maybe validate my architecture or tech stack, Like I said, this is the real purpose of the Ralph Wiggum loop.
20:20And it wasn't that expensive overall. I mean, yeah, it used a lot of tokens. I don't know exactly how many tokens with Claude code.
20:26But as far as all the testing that it did using the LLM for the agent coach, it only used about 7¢. I was using Claude Haiku 4.5 as my model. And so it did dozens and dozens of interactions with the coach and it was still really cheap.
20:40So overall, it was relatively fast, pretty reliable. Like, what I got back here is enough for me to validate any kind of proof of concept I would want. So that my friend is the real purpose of the Ralph Wiggum bloop, and I would encourage you to try this out now.
20:55I'll have the template linked in the description. You can go through the exact same process I did, you only have to have your hands on the keyboard for about ten minutes. Otherwise, you just let it rip and build something pretty awesome like this.
21:06So if you appreciate this video and you're looking forward to more things on AI coding, I would really appreciate a like and a subscribe. I got a lot more content coming soon around my techniques for agentic engineering. And with that, I will see you in the next video.
The Hook

The bait, then the rug-pull.

Cole Medin built his audience on skepticism toward vibe coding, so when he opens a video saying he was wrong about the tool he publicly called its peak evolution, you stay. The retraction is the hook, and what follows reframes the entire debate: Ralph Wiggum was never meant to be vibe coding in the first place.

Frameworks

Named ideas worth stealing.

00:00model

Ralph Wiggum Loop

  1. Fresh Claude Code context per iteration
  2. PRD with passes true/false feature flags
  3. activity.md long-term memory between loops
  4. Completion token exits loop only when all features pass
  5. Browser automation for self-validation

A bash loop that calls Claude Code repeatedly, passing the PRD and activity log each time, until all features are validated passing.

Steal forAny multi-day autonomous build task where you want to walk away and return to a finished thing
02:55concept

PRP (Project Requirements Plan)

Structured PRD format where each feature has a category, description, validation steps, and a boolean passes flag. The agent cannot claim completion until all are true.

Steal forAny project kickoff with an AI coding agent -- use this instead of vague instructions
04:51concept

/create-prd slash command

A Claude Code slash command that runs discovery questions (multi-choice + free text), does optional research, and generates a structured PRD ready for the Ralph loop.

Steal forBuild a /create-prd equivalent for any agentic project kickoff
08:07model

Anthropic Effective Harnesses for Long-Running Agents

Anthropic blog post whose feature-flag completion pattern directly inspired the PRD structure in this template.

Steal forReference architecture for any agent harness design
CTA Breakdown

How they asked for the click.

VERBAL ASK
20:55subscribe
If you appreciate this video and you are looking forward to more things on AI coding, I would really appreciate a like and a subscribe.

Soft, earned -- comes after an impressive live app showcase. Teases next video on production-scale agentic workflow to keep viewers in the series.

FROM THE DESCRIPTION
AFFILIATECommission earned if you click.
OTHER LINKSAlso linked in the description.
Storyboard

Visual structure at a glance.

intro animation
hookintro animation00:00
Ralph Wiggum diagram
hookRalph Wiggum diagram00:24
GitHub README
promiseGitHub README02:55
PRD setup
valuePRD setup05:39
Anthropic harness post
valueAnthropic harness post08:07
Live /create-prd
valueLive /create-prd09:47
CLAUDE.md safety rules
valueCLAUDE.md safety rules13:48
Loop kicked off
ctaLoop kicked off16:03
Completed habits app
ctaCompleted habits app17:00
Dashboard showcase
ctaDashboard showcase20:00
Frame Gallery

Visual moments.

Chat about this