Dream Labs AI · Youtube · 09:59

The Karpathy File That 10x'd My Claude Output

A 10-minute side-by-side proof that one CLAUDE.md file eliminates AI slopocalypse — fewer assumptions, half the code, surgical edits, goal-locked execution.

Posted
May 18th 2026
3 days ago
Duration
09:59
Format
Tutorial
educational
Channel
DL
Dream Labs AI
§ 01 · The Hook

The bait, then the rug-pull.

When a tweet from Andrej Karpathy hits 7.7 million views — and the literal creator of Claude Code replies saying all these points resonate — you stop and pay attention. Dream Labs AI did the work so you don't have to: one CLAUDE.md file, one install command, and suddenly your AI stops sprinting in the wrong direction.

§ · Stated Promise

What the video promised.

stated at 00:24 "I'm gonna show you exactly what this file is, how do we get it installed, and then we're gonna put it to the test to see if we can transcend what Andre Kapathi is calling the slopocalypse." delivered at 08:56
§ · Chapters

Where the time goes.

00:00 – 00:43

01 · Cold open — authority hook

Establishes Karpathy's credibility (OpenAI cofounder, Tesla AI head), teases the 10x claim and the slopocalypse frame, asks for a like.

00:44 – 02:47

02 · The 4 problems Karpathy named

Walks through the viral tweet: doesn't think before working, overcomplicates output, can't make thin-slice edits, works for work's sake (not goal-driven). Boris Cherny (Claude Code creator) and Elon Musk cameos.

02:48 – 04:03

03 · Install in one command

Shows the GitHub repo (131K stars), explains how to paste the URL into Claude Code and let it pull the file down automatically.

04:04 – 06:09

04 · Demo 1 — Think First

Side-by-side terminal: without the file Claude builds a lead magnet immediately on a vague prompt; with the file installed it stops and asks 4 clarifying questions before touching a line of code.

06:10 – 07:28

05 · Demo 2 — Simplicity (minimum code)

Same lead magnet output compared: 212 lines without the file vs 108 lines with. Pixel-identical result, half the codebase.

07:29 – 08:55

06 · Demo 3 — Surgical changes

Live edit: make the button orange with file installed changes only the button. Without the file, make the button green turns the whole site green. Comic moment, lesson lands cleanly.

08:56 – 09:59

07 · Demo 4 — Goal-driven execution + CTA

Explains goal-driven looping: Claude defines success criteria and won't stop until it passes. Bridges to a follow-up Karpathy second-brain video and asks for subscribe.

§ · Storyboard

Visual structure at a glance.

open
4 problems
GitHub install
Think First demo
212 vs 108 lines
button demo
goal-driven
§ · Frameworks

Named ideas worth stealing.

01:47 list

Karpathy's 4 LLM Failure Modes

  1. Doesn't think before working
  2. Overcomplicates the output
  3. Hard to make thin-slice edits
  4. Work-driven, not goal-driven

Karpathy's diagnosis of why current LLMs produce sloppy output when used as coding agents.

Steal for Any video or post explaining AI limitations — this 4-item frame is already viral and you can reference it directly
04:04 list

Karpathy-Inspired CLAUDE.md — 4 Behavioral Upgrades

  1. Think First — clarify before building
  2. Simplicity — minimum viable code
  3. Surgical Changes — touch only what you must
  4. Goal-Driven Execution — loop until verified

The four rules the CLAUDE.md file bakes into Claude Code's behavior, directly mapped to the four failure modes.

Steal for Joe's own CLAUDE.md explainer content, or a how-I-set-up-Claude-Code video
§ · Quotables

Lines you could clip.

