YouTube2Text

I spent $31,141 and 1000+ hrs on Claude Code to Learn This — Transcript

by Nick Saraev · 6,268 words · 885 segments · language en · Watch on YouTube

Full transcript

  1. 0:00I've spent over $30,000 on Claude Code
  2. 0:02over just the last few months. These are
  3. 0:04my real invoices. Feel free to take a
  4. 0:06look. I've also spent over 1,000 hours
  5. 0:08on models like Opus 5.5, Astra, and so
  6. 0:11on. And in this video, I want to give
  7. 0:13you guys everything that I wish I knew
  8. 0:14when I started. Okay, these are not
  9. 0:16going to be the simplest of hacks, but
  10. 0:17in order to really squeeze the
  11. 0:18proverbial wet towel of Claude Code, you
  12. 0:21do need to get into the nitty-gritty. Uh
  13. 0:22that said, I've arranged it from
  14. 0:24simplest to most complex so that
  15. 0:25regardless of where you are in the skill
  16. 0:27hierarchy, you guys can get some value.
  17. 0:29And let's start with the first, which is
  18. 0:30not to trust the first output. Now, I
  19. 0:33currently work with a multi-billion
  20. 0:34dollar business that I think is quite
  21. 0:36guilty of trusting the quality of the
  22. 0:38first output, and it's led to some major
  23. 0:40headaches down the skill chain. I'll
  24. 0:42talk a little bit about that later, but
  25. 0:44to start with, an unfortunate thing that
  26. 0:46most people don't realize about Claude
  27. 0:47and other large language models is they
  28. 0:50are not deterministic systems. To really
  29. 0:53unpack that, what I mean is if you give
  30. 0:55it the same prompt multiple times, every
  31. 0:58time it will give you a different
  32. 1:00result. And sometimes these different
  33. 1:02results might be a little bit different,
  34. 1:04and other times they'll be completely
  35. 1:05different, not at all even close to the
  36. 1:08same thing. And so, let's say you guys
  37. 1:10are coming up with a sick prompt to, I
  38. 1:12don't know, generate scripts for a
  39. 1:14YouTube video or something crazy like
  40. 1:16that, huh? Well, uh maybe the first time
  41. 1:19you pass a prompt in, it does a really
  42. 1:20good job. Is that enough for you to take
  43. 1:23that prompt and then save it in your
  44. 1:24business SOPs and actually standardize
  45. 1:27your whole company with that? No, you
  46. 1:29can't trust the first output. The reason
  47. 1:31why is if you were to run that same
  48. 1:33output, let's just say six times, the
  49. 1:35first time you ran it, you'd go, "Oh my
  50. 1:37god, this is awesome." But the second
  51. 1:38time, you might very well say, "This is
  52. 1:41absolute crap. This sucks." Maybe the
  53. 1:43third time it's okay, but the fourth and
  54. 1:45fifth times you go, "What the hell's
  55. 1:46going on here, Claude? Did you fall down
  56. 1:48some stairs?" before finally the sixth
  57. 1:50time, you know, reels you back.
  58. 1:51What ends up happening with prompts is,
  59. 1:54because there's minor deviations
  60. 1:55essentially in the statistical nature of
  61. 1:57models. Um the first time that you run
  62. 2:00it, you might end up in a maximum, which
  63. 2:02is a high-quality situation.
  64. 2:05But the second, third, or fourth times
  65. 2:06you run it, you might end up in a
  66. 2:07minimum, which is a low-quality,
  67. 2:09low-value output situation. And so your
  68. 2:12job as a prompt engineer, really your
  69. 2:14only job as somebody building systems
  70. 2:16maybe for yourself or for other
  71. 2:17companies with Claude and other models,
  72. 2:20is just to minimize the peaks and the
  73. 2:22troughs of, you know, your own usage. To
  74. 2:24basically standardize it so that you
  75. 2:26know what you're getting every time you
  76. 2:28ask it for something. Okay, so the way
  77. 2:30you do that is you run a set of prompt
  78. 2:33evaluations over and over and over again
  79. 2:35anytime you're looking to build
  80. 2:37something into a workflow. Now, these
  81. 2:39are technically termed evals, okay? So,
  82. 2:42if you've never heard of this term
  83. 2:43before, you'll see this a lot in large
  84. 2:45language model engineering, and evals
  85. 2:47are an important thing to understand
  86. 2:48when trying to progressively improve
  87. 2:49systems. It's not enough just to run it
  88. 2:51once, be like that's good, and then um
  89. 2:53put that to bed. We need to do is you
  90. 2:55need to run it 10 times, count the
  91. 2:57number of times out of 10 that it
  92. 2:58actually worked. If it's seven out of
  93. 3:0010, then it's seven out of 10. And then,
  94. 3:02when you make an adjustment to the
  95. 3:03prompt, count the number of times that
  96. 3:05that worked. Compare that to the former
  97. 3:07run, and if your new run is better,
  98. 3:09let's say it scores eight out of 10
  99. 3:11instead of seven out of 10, then keep
  100. 3:12that new run. This is at the core a
  101. 3:14statistical research process. Every time
  102. 3:17you do this, you're basically a
  103. 3:18scientist. The second thing I want to
  104. 3:20talk about is giving Claude and other
  105. 3:22models a way to check their own work.
  106. 3:24What I mean by this is, let's say you
  107. 3:25give it a task like, "Hey Claude, can
  108. 3:27you, I don't know, write me an essay on
  109. 3:29X, Y, and Z?"
  110. 3:31You know, a lot of the time Claude will
  111. 3:32do this. But let's say you didn't roll
  112. 3:34the lucky dice this time because you
  113. 3:36didn't have a good set of evals and your
  114. 3:37prompt is sort of all over the place.
  115. 3:39You know, the quality might be pretty
  116. 3:40poor. And so the way I like to think
  117. 3:42about this is uh first drafts. You know,
  118. 3:44if you guys have ever written an essay,
  119. 3:45you've probably gone through a process
  120. 3:47like school recommends you do, where you
  121. 3:48write a first draft, a second draft, you
  122. 3:50know, maybe a final draft, and then
  123. 3:52finally your actual finished revised
  124. 3:54paper. Well, when you only have Claude
  125. 3:56give it to you one time on only one
  126. 3:58attempt, it's not surprising the quality
  127. 4:00is going to be low because it's just
  128. 4:01like you've only ever had a first draft
  129. 4:03of a paper, right? Same thing, your
  130. 4:04first draft usually sucks balls, pardon
  131. 4:06my French. So, what you need to do is
  132. 4:08you need to give it away to check and
  133. 4:10then fix its own work before attempting
  134. 4:12it all over again. And so, what tends to
  135. 4:14happen is the more that you do this, the
  136. 4:16more the quality at the end of the day
  137. 4:18is going to go up. And even if you have
  138. 4:20a relatively poorly specified set of
  139. 4:22evals, a lot of the time simply giving
  140. 4:24it a revision loop, say through some
  141. 4:26sort of screenshot, some sort of example
  142. 4:29comparison, or maybe some sort of like
  143. 4:30standardized test, let's say it's a
  144. 4:32website, giving it a lighthouse page
  145. 4:33speed insights test, can usually
  146. 4:35significantly improve the quality since
  147. 4:36it now has something to actually compare
  148. 4:38to. The third thing I want to talk about
  149. 4:40is how to let the code be the context.
  150. 4:43So, I see this a lot and it's a
  151. 4:45byproduct of skills, which were, you
  152. 4:47know, the sort of naive way of
  153. 4:50operationalizing and standardizing tasks
  154. 4:52that Anthropic launched a couple of
  155. 4:54years ago and the rest of the world
  156. 4:55basically hopped on in exchange. But
  157. 4:57skills really are not the best way of
  158. 4:59doing things anymore. And the reason why
  159. 5:01is because, you know, let's say you're
  160. 5:03developing some sort of scale or some
  161. 5:05sort of app. Typically the way that, you
  162. 5:06know, a model or a Claude code in this
  163. 5:09case will work on the app is it'll work
  164. 5:10on both the code, but it'll also work on
  165. 5:13a bunch of supplementary things the same
  166. 5:15time. So, let's say it's working on, you
  167. 5:17know, some sort of code to, I don't
  168. 5:18know, generate thumbnails or something
  169. 5:19like that.
  170. 5:20As you go up in version number, as you
  171. 5:22go from V1 to V2 to V3 to V4,
  172. 5:25the code will have been updated, but
  173. 5:26often times these, you know, notes,
  174. 5:28let's say, will still be on V1 the spec,
  175. 5:30and and the log might also say V1. And
  176. 5:33as a result of that, essentially there
  177. 5:35is
  178. 5:36a difference between the source of truth
  179. 5:37and then the context that Claude and
  180. 5:39other models use to manage the source of
  181. 5:41truth. As a result, the two sources
  182. 5:42drift apart. A much more effective way
  183. 5:45of doing this now is actually just
  184. 5:46inlining all of your code directly into
  185. 5:48the app. And so, you could actually, for
  186. 5:50instance, scroll down to the description
  187. 5:51of this video, copy and paste the
  188. 5:53transcript, maybe specifically the part
  189. 5:54that I'm talking about now, and give it
  190. 5:56that to Claude. And I think you guys
  191. 5:57will find in any sort of
  192. 5:58programming-related task or
  193. 6:00skiller-related task, just bearing
  194. 6:02things directly into the script will
  195. 6:03significantly improve your evals, which
  196. 6:05is ultimately what we're doing all this
  197. 6:06for, right? And so, in this case, now
  198. 6:08when we say, "Hey, can you add a logout
  199. 6:10button to the navbar?" Now, instead of
  200. 6:11having to read through the notes, the
  201. 6:12spec, and the log, it'll actually just
  202. 6:14be able to go through your uh you know,
  203. 6:16code directly, see the inline comments,
  204. 6:18and so on and so forth. It sort of has
  205. 6:19to read that every time it does work,
  206. 6:21and the quality will be far better. I've
  207. 6:22tested this across multi-billion-dollar
  208. 6:24businesses and others, and this is the
  209. 6:26way to do things. Obviously, the main
  210. 6:27exception here is your Claude.md, where
  211. 6:30you store things like how you want it to
  212. 6:31work, so preferences, lessons,
  213. 6:33transcripts from Nick Survive YouTube
  214. 6:35videos, but this doesn't actually
  215. 6:36fundamentally change what the code does.
  216. 6:38Next major thing I want to talk about is
  217. 6:39letting Claude write your prompt. A lot
  218. 6:42of people are already out with their
  219. 6:43pitchforks for this one, but back in the
  220. 6:45good old days, we used to be the best
  221. 6:46prompt engineers. I prided my myself on
  222. 6:49my prompt engineering skills, and so on
  223. 6:50and so forth. Um the unfortunate reality
  224. 6:52is AI is better than us at it now. Uh
  225. 6:54it's better at us at it than us now
  226. 6:56because that's just one of the things
  227. 6:57that Anthropic has baked into Claude,
  228. 6:59its ability to communicate with other
  229. 7:00teammates, aka prompt other teammates.
  230. 7:02And so, rather than say to Claude, "Hey
  231. 7:05Claude, I want X for Y audience. Do it
  232. 7:06in this way and that way and this way
  233. 7:08and that way and that way, and you have
  234. 7:09all the info you need. Go ahead."
  235. 7:11Actually, just say, "Hey, I want X thing
  236. 7:13for Y audience. I'd like you to help me
  237. 7:15write a prompt." After that, Claude will
  238. 7:17now ask some questions to you, like,
  239. 7:19"Who's it for?" You'll say, "Founders."
  240. 7:21"What does great actually look like?"
  241. 7:22And you'll give it a one-page example.
  242. 7:24"Do you have any examples?" Then
  243. 7:25actually, you know, it'll give it. Um
  244. 7:27when you do uh prompting like this, this
  245. 7:29sort of meta-prompting, you actually end
  246. 7:31up with significantly better outcomes
  247. 7:32because Claude is just far highly
  248. 7:34effective at doing this sort of thing.
  249. 7:35It's just been trained or baked into the
  250. 7:37way that that Claude knows AI agents and
  251. 7:39other models tend to learn. And so, you
  252. 7:41know, you're still initiating the
  253. 7:43action, but Claude is now one level of
  254. 7:45abstraction up, at least compared to
  255. 7:46where it was a couple of years ago. Um
  256. 7:48the prompts themselves aren't even that
  257. 7:49important. It's just knowing how to
  258. 7:51prompt Claude to have it prompt itself.
  259. 7:53Now, this is a super quick and simple
  260. 7:55ask, you know, it's something that you
  261. 7:56do on a daily basis, and you understand
  262. 7:57the procedure. Obviously, you can skip
  263. 7:59that and just, you know, say, "Claude, I
  264. 8:00want you to go to this website in this
  265. 8:01way and give me this piece of
  266. 8:02information." That's fine. But for
  267. 8:04anything that's larger in scope, many uh
  268. 8:06projects that might be consuming large
  269. 8:07token budgets, doing it this way will
  270. 8:09achieve far better outcomes than
  271. 8:10anything else. The fifth thing I want to
  272. 8:12talk about is to really deeply watch
  273. 8:15what is eating your context window.
  274. 8:17Um in case you guys didn't know, the way
  275. 8:18that context works is you can actually
  276. 8:20type {slash} context into any chat with
  277. 8:23Claude models in order to see this. Um
  278. 8:25your context window, aka the total
  279. 8:27amount of context Claude can fit in its
  280. 8:29head while working on your work, is
  281. 8:31already typically taken up quite
  282. 8:32significantly by default things that is
  283. 8:35system-provided literally out of the box
  284. 8:37before you even type a word. So, for
  285. 8:39instance, um in green here is the system
  286. 8:40prompt. That might be your Claude.md.
  287. 8:43The purple here might be your built-in
  288. 8:44tools. The orange here might be MCP
  289. 8:47connectors. Next might be memories. And
  290. 8:49finally, here in green might be your
  291. 8:51skills. What that means realistically
  292. 8:53is, I don't know, I'm kind kind of
  293. 8:54eyeballing this, but about 30% of the
  294. 8:56context is already taken up before I say
  295. 8:58anything. Now, when, you know, you end
  296. 8:59up filling in a chat with a bunch of
  297. 9:02random queries and a bunch of random
  298. 9:03asks, obviously, the longer that context
  299. 9:05window goes on, the more pricey every
  300. 9:07request will be, but also the dumber the
  301. 9:09model itself becomes due to context rot
  302. 9:11and a bunch of other just unavoidable
  303. 9:12factors in our work with probabilistic
  304. 9:14agents like this.
  305. 9:15And so, what you're going to want to do
  306. 9:17is, if you are not actively using, you
  307. 9:19know, let's say all of your MCPs, you're
  308. 9:21going to want to turn as many of these
  309. 9:22off as humanly possible. If you're not
  310. 9:24using, you know, your skills, you're
  311. 9:25going to want to cut down as many of
  312. 9:26those as humanly possible. You know,
  313. 9:28when you're prompting a model, if you
  314. 9:29are nearly full, or if you find the
  315. 9:31model maybe not responding the way you
  316. 9:33want to, or if you spend a bunch of time
  317. 9:34having the model design a prompt for
  318. 9:36you, okay, to to feed into itself, don't
  319. 9:38just keep on prompting it within that
  320. 9:40window. Actually, just copy that prompt
  321. 9:42and then move to a fresh instance, okay,
  322. 9:44one that'll be closer to here, and then
  323. 9:47continue the conversation over there. As
  324. 9:48long as that prompt contains all of the
  325. 9:50context and relevance and so on and so
  326. 9:51forth, you should be fine. Another way
  327. 9:53you can do this is you can use {slash}
  328. 9:55compact. That's something that's quite
  329. 9:57good nowadays, um although there are
  330. 9:59some issues with how it currently
  331. 10:00compacts tool definitions and stuff that
  332. 10:02might be fixed by the time you watch
  333. 10:03this video. I'm using {slash} compact
  334. 10:05often is pretty pretty reasonable. I
  335. 10:07tend to {slash} compact way earlier than
  336. 10:09Claude will auto compact for me uh for
  337. 10:11that reason. Next thing I want to talk
  338. 10:12about is loosening the leash. Now, back
  339. 10:15in the good old days of AI models, God,
  340. 10:18I sound like an old man here, but back
  341. 10:20in like 2020, 2021, 2022, you needed to
  342. 10:23really tight leash around models. What I
  343. 10:25mean by that is you really had to go
  344. 10:26back and forth to get what you wanted.
  345. 10:28You really had to to give it all the
  346. 10:29ways not to do the thing, so that it
  347. 10:31knew not to do any of those things while
  348. 10:33it did the thing.
  349. 10:34What you can do now is you can drop the
  350. 10:37highly granular step-by-step
  351. 10:38instructions, and treat Claude more like
  352. 10:40a contractor than an in-house employee.
  353. 10:42You know, what I mean by that is if you
  354. 10:43guys aren't in business, the way you
  355. 10:45treat an in-house employee is typically
  356. 10:47you'll actually give it the task spec-
  357. 10:49specifications, and then you'll tell him
  358. 10:50or her how to do the task as well. And
  359. 10:53you know, in that way they'll optimize
  360. 10:54the processes according to the way that
  361. 10:56you lay it out, and then you'll get
  362. 10:57something pretty cool. The way that you
  363. 10:59work with contractors is typically they
  364. 11:00already have a pre-established set of
  365. 11:02processes. You know, they've they're a
  366. 11:03contractor, they're a freelancer, they
  367. 11:04work for themselves for all they know
  368. 11:05how to do the thing really well. And so,
  369. 11:07typically you'll pay them a little bit
  370. 11:08more money, and then they'll use their
  371. 11:10highly optimized process which they've
  372. 11:11built over the course of potentially
  373. 11:12hundreds or thousands of projects to do
  374. 11:14it way faster and better than maybe your
  375. 11:15process could look like. And then maybe
  376. 11:17you'll consult with them and ask them
  377. 11:18questions. So, rather than giving it a
  378. 11:20step-by-step how, okay, treat it like a
  379. 11:23contractor. Just give it a good
  380. 11:24definition of done. Hey, you know,
  381. 11:25you're done when this is true, that is
  382. 11:27true, and that is true. Assuming that
  383. 11:29those are true, you are good to go. If
  384. 11:31you have any questions, feel free to
  385. 11:32ask. If you don't know, you know, maybe
  386. 11:34you can include that in your Claude at
  387. 11:35MD. And also never skip tests or
  388. 11:37whatever. So, you don't need this crazy
  389. 11:39scar tissue like, you know, stuff or
  390. 11:41crazy never know never never statements
  391. 11:43from older models. Claude now is pretty
  392. 11:45smart and can infer a lot of what you
  393. 11:47want as long as you focus on high-level
  394. 11:49principles like, "Hey, if you if you
  395. 11:50don't know anything really, just ask me
  396. 11:51because this is pretty mission
  397. 11:52critical." Then you'll do just fine.
  398. 11:54Next major thing I want to talk about is
  399. 11:56diagnosing before you start a fix. And
  400. 11:58let's say there's some sort of bug. Um
  401. 12:00instead of saying, "Hey, I want you to
  402. 12:01fix the whole app. It's not working."
  403. 12:02say, "List all of the problems with this
  404. 12:05app." Don't rewrite or do anything yet.
  405. 12:08The reason for that is because if you
  406. 12:09have it actually do the fix, if the
  407. 12:11problems are not problems that you
  408. 12:13actually anticipated or not problems
  409. 12:14that you actually want solved, keeping
  410. 12:15in mind that Claude has his own
  411. 12:16definition of what a problem is and what
  412. 12:18might be worth solving. You simply
  413. 12:20saying, "It's broken, fix it." might not
  414. 12:21actually lead to anything. Instead, you
  415. 12:23really need to enumerate the problems
  416. 12:24and then give it the problems that you
  417. 12:26want it to to solve. So, for instance,
  418. 12:28um it'll then list a bunch of problems
  419. 12:30for you. Maybe four problems here. Vague
  420. 12:32opening says it twice, too casual and no
  421. 12:34example. Uh you're like, "No, actually
  422. 12:35the casualness is fine. That's not what
  423. 12:36I wanted to do." So, then you can just
  424. 12:37cross that out. And then what you can do
  425. 12:39is you can actually just give it the
  426. 12:40three things you actually wanted to fix.
  427. 12:42Um in this case, you are saving in token
  428. 12:44budget and you're also significantly
  429. 12:45improving the amount of time that it
  430. 12:47takes to get to that point. You can
  431. 12:48imagine how if you screwed this up, what
  432. 12:50you would have done is been like, "Hey,
  433. 12:51can you just fix this whole thing?" It
  434. 12:52would have fixed it including the two
  435. 12:54casual bit and now you would have had to
  436. 12:55recasualize this essentially in the next
  437. 12:58step, which would have, you know, taken
  438. 12:59twice as many steps, twice as much time,
  439. 13:00and twice as many tokens. Next major
  440. 13:02thing I want to talk about is MCP
  441. 13:04servers, which stands for a model
  442. 13:06context protocol. Now, generally
  443. 13:08speaking, the way I work nowadays is
  444. 13:10I'll almost always prototype a system
  445. 13:12for myself or for many clients that I
  446. 13:13work with with an MCP connector. And
  447. 13:16when I say MCP connector, to be clear, I
  448. 13:18mean things like plugins, things like
  449. 13:21connectors in both Codex, Claude code,
  450. 13:24and their, you know, analogous terms in
  451. 13:26other apps as well. And so, if it's a
  452. 13:28plug-in or it's a connector, if it's
  453. 13:30like an OAuth, most of the time it's
  454. 13:31really this MCP, model context protocol,
  455. 13:33under the hood, and that's what I'm
  456. 13:34referring to. And the reason why is
  457. 13:36because it takes you one click to like,
  458. 13:38you know, spin up the MCP, click a
  459. 13:39button, sign in, and then you're done.
  460. 13:41You can actually move on and verify that
  461. 13:42it works.
  462. 13:43Once you've verified that it works,
  463. 13:44though, it's suboptimal to scale. And
  464. 13:47so, I see a lot of processes in larger
  465. 13:49businesses that I work with that have
  466. 13:50really jumped in with both feet to try
  467. 13:53and implement AI across their whole
  468. 13:54stack where these common day-to-day
  469. 13:56processes are still done with MCP
  470. 13:58servers. The reason why MCP is great is
  471. 14:00because it gets you up and running
  472. 14:01really quick, but the downside to MCP is
  473. 14:04it's typically very heavy on context,
  474. 14:05and it includes a bunch of silly
  475. 14:07that you never really wanted in
  476. 14:08a tool spec anyway. And so, instead what
  477. 14:10you do is you turn what you just do did,
  478. 14:13you know, for economic outcomes once you
  479. 14:15verified it's possible, into a lean
  480. 14:17custom skill. And now you're
  481. 14:19approaching, you know, a highly more, I
  482. 14:21want to say, uh, nuanced and a highly
  483. 14:23more filtered list of tool call,
  484. 14:25uh, uh, you know, definitions and to and
  485. 14:27and the tool spec, and it'll be
  486. 14:28significantly easier on both contexts,
  487. 14:30and it'll also be significantly more
  488. 14:31likely to be correct.
  489. 14:33Another thing that really sucks is every
  490. 14:34time you load up Claude code with a
  491. 14:36bunch of MCPs, there's an additional
  492. 14:38like few seconds of startup time because
  493. 14:39Claude has to verify the MCPs work,
  494. 14:41actually send and receive some signals,
  495. 14:43sort of like housekeeping to make sure
  496. 14:44everything's above board. I absolutely
  497. 14:46hate waiting for that, so I'll try and
  498. 14:48prune my MCPs and my connectors list in
  499. 14:50Claude code's case as much as possible
  500. 14:52for spinning things up, and I find this
  501. 14:53typically saves me like 3 to 5 seconds
  502. 14:55every time I do. Next thing I want to
  503. 14:56talk about is how to run scoped tasks in
  504. 14:59parallel. So, the way that I personally
  505. 15:01use Claude is, I no longer just say,
  506. 15:03"Hey Claude, can you do X for me?"
  507. 15:04"Okay, yes, Nick, I did X." "Great. Now,
  508. 15:07can you move to Y?" Instead, what I'll
  509. 15:08do is actually highly scope specific
  510. 15:11tasks, and then I'll have Claude manage
  511. 15:13them all in parallel using sub agents,
  512. 15:15agent teams, or other offerings. So,
  513. 15:17let's say, you know, you're designing
  514. 15:19some cool website, what you can actually
  515. 15:20do is you can have multiple agents work
  516. 15:22on multiple parts of the website at the
  517. 15:23same time. Uh, Claude typically does
  518. 15:25this natively, but you can also
  519. 15:27encourage it by saying things like do
  520. 15:29this in parallel by running mutually
  521. 15:31exclusive scope to tasks. That's a
  522. 15:33personal favorite of mine that tends to
  523. 15:34significantly speed up development. The
  524. 15:36reason why is because now let's say
  525. 15:37there's a bug with the logout. Let's say
  526. 15:39there is some improvement to the hero
  527. 15:41section you you want to make and let's
  528. 15:42say there's some alteration of the
  529. 15:44feedback form you want to do. Rather
  530. 15:45than waiting for Claude to do all of
  531. 15:46these sort of in sequence, what you can
  532. 15:48do is you can actually have all three of
  533. 15:50these done simultaneously and then you
  534. 15:51can just have a merge step that merges
  535. 15:53all of them. Okay, so basically instead
  536. 15:55of it looking like and bear with my
  537. 15:57drawing here, instead of it looking like
  538. 15:59hey Claude do this. Okay, Nick for sure.
  539. 16:01I'm done this. What should I do next?
  540. 16:03Hey Claude, do this. Okay, Nick. I'm
  541. 16:04done with that for sure. What should I
  542. 16:06do next? Hey Claude, do this. Instead of
  543. 16:08these three steps, what we're doing now
  544. 16:10is it's more akin to this. We're
  545. 16:12actually saying hey Claude, I actually
  546. 16:13want you to do all of these things up
  547. 16:15ahead. You know, I want you to fix the
  548. 16:16hero section, the feedback form, the
  549. 16:18logout button, some other thing. And
  550. 16:19then over here, all we're going to do is
  551. 16:21merge. Okay, so this is you know, sort
  552. 16:23of like your initial instruction. This
  553. 16:24over here is the all the the big list of
  554. 16:26scope tasks that you want to do. And
  555. 16:28then this over here is going to be a a
  556. 16:29merge step which is really simple. Now
  557. 16:31the key part of this is obviously when
  558. 16:33you do the task, you need to make sure
  559. 16:34that you're not having multiple agents
  560. 16:36work on the same thing. Claude will do
  561. 16:37this by itself. You typically don't need
  562. 16:39to worry too much about that, but you
  563. 16:41know, what you're doing here is you're
  564. 16:42saving a little bit of time at the
  565. 16:44expense of obviously a slightly higher
  566. 16:45error rate and I like doing that because
  567. 16:47I think you need to move fast and insert
  568. 16:49current year here. Next up, always start
  569. 16:51fresh with a handoff note. What I mean
  570. 16:53by this is in a very long session,
  571. 16:55obviously you have context rot like we
  572. 16:57talked about earlier. The more back and
  573. 16:59forth you have, the more silly things
  574. 17:01enter Claude's mind. I'm simply as a
  575. 17:02byproduct of, you know, your human
  576. 17:04prompting skills. You will say hey,
  577. 17:06don't do X, but then three or four chats
  578. 17:08later you'll say, yeah, I want it to be
  579. 17:10kind of like X and it'll think, well, he
  580. 17:11said don't do X, but he also said kind
  581. 17:13of like X. I guess I'll kind of go in
  582. 17:14the middle and then and then you suck,
  583. 17:15right? Instead of doing all that, what I
  584. 17:17always like to do when Claude isn't
  585. 17:19giving me results that I want is I just
  586. 17:21take, you know, a simple prompt that
  587. 17:23says, "Summarize where we are." So, give
  588. 17:25me what is done, give me all the
  589. 17:26decisions I need to make, give me the
  590. 17:27things that are next, and give me a list
  591. 17:28of open problems. And then, I simply fix
  592. 17:31anything that I think is wrong in that
  593. 17:33summarization prompt, and then I hand it
  594. 17:34off to a new message. Uh typically,
  595. 17:36Claude will understand that, okay, this
  596. 17:37is obviously handed off by a previous
  597. 17:39session, so I should start with that in
  598. 17:40mind. It'll ask you anything that maybe
  599. 17:42is outstanding from your compacted
  600. 17:43summary. Uh and then you get a
  601. 17:45significantly higher context uh quality
  602. 17:47as a result of, you know, the way
  603. 17:48shorter prompt. And I also find, as
  604. 17:50mentioned earlier, that it's cheaper.
  605. 17:51Next up, ask side questions with
  606. 17:53{slash}btw. Nobody basically does this,
  607. 17:56which I find really funny, but I'm
  608. 17:58constantly {slash}btw'ing because one
  609. 18:00thing that you'll realize is the longer
  610. 18:02that Claude and other, you know, models
  611. 18:04grow more agentic, the harder it is to
  612. 18:06know what the hell is going on. I mean,
  613. 18:08how many times has probably happened to
  614. 18:09you in the last just few weeks or months
  615. 18:11alone? You give Claude some big task,
  616. 18:14like, "Hey, rewrite the checkout flow."
  617. 18:16It starts doing a bunch of stuff, and
  618. 18:17then 10 minutes later you come back to
  619. 18:19it, and you're like, "Hey, um where the
  620. 18:20hell were we again?" You start scrolling
  621. 18:22through all of your chats, and you
  622. 18:23realize like, "Dude, I have no idea
  623. 18:24what's going on." So, what you do is you
  624. 18:26wait naively for it to finish, and then
  625. 18:28give you the update, and then you read
  626. 18:29it not understanding what the hell's
  627. 18:30going on, ask it the same question
  628. 18:32again. Now you have to wait a big chunk
  629. 18:33of time for it to finish. Instead,
  630. 18:35parallelize that by asking it side
  631. 18:37questions with {slash}btw. So, anytime
  632. 18:39Claude's working, you literally type
  633. 18:40{slash}btw, and just say, "Hey, what is
  634. 18:42this thing mean?" And it will actually
  635. 18:44answer you while it's working on that
  636. 18:45other session. Um this, number one, does
  637. 18:48not pollute the main context with
  638. 18:49educational or informational questions
  639. 18:51about what it is that you're trying to
  640. 18:52do. And number two, it's just way faster
  641. 18:54and way easier. So, you guys should 100%
  642. 18:56be using {slash}btw wherever humanly
  643. 18:58possible. You know, I think we all
  644. 18:59probably sort of understand this. Uh any
  645. 19:01Yu-Gi-Oh! players in the chat, you know,
  646. 19:03these are your your your hands of Exodia
  647. 19:04versus like the head or the the body of
  648. 19:07Exodia. And you want your body to be
  649. 19:08really expensive, but you couldn't
  650. 19:09really care less about the hands, if I'm
  651. 19:11honest. The whole idea is, you know, if
  652. 19:13you have a task,
  653. 19:15you can almost always improve your
  654. 19:17ability to do the task by learning more
  655. 19:19about the problem.
  656. 19:20What I mean by this is you can research
  657. 19:22more about approaches that other people
  658. 19:24have done to, you know, try and solve
  659. 19:25the task. You could, you know, check all
  660. 19:26the papers on a subject. You can look
  661. 19:28through a bunch of blogs or, I don't
  662. 19:30know, Reddits or something like that to
  663. 19:32try and determine, okay, like what are
  664. 19:33all the things that basically people
  665. 19:34have tried throwing at this thing
  666. 19:35before.
  667. 19:36Um when you do this, your task quality
  668. 19:39significantly improves. The only issue
  669. 19:41with that is often times it costs a lot
  670. 19:43of money in order to do all that
  671. 19:44research. So, the optimal way to do this
  672. 19:46is just pay a little bit of money to a
  673. 19:49really cheap model to scan the search
  674. 19:51space as widely as humanly possible.
  675. 19:53Have it fan out, deliver you as much of
  676. 19:56this information as it can because they
  677. 19:57all have cheap and short contexts. And
  678. 20:00then just give it to your stronger model
  679. 20:01to actually make the call.
  680. 20:03So, in our case with, you know, I don't
  681. 20:04know, an Opus 5.5 or 6 or Fable or
  682. 20:06whatever model you are using at the time
  683. 20:08that you are watching this video, feed
  684. 20:10in your with something like, "Hey, I
  685. 20:12want a fan out and fan in strategy where
  686. 20:14you delegate to cheap sub agents to find
  687. 20:16out as much information on XYZ topic as
  688. 20:19humanly possible, best approaches in,
  689. 20:21you know, insert current year, things
  690. 20:23that maybe most other people don't
  691. 20:24currently use. And then I also want you
  692. 20:26to just like ideate and hypothesize a
  693. 20:27bunch of approaches to doing this that
  694. 20:29maybe aren't normally supported in the
  695. 20:30literature and see if there's anything
  696. 20:31to support that. Then I want you to
  697. 20:33combine that all into a mega prompt for
  698. 20:35a stronger model like, you know, maybe
  699. 20:37your your successor Opus Fable Mythos,
  700. 20:39whatever, and then have it make the
  701. 20:40decision. When you do this, you get more
  702. 20:42coverage, it's way faster, and also
  703. 20:44costs you less money than having Opus do
  704. 20:46it all.
  705. 20:47I cannot tell you just how much this
  706. 20:48fundamentally evolves my personal
  707. 20:50prompting strategy. I would highly
  708. 20:51recommend you guys use fan out fan in
  709. 20:53wherever possible. Obligatory, set up
  710. 20:55your Claude that MD. This is similar to
  711. 20:56context rot. If you're just always
  712. 20:58feeding in dumb things that are no
  713. 21:00longer relevant, like I was recently,
  714. 21:02whereas feeding it the deprecated
  715. 21:04revenue figures from a few months ago,
  716. 21:05and it kept on making decisions for me
  717. 21:07based off of a deprecated revenue
  718. 21:09numbers. Like, you know, my risk
  719. 21:10tolerance was way lower, the amount of
  720. 21:12money I was willing to throw at problems
  721. 21:13was way lower. You know, my portfolio
  722. 21:15wasn't as fully fleshed out, so I didn't
  723. 21:17have, you know, high-quality pieces that
  724. 21:19it recommended me to, you know, sell to
  725. 21:21other people and so on and so forth.
  726. 21:22Make sure to just check your Claude.md.
  727. 21:23Check it literally right now. Pause the
  728. 21:25video if you have to. Double-check that
  729. 21:27everything that is in there is actually
  730. 21:28relevant. There's zero point to sending
  731. 21:30even a single character or wasting even
  732. 21:32a single character of both, you know,
  733. 21:34your token budget and then also Claude's
  734. 21:36intelligence. The only information that
  735. 21:37should be in there is stuff that you
  736. 21:39genuinely want to be in there. The way I
  737. 21:40like to do this is I always say a
  738. 21:41summary of what's where. You can just
  739. 21:43generate that with a backslash init.
  740. 21:45Super easy. Then just give it some
  741. 21:47preferences. So, in my case, I actually
  742. 21:48say give me full file paths and I say
  743. 21:50use Python.
  744. 21:51Um, you know, what can it do? Hey, you
  745. 21:53know, feel free to do whatever the hell
  746. 21:55you want within these capacities. Um, if
  747. 21:57you're not sure, ask me before, but I
  748. 21:59generally trust you. Here's some
  749. 22:00information about me. Here's some
  750. 22:02lessons that I've learned and so on and
  751. 22:03so forth. That's fine. Just make sure
  752. 22:05that, you know, you're not feeding in uh
  753. 22:07the same thing that you were feeding in
  754. 22:08models of yesteryear. Every time model
  755. 22:10gets an update, even a highly
  756. 22:11incremental one, you should be going
  757. 22:13through this process again to ensure
  758. 22:14that your Claude.md and system prompts
  759. 22:16in general are very high quality. Next,
  760. 22:17keep a backup tool ready. As unfortunate
  761. 22:20as it is, Claude code is not always
  762. 22:22fantastic. Um, sometimes there are
  763. 22:24outages in Claude. Sometimes there are
  764. 22:26quality fluctuations as an unfortunate
  765. 22:28result of just, you know, model
  766. 22:29economics and tokenomics and stuff like
  767. 22:31that. So, what I see a lot of the time
  768. 22:33in MakerSchool and then all over the
  769. 22:35internet is when Claude code's down,
  770. 22:37everybody and their mom is on Twitter or
  771. 22:38YouTube saying Claude code is down. The
  772. 22:40reason why is cuz they're just not
  773. 22:41getting any damn work done because they
  774. 22:42don't have a way to back up. And so,
  775. 22:44what I'll do is I will run Claude code
  776. 22:46as my main tool, but I will always have
  777. 22:48a backup model like Codex or another
  778. 22:50model in the same folder with me.
  779. 22:52Usually like a Codex or an agents.md or
  780. 22:55something similar. And so, what I'll do
  781. 22:57is, you know, agents.md is like sort of
  782. 22:59other models versions of a Claude.md. I
  783. 23:02will sim link, which just means connect
  784. 23:04the Claude.md in my directory to the
  785. 23:07agents.md. I'll mirror the contents such
  786. 23:09that anytime Claude updates a Claude.md,
  787. 23:11it'll also update agents.md.
  788. 23:13Um, and then, you know, if it's ever
  789. 23:14out, I can just like drag and drop Codex
  790. 23:16in and say, "Hey Codex, you know, pick
  791. 23:17up where your brethren Claude left off."
  792. 23:19It says, "Claude, that guy sucks, but,
  793. 23:21you know, does it anyway." I never
  794. 23:22really have to suffer an outage. Um,
  795. 23:24you'd be surprised at the number of
  796. 23:25large teams that I've worked with, you
  797. 23:27know, we're talking again,
  798. 23:27billion-dollar teams, that do not have
  799. 23:29any sort of backup or any sort of like,
  800. 23:32you know, diversity of models. When
  801. 23:35Claude code goes down, they are
  802. 23:36legitimately hamstrung and economic
  803. 23:38productivity within that company grinds
  804. 23:39to a halt. Don't let that be you. And by
  805. 23:41the way, Claude recently updated such
  806. 23:43that it now even understands agents.md.
  807. 23:45So, while I'd still recommend having a
  808. 23:46Claude.md in your workspace, you could
  809. 23:48also just have an agents.md and then
  810. 23:49just hot swap models out anytime Claude
  811. 23:51needs it. Have Claude learn from its
  812. 23:53mistakes and build that into the
  813. 23:54Claude.md. So, let's say you make a
  814. 23:56mistake, you know, and the mistake is, I
  815. 23:58don't know, you are trying some old API.
  816. 24:01And every time Claude tries the old API,
  817. 24:03it fails. So, you're like, "Okay, you
  818. 24:04know, update the Claude.md so you know
  819. 24:05it doesn't do it again." It might write
  820. 24:06something like, "Don't retry the old
  821. 24:08API."
  822. 24:09But, that sucks. What you're telling it
  823. 24:10to do again is you're telling it what
  824. 24:12not to do. Instead of giving it like
  825. 24:14negatives, okay, and trying to fill the
  826. 24:15whole thing with a bunch of list of
  827. 24:16things it can't do, instead give it
  828. 24:18positives. Say things like batch the
  829. 24:20file reads, let's say, which is the
  830. 24:22actual solution to the problem. So,
  831. 24:24don't just give it a bunch of problems,
  832. 24:25okay, cuz, you know, that seems like
  833. 24:27learning, but it's not. Give it the
  834. 24:28solutions as well. And a simple and easy
  835. 24:30way I always get Claude to do this for
  836. 24:31me is I will just say, "How could you
  837. 24:33have done that faster with fewer
  838. 24:34tokens?" And I will generally ask this
  839. 24:36every single time I'm building a skill
  840. 24:38uh, into like an eval loop like we
  841. 24:40talked about before with, you know,
  842. 24:41prompt lucky dice rolls.
  843. 24:43When you do this and you feed all that
  844. 24:45stuff in with a tool like /insights and
  845. 24:47so on and so forth to uh, your
  846. 24:49Claude.md, your Claude.md usually
  847. 24:51becomes like a real powerhouse
  848. 24:52operation. Uh, and so my my Claude.md,
  849. 24:54for instance, probably saves me, you
  850. 24:56know,
  851. 24:57three or four hours a week just in all
  852. 24:59of the mistakes that Claude usually
  853. 25:01makes with, you know, a given set of
  854. 25:02tasks that it no longer has to. And even
  855. 25:05high-level instructions surrounding
  856. 25:06like, "Hey, could you open this file for
  857. 25:08me when you're done working on it?" or
  858. 25:09something, also save me a tremendous
  859. 25:10amount of time. And if you use terminal
  860. 25:12tools like Ghost TTY, Orca, or these
  861. 25:14other approaches, they can also be very
  862. 25:16powerful because there's just very
  863. 25:17difficult sort of navigation natively in
  864. 25:20those apps as a result. Okay, hopefully
  865. 25:22you guys appreciated that video. If you
  866. 25:23guys like learning about AI automation
  867. 25:25and other cool generative technologies,
  868. 25:27and you want to learn how to monetize
  869. 25:29those for your own business, freelancing
  870. 25:31career, or agency, definitely check out
  871. 25:33Maker School. It's the first link in the
  872. 25:35description. It's my 90-day
  873. 25:36accountability program where I'll
  874. 25:37guarantee you your very first customer
  875. 25:39for a paying AI automation service, or
  876. 25:41I'll give you all your money back, 100%
  877. 25:43back. You guys can check the reviews. We
  878. 25:44have lots of people that are absolutely
  879. 25:46crushing that program, more than I can
  880. 25:48even begin to count. If you guys also
  881. 25:50like this channel and want to keep
  882. 25:52supporting it, please like, subscribe,
  883. 25:53and comment down below. I'll leave you
  884. 25:55all with a great big thank you, and I'll
  885. 25:57catch you guys in the next video. Bye.

About this transcript

This page contains the full transcript of I spent $31,141 and 1000+ hrs on Claude Code to Learn This by Nick Saraev, generated from the public captions YouTube serves with the video. The transcript has 6,268 words across 885 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.