00:35
"We're gonna put it to the test to see if we can transcend what Andre Kapathi is calling the slopocalypse."
Coinable term — slopocalypse is a hook word that stops the scroll → TikTok hook
05:30
"Before I build anything per section three of the rule book, ask first on stack decisions... I need four things from you."
Concrete before/after AI behavior — shows the file working in real time → IG reel cold open
06:03
"You're going to have masterpieces, not slop."
Sharp, quotable contrast — single sentence that lands the entire argument → Newsletter pull-quote
06:55
"It is 212 lines of code where the Kapathi version mocked up the exact same page... about half the amount of coding lines."
Hard number proof — specific and verifiable → TikTok hook
§ · Pacing

How they spent the runtime.

Hook length43s
Info densityhigh
Filler8%
§ · Resources Mentioned

Things they pointed at.

09:40channelDream Labs AI — Karpathy Second Brain follow-up video
§ · CTA Breakdown

How they asked for the click.

09:40 next-video
"I'll pop it up here on the screen somewhere, so go and watch that. And if you haven't, hit that subscribe button below."

Soft bridge to a sequel Karpathy second-brain video. No hard ask until the very end. Subscribe request feels earned after demo density.

§ 04 · The Script

Word for word.

HOOK opening / re-engagementCTA the pitch metaphor analogy story
00:00HOOKAndre Kapathi cofounded OpenAI, was the head of AI at Tesla, and even had the creator of Claude Code thanking him for feedback on his AI model. So when a man of this caliber makes a tweet that gets seen by 7,700,000
00:14HOOKpeople about how he thinks we're all using Claude code wrong, I'm all ears. And according to Andre Kapathi, you can 10 x the quality of your output from Claude and leapfrog your competitors simply by installing this one file.
00:29HOOKSo in this video, I'm gonna show you exactly what this file is, how do we get it installed, and then we're gonna put it to the test to see if we can transcend what Andre Kapathi is calling the slopocalypse. All I ask in return is you hit that like button below, and let's jump in. So it all started here from Andre Kapathi's
00:47official Twitter account where he put out, no other way to describe this, a long ass tweet that's extremely technical talking about the four main problems that he sees with current LLMs like Claude. Now I'm still shocked myself that these things get
01:027,744,000 views on a highly technical tweet like this, but it just shows the amount of truth that is in here and the amount of need for something like this. Now, normally, if we're not in the AI world, we'd go through this whole post together and then try to tweak whatever processes we're doing in our businesses to fit it.
01:19However, welcome to 2026. Welcome to the modern world where someone can take that Twitter file and turn it into what's called a Claude MD file and upload it to the Internet so we can all download it in one line of code, and I'm gonna show you exactly how to do that, and then have our Claude codes operate in line with everything that Andre Kapathi says would make it better.
01:41And so this file is currently hosted on something called GitHub, and you can see it's had a 131,000 stars, which if you have no idea what stars are, it's one of the most popular files on this website.
01:53Now in this really long tweet, Andre Kapathi identified four main problems with the current setup of LLMs like Claude or Claude Code. It doesn't think before working. It doesn't plan out what it wanted to do.
02:04It just gets started, it might be running in the wrong direction. It overcomplicates the output.
02:09Lines of code, maybe 500 lines of code when it could have created what it created in a 100 lines. It's hard to thin slice edits. So you see AI these days making full, uh, five minute movies and you're like, oh, can we tweak at the three minute mark this guy smile to make him smile a lot bigger?
02:24And all of a sudden, it deletes the whole file and the whole thing's corrupted because it's really hard to sniper, pinpoint, edit, whether that be in a video, whether it be on a website, or whatever it is that you're creating with AI. And then finally, this is my favorite one right here.
02:37At the moment, AI is work driven. It's not goal driven in its execution. It works to work, not working to a goal that you may have for it.
02:46And Andre Kapathi says that this is costing you hours every week, and it's actually costing you a lot more than that in the output of your AI agent. And as I said, the actual creator of Called Code, Boris Cherni, replied to this long ass tweet and said that all these points resonate, and he's actually going to be looking to try and fix those issues himself.
03:05And even Elon Musk responded, sums up the zeitgeist because AI has been trained on the entire Internet. It's going to have basically average IQ, average creativity,
03:15average everything because everything is regressing to the mean because there's too much crappy training data in there. Now the quickest way to get this file installed so we can start to test it for ourselves is to come over to the GitHub. You can copy paste the actual URL, uh, or you can come down to this thing here, it'll give you the URL to clone and copy it.
03:34And this is the awesomest thing about AI, is you go to your Claude code. So whether you use that in terminal like I do or maybe use it in the app, it doesn't matter. All you have to do is say, please
03:43install this file for me, and then paste the URL. And it's gonna go ahead and pull that entire MD file down onto your local device so it can start operating
03:54HOOKthrough Andre Kapathi's upgraded skill set. So now that it's installed, let me show you the difference that this makes to you operating your business. We're gonna go through the categories that we went through of the four fundamental upgrades that Andre Kapathi is recommending
04:07HOOKthat your LLM makes. Starting with thinking first. When you give Claude Code some instructions, it's gonna start sprinting unless you have this file installed.
04:16HOOKThis is gonna make sure that it sprints in the right direction. It's gonna not assume things. It's gonna make sure it never hides confusion,
04:23HOOKand it doesn't surface trade offs. It's even gonna push back when warranted and stop when confused.
04:29HOOKIt's not gonna build for building's sake, and it's gonna ask you more questions. Okay. So I've pulled up two versions of terminal, which, again, if you don't use it in terminal, it's gonna look codey in advance.
04:39Don't worry about it. It's just the exact same as running inside the app, but you have way more features. I actually have a full video on this and showing you how simple it actually is.
04:46But I've typed the same prompt into both of these terminal windows, one with the Kapathi MD file installed and one without. So I said, can you make me a lead magnet for Dreamlab? So something that I can put into this video and then get an email in return for and add people to my email list.
05:02The first instance, which does not have the Kapathi MD file installed, says, I'll check the Dreamlabs context first then build the lead magnet. It went ahead and just literally built the lead magnet based on this very, very vague prompt. However, it's not bad because it did link straight into my active campaign and straight into the right email folder and then hosted it on the correct website.
05:23Once again, you wanna see exactly my setup, I have a video breaking that down, but it did make a lot of assumptions. On the second instance of terminal where this Kapathi file is installed, I said, can you make me a lead magnet for Dreamlabs? He says, before I build anything per section three of the rule book, ask first on stack decisions and section 7.1,
05:42think before acting, I need four things from you. What hook do you want? What format do you want?
05:48What list do we add them to? And what URL slug, where does it host it? Once I have those four, I'll draft the page in the standard dark aesthetic single file HTML, show it to you locally, and I'll only deploy it once you give me the green
06:00light, of which, of course, is going to lead to way higher quality outputs. But if more context and high quality outputs isn't enough because initially you're like, wait, that's just more work on my behalf. Yes.
06:11Of course, is, but you're going to have masterpieces, not slop. The second part, however, is even stronger than that.
06:17It's simplicity, which is basically minimum code. Everything's built from code, whether it's videos, photos, websites, lead magnets, PDFs, it's all going to be code. We are training our core to be as simple as possible.
06:29So as we continue to build on top of it, its foundations are clear and clean. And so when I asked the terminal window that does not have this Kapathi file installed for a lead magnet, this is what it gave me. Get my exact AI command center, full install config, hands free voice control on Mac, every skill and agent, an MTP I run, how to point it at your own business, which is pretty good because I have given it a lot of context on my business.
06:51Send me the setup. Put your email in here, and it's all hosted on my actual website. It's not bad at all.
06:56But it is 212 lines of code where the Kapathi version of it mocked up the exact same page. So this is the old one, and then this is the Kapathi version.
07:07Literally no difference. It's almost pixel perfect. But it has about half the amount of coding lines that go into it, which is pretty impressive, especially as you scale these things and load time you want to be as quick as possible, and then building on top of it, you want that foundation to be as clean as possible.
07:22And we get all this efficiency just by downloading that one file. Now the third skill we get in this beautiful skill pack is surgical changes.
07:30So it wants Claude to touch only what it must touch. Clean up its own mess after creating it. And when editing existing code, don't improve adjacent code, comments, or formatting.
07:42Don't refactor things that aren't broken. Match existing style even if you do it differently. And if you notice unrelated dead code, mention it.
07:49Don't delete it. Because Claude is historically bad. If you ask for the color of this button to be changed, it might tamper with, say, this box up here and all of a sudden the title is also a different color.
07:59But with this file, it's going to have precise edits. And I mean, let's run the test together. Let's see if we can get an orange button here.
08:05So I'm just gonna paste that URL right here. I'm gonna say, make the button orange, please.
08:11Play, should I say.
08:15And he says done. The button is now an orange gradient. I'm gonna refresh this page and it is orange and nothing else has changed.
08:22So now let's let go back and test the original one. I'm gonna copy the URL. I'm gonna come back to our original terminal here without the Kipathi file installed.
08:30I'm gonna say, can you please make the button green? Okay. So it says it's changed the button.
08:38I'm gonna come back and refresh it, and the whole site is green. That's
08:45obviously a joke, but I'm sure you've had your Claude code just touching things that it shouldn't be touching. Now the last one, which is my favorite upgrade to my Claude since installing this file, is that makes every action goal driven.
08:57You get to actually define success criteria for every task or project that you're giving your AI, and it's gonna loop and continue to work until it's verified, hit that goal, and become successful in its effort.
09:11So it's going to basically give itself test results and make sure that it's hitting the a plus in the criteria that you gave it. This is when you see those jokes where it's like make me a $100,000,000 business, make no mistakes, keep working until we have a 100,000,000 in the bank.
09:24CTAAnd so for example, if you have something that has a bug in it, you can come in and write something like fix the bug, and it's gonna transform that input into write a test that reproduces the bug so we know exactly how we got it, then make it pass. It will not stop working until it actually passes that criteria. The best example of this is actually in my other Andre Kapathi video where I show you exactly step by step how to set up Andre Kapathi's
09:46CTAsecond brain for business that is centered around your business goals and needs. I'll pop it up here on the screen somewhere, so go and watch that.
09:54CTAAnd if you haven't, hit that subscribe button below. Thanks so much. I'll see you in the next video.
— full transcript
§ 05 · For Joe

Steal the format and the file.

Builder playbook

One viral tweet, one GitHub file, one install command — that's the whole tutorial arc, and it works because the demo pays every claim in real time.

  • Install the actual file: tell Claude Code to install this file and paste the GitHub URL. One line. Done.
  • Use the 4-failure-modes frame in your own content — it's already viral and maps cleanly to any AI is making your work worse hook.
  • Run side-by-side terminal demos — before/after with the same prompt is more persuasive than any explanation.
  • The 212 lines vs 108 lines cut is a format you can lift for any tool comparison: same output, fewer resources.
  • slopocalypse is a coinage worth borrowing — it names a real frustration in one word.
  • Structure: authority borrow (Karpathy) > problem diagnosis > one-command fix > live proof > sequel hook. A replicable longform skeleton.
§ 05 · For You

Make your AI stop guessing.

If you use Claude Code

One file download changes how Claude Code behaves — it asks before it builds, writes less code to do the same thing, and doesn't touch anything you didn't ask it to touch.

  • Go to the GitHub repo (search Karpathy Claude Code Guidelines), copy the URL, paste it into Claude Code with please install this file for me.
  • After installing, start prompts with your actual goal — not just a task. Claude will now ask clarifying questions instead of guessing.
  • Expect roughly half the code for the same result. Smaller files load faster and break less when you build on top of them.
  • If something goes wrong with a code change, say fix the bug and Claude will now write a test first, then fix — so you know the fix actually worked.
  • The file is free, open-source, and installs in under 60 seconds.
§ 06 · Frame Gallery

Visual moments.