YouTube2Text

Claude Code for Non-Coders (6 Hour Course) — Transcript

by Nate Herk | AI Automation · 85,931 words · 11,730 segments · language en · Watch on YouTube

Full transcript

  1. 0:00In this course, I'm going to take you
  2. 0:01from a complete beginner to someone who
  3. 0:02is AI native and can build automations,
  4. 0:05AI agents, literally anything that you
  5. 0:07can describe, you're going to be able to
  6. 0:08build by the end of this course. These
  7. 0:10are the topics that I'm going to cover
  8. 0:11with you guys. So, feel free to skip
  9. 0:12around to whatever pies your interest,
  10. 0:14but I'm going to go through all of this
  11. 0:15in order, and I'm going to do real
  12. 0:17examples and step-by-step builds
  13. 0:18throughout. So, don't want to waste any
  14. 0:20time. Let's just jump straight in. So,
  15. 0:22this whole course is basically assuming
  16. 0:23that you know nothing and that you don't
  17. 0:24have a technical background, which if
  18. 0:26you guys don't know who I am, my name is
  19. 0:28Nate and I do not have a technical
  20. 0:29background. But, I've been able to do
  21. 0:31some pretty incredible things with AI in
  22. 0:32the past couple years. I've got multiple
  23. 0:34different businesses that are based on
  24. 0:35content, education, certifications,
  25. 0:37events, consulting, and all of that is
  26. 0:40powered by a small team who is really,
  27. 0:42really good at using AI. The whole idea
  28. 0:44is that one person can do the work that
  29. 0:46it used to take teams. And I felt that
  30. 0:49ROI myself. And if you guys haven't, by
  31. 0:50the end of this video, you will have a
  32. 0:52very clear path to feeling that ROI and
  33. 0:54having AI systems that help you do more
  34. 0:56and that will eventually become the
  35. 0:58baseline. So, it's great to be getting
  36. 0:59ahead of this stuff. Okay, so first
  37. 1:01things first, what is Claude Code?
  38. 1:03Because I know the word code probably
  39. 1:04intimidates a lot of people. If you've
  40. 1:06never coded before, you don't have to
  41. 1:08code. So, Anthropic, that's the company
  42. 1:10that is behind this ecosystem, right?
  43. 1:12Um, the cloud models, Claude Chat, that
  44. 1:15is probably what a lot of you guys are
  45. 1:16used to. So, there's basically these
  46. 1:18three products. The first one is Claude
  47. 1:20chat and that is where you can talk to
  48. 1:22Claude in the web or wherever you want
  49. 1:23to do it on your phone and you just talk
  50. 1:25to that large language model the AI
  51. 1:27model and you get an answer. So kind of
  52. 1:29like a a chatbot. Then we've got Cloud
  53. 1:31Co-work which is kind of like the next
  54. 1:33step up. Fun fact, Cloud Co-work the
  55. 1:35entire product was built using cloud
  56. 1:37code by a few engineers. It would have
  57. 1:39taken the team weeks and weeks and much
  58. 1:41larger team but they were able to ship
  59. 1:43this in like a week with a few
  60. 1:44engineers. So very very cool. And cloud
  61. 1:46co-work is much more for kind of like
  62. 1:48your knowledge workers, your managers.
  63. 1:50It's much more of a simple interface to
  64. 1:52do simple automations and stuff, but
  65. 1:54cloud code is just the most powerful.
  66. 1:57And the cool thing about cloud code is
  67. 1:58like I said, you don't need to know how
  68. 2:00to code at all. And so I really don't
  69. 2:02ever use cloud co-work even though you
  70. 2:04could argue a lot of the stuff that I do
  71. 2:06in cloud code could be used in co-work.
  72. 2:08code is just way more powerful and it's
  73. 2:09where I see the future as far as
  74. 2:11thinking about building your own agents
  75. 2:13and just having things that are a lot
  76. 2:14more agentic for you. So those are kind
  77. 2:17of the three products, but what's cool
  78. 2:18about it is they're not that different
  79. 2:20to actually use. So if you learn one
  80. 2:22really well, you're going to be able to
  81. 2:23transfer those skills wherever you go.
  82. 2:24So don't feel like you're locking in by
  83. 2:26choosing one of these products. That's
  84. 2:28why I choose the most powerful product.
  85. 2:30So if I open the Claude desktop app,
  86. 2:32what do we see right here? This is
  87. 2:33Claude chat. You know, I can come in
  88. 2:34here and I can say, "Hi, Claude." and it
  89. 2:37can kind of understand a little bit
  90. 2:38about me. It can see my preferences.
  91. 2:40Obviously, it knows my name, but this
  92. 2:42isn't where you're going to get real
  93. 2:44work done. This is where people are kind
  94. 2:46of treating this as like a Google search
  95. 2:47engine or they're connecting their Gmail
  96. 2:49and helping it, you know, having it help
  97. 2:51them write email drafts and stuff like
  98. 2:52that, but it's not true agentic power.
  99. 2:55And this is Claude Code. What do you
  100. 2:57see? It's a very similar interface. You
  101. 2:59just talk to it in chat, but now what
  102. 3:00happens is it's able to access your
  103. 3:02local files. As you can see here, I can
  104. 3:04choose a folder to actually work within,
  105. 3:06whether that's my desktop or my
  106. 3:07downloads or my Herk 2, which is kind of
  107. 3:09my AI operating system, which is a term
  108. 3:11I might throw out a little bit today.
  109. 3:13Don't worry about it too much. At the
  110. 3:14end of this video, I'm going to show you
  111. 3:16a full course around how to actually
  112. 3:17build your own AI operating system, but
  113. 3:19this comes first. The whole point here
  114. 3:21is that Claude Code is able to work
  115. 3:24inside of local files as well as touch
  116. 3:26anything out there online. It can touch
  117. 3:28your Gmail, your Slack, your CRM. It can
  118. 3:30touch anything online, but it can also
  119. 3:32touch your local files, which is really,
  120. 3:33really important. And the other cool
  121. 3:35thing to note is that when you're in
  122. 3:36cloud chat, you know how you guys
  123. 3:38probably are aware of models like Opus
  124. 3:40or Sonnet regardless of the model or
  125. 3:42even Fable. Now, Claude Code is powered
  126. 3:44by all of those same models. So inside
  127. 3:46of cloud code, you still use sonnet or
  128. 3:48haiku or opus or fable, but the code
  129. 3:51aspect is basically just enthropic
  130. 3:53saying, "Hey, because you're working
  131. 3:55with local files, here are some other
  132. 3:57things you can do like web searches and
  133. 3:58web fetches and searching through local
  134. 4:00files that make you a little bit more
  135. 4:01powerful than cloud chat." So
  136. 4:03fundamentally, it's not that different
  137. 4:05from cloud chat. I don't ever use cloud
  138. 4:07chat anymore. Everything that I would
  139. 4:08typically do in Cloud Chat, I'm doing in
  140. 4:10Cloud Code because Claude Code knows
  141. 4:13everything about me, my business. It can
  142. 4:15see all my YouTube videos. It can see
  143. 4:17all of my Slack threads. It can see
  144. 4:18everything that I'm doing, which makes
  145. 4:20this feel way more like an employee
  146. 4:22rather than just like Claude chat, which
  147. 4:24kind of feels like a virtual assistant,
  148. 4:25right? I'm not reexplaining myself to
  149. 4:27Claude Code because it knows everything
  150. 4:29about me. So, you're probably going to
  151. 4:31hear the term harness, magenta harness,
  152. 4:33AI harness. That's what Claude code is.
  153. 4:36And this is kind of the way that I think
  154. 4:37about how you build with AI. This three
  155. 4:40sort of layer circle. At the core, we
  156. 4:42have the AI model. So, Opus 4.8 or Fable
  157. 4:45or GPT, whatever model you're using,
  158. 4:46that's at the core. Then around that, we
  159. 4:48have the AI harness. So, cloud code is a
  160. 4:51harness that uses AI opus or other cloud
  161. 4:55models to power it. And then on top of
  162. 4:57that harness, you have you. So, your
  163. 5:00brain, your prompts, your context, your
  164. 5:02data, your business. That's how it
  165. 5:04works. So if we make this a little bit
  166. 5:06more practical with analogy here, we've
  167. 5:08got the model here. We've got a car and
  168. 5:10then we've got you. So opus is a model,
  169. 5:13right? But without this is basically the
  170. 5:15engine. So we put this inside. If I can
  171. 5:18make the layering right, we put this
  172. 5:20basically inside of the car. Wherever
  173. 5:22you think the engine in this car might
  174. 5:24be, let's just say it's here. Then this
  175. 5:27is still not going to really be that
  176. 5:28useful. It's not going to be able to
  177. 5:29drive or go anywhere without the human.
  178. 5:31So the human has to come in here and
  179. 5:33drive the car. So the human is steering
  180. 5:35the harness and the harness is powered
  181. 5:36by the AM model. That might make no
  182. 5:38sense to you at this point. That's okay.
  183. 5:40I just wanted to sort of lay out these
  184. 5:42terms because you will hear these terms
  185. 5:44the more you get into AI. So just a
  186. 5:46simple way to think about it because as
  187. 5:48you continue to evolve and as the tools
  188. 5:50continue to evolve, you might switch out
  189. 5:52the model. So maybe you'll be using
  190. 5:53cloud code, but eventually you might
  191. 5:54switch this out for a different model or
  192. 5:56maybe you'll be using the model, but
  193. 5:58you'll switch out a different harness.
  194. 5:59Maybe you want to get in a different car
  195. 6:00and just drive it in a bit of a
  196. 6:02different way. So they're
  197. 6:03interchangeable but at the core this is
  198. 6:05what we're looking at AI harness and you
  199. 6:08and really the most important thing in
  200. 6:09this whole picture is you. If you are
  201. 6:13not giving it the right context then
  202. 6:14it's not going to be able to do the
  203. 6:16right stuff for you. So that's what it
  204. 6:17looks like. Okay. So that is what cloud
  205. 6:19code is. Now before we start getting
  206. 6:20into some of the technical stuff of
  207. 6:22getting set up and you know building
  208. 6:23stuff I wanted to talk about the mindset
  209. 6:25because the mindset around this stuff is
  210. 6:27so important for many reasons. I think
  211. 6:29the first one is that you know the space
  212. 6:30changes so fast. new models, new tools,
  213. 6:33new headlines. The space changes fast.
  214. 6:35So, how do you learn things in a way
  215. 6:37where it's not outdated next week? And
  216. 6:39that's what I want to teach you guys
  217. 6:40today. That's so important, in fact,
  218. 6:42that I actually wrote a book about this.
  219. 6:44It's called Becoming AI Native. And in
  220. 6:46this book, I go over kind of like
  221. 6:48throughout the chapters, these 12 big
  222. 6:49mindset shifts. And so, throughout this
  223. 6:52course, I'll probably relate back to
  224. 6:53some of these mindset shifts a little
  225. 6:54bit. But, I wanted to talk a little bit
  226. 6:56about mindset before we jump into the
  227. 6:57weeds of everything today. But before we
  228. 6:59hop into those mindset shifts, I want to
  229. 7:01talk about real quick with you guys. Six
  230. 7:03AI skills that I think every single
  231. 7:04person needs to master just to basically
  232. 7:06future proof their careers. AI is real
  233. 7:08and it's not going away. Just like
  234. 7:10social media replace newspapers and
  235. 7:12billboards and Netflix replace cable, AI
  236. 7:14will change and replace millions of
  237. 7:15jobs, including yours, unless you learn
  238. 7:17six important skills. These six AI
  239. 7:19skills will futureproof your career so
  240. 7:21that you don't have to try and start a
  241. 7:22business if you don't want to or switch
  242. 7:23careers if [music] you don't want to.
  243. 7:24So, these six skills are going to apply
  244. 7:26no matter what job title you hold or
  245. 7:28whatever career you're pursuing. And I
  246. 7:29can guarantee you the last skill in this
  247. 7:31video will surprise you because it's the
  248. 7:32most unique skill, but it does work. So,
  249. 7:34let's just get started with skill number
  250. 7:36one, the AI person. So, becoming the AI
  251. 7:38person. I know that that sounds like
  252. 7:39super obvious because this is an AI
  253. 7:41video, but I think that a lot of people
  254. 7:43misunderstand what that actually means.
  255. 7:45If you're watching this, you probably
  256. 7:46feel like you're on the beginning side
  257. 7:47of AI. And honestly, you probably are
  258. 7:49because there's so much happening right
  259. 7:51now. There's always new models. There's
  260. 7:52always new tools. There's always new
  261. 7:53agents and workflows, new benchmarks,
  262. 7:55all of this kind of stuff coming out
  263. 7:56every single week. But I bet if you went
  264. 7:58and you talked to [music] your friends
  265. 8:00or your family or just a lot of the
  266. 8:01people that you work with, they probably
  267. 8:02already think of you as an AI person. Or
  268. 8:05if they don't, you want them to. And
  269. 8:07that's the point. Being the AI person is
  270. 8:08relative. It doesn't mean that you're
  271. 8:10the best AI engineer in the world or
  272. 8:11that you understand [music] every single
  273. 8:13AI model and the architecture behind it.
  274. 8:15You guys probably think of me as an AI
  275. 8:16person, but in reality, I feel
  276. 8:18overwhelmed every single day by how much
  277. 8:19I still don't know. But just remind
  278. 8:21yourself it's all relative. It just
  279. 8:23means that inside of your circle you
  280. 8:25know more than the other people and that
  281. 8:26matters way more than you might think.
  282. 8:28I've seen this happen over and over in
  283. 8:29my communities. People start picking up
  284. 8:31AI almost like a hobby. So they're
  285. 8:32playing with Claude, maybe they're
  286. 8:33testing out codecs, maybe they're
  287. 8:34messing around with Google V3, building
  288. 8:36little tools or little AI side projects,
  289. 8:38automating parts of their job, just
  290. 8:40running a bunch of experiments. And then
  291. 8:41what happens is they start showing
  292. 8:42people and that's usually all it takes.
  293. 8:44They show someone at work, hey, look at
  294. 8:46this thing I built this weekend. Or hey,
  295. 8:47I used Claw to clean up this process. or
  296. 8:49hey, I figured out a way to make this
  297. 8:50task, which normally takes me three
  298. 8:52hours, only take me 20 minutes because
  299. 8:53of AI. And all of a sudden, that person
  300. 8:55becomes known as the AI person. And the
  301. 8:57reason this is so powerful is because
  302. 8:59companies are about to have a ton of
  303. 9:01like AI moments. They're going to get
  304. 9:02access to a new model or they're going
  305. 9:04to spin up a new internal product or
  306. 9:05maybe they're going to want to build a
  307. 9:07little AI task force internally. [music]
  308. 9:08And when that happens, someone's going
  309. 9:10to say, "We need someone to lead this."
  310. 9:11You want someone in the meeting to say,
  311. 9:13"Actually, I know someone who's really
  312. 9:14into this stuff." Or something like, "We
  313. 9:16should ask Nate. you know, he's told me
  314. 9:17that he's been playing around with all
  315. 9:18these AI tools. That's how these
  316. 9:19opportunities open up before there's a
  317. 9:21formal job title. And that's how people
  318. 9:22get pulled into better projects. That's
  319. 9:24how people become more valuable without
  320. 9:25quitting their job and starting from
  321. 9:27[music] zero. And the data backs this
  322. 9:28up. So IBM's 2026 CEO study found that
  323. 9:3185% of CEOs said that all functional
  324. 9:33leaders have to become technology
  325. 9:35experts in their own domain. Not just
  326. 9:37the CTO, not just the engineers, not
  327. 9:39just the IT team, everybody. So whether
  328. 9:41you're in marketing, sales, finance,
  329. 9:43ops, legal, customer success, whatever
  330. 9:45you're in, this applies to you. And the
  331. 9:46thing to remember here is that it's not
  332. 9:48just in one department. It's not like
  333. 9:49cyber security where you kind of have
  334. 9:51like a new team and then you're done.
  335. 9:52It's going to seep into every single
  336. 9:54role and every vertical whether you like
  337. 9:55it or not. And I know some of you are
  338. 9:57probably thinking, "Okay, but my role
  339. 9:58doesn't really need AI and that's your
  340. 10:00mistake. Your role will need AI because
  341. 10:02every single role will." So instead of
  342. 10:04trying to switch careers or learn a
  343. 10:05completely new job, just take a look at
  344. 10:07your role. Take a look at what you
  345. 10:08already do and ask yourself, how do I
  346. 10:10become faster and better and more useful
  347. 10:13at this specific task and this specific
  348. 10:15role with AI? So, I mean, think about
  349. 10:16it. If you were an accountant when Excel
  350. 10:18came out and you basically just said,
  351. 10:19you know what? I'm good. I like the way
  352. 10:20I do this. I'm going to keep doing all
  353. 10:22of this on paper and with a calculator,
  354. 10:24you were done. Like, that was probably
  355. 10:25your last day at that company, if you
  356. 10:27said something like that, if you made
  357. 10:28kind of like that stubborn statement.
  358. 10:30The people who learned Excel first were
  359. 10:31just faster. They got through
  360. 10:33spreadsheets in a fraction of the time
  361. 10:34that it used to take them. Let's just
  362. 10:35say from two spreadsheets a week to 10.
  363. 10:37That's just random numbers, right? But
  364. 10:38that new level of output became the
  365. 10:40baseline. And AI is like that, but it's
  366. 10:42a lot bigger. Cuz right now, being the
  367. 10:43AI person feels like an edge, but in a
  368. 10:45few years, it's just going to be the new
  369. 10:46normal. So, the advantage isn't waiting
  370. 10:48until someone's forced to learn it. The
  371. 10:50advantage is becoming the new normal.
  372. 10:51While most people still think it's
  373. 10:53optional. So, practically, how do you
  374. 10:54actually do this? Well, I would say you
  375. 10:56pick one main AI tool and actually get
  376. 10:58pretty good with it. So, as of May 2026,
  377. 11:00recording this video, for me, that's
  378. 11:01Claude. And I use Claude for my general
  379. 11:03knowledge work and to build automations.
  380. 11:05But the exact tool isn't the point. The
  381. 11:06point is, you need one tool that you're
  382. 11:08not just messing around with. You're
  383. 11:09using a tool to actually deliver some
  384. 11:11sort of ROI. And then you can pick one
  385. 11:13workflow in your current job. You can
  386. 11:14take something that you already do every
  387. 11:16week. And then figure [music] out how
  388. 11:16you can use AI to make it better or
  389. 11:18faster. Document what changed, how long
  390. 11:20did it take before, how long after, what
  391. 11:22got better, what still needed human
  392. 11:23judgment. Now, obviously, be smart.
  393. 11:25Like, don't expose company data or break
  394. 11:26any regulations. Don't try to automate
  395. 11:28something at work without getting like
  396. 11:30permission about it. And if your company
  397. 11:31has guidelines and you can't use Claude,
  398. 11:32then that's actually another opportunity
  399. 11:34for you to [music] look at because you
  400. 11:35can go dig into what those regulations
  401. 11:37are and you can figure out which tools
  402. 11:38you actually could use. And that alone
  403. 11:40shows that you care. But I just want you
  404. 11:42guys to remember that you don't need to
  405. 11:43[music] change careers. You can just
  406. 11:44find the AI native version of the career
  407. 11:46that you already have. So that's skill
  408. 11:48number one, become the AI person. But
  409. 11:49skill number two is where a lot of
  410. 11:51people are going to mess this whole
  411. 11:52thing up because the more you use AI,
  412. 11:54the more tempting it gets to just trust
  413. 11:55the output and say like that's good
  414. 11:57enough. And that's where skill number
  415. 11:58two comes in, which is taste and
  416. 12:00judgment. As AI gets better, it gets
  417. 12:02easier and easier to just trust the
  418. 12:03first thing that it gives you. And I saw
  419. 12:05this joke the other day that was on one
  420. 12:06side, we had a person with a bullet
  421. 12:08point and they were using AI to turn
  422. 12:10that bullet point into like a super
  423. 12:11professional structured email to send to
  424. 12:13the team. And then on the other side, we
  425. 12:14had that team and they were using AI to
  426. 12:16turn that structured email into just one
  427. 12:18bullet point. Now, it's funny, but it
  428. 12:20does also kind of create the perfect
  429. 12:22image of where work is going if we're
  430. 12:23not careful. You know, everyone's
  431. 12:24transforming things, but is everyone
  432. 12:26reading it? And that's dangerous because
  433. 12:28when you first start using AI, you
  434. 12:29review everything, right? Like you read
  435. 12:31every word, you double check the claims,
  436. 12:32you make sure it sounds like you, but
  437. 12:34the outputs start getting pretty good
  438. 12:35and then you get more comfortable with
  439. 12:36it and you just kind of let your guard
  440. 12:38down and that's the trap. And sometimes
  441. 12:39the giveaway is really small like
  442. 12:41[music] m dashes. You know, AI is
  443. 12:42notorious for putting m dashes in
  444. 12:44everything because it's been, you know,
  445. 12:45trained on so many white papers and
  446. 12:47formal documents. And so like for me,
  447. 12:49I've basically never manually written or
  448. 12:51typed an M dash in my entire [music]
  449. 12:52life. So if something goes out for me
  450. 12:54with five m dashes in it, people who
  451. 12:55know me are going to look at that and be
  452. 12:57like, "Okay, Nate obviously didn't write
  453. 12:58this. This is AI." And the problem is
  454. 13:00the second they think that it changes
  455. 13:01the way that they interpret that entire
  456. 13:03message. They start wondering, "Did this
  457. 13:05person actually read this? Is any of
  458. 13:06this true? How much of this is actually
  459. 13:07them?" And that's where taste comes in.
  460. 13:09And just to be clear, I'm not saying
  461. 13:10that I don't use AI to write or that you
  462. 13:11shouldn't. I think everyone should. It's
  463. 13:13just about taste. But anyways, this
  464. 13:14issue comes up for me all the time with
  465. 13:16video. So AI helps me make motion
  466. 13:18graphics that are honestly way better
  467. 13:20than what I could do by hand. They're
  468. 13:21way faster. They're cleaner, they're
  469. 13:22more polished, but it doesn't always get
  470. 13:24right where the motion graphics should
  471. 13:26come in or how long they should stay on
  472. 13:27screen or the visuals and like what's
  473. 13:29explaining and if it's distracting or if
  474. 13:31it's helpful. And that is still my job
  475. 13:32to watch the whole video back and give
  476. 13:34feedback. And that's going to be true in
  477. 13:35every field. AI can write the sales
  478. 13:37email. You still need to know if it'll
  479. 13:38annoy the prospect. AI can draft you the
  480. 13:40HR memo, but you still need to know if
  481. 13:42it'll make the employees feel weird. So,
  482. 13:43how do you actually build this skill?
  483. 13:44First, you should study the best work in
  484. 13:46your field. If you're in sales, study
  485. 13:47great sales emails. If you're in
  486. 13:48marketing, study great landing pages.
  487. 13:50Next, start saving examples. So, build a
  488. 13:52library of stuff that you actually like
  489. 13:54and stuff that sounds like you. And when
  490. 13:55something's good, don't just say, "Cool,
  491. 13:56that's good." And just copy and paste it
  492. 13:58somewhere else. Ask it why. Ask what
  493. 13:59made it good and ask what makes it clear
  494. 14:01and ask what makes it trustworthy and
  495. 14:03tell it why you think it's good and tell
  496. 14:04it what you like about it. Third, every
  497. 14:06time you correct AI, you feed that
  498. 14:08correction back into the system. So, the
  499. 14:09feedback loop is for good things, but
  500. 14:11also for bad things. If AI writes
  501. 14:12something and you change five things,
  502. 14:14say, "Hey, here are five things that I
  503. 14:16changed. Here's why. Update your
  504. 14:17instructions so that next time it's
  505. 14:18closer." And that's how you actually
  506. 14:20train the system to better understand
  507. 14:21your [music] taste. Because at the end
  508. 14:22of the day, AI can generate the work.
  509. 14:24Taste is deciding what deserves your
  510. 14:26name. Because remember, if you produce
  511. 14:27something with AI, your name is signed
  512. 14:28to it. Whether that is something that's
  513. 14:30really, really good and the whole team
  514. 14:31loves it, you [music] will get credit
  515. 14:33for it. Or if it's something that's bad,
  516. 14:34you will take the blame. It doesn't
  517. 14:36matter if AI wrote it, doesn't matter if
  518. 14:37you wrote it for that piece of [music]
  519. 14:38work because your name is assigned to
  520. 14:39it. So now the question is, how do you
  521. 14:41actually get AI to produce better work
  522. 14:42in the first place? Because if you're
  523. 14:43just typing prompts and just [music]
  524. 14:45crossing your fingers, then you're
  525. 14:46leaving a lot on the table. So that's
  526. 14:47skill number three and it's something
  527. 14:48that you can apply the second you close
  528. 14:49out of this video. And that skill is
  529. 14:51becoming a context engineer. So you
  530. 14:52might have heard the term prompt
  531. 14:54engineering. This was a huge thing a
  532. 14:55couple of years ago. The whole idea of
  533. 14:56prompt engineering was that if you
  534. 14:58wanted a better output from an AI model,
  535. 14:59you had to give it a good prompt. You
  536. 15:01had to give it a role, clear
  537. 15:02instructions. You had to tell it the end
  538. 15:03state. You had to give it examples. You
  539. 15:05had to tell it what to do and what
  540. 15:06explicitly not to do. But prompt
  541. 15:08engineering is getting less important
  542. 15:09over time because the models are just
  543. 15:11getting so much better on their own.
  544. 15:13Even Andre Karpathy, who's one of the
  545. 15:14goats of AI and actually just joined
  546. 15:16Enthropic, called context engineering
  547. 15:18the delicate art and science of filling
  548. 15:20the context window with just the right
  549. 15:22information. So translation in layman's
  550. 15:24terms, prompts are how you ask. Context
  551. 15:26is what your AI actually knows. In
  552. 15:28context engineering is way more durable
  553. 15:29than prompting because no matter how
  554. 15:31good the models get, they still need to
  555. 15:32know what's actually in your brain. So
  556. 15:34what's going on in your business, what's
  557. 15:35on your calendar, what your priorities
  558. 15:36are, stuff like that. So here's my
  559. 15:38personal example. I've built what I call
  560. 15:39my AI operating system or my AI OS. And
  561. 15:42[music] basically, it has pretty much
  562. 15:43all the context that's in my head. It
  563. 15:45can see my meeting transcripts. It can
  564. 15:46see all my YouTube videos. It can read
  565. 15:47through my DMs and channels in ClickUp
  566. 15:49and Slack. It can pull my emails. It
  567. 15:51honestly knows what's going on in my
  568. 15:52world better than I do because it can
  569. 15:54recall everything instantly and
  570. 15:55perfectly. And I can't do that. So, it's
  571. 15:57kind of like this running joke that if
  572. 15:58someone couldn't get a hold of me, they
  573. 16:00should just message my AIOS and it would
  574. 16:01actually give them an answer that's
  575. 16:03better and faster than waiting for me to
  576. 16:05respond. And that's the point you want
  577. 16:06to get to where an AI has so much
  578. 16:07context about you that you can say
  579. 16:09something like that. So, how do you
  580. 16:10actually start that? Well, the simplest
  581. 16:11move, stop opening Claude or ChatGBT in
  582. 16:14a blank chat. Instead, spin up a custom
  583. 16:15GBT or spin up a Claude project and feed
  584. 16:17it real context from whatever you're
  585. 16:19working on. So, say you're running a
  586. 16:20marketing campaign for a new product
  587. 16:21launch. Don't just open up a fresh chat
  588. 16:23every time you need help with ideas.
  589. 16:24Spin up a project, drop in documents
  590. 16:26with your product details, your
  591. 16:28marketing calendar, add copy that's
  592. 16:29worked well in the past, add copy that's
  593. 16:30flopped in the past. Now, the AI is
  594. 16:32actually working with that context, not
  595. 16:34generic best practices. And the analogy
  596. 16:36I keep coming back to here is a summer
  597. 16:37intern. When a new intern shows up at
  598. 16:39the company, you have to sit them down
  599. 16:40and kind of onboard them, right? Like
  600. 16:42you have to explain what the business
  601. 16:43does, walk them through who's on the
  602. 16:45team and who does what. You have to tell
  603. 16:46them what current projects matter. And
  604. 16:47only after they have all that context
  605. 16:49can they actually contribute in a
  606. 16:50meaningful way. And AI is the exact
  607. 16:52same. And without the context, it's just
  608. 16:53a smart intern who's guessing. And
  609. 16:55remember, the context you're giving for
  610. 16:56the most part is data that's not
  611. 16:58publicly accessible. The context about
  612. 17:00your subject matter expertise, your
  613. 17:01brain, your IP, that's what makes the
  614. 17:03outputs unique. If everyone's using that
  615. 17:05same model and asking for the same
  616. 17:06things, then everyone's outputs will
  617. 17:07look the exact same. So your context is
  618. 17:09really, really important. So just
  619. 17:10remember, garbage in, garbage out. If
  620. 17:12you give your AI bad data and no
  621. 17:14context, then you're going to get a very
  622. 17:15generic output. So that's skill number
  623. 17:16three, become a context engineer. Now,
  624. 17:18skill number four is one of the most
  625. 17:19underrated skills on the entire list.
  626. 17:21And in the AI era, it might be the
  627. 17:23biggest separator between the people who
  628. 17:24win and the people who get left behind,
  629. 17:26and it's iteration speed. Now, if skill
  630. 17:28number two was about knowing what good
  631. 17:29looks like, this skill is about getting
  632. 17:31there as fast as possible. So, the two
  633. 17:33skills kind of work hand in hand, but
  634. 17:35this one stands on its own because in
  635. 17:36the era of AI, the people who iterate
  636. 17:38fastest are the ones who win. If you can
  637. 17:39move fast without sacrificing quality,
  638. 17:41you're just going to outperform
  639. 17:42everybody because every iteration is
  640. 17:43more data. Every iteration is a chance
  641. 17:45to learn what's working and what's not
  642. 17:46and a chance to make your skills and
  643. 17:48your agents and your prompts and your
  644. 17:49context, all of it better. The analogy I
  645. 17:51always go back to here [music] is like
  646. 17:52you're teaching a kid to ride a bike.
  647. 17:54You can't just chuck a kid on a bike and
  648. 17:56say, "Have fun." And expect them to go
  649. 17:57ride a mile. That's not how it works.
  650. 17:59You would put them on the bike. You'd
  651. 18:00maybe put one hand on their back. You'd
  652. 18:01hold the handle and you'd start walking
  653. 18:02with them. You would feel if they were
  654. 18:04leaning left and correct them. You'd
  655. 18:05say, "Hey, you know, shift your weight
  656. 18:06over to the right a little bit. You're
  657. 18:07helping them calibrate. And after each
  658. 18:09run up and down the driveway, you
  659. 18:10continue [music] to calibrate. You
  660. 18:11continue to iterate and adjust. And the
  661. 18:13more time that that kid spends on the
  662. 18:14bike with your guidance, the more that
  663. 18:16you can start to slowly let go and
  664. 18:17eventually you take off the training
  665. 18:18wheels and one day you give them a
  666. 18:20little push and they just ride and
  667. 18:21they're pedaling and they are doing
  668. 18:22great." And that's exactly how building
  669. 18:24with AI works. You very rarely can just
  670. 18:26oneshot something. You use the data and
  671. 18:28you feed it back in and you make it
  672. 18:30better. And the thing is once you've
  673. 18:31taught one kid to ride a bike, teaching
  674. 18:32the next kid is easier and teaching the
  675. 18:34third kid's easier. And by the time
  676. 18:35you're teaching your 15th kid how to
  677. 18:36ride a bike, you've pretty much got the
  678. 18:37process down [music] to a science. And
  679. 18:39now obviously every use case is
  680. 18:40different, right? Like some agents are
  681. 18:41more complex than others and and they
  682. 18:43don't always get built the same. But the
  683. 18:44idea of your process in building agents
  684. 18:47gets better every time. So hopefully you
  685. 18:48guys get the point that I'm trying to
  686. 18:49make here. Remember earlier that little
  687. 18:51example I said of like let's say people
  688. 18:52are typically producing two spreadsheets
  689. 18:54[music] a week and then after Excel they
  690. 18:56move that baseline up to 10. The faster
  691. 18:57you can iterate, the faster you're going
  692. 18:59to be able to produce things, which
  693. 19:00means your new baseline is going to be
  694. 19:02higher than everyone else's baseline as
  695. 19:03far as like units of output. So how do
  696. 19:05you actually train yourself to be able
  697. 19:06to iterate and move faster? This part
  698. 19:08may sound silly, but the first thing I
  699. 19:10think is to master keyboard shortcuts.
  700. 19:12Stop using your mouse for every little
  701. 19:13thing and honestly stop typing
  702. 19:14everything, right? Like use voice input.
  703. 19:16It's way faster than typing. And we
  704. 19:17actually have a voiceto text tool called
  705. 19:19Glido that I use literally every day. So
  706. 19:20if you want to check it out, links in
  707. 19:21the description. But the bigger move is
  708. 19:23rapid prototyping. Don't sit there
  709. 19:24trying to plan the perfect [music]
  710. 19:26version. Just build the ugly version
  711. 19:27fast. See what breaks, fix it, and
  712. 19:29iterate. That's the whole idea of
  713. 19:30getting out a P or a proof of concept.
  714. 19:32Now, there's another half to this skill
  715. 19:33that's just as important, which is
  716. 19:35knowing when to stop iterating. Because
  717. 19:36when you're building AI tools, it can
  718. 19:38feel like there's no such thing as a
  719. 19:39finished product. [music] I've been
  720. 19:40there. There's always a nice to have.
  721. 19:42There's always one more feature you
  722. 19:43could add. So what you have to do is
  723. 19:44give yourself a north star. You have to
  724. 19:46tie one automation to one very specific
  725. 19:48business metric and you have to define
  726. 19:50what done is. You have to define what
  727. 19:52done looks like before you even start
  728. 19:53building. So if it's a customer support
  729. 19:55automation, tickets resolved per day. If
  730. 19:56it's a sales automation, maybe it's
  731. 19:58qualified appointments set per week. If
  732. 20:00it's an ops automation, maybe it's
  733. 20:01refund percentage going down by X%. So
  734. 20:03pick the metric, build until you hit it,
  735. 20:05and once you hit it, move into
  736. 20:06maintenance mode. Obviously, over time,
  737. 20:07you can probably find ways to improve it
  738. 20:09and maybe improve the metrics even more,
  739. 20:11but the heavy lifting is done. So
  740. 20:12whether you're building automations for
  741. 20:13yourself or for a client, a clear
  742. 20:15definition of done is what keeps you
  743. 20:16from scope creeping on yourself. And
  744. 20:18that's skill number four, iteration
  745. 20:19speed. Now skill number five is going to
  746. 20:20feel a little bit different and it's
  747. 20:22inspired by Iron Man. So this skill is
  748. 20:24building your own Jarvis. So you guys
  749. 20:25have seen Iron Man, right? Tony Stark
  750. 20:27doesn't sit at his computer typing
  751. 20:28prompts into Jarvis all day. Jarvis is
  752. 20:30already always there. He runs in the
  753. 20:31background and he notices things and he
  754. 20:33pings Tony when something needs
  755. 20:34attention. He'll even kick off tasks
  756. 20:36before Tony even asks. Now, this is
  757. 20:38different from skill 3. Context
  758. 20:39engineering was about teaching your AI
  759. 20:41what you know. Skill number five is
  760. 20:42about teaching your AI to act on what it
  761. 20:44knows without you having to be the
  762. 20:46trigger. So here's the way I think about
  763. 20:47this. Imagine you build an automation
  764. 20:48that only runs when you explicitly fire
  765. 20:51it off. That's great. It's going to make
  766. 20:52you a lot more productive. But if you're
  767. 20:54not around to trigger it, nothing
  768. 20:55happens. Now imagine you build a system
  769. 20:57that fires on its own. While you're in a
  770. 20:59meeting, while you're on a walk, while
  771. 21:00you're taking a nap on the beach, that's
  772. 21:02real leverage. So the move here is to do
  773. 21:04an audit of your day. What things do you
  774. 21:06do every week that get triggered by
  775. 21:07something predictable, meaning maybe a
  776. 21:09specific type of email coming in or
  777. 21:11every Monday morning or every Wednesday
  778. 21:12evening or every time a new lead lands
  779. 21:14in your CRM? Every one of those triggers
  780. 21:16is something that you can actually hand
  781. 21:18to a system and tell it to do X, Y, and
  782. 21:19Z when A or B happens. But here's the
  783. 21:22catch. The second you take yourself out
  784. 21:23of the loop, the risk obviously goes up
  785. 21:25because you're not sitting there
  786. 21:26watching it and making sure nothing goes
  787. 21:27wrong. There's no catching the mistake
  788. 21:29before it reaches a customer or pulls
  789. 21:31the wrong data or sends the wrong
  790. 21:32message to the wrong list. So the moment
  791. 21:34you remove yourself from the process,
  792. 21:35the system has to be pretty airtight and
  793. 21:37pretty battle tested. Which is exactly
  794. 21:39why a lot of people screw this up. The
  795. 21:40second they hear Jarvis or an always
  796. 21:42personal AI assistant, their brain jumps
  797. 21:44straight to building an AI agent for
  798. 21:46basically every function. Whether that's
  799. 21:47a new email or an end of week report. A
  800. 21:49lot of people just jump straight to an
  801. 21:51AI agent. So the real skill here is
  802. 21:52knowing when something needs an AI agent
  803. 21:54versus when it just needs a simple
  804. 21:56workflow that doesn't even use AI at
  805. 21:57all. So I think about this like a
  806. 21:58vending machine versus a slot machine. A
  807. 22:00vending machine is deterministic. You
  808. 22:02put in a quarter, you hit E4, you get a
  809. 22:03Coke. Same input, same output every
  810. 22:05single time. A slot machine is
  811. 22:06nondeterministic. You pull the lever.
  812. 22:08Sometimes you win, sometimes you lose,
  813. 22:09sometimes nothing. So AI agents are slot
  814. 22:11machines. And essentially, like every
  815. 22:13time you talk to an AI, it's almost like
  816. 22:14you're gambling. Like not really when
  817. 22:16you put the right harness and context in
  818. 22:17place, but you never know what's going
  819. 22:18to come out the other side. Agents are
  820. 22:20really powerful when you need deep
  821. 22:21reasoning and you need, you know,
  822. 22:23variability, but they cost more. They
  823. 22:24fail more often in unexpected ways. So
  824. 22:27they introduce more risk. But if you
  825. 22:28have a simple, you know, if this, then
  826. 22:29that, that's a workflow. And that's just
  827. 22:31a vending machine. Predictable, it's
  828. 22:32really cheap, and it doesn't break. So
  829. 22:34if your task is something like every
  830. 22:35morning at 9:00 a.m., pull last week's
  831. 22:37revenue from Stripe and post that in
  832. 22:38Slack, that does not need an agent. A
  833. 22:40simple workflow could do that in 5
  834. 22:41minutes and basically never fail. But if
  835. 22:43your task was something like read these
  836. 22:44incoming customer emails and understand
  837. 22:45what they actually want and draft a
  838. 22:47tailored response, now you need some AI
  839. 22:49in there because the input is messy and
  840. 22:51there's reasoning and you have to
  841. 22:52generate some sort of content. And
  842. 22:53honestly, this is the elite version of
  843. 22:55being the AI person that we talked about
  844. 22:57at the start. Because in a world where
  845. 22:58everyone is shouting AI, AI, AI, the
  846. 23:00person who can actually step back and
  847. 23:02say, "Hey, we don't actually need AI
  848. 23:03here. We can solve this cheaper, faster,
  849. 23:05and with way less risk." That person
  850. 23:07stands out way more than the one who's
  851. 23:09cramming AI into every single task. So
  852. 23:11being the person that has that take
  853. 23:12signals that you actually understand the
  854. 23:14business problem, not just the AI hype.
  855. 23:16When you're building your Jarvis, ask
  856. 23:17yourself two questions for every task
  857. 23:18that you want to automate. First one, do
  858. 23:20I actually need to be the one triggering
  859. 23:22this? Or can the system fire this off on
  860. 23:24its own? And second, does the step
  861. 23:26actually need AI or could a simple
  862. 23:27Python script or no code workflow do it
  863. 23:30at a fraction of the cost with less
  864. 23:31risk? And what you want to do is default
  865. 23:33to the simplest thing that gets the job
  866. 23:35done. Because the people who win in the
  867. 23:36AI era aren't the ones who are building
  868. 23:37the fanciest agents with hundreds of
  869. 23:39tools and hundreds of sub aents. They're
  870. 23:41the ones building systems that run
  871. 23:42quietly in the background, costing them
  872. 23:43almost nothing and doing real work
  873. 23:45whether they're there or not. So that's
  874. 23:47skill number five. But the final skill,
  875. 23:48I can guarantee is something that you've
  876. 23:50never heard of. At least not in this
  877. 23:51context. I'm talking about unemployment
  878. 23:53insurance. And no, I don't literally
  879. 23:54mean taking out insurance. Rather, I
  880. 23:56mean creating your own insurance. This
  881. 23:58might be a bit of a hot take. Not
  882. 23:59everyone's going to agree with me on
  883. 24:01this, but I'm bringing it up because I'm
  884. 24:02really confident this is going to become
  885. 24:04way more normal over the next few years.
  886. 24:06And the skill is building multiple
  887. 24:07income streams using AI so that no
  888. 24:09single employer or client can take you
  889. 24:11out. The old career model was basically
  890. 24:13like one job, one income, a 401k, maybe
  891. 24:15a few investments. But basically, all
  892. 24:17your eggs were in one basket. And if you
  893. 24:18got fired, you were kind of back on the
  894. 24:20hunt. You were polishing your resume,
  895. 24:21applying to 100 jobs, hoping somebody
  896. 24:23bit. And this new model that I'm talking
  897. 24:24about that I see emerging is job
  898. 24:26stacking. Your day job plus a couple of
  899. 24:28AI powered side income streams. I've
  900. 24:30already seen a ton of people running
  901. 24:31multiple remote jobs, you know,
  902. 24:32part-time gigs, side projects, and
  903. 24:34stacking that all to equal way more
  904. 24:36income than they'd ever make at just one
  905. 24:38full-time job. I'm not saying that every
  906. 24:39one of you guys should just go quit your
  907. 24:40full-time job and do this. I'm saying
  908. 24:42that it's already happening and it's
  909. 24:43about to become way more common because
  910. 24:45AI lets one person do work that used to
  911. 24:47take a team of five. Now, the thing I
  912. 24:48want to hammer home here, you don't have
  913. 24:50to stack five income streams in
  914. 24:52completely different domains. That's how
  915. 24:53people end up burnt out and broke. The
  916. 24:55better version is one passion with
  917. 24:57multiple branches. I'm a really, really
  918. 24:58strong believer that to be successful at
  919. 25:00anything in life, you have to enjoy it.
  920. 25:02You have to have at least some kind of
  921. 25:03passion for it. If you're chasing AI for
  922. 25:05the wrong reasons or you're going after
  923. 25:07something because someone said there's a
  924. 25:09lot of money in it, then people are
  925. 25:10going to be able to see right through
  926. 25:10that and it's going to be really hard to
  927. 25:12be successful. So, what I want you to
  928. 25:13take out of this is to figure out what
  929. 25:15motivates you. Figure out what you're
  930. 25:16actually passionate about. And that's
  931. 25:18where your north star comes from. I've
  932. 25:19got a few different income streams
  933. 25:20myself. And what's cool about it is that
  934. 25:22they all stem off of my same north star.
  935. 25:24Same theme, same expertise just packaged
  936. 25:26in a few different ways. For example,
  937. 25:27you've got your career, that's your
  938. 25:29foundation. your expertise about that
  939. 25:30career packaged into maybe a course or a
  940. 25:32niche newsletter or blog or microsass or
  941. 25:35maybe even some consulting on the side.
  942. 25:36It's the same domain, but it just takes
  943. 25:37different [music] shapes and that's how
  944. 25:38you avoid the biggest trap with this
  945. 25:40whole idea which is distraction. When
  946. 25:41you're starting, just pick one and go
  947. 25:43hard until you have momentum under you
  948. 25:44and then you can sort of branch out.
  949. 25:46Now, a couple quick caveats to mention
  950. 25:47here is once again be smart, check your
  951. 25:49employment contract, watch out for
  952. 25:50non-competes, disclose whatever you're
  953. 25:52doing on the side if your company
  954. 25:53requires it, like don't do anything
  955. 25:54sketchy and don't burn your day job
  956. 25:56chasing the side thing and be safe. But
  957. 25:57how do you practically do this? Well,
  958. 25:59honestly, this really depends on who you
  959. 26:01are as a person, but if I had to give a
  960. 26:02default move, I would say building in
  961. 26:04public. Experiment with AI tools, build
  962. 26:06small things, and share what you're
  963. 26:06learning. Document the wins and losses.
  964. 26:08Build a tiny brand around the work
  965. 26:10you're already doing. Because the second
  966. 26:11you start posting, you become
  967. 26:12discoverable. That's how opportunities
  968. 26:14show up, clients show up, job offers
  969. 26:16show up, people want to work with the
  970. 26:17people actually doing the work. And this
  971. 26:19is also something interesting to think
  972. 26:20about. The world is shifting in a way
  973. 26:22where humans are using AI for almost
  974. 26:23everything, right? Which means when
  975. 26:25humans go to search the internet for
  976. 26:26something, they're probably going to do
  977. 26:28that through some sort of AI interface.
  978. 26:30Which means if you don't exist basically
  979. 26:32at all, somewhere where an AI can find
  980. 26:34you and find information about you, then
  981. 26:36it's going to be a lot tougher to be
  982. 26:37discovered. Now, if building in public
  983. 26:38isn't your thing, that's fine. You just
  984. 26:40have to find your own version. Maybe
  985. 26:41it's a quiet consulting practice, niche
  986. 26:43newsletter that doesn't require your
  987. 26:44face. Maybe it's a product that you
  988. 26:45build and sell without ever showing up
  989. 26:47on camera. Medium is completely up to
  990. 26:49you, but the point is you start building
  991. 26:50something that's actually yours. So,
  992. 26:52those are the six skills that I'd
  993. 26:53recommend learning and developing to
  994. 26:54futureproof yourself in the AI era. I'm
  995. 26:57a strong believer in adaptation and
  996. 26:58survival of the fittest. So, as long as
  997. 27:00you keep up with the changes and
  998. 27:01developments in the space that matter
  999. 27:03for your northstar, your ability to earn
  1000. 27:05and live will always be protected. And
  1001. 27:06now that we have discussed those six
  1002. 27:07skills, keep those in mind as you work
  1003. 27:09your way through the rest of the course
  1004. 27:10and the rest of these mindset shifts.
  1005. 27:12Everything loops back to those. So, now
  1006. 27:14let's get back to those mindset shifts.
  1007. 27:15The first thing is that AI native isn't
  1008. 27:17what you know. It's not how much
  1009. 27:19expertise you have or how many models
  1010. 27:21you can name. It's about what your hand
  1011. 27:23reaches for. So throughout this course,
  1012. 27:25what I want you to think about is how
  1013. 27:27would you do this manually? When you
  1014. 27:29know that you need to respond to an
  1015. 27:30email or that you need to analyze a
  1016. 27:31report, what do you do? You probably
  1017. 27:33open up the tab on your browser or maybe
  1018. 27:35you even have it bookmarked and you're
  1019. 27:37constantly switching between tabs and
  1020. 27:39context switching. But being AI native
  1021. 27:42means, okay, rather than doing this
  1022. 27:44manually myself, let me default first to
  1023. 27:47doing this with AI, doing this through
  1024. 27:48cloud code, doing this through my other
  1025. 27:50tools, using AI to do something like
  1026. 27:52research and analysis before I give it
  1027. 27:54my first pass. That's how someone
  1028. 27:56becomes truly AI native and way more
  1029. 27:58productive. I hardly ever leave cloud
  1030. 28:01code. Most the day when I'm working, I'm
  1031. 28:03working inside of this interface right
  1032. 28:04here because it just makes me way more
  1033. 28:06productive. And then the next one that I
  1034. 28:07wanted to call out, and like I said,
  1035. 28:08we'll probably revisit all these, is
  1036. 28:10number four. Don't quit in the dip. The
  1037. 28:12payoff is the climb. And here's what I
  1038. 28:14mean by that. Let me just make a quick
  1039. 28:16chart here. Whenever you decide to learn
  1040. 28:19something new, there is typically a
  1041. 28:21short-term cost that you have to bear.
  1042. 28:22Whether that is because you're a bit
  1043. 28:24overwhelmed or whether it's because you
  1044. 28:25have to learn a new skill or set up a
  1045. 28:27new system, whatever it is, there's
  1046. 28:29usually a short-term cost you have to
  1047. 28:30bear. And that discourages a lot of
  1048. 28:32people. So let's say you start learning,
  1049. 28:34you know, you start taking this course,
  1050. 28:35you start getting a little overwhelmed.
  1051. 28:37Do not quit. Do not click off the video.
  1052. 28:39At least save it for later and come back
  1053. 28:40to it because like I said, what happens
  1054. 28:42is you start learning, right? And a lot
  1055. 28:45of people expect that the learning is
  1056. 28:47going to be linear like this. They
  1057. 28:49expect this is how their progress is
  1058. 28:50going to look. But typically what
  1059. 28:52happens is their progress looks more
  1060. 28:54like this and it becomes exponential.
  1061. 28:57And so this gap right here, this is
  1062. 29:00where people end up dropping out. they
  1063. 29:02get overwhelmed and they quit here
  1064. 29:03before they start to get all of the
  1065. 29:05actual exponential benefits of learning
  1066. 29:08the thing and implementing the new
  1067. 29:10technology. And look at all this green
  1068. 29:12that you're actually going to get when
  1069. 29:13you keep learning and you keep building.
  1070. 29:15Another way that I like to think about
  1071. 29:16it is let's say on this range, right?
  1072. 29:19The old way of doing something is maybe
  1073. 29:22getting you results that are about here.
  1074. 29:24And what happens is the dip that I'm
  1075. 29:26talking about when you start to learn a
  1076. 29:27new method. You may feel slower in that
  1077. 29:29week and you may feel like you're doing
  1078. 29:31it worse in that week because you're so
  1079. 29:33used to the old manual way. But what
  1080. 29:35happens is is that short-term dip, maybe
  1081. 29:37you're dipping in 20% productivity. Is
  1082. 29:40that dip worth, you know, maybe the 60%
  1083. 29:44productivity that you ultimately will
  1084. 29:46have? In most of the cases, the answer
  1085. 29:48is yes. But this is where people drop
  1086. 29:50off. And that's what I'm trying to
  1087. 29:51prepare you guys for. Do not drop off in
  1088. 29:53the dip. Do not drop off in this gap
  1089. 29:55right here. And because I'm designing
  1090. 29:57this course for knowledge workers,
  1091. 29:58managers, regular people that don't have
  1092. 30:00coding backgrounds. Think about it like
  1093. 30:02this one overarching rule. You are just
  1094. 30:05a manager. You're managing AI agents.
  1095. 30:08What does that mean to me? Think about
  1096. 30:09it like if you've ever managed an
  1097. 30:11employee, which a lot of you guys
  1098. 30:12probably have, but if you haven't, this
  1099. 30:14is typically what it would look like.
  1100. 30:15First of all, you get them onboarded.
  1101. 30:17You let them get to know you. You get to
  1102. 30:19know them. You let them get to know your
  1103. 30:20business a little bit.
  1104. 30:22You don't want to overwhelm them. You
  1105. 30:23don't throw them 10 products on day one.
  1106. 30:25You slowly phase them in until you start
  1107. 30:27to feel a little bit more trust. But
  1108. 30:29that doesn't mean you just let them run.
  1109. 30:31Your job is to very, very clearly tell
  1110. 30:33them, "Hey, this is what you need to do
  1111. 30:35today. This is what good looks like.
  1112. 30:36This is what bad looks like." And then
  1113. 30:38when they finish their job and they give
  1114. 30:40you something, you don't just pass it
  1115. 30:41along or accept it as is. You review it.
  1116. 30:44You look at it. You use your judgment.
  1117. 30:46You use your taste. And then you say,
  1118. 30:47"Hey, here's what you did good and
  1119. 30:49here's what you did bad." Now take my
  1120. 30:51feedback and iterate again and update
  1121. 30:54your instructions. You know, remember
  1122. 30:55that I told you this so that next time
  1123. 30:57it's not bad and next time it's even
  1124. 30:59better. And that doesn't mean it's going
  1125. 31:01to be 100% on the first pass, but it
  1126. 31:03means every single time that you get a
  1127. 31:05deliverable from your AI agent, that's
  1128. 31:06an opportunity to improve the system.
  1129. 31:09And the cool thing is all of this
  1130. 31:10improvement, all of this instructions,
  1131. 31:12everything I'm explaining right now and
  1132. 31:13everything for the rest of this course,
  1133. 31:15it's just natural language. So if you
  1134. 31:17can think clearly about what you want,
  1135. 31:18which humans are pretty good at, and you
  1136. 31:20can describe what you want pretty
  1137. 31:21clearly, which once again, humans are
  1138. 31:22pretty good at, then you will be good at
  1139. 31:24managing AI agents. All right, so let's
  1140. 31:26move on to number three, which is
  1141. 31:27installing and signing in to cloud code.
  1142. 31:31So you can just go ahead and Google
  1143. 31:32cloud code install, right? You can click
  1144. 31:34on the quick start docs, and then you
  1145. 31:36can pretty much figure out right here
  1146. 31:37how to get a cloud subscription because
  1147. 31:39you do need a cloud subscription to use
  1148. 31:40cloud code. And then how do you actually
  1149. 31:42install it? And there's a few ways to do
  1150. 31:44this. If you want to use one of these
  1151. 31:45commands in your terminal to install
  1152. 31:47cloud code on your device, that works
  1153. 31:49fine. And by that I mean you would open
  1154. 31:51up your command prompt or your
  1155. 31:52PowerShell or, you know, whatever it is
  1156. 31:54on your operating system and just run
  1157. 31:56these commands. You could even have
  1158. 31:58Cloud Chat help you out with this if
  1159. 32:00you're having trouble for some reason.
  1160. 32:01But it's super easy. And what I would
  1161. 32:02recommend is getting the Claude Code
  1162. 32:04desktop app or just cloud desktop app.
  1163. 32:05So Google that, click on this right
  1164. 32:07here, and then download for your
  1165. 32:09operating system. So for me, I'm on
  1166. 32:11Windows and I would download this, run
  1167. 32:13the wizard and then when you open up
  1168. 32:15Claude, it will look something like
  1169. 32:16this. And you're just going to go ahead
  1170. 32:17and get started. Now, this is where you
  1171. 32:19are going to, like I said, have a paid
  1172. 32:21plan for Claude Code. You can start on
  1173. 32:23this pro plan. As you can see, you get
  1174. 32:24Claude Code and then you can upgrade
  1175. 32:26that later if you want to max the $100 a
  1176. 32:29month plan or the $200 a month plan. I
  1177. 32:31know that sounds expensive, but think
  1178. 32:32about this. For 200 bucks a month, you
  1179. 32:35can get basically a full AI employee,
  1180. 32:36which is the cheapest employee you might
  1181. 32:38ever get for the amount of work you can
  1182. 32:40do. For reference, um, you know, a good
  1183. 32:42project manager or a good software
  1184. 32:43engineer could cost you way upwards of
  1185. 32:45$100,000 a year, whereas this is only
  1186. 32:47going to be 200 bucks a month, which is
  1187. 32:49very cheap. So, start with Pro and
  1188. 32:52upgrade later as you need. And once you
  1189. 32:54have that account, then all you have to
  1190. 32:56do is actually sign in on the Claude
  1191. 32:58desktop app. All right. So, now that we
  1192. 33:00are set up, let's talk about where to
  1193. 33:01run Cloud Code. So, I just showed you
  1194. 33:03guys how to use the cloud desktop app,
  1195. 33:05right? You can come in here and we can
  1196. 33:07talk to Claude chat right here. I can
  1197. 33:09say something like hello or sorry, it's
  1198. 33:11not cloud chat. This is cloud code and
  1199. 33:12this is the cloud desktop app. So, I'm
  1200. 33:15going to be using this throughout the
  1201. 33:16course because I think the interface is
  1202. 33:17super nice and we can manage all of our
  1203. 33:19different projects and our chats on the
  1204. 33:20lefth hand side. So, this is what I will
  1205. 33:22be using today. However, I will say a
  1206. 33:25lot of the times I do like to use this
  1207. 33:26in VS Code. So, VS Code is just a simple
  1208. 33:28IDE. It's completely free to download
  1209. 33:30and it lets me use cloud code in the
  1210. 33:31terminal like this or I can even use the
  1211. 33:34uh cloud code extension which looks once
  1212. 33:37again a little bit more userfriendly. So
  1213. 33:39the point I'm trying to make here is
  1214. 33:40there's a lot of different ways you can
  1215. 33:41run it. Other YouTubers run it different
  1216. 33:43ways, your friends might run it
  1217. 33:44different ways, but under the hood it's
  1218. 33:46basically all doing the exact same
  1219. 33:47thing. So don't stress too much about
  1220. 33:49where you use it. If later on in 2 weeks
  1221. 33:51you want to switch to VS Code, you can
  1222. 33:53do so and nothing will change. All of
  1223. 33:55your files and projects will still be
  1224. 33:56there. all of your sessions, all of your
  1225. 33:58apps, whatever you built, it's still
  1226. 33:59there. It's just the way that you
  1227. 34:01actually interact with it. So, don't
  1228. 34:02stress about it too much. Like I said in
  1229. 34:04today's video, I am going to be using it
  1230. 34:06right here with the Clawed Desktop app.
  1231. 34:09Okay, so earlier I said that this can
  1232. 34:11work with your local files, right? But
  1233. 34:13what does that actually mean? So, if I
  1234. 34:15open up my file explorer right here, you
  1235. 34:17can see that I've got, you know, my
  1236. 34:18downloads, my desktop, a bunch of other
  1237. 34:20folders, pictures, whatever. And Claude
  1238. 34:23Code is able to navigate through all of
  1239. 34:25this, edit these things, move them
  1240. 34:27around, find things for you. So, just as
  1241. 34:29a super simple example, right here, I
  1242. 34:30have AIS Live Black, which is just a
  1243. 34:33logo, right, for our upcoming event, and
  1244. 34:35this is in my downloads folder from a
  1245. 34:37few weeks ago. Let's say I knew that
  1246. 34:39that was there, but I forgot exactly
  1247. 34:41what it was called or how to find it. I
  1248. 34:43could real quick just say, "Hey, so I
  1249. 34:46know that I have the AIS Live logo, the
  1250. 34:49black version, somewhere in my downloads
  1251. 34:50folder. could you real quick just find
  1252. 34:52that for me and then you know just help
  1253. 34:53me pull that up. And so what happens
  1254. 34:55when you actually send off a message to
  1255. 34:56claude code is it will tell you what
  1256. 34:59it's doing. So right here it says
  1257. 35:00searching AIS live. That means it's
  1258. 35:02searching through my um local files and
  1259. 35:06it's searching for these terms AIS live
  1260. 35:08logo ais
  1261. 35:10you know BB black AIS live. It found
  1262. 35:13this right here. It found the AIS live
  1263. 35:15PNG. Then it says, "Okay, there's it
  1264. 35:17with the blue live and the red dot,
  1265. 35:19which means it used its vision to look
  1266. 35:21at it to verify that this actually is
  1267. 35:23the real logo that I'm talking about."
  1268. 35:25And now it's using something called
  1269. 35:26PowerShell. So, it's basically just
  1270. 35:28running commands. And it said, "Pulled
  1271. 35:29it up. Here's the file. It's in your
  1272. 35:31downloads." There's also an AIS Live
  1273. 35:32White sitting right next to it. Do you
  1274. 35:34want me to copy these into the brand
  1275. 35:36assets so that it's in our project here?
  1276. 35:38Or, you know, like what do you want to
  1277. 35:39do with it? And basically, if I wanted
  1278. 35:41to just find it again, I could just copy
  1279. 35:42this file path right here. I could then
  1280. 35:44go into my file explorer and I could
  1281. 35:46just come in here, paste that, hit
  1282. 35:47enter, and it will open up the picture.
  1283. 35:49So now I was able to locate exactly
  1284. 35:51where that was. But yeah, if I wanted it
  1285. 35:53to organize my downloads folder or
  1286. 35:54organize all of my documents, it could
  1287. 35:56do so. Now, another quick example, it
  1288. 35:59can also create things for you like
  1289. 36:00Excel sheets, Google Sheets, Google
  1290. 36:02Docs, HTML, um, documents, websites,
  1291. 36:05apps, anything. So here's a quick
  1292. 36:08example. I gave it a SLG goal prompt
  1293. 36:10which I'll talk about later in this
  1294. 36:11course, but that basically just means
  1295. 36:12that I'm able to set a condition and
  1296. 36:15Claude will keep working until that
  1297. 36:17condition has been met. I mean, that's
  1298. 36:19so that's just an employee, right? So, I
  1299. 36:22basically said, I want a quarter 2
  1300. 36:23assessment of my YouTube channel
  1301. 36:24performance. This means that you have to
  1302. 36:26go to YouTube, pull the data, and then
  1303. 36:28put everything into an Excel sheet. And
  1304. 36:30I don't only want you to display the
  1305. 36:32stats. I want you to do deep analysis as
  1306. 36:34if you are my master content strategist.
  1307. 36:38an analyst. So then what happens is it
  1308. 36:40reasons through and you can see here it
  1309. 36:42even took screenshots to verify that
  1310. 36:43everything looked good and to verify
  1311. 36:45that everything was accurate and then it
  1312. 36:47comes through and it gives me this Excel
  1313. 36:48sheet and as you can see it put it here
  1314. 36:50inside of my Herk 2 project in a folder
  1315. 36:52called projects in a folder called
  1316. 36:54YouTube Q2 2026 assessment and then it
  1317. 36:56gave me this Excel sheet which if I pull
  1318. 36:58this up this thing is pretty legit. We
  1319. 37:01have a start here page with a bunch of
  1320. 37:02you know just basically onboarding us to
  1321. 37:04this doc. I can see the executive
  1322. 37:06dashboard with my real-time stats,
  1323. 37:07subscribers, my performance from the
  1324. 37:09quarter, things that mattered. I can
  1325. 37:11look at per video scorecard with length,
  1326. 37:13views, views per day, watch hours, all
  1327. 37:15these other stats, monthly trends,
  1328. 37:17content pillars, format and length,
  1329. 37:19audience, and traffic. So, this is
  1330. 37:22insane. How long would this have taken
  1331. 37:24you to manually go pull out, you know,
  1332. 37:2775 videos, put all the analytics in
  1333. 37:29here, color code it, design it, do all
  1334. 37:32of this, and this literally took my AI
  1335. 37:34agent about 10 minutes right here inside
  1336. 37:38of Cloud Code. And once again, all I did
  1337. 37:40was I used my completely natural
  1338. 37:41language. All of you guys could have
  1339. 37:42instructed Claude to do this. Okay, so
  1340. 37:44we're flying through here, just getting
  1341. 37:46through a lot of the beginning stuff,
  1342. 37:47and hopefully you guys' mindsets are
  1343. 37:48getting in the right spot and you're
  1344. 37:49getting excited. Let's talk a little bit
  1345. 37:51about prompting. What exactly is
  1346. 37:53prompting? Prompting is the way that you
  1347. 37:55talk to your AI in a way that actually
  1348. 37:58helps it achieve the goal that you want.
  1349. 38:01Now, there's a few levers to pull here
  1350. 38:02when it comes to prompting. And it's
  1351. 38:04really not that complicated. You know,
  1352. 38:06we used to have this term, which it
  1353. 38:07still exists, but there's this term
  1354. 38:09called prompt engineering, which is
  1355. 38:12basically the art of designing prompts
  1356. 38:14to get your AI agents to actually do
  1357. 38:16what you want them to do. Now, prompt
  1358. 38:19engineering is becoming a little bit
  1359. 38:20less important over the years. It's
  1360. 38:22still very important, don't get me
  1361. 38:22wrong, but the the models are getting so
  1362. 38:24much better where the prompt is less
  1363. 38:26important. It still is important, but
  1364. 38:29over time, I think it will become less
  1365. 38:30important because the models are getting
  1366. 38:31smarter. But generally, the things that
  1367. 38:33I like to tell my agent are the role. I
  1368. 38:36like to define, hey, here's who you are.
  1369. 38:39Here's what you're supposed to do. And,
  1370. 38:41you know, context. So, you are a master
  1371. 38:46content strategist like you just saw in
  1372. 38:47that example. you are helping Nate who
  1373. 38:50runs a business doing X Y andZ and here
  1374. 38:52is what's important to Nate's business
  1375. 38:53these X Y andZ metrics and here is the
  1376. 38:55avatar for Nate's business so giving
  1377. 38:57context on you know the background so
  1378. 39:00context and background I should say
  1379. 39:02because not only is the background
  1380. 39:04important but specific context so I need
  1381. 39:06you to help me run you know a Q2 an
  1382. 39:08analysis on my YouTube channel so that I
  1383. 39:11can look at all the stuff and I can make
  1384. 39:13Q3 even better example instead of saying
  1385. 39:16hey help me write this email to my boss
  1386. 39:18say, "Hey, help me write this email to
  1387. 39:20my boss. I need you to, you know, sort
  1388. 39:22of tread lightly here because I've
  1389. 39:23gotten in trouble twice in the past
  1390. 39:24month, and I'm asking for more time off,
  1391. 39:26and you know, he's a really great and
  1392. 39:28understanding person, but I just feel
  1393. 39:30like a little bit guilty for asking for
  1394. 39:31this time off, so that's why I need help
  1395. 39:33writing this email." Giving your agent
  1396. 39:35that context is going to make it
  1397. 39:37understand your actual desires much
  1398. 39:39better. So, you're not sitting in this
  1399. 39:41place where you're like, "Okay, AI
  1400. 39:42sucks. It didn't give me what I wanted."
  1401. 39:44it's probably because you didn't give it
  1402. 39:46clear enough instructions of what you
  1403. 39:48actually want. Now, the next thing I
  1404. 39:49like to do is I like to negative prompt.
  1405. 39:51Basically meaning what not to do. So, if
  1406. 39:54you think about it like you're
  1407. 39:55instructing a student or, you know, a
  1408. 39:57kid who's trying to learn a new process,
  1409. 40:00you have to tell them what not to do
  1410. 40:02because they're curious and they're
  1411. 40:04going to try different things unless you
  1412. 40:05explicitly tell them not to. Now, if you
  1413. 40:07were telling someone like, I don't know,
  1414. 40:08a 45-year-old how to make scrambled
  1415. 40:11eggs, you probably wouldn't tell them
  1416. 40:12not to put their palm on the stove top
  1417. 40:14because, you know, they've been around,
  1418. 40:16they have experience, they know not to
  1419. 40:17do that. But an innocent mind probably
  1420. 40:20doesn't know that. So, you would say,
  1421. 40:21"Hey, don't ever touch the pan. It's
  1422. 40:23going to be very hot." So, negative
  1423. 40:25prompting, I found, has really helped
  1424. 40:27make sure I keep the agents on the guard
  1425. 40:29rail that I'm actually, you know, trying
  1426. 40:30to keep them on. And then another thing
  1427. 40:32that I really, really like to do is add
  1428. 40:34verification. Basically, the idea of,
  1429. 40:37you know, and I'm actually going to type
  1430. 40:38this out because it's so important in
  1431. 40:39all caps. Make the AI prove its work. Is
  1432. 40:45that the right its? That might not be. I
  1433. 40:47think in this case, that's the correct
  1434. 40:49it. But either way, you guys know the
  1435. 40:50point I'm trying to make. Make the AI
  1436. 40:52prove its work. Think about it like
  1437. 40:54this. Let me make another one of my
  1438. 40:57little axis charts here. Okay. So when
  1439. 41:00you ask AI to do something, what are you
  1440. 41:03ultimately looking for is you are
  1441. 41:04looking for it to get you an output that
  1442. 41:07is 100% perfect. Now realistically that
  1443. 41:10doesn't happen very often. So what
  1444. 41:12happens is on the first pass you're
  1445. 41:14maybe getting somewhere around 60% of
  1446. 41:16the way there and then what happens is
  1447. 41:17you give feedback like we talked about
  1448. 41:18earlier and then it tries again and now
  1449. 41:20you get a little bit higher and you just
  1450. 41:22keep doing these manual iterations of
  1451. 41:23feedback until you eventually get to
  1452. 41:25this point where you're satisfied with
  1453. 41:26the work and maybe you take it home that
  1454. 41:28last 2% or 1%. Now this is because it is
  1455. 41:33not the one verifying its work. You're
  1456. 41:35the one verifying its work. So all of
  1457. 41:37these steps are keeping you in the loop.
  1458. 41:39But what if you could actually make the
  1459. 41:41AI check its own work so that on the
  1460. 41:43first try now it's maybe getting and
  1461. 41:45that's not completely aligned. Let's try
  1462. 41:46that again. So that on the first try
  1463. 41:48it's maybe getting you 80% of the way
  1464. 41:50there. And then you the human have to
  1465. 41:52iterate two or three times and then
  1466. 41:53you're there. And this gap is what
  1467. 41:55you're trying to close here by allowing
  1468. 41:57the AI to prove its own work. So what
  1469. 41:59could that look like? Let's say you are
  1470. 42:01building um a website and you want to
  1471. 42:04make sure that the form submission works
  1472. 42:06and that it doesn't accept, you know,
  1473. 42:08bad versions of an email. For example,
  1474. 42:10if people are submitting their emails,
  1475. 42:12it has to be, you know, an actual at
  1476. 42:14something domain. Well, you can have the
  1477. 42:17agent open up the website and test it a
  1478. 42:20100 times and test that, you know, none
  1479. 42:22of these edge cases sneak through and
  1480. 42:24then it proves to you, hey, here's what
  1481. 42:25I ran. Here's why I'm confident. And
  1482. 42:27what what you'll find is when you do
  1483. 42:28stuff like that, when it's trying to
  1484. 42:30prove it's work and it finds bugs, it
  1485. 42:32will fix the bug and then keep testing
  1486. 42:33and then fix the bug again and then keep
  1487. 42:35testing. So the way that you do
  1488. 42:36verification is obviously different for
  1489. 42:38whatever the task at hand is, but every
  1490. 42:40task at hand has some sort of
  1491. 42:42verification. Just think about it like
  1492. 42:44this. If a human gave you this work,
  1493. 42:46what would you do to approve it? Would
  1494. 42:48you just read it through a bunch of
  1495. 42:50times to make sure there's no
  1496. 42:50grammatical errors? Would you actually
  1497. 42:52open it up and use it? Would you make
  1498. 42:54sure that there are no, you know,
  1499. 42:56elements out of bounds or something like
  1500. 42:58that? Whatever you would do to verify
  1501. 42:59it, chances are you can tell cloud code
  1502. 43:02to do that to verify it. So those are
  1503. 43:05kind of like the main four things just
  1504. 43:06to keep it simple that I'm always
  1505. 43:08thinking about when I am prompting my
  1506. 43:10cloud code to do something for me. All
  1507. 43:12right, so let's talk a little bit about
  1508. 43:13tokens and models. So what is a token?
  1509. 43:17Well, a token is basically what we are
  1510. 43:19being built for. So when you pay for
  1511. 43:23credits on some account, you're paying
  1512. 43:25for credits. When you are paying for
  1513. 43:26your AI model usage, you're paying for
  1514. 43:29tokens. A token is essentially how AI
  1515. 43:32interprets text. So maybe four
  1516. 43:35characters is a token or maybe a
  1517. 43:37punctuation mark is a token. It's not a
  1518. 43:39deterministic rule of what a token
  1519. 43:40really is, but roughly 3/4 of a word or
  1520. 43:43short words. So maybe in this scenario,
  1521. 43:45the sentence cla code helps you is four
  1522. 43:48tokens. Now you don't need to know
  1523. 43:49exactly this like that's not important
  1524. 43:51if you can identify hey that's one token
  1525. 43:53that's 12 tokens. What's important is
  1526. 43:55that you know the pricing. So different
  1527. 43:58models cost different amounts and they
  1528. 44:00all have different pros and cons. So if
  1529. 44:02we look at for example right now in the
  1530. 44:04current you know July of 2026 clawed
  1531. 44:07models with their tokens. Haiku is fast
  1532. 44:10and cheap. So for certain scenarios you
  1533. 44:12only need Haiku because it's fast and
  1534. 44:14cheap. It's $1 for a million input
  1535. 44:17tokens and it's $5 for a million output
  1536. 44:20tokens. Sonnet 5 is $3 for a million
  1537. 44:23input tokens and $15 for a million
  1538. 44:24output tokens. And this is a very
  1539. 44:26balanced model. And Opus 4.8 is the most
  1540. 44:28expensive model right now besides Fable,
  1541. 44:30which is even more expensive, double the
  1542. 44:31cost of Opus. But Opus 4.8 is $5 for a
  1543. 44:35million input tokens and $25 for a
  1544. 44:37million output tokens. Now, yes, you
  1545. 44:39guys are noticing there's input and
  1546. 44:40there's output. And the output tokens
  1547. 44:42are more expensive. So, what is the
  1548. 44:44difference there? Well, let me open up a
  1549. 44:46new chat real quick. Or actually, let's
  1550. 44:48just go to the one where I said hello.
  1551. 44:49So, every time that I shoot off
  1552. 44:51something, my prompt goes into the
  1553. 44:54model. So, this is where we're being
  1554. 44:56charged for Opus, for example. Actually,
  1555. 44:58let me switch this model back to Opus.
  1556. 45:00This is where we're being charged $5 per
  1557. 45:02a million input tokens for this. Now,
  1558. 45:04everything that it spits out, all of
  1559. 45:06these things, all of these commands,
  1560. 45:08every line of text that it gives us that
  1561. 45:09it puts out, that's being charged for
  1562. 45:12Opus at $25 per million output tokens.
  1563. 45:16So, when it is outputting stuff, that's
  1564. 45:19more expensive than what you're feeding
  1565. 45:20into the model. So, for example, if I go
  1566. 45:22back to the YouTube Analytics one where
  1567. 45:24it gave us this Excel sheet, let me ask
  1568. 45:26a quick question. How many tokens did
  1569. 45:30you have to output to actually generate
  1570. 45:32that YouTube assessment Excel sheet? And
  1571. 45:35because you were using Opus, how much
  1572. 45:38real money would that have costed me?
  1573. 45:40Okay, so keep in mind that this is an
  1574. 45:42estimate. But here is what this looked
  1575. 45:45like. So it had to run different
  1576. 45:47scripts. It had to check them out, write
  1577. 45:50up the brief, it had to build the Excel
  1578. 45:52sheet with different actual characters
  1579. 45:53inside, and then it had to output
  1580. 45:55basically all those commands. So they're
  1581. 45:58calling this an average of let's just
  1582. 45:59say 25,000 output tokens. And at the
  1583. 46:02pricing for Opus 4.8 of $25 per million,
  1584. 46:05this basically costed us about 63 to run
  1585. 46:09because of the output tokens. Now what's
  1586. 46:11interesting though is because in this
  1587. 46:12session you can see that we've used
  1588. 46:14about 428,000
  1589. 46:16tokens out of the a million context
  1590. 46:18token window which I will explain in a
  1591. 46:20bit if that makes no sense to you. But
  1592. 46:22the point here is that we probably sent
  1593. 46:25in and the AI model had to look at
  1594. 46:27hundreds of thousands of tokens because
  1595. 46:28it had to pull so much data from YouTube
  1596. 46:31and analyze so many things and that was
  1597. 46:33going into the model. So those input
  1598. 46:35tokens because typically you use a ton
  1599. 46:37more input tokens. That's why they're
  1600. 46:39build lower. This will all start to
  1601. 46:41click a little bit more when you really
  1602. 46:42start to get your hands on. But I just
  1603. 46:43wanted to show you a real quick example
  1604. 46:45of kind of the difference and
  1605. 46:46understanding that different models have
  1606. 46:48different, you know, pros and cons. fast
  1607. 46:50and cheap, balanced, most capable, but
  1608. 46:51they also come with different prices.
  1609. 46:53Now, keep in mind because you guys are
  1610. 46:56on a clawed subscription, when you come
  1611. 46:58in here and you go to your usage, this
  1612. 47:00is how you're being build. You're not
  1613. 47:01being build per token because you're
  1614. 47:03using this inside of your subscription.
  1615. 47:05In your subscription, you have different
  1616. 47:07limits. You've got a current session
  1617. 47:09limit, which is a 5 hour rolling window.
  1618. 47:11You've got all models, which is a weekly
  1619. 47:13limit. And then right now, we have a
  1620. 47:15fable limit as well. So you can only
  1621. 47:16use, you know, this much fable before
  1622. 47:18all of this would then switch usage
  1623. 47:20credits on top. It's really cool because
  1624. 47:21I'm on the $200 a month max plan for
  1625. 47:24cloud code. And if I filled up every
  1626. 47:26single session, every single weekly
  1627. 47:27limit, I would actually be getting
  1628. 47:29around $8,000 of inference out of my
  1629. 47:31$200 a month plan. So we're getting this
  1630. 47:34on a huge discount right now. So if you
  1631. 47:36are using cloud code or you're using the
  1632. 47:38cloud models or any AI models through
  1633. 47:40API billing, which is through token
  1634. 47:42billing rather than through a
  1635. 47:43subscription, you are paying a ton more
  1636. 47:46for those tokens. So that is something
  1637. 47:48else important to keep in mind here. But
  1638. 47:50don't stress about this too much. You're
  1639. 47:52on a subscription, you're getting a good
  1640. 47:53deal. Just monitor your session limit,
  1641. 47:55monitor your weekly limits. I've got
  1642. 47:57videos coming later and I've got, you
  1643. 47:59know, sections in this course later
  1644. 48:00about context window management and
  1645. 48:02session limit management. So just keep
  1646. 48:04that in mind for later. But I just
  1647. 48:06wanted to break that down a little bit
  1648. 48:07for you guys so that these terms all
  1649. 48:09sort of click and make sense. Okay. The
  1650. 48:11next thing we have here to understand is
  1651. 48:13called the claw.md.
  1652. 48:15So if I just real quick open up this
  1653. 48:18project, right? This is my Herk 2
  1654. 48:19project which I'll refer to a lot. This
  1655. 48:21is my AI operating system. This is the
  1656. 48:23place where I have basically everything
  1657. 48:24about my business. If I go over here to
  1658. 48:27my files and I scroll until I find my
  1659. 48:31claw.md, as you can see, there's a lot
  1660. 48:32of folders and files inside of this
  1661. 48:34project. There it is. I scrolled right
  1662. 48:36past it. This is my claw.md. So, let me
  1663. 48:38open this up full screen. This is
  1664. 48:40basically the system prompt for my AI
  1665. 48:43agent. So, before I read this, let me
  1666. 48:44just show you a quick visual. So, this
  1667. 48:46is our little cloud code agent, right?
  1668. 48:48And let's say we open up a new chat. So,
  1669. 48:50this thing is completely fresh. It just
  1670. 48:52woke up. And I go ahead and I shoot off
  1671. 48:54a message to this thing that says hi.
  1672. 48:56Right? So I say hi. I don't know why
  1673. 48:59this keeps going green, but I say hi to
  1674. 49:01my AI agent. What it does before it
  1675. 49:03processes this message is it's going to
  1676. 49:05read the cloudmd
  1677. 49:07so that it can basically get, you know,
  1678. 49:09it can orient itself with where we are.
  1679. 49:12So it will read this cloudmd which is
  1680. 49:16bunch of lines of text and then it will
  1681. 49:18read my message and then it knows how to
  1682. 49:20respond more accurately. So, if I go
  1683. 49:23back into this real quick and actually
  1684. 49:26just real quick close out of this file,
  1685. 49:27what you'll see is that when I said
  1686. 49:29hello, it said, "Hey, Nate, ready to go
  1687. 49:31whenever you are." A few things on the
  1688. 49:33radar in case any next AIS live is this
  1689. 49:35Friday and Saturday, July 11th and 12th.
  1690. 49:37CIA opens July 28th. Open threads,
  1691. 49:40highros, link tagging, keep the best of
  1692. 49:42fable, what do you want to work on? The
  1693. 49:44reason it knew this is because it was
  1694. 49:46able to orient itself with my cloud.MD
  1695. 49:48MD and read about my projects and you
  1696. 49:50know what's going on in my business so
  1697. 49:52that it's able to help me out way more
  1698. 49:54specifically. So let's take a brief read
  1699. 49:56through some of the stuff that's in my
  1700. 49:57cloudmd here. So this is me setting up
  1701. 50:00the role, right? You are Nate Herk's
  1702. 50:02executive assistant. Your job is to help
  1703. 50:03him spend less time on operations,
  1704. 50:04people management, and admin so he can
  1705. 50:06focus on learning AI tools and making
  1706. 50:08YouTube videos. That is his number one
  1707. 50:10priority. I've then given it a routing
  1708. 50:12map. So this is where things live. If
  1709. 50:14you want to find things about, you know,
  1710. 50:16his business, his team, his OTAAS, his
  1711. 50:18strategy, go here. Here's the path. If
  1712. 50:20you want to find things about corporate
  1713. 50:22structure, entities, tax, IP, then go
  1714. 50:24here. Voice and style, go here. Course
  1715. 50:27knowledge, go here. Projects, as you can
  1716. 50:29see, I'm just telling it where
  1717. 50:31everything lives. And now it can read
  1718. 50:33through this and it can help me out way
  1719. 50:34more specifically. So, this is something
  1720. 50:36that you'll build over time. I'm going
  1721. 50:38to build one with you guys. Don't worry,
  1722. 50:39just a sec. But this is basically just
  1723. 50:42what it is. It's a system prompt for
  1724. 50:43your AI agent and it changes all the
  1725. 50:45time because remember how earlier I
  1726. 50:47talked about the loop of getting an
  1727. 50:50output
  1728. 50:52using judgment to assess it and then
  1729. 50:54instructing Claude to change so that it
  1730. 50:56doesn't happen again. This is where I
  1731. 50:57would say you know like let's say it
  1732. 50:58gives me this output right let's say it
  1733. 51:00gives me some research brief that was
  1734. 51:01just absolutely horrible. I would then
  1735. 51:03say okay
  1736. 51:05Mr. Claude I read this research brief
  1737. 51:08and I don't like this because you didn't
  1738. 51:10use enough sources. is you only gave me
  1739. 51:12four. Um, you also put a ton of m dashes
  1740. 51:15in here which I don't like. So update
  1741. 51:16your instructions in the claw.mmd so
  1742. 51:19that you don't do this again. So that
  1743. 51:20next time I ask you to do research, you
  1744. 51:22do it better. And then claude will write
  1745. 51:24changes in its own claw.mmd and then
  1746. 51:27next time you talk to it, it will be
  1747. 51:28smarter. So that's how these things just
  1748. 51:30get smarter and smarter as you use them.
  1749. 51:31And by the way, when you guys see a file
  1750. 51:33that ends in MD, all that means is
  1751. 51:36markdown. Markdown is basically just
  1752. 51:38like a a computer language and it really
  1753. 51:41just lets computers understand like
  1754. 51:43headers and bullet points and really
  1755. 51:46just structure like that. So this is
  1756. 51:49markdown when it's rendered nicely for
  1757. 51:51us humans to read. But this is kind of
  1758. 51:54what raw markdown looks like. You can
  1759. 51:56see we use these pound signs to
  1760. 51:58indicate, you know, status and layers
  1761. 52:00and we use these dashes for bullets and
  1762. 52:02everything like that. But MD just means
  1763. 52:04markdown. The same way later in this
  1764. 52:06course you might see a py file which
  1765. 52:08would be a Python file or a txt which
  1766. 52:11would be a text file. So the dot and
  1767. 52:13then the you know whatever comes after
  1768. 52:15that the suffix or whatever is just the
  1769. 52:18type of file. All right. So here's what
  1770. 52:20I'm going to do that I want you guys to
  1771. 52:21do with me. I'm on my desktop. You can
  1772. 52:23be wherever you want but I'm going to
  1773. 52:24create a new folder. I'm going to open
  1774. 52:26up a new folder right here. And I'm just
  1775. 52:27going to say I'm just going to call this
  1776. 52:29knowledge work since that's kind of what
  1777. 52:30this course is about. So, I have a
  1778. 52:32knowledge work folder on my local
  1779. 52:34desktop that I just created. And what
  1780. 52:36we're going to do now is I'm going to
  1781. 52:37open up Claude and I am going to click
  1782. 52:39on the plus um right here, new session.
  1783. 52:42And instead of working in my Herk 2
  1784. 52:44directory, I'm going to open a new
  1785. 52:46folder. And this is where I'm going to
  1786. 52:47go to my desktop, and I'm going to find
  1787. 52:48that knowledge work folder, and I'm
  1788. 52:50going to open that up, which basically
  1789. 52:52means we're now working inside of this
  1790. 52:53knowledge work folder. Where is it?
  1791. 52:56There it is. Okay. Select the folder.
  1792. 52:58Now, it's going to ask if we want to
  1793. 52:59trust this workspace, which I'm going to
  1794. 53:01do because it says Claude may read,
  1795. 53:03write, or execute files in this
  1796. 53:05directory. So, only proceed if you
  1797. 53:06actually trust the space, which I do.
  1798. 53:08So, I click trust. Now, what happens?
  1799. 53:10Well, let's just start building this
  1800. 53:12thing out. I'm going to say, "Hey,
  1801. 53:14Claude Code, my name is Nate." We're
  1802. 53:16just going to start off conversation
  1803. 53:17like that. Now, there is one thing to
  1804. 53:19keep in mind here is because we're in a
  1805. 53:22new project, Claude still knows a little
  1806. 53:25bit about me. And the reason is because
  1807. 53:27there's a difference between your global
  1808. 53:29cloudmd and your project level. So let
  1809. 53:32me explain that real quick as well. If I
  1810. 53:34go down here, I've got some stuff ready.
  1811. 53:36Okay, so global versus project. Global
  1812. 53:39is something that claude reads every
  1813. 53:41single time and that is at the global
  1814. 53:43level. Whereas project is only
  1815. 53:45specifically in that project. So the
  1816. 53:48example you guys just saw, we looked at
  1817. 53:50this cloud.MD where you know it said,
  1818. 53:51"Hey, you are Nate's executive
  1819. 53:53assistant." This gets loaded in whenever
  1820. 53:55I'm inside of my Herk 2 project. But
  1821. 53:58whenever I'm in this new knowledgework
  1822. 54:00project, if I go over here and I go to
  1823. 54:01my files, this folder is empty. So
  1824. 54:03there's no project level claw.mmd file
  1825. 54:05being read yet. But what there is is a
  1826. 54:08global level claw.mmd. And that's how it
  1827. 54:10knows my name. Well, I just said it, but
  1828. 54:12that's how it knows other things about
  1829. 54:13me because there is a global file. So
  1830. 54:16real quick, I'm just going to show you
  1831. 54:17what the global claw.mmd looks like. And
  1832. 54:19before you get a little bit overwhelmed
  1833. 54:21or stressed about this, like I said,
  1834. 54:23this is something that evolves over time
  1835. 54:25and it really isn't a big deal because
  1836. 54:27you're able to change it so frequently
  1837. 54:29by asking Claude to just change it. And
  1838. 54:31for me, the global cloudMD is just
  1839. 54:33things that I like and things that I
  1840. 54:34don't like. So, let me show you exactly
  1841. 54:35what I mean by that. The way I get there
  1842. 54:37is I go to my PC, I go to my drive, I go
  1843. 54:40to users, and I click on my user. And
  1844. 54:42then there's a cloud folder right here.
  1845. 54:44And then from here, I can open up my
  1846. 54:46claw.md, which is just a markdown file.
  1847. 54:48So, this obviously looks a little bit
  1848. 54:50more um ugly because it's opened up as
  1849. 54:52as markdown in my notepad. But look at
  1850. 54:55this. This is my global cloudmd. These
  1851. 54:57rules apply to every product on your
  1852. 54:59machine. They govern any writing meant
  1853. 55:01for Nate or publishes Nate. So, LinkedIn
  1854. 55:03posts, YouTube scripts, comments,
  1855. 55:04emails, captions, docs, anything. So, I
  1856. 55:07have this AI phrase kill list, which I
  1857. 55:09said, hey, every time it outputs
  1858. 55:11something and I say I don't like how
  1859. 55:12that sounds because it sounds like AI, I
  1860. 55:14say add this to my global claw.mmd. You
  1861. 55:16know, I don't like this stuff. So, it
  1862. 55:18won't say all of these phrases. It will
  1863. 55:20never write this in my LinkedIn posts.
  1864. 55:21It will never write this in my YouTube
  1865. 55:22video scripts or anything like that
  1866. 55:24because this is a global rule. And look
  1867. 55:26at this. It's also just learned other
  1868. 55:27things about me over time. He here's the
  1869. 55:29things he doesn't like. Here's other
  1870. 55:30things that I've learned. And this is
  1871. 55:32just my global claim. It's very simple.
  1872. 55:34So, if you've got specific things about
  1873. 55:35your business or specific things about
  1874. 55:37the way that you like to treat Claude or
  1875. 55:38you like Claude to treat you, then you
  1876. 55:40can put those in your global rules
  1877. 55:42because you're okay with the fact that
  1878. 55:44every single project ever that you do
  1879. 55:45with Claude on this local machine, these
  1880. 55:48rules will be in play there. So, that's
  1881. 55:49kind of the difference between um as I
  1882. 55:52said global cloud.MD and project
  1883. 55:55cloud.MMD. And it's important to keep
  1884. 55:56this in mind because later when we talk
  1885. 55:58about things like skills, there's also
  1886. 56:00the element of is this a global skill or
  1887. 56:02is this a project level skill? Okay.
  1888. 56:04Anyways, this is a new project, right?
  1889. 56:06This is called knowledge work. So, I'm
  1890. 56:07just going to say I'm building a brand
  1891. 56:09new project right here and this is for a
  1892. 56:12course that I'm teaching. So, this is
  1893. 56:13kind of a demo project for me, but I
  1894. 56:15want to show my audience how to set up
  1895. 56:17cloudmds, how to build skills, how to
  1896. 56:19build automations. And so we're going to
  1897. 56:20do a lot of this together, but right now
  1898. 56:22what I want you to do is just initialize
  1899. 56:24with a cloud.mmd and acloud folder.
  1900. 56:27There doesn't have to be anything inside
  1901. 56:29of the cloud. Um, but just initialize
  1902. 56:31with a cloud.md folder and just throw a
  1903. 56:34little bit of baseline information in
  1904. 56:35there for now. And by the way, if you
  1905. 56:36guys are interested in the voicetoext
  1906. 56:38tool that you see right up on screen
  1907. 56:40right here, it's it's very pretty, then
  1908. 56:42check out the link in the description.
  1909. 56:44It's called Glido. It's our tool that we
  1910. 56:46created and it is the fastest and the
  1911. 56:47most private on the market. So check it
  1912. 56:49out. Anyways, as you can see, it is
  1913. 56:51going to start building that for us. So,
  1914. 56:52in a sec, we'll see over here on the
  1915. 56:53folder side, we will see a cloudmd and
  1916. 56:56we will see acloud folder. There we go.
  1917. 56:58They just popped up. So, the cloud
  1918. 56:59folder has nothing, but the cloudmd. Let
  1919. 57:01me open that up real quick. This file
  1920. 57:03gives cloud code the context it needs to
  1921. 57:05work in this repository. Keep it short
  1922. 57:07and current. Here's the project
  1923. 57:08overview, demo project, here's a
  1924. 57:10structure, here's the conventions, and
  1925. 57:12any notes. This cloudmd file will grow
  1926. 57:14over time. So as we go through this
  1927. 57:17course and as we build new things, we
  1928. 57:18will all watch this cloudmd file grow
  1929. 57:20together. So that is just showing you
  1930. 57:22how easy it is to get that set up and
  1931. 57:24that your agent can fix that, edit it,
  1932. 57:26delete it, stuff like that at any time.
  1933. 57:28Now you guys are probably wondering what
  1934. 57:29is this.cloud folder. So let me go back
  1935. 57:31up here and show you that that is
  1936. 57:33exactly what we are going to cover next
  1937. 57:35is the cloud folder. These are basically
  1938. 57:37the first two things that I always set
  1939. 57:39up when I'm working on a new project in
  1940. 57:41cloud code. I have the cloudmd which
  1941. 57:43once again is the rules in plain English
  1942. 57:44and then we have the cloud folder which
  1943. 57:46is basically just think about it almost
  1944. 57:48like a settings folder. It's the config
  1945. 57:50folder. Usually the things that go in
  1946. 57:52here there sometimes are more but the
  1947. 57:53three things that I want you guys to pay
  1948. 57:54attention to the settings.json which has
  1949. 57:57things like permissions preferences the
  1950. 58:00agents folder which is where you can
  1951. 58:01build your own custom sub aents and put
  1952. 58:03them in there and then skills which is
  1953. 58:05where you package up your skills and
  1954. 58:07they live in here so that Claude can
  1955. 58:09call on them automatically. Now, just as
  1956. 58:11an example, let me show you inside of my
  1957. 58:13Herk 2 project what this looks like. So,
  1958. 58:15I'm going to come back over here and I'm
  1959. 58:16going to open up my doclaude, which is
  1960. 58:18right here. You can see that I've got
  1961. 58:20my, you know, agents, the one I talked
  1962. 58:22about. I've got my settings files, and
  1963. 58:24I've got my skills. Now, obviously,
  1964. 58:26there's some other things because this
  1965. 58:27project is massive. And that's why I
  1966. 58:29wanted to call out just those three. And
  1967. 58:31really, the most important one, in my
  1968. 58:32opinion, is skills. We're going to talk
  1969. 58:34about skills later more in depth, but
  1970. 58:36look at this. Every single skill that I
  1971. 58:37have in here is just natural language.
  1972. 58:39So, for example, if I open up this grill
  1973. 58:41me skill, it's just a markdown file. So,
  1974. 58:43if I open this up, it looks very similar
  1975. 58:45to the claw.mmd. It's all natural
  1976. 58:47language and it just tells Claude code
  1977. 58:49what to do in this specific skill. So,
  1978. 58:51that's the exact same way that it works
  1979. 58:53in here with our sub agents. And our
  1980. 58:55settings is basically just a JSON file
  1981. 58:57that shows Claude what it's able to do
  1982. 59:00and what it's not able to do. You can
  1983. 59:02see we have allowed permissions. We have
  1984. 59:03some environment variables up here.
  1985. 59:05We've got things that we've denied. That
  1986. 59:07is basically how this settings file
  1987. 59:09works and you don't need to know how to
  1988. 59:11build this. It will build it
  1989. 59:12automatically and you can use natural
  1990. 59:13language once again. So every single
  1991. 59:15project will have these two things but
  1992. 59:16these two things also live on a global
  1993. 59:18level because once again if you wanted
  1994. 59:21to have you know you have your global
  1995. 59:22cloudmd but then you also have global
  1996. 59:24skills potentially. I only have one
  1997. 59:26right now that's global on this machine
  1998. 59:28but you can have skills that apply to
  1999. 59:30every project. You can have sub agents
  2000. 59:31that apply to every project. So that's
  2001. 59:33the difference between global and
  2002. 59:35project. But these are two things that
  2003. 59:36you always want to get set up when
  2004. 59:38you're building a new project. Okay,
  2005. 59:40anyways, let's keep on moving here. Um,
  2006. 59:42one thing I do want to call out is you
  2007. 59:44might see my claude here switch over to
  2008. 59:46usage credits. And once again, that's
  2009. 59:48because I'm about to go past my 5 hour
  2010. 59:50limit, in which case, if I want to keep
  2011. 59:52going, I will then be paying per token.
  2012. 59:55So, because I'm on the 200 bucks a month
  2013. 59:56plan, that doesn't happen too often. But
  2014. 59:57when I am pushing this thing to its
  2015. 59:59limits, I do hit that. And so if you
  2016. 1:00:00guys see that pop up on my screen
  2017. 1:00:02somewhere else in this course in a few
  2018. 1:00:03minutes, don't be concerned. That's all
  2019. 1:00:05that that means. So anyways, the next
  2020. 1:00:07thing I want to talk about API keys and
  2021. 1:00:10env. So first of all, what is an API? It
  2022. 1:00:13stands for application programming
  2023. 1:00:15interface. And all of that really means
  2024. 1:00:17is it's a method to allow one software
  2025. 1:00:19to talk to another software. So imagine
  2026. 1:00:22Gmail sending a letter to claude code.
  2027. 1:00:25That's via API. So the point I'm trying
  2028. 1:00:27to make here is remember earlier in this
  2029. 1:00:30course when I showed you guys this demo
  2030. 1:00:32where I opened up, you know, this
  2031. 1:00:34YouTube thing and I said, "Hey, go to
  2032. 1:00:36YouTube and pull my data." The only
  2033. 1:00:38reason that it was able to go pull my
  2034. 1:00:40data from YouTube is because I gave it
  2035. 1:00:42my API key, which is essentially a
  2036. 1:00:45password. So if I said, "Hey, go pull
  2037. 1:00:47Mr. Beast's YouTube data," it could only
  2038. 1:00:49pull publicly accessible YouTube data.
  2039. 1:00:51it couldn't pull some of those more, you
  2040. 1:00:54know, detailed stats that I saw from my
  2041. 1:00:56channel because I don't have his API
  2042. 1:00:57key. So, what we had to do was we had to
  2043. 1:01:00give it access to actually pull that
  2044. 1:01:02information. And that's when it used
  2045. 1:01:04this fetch YouTube data py, which py
  2046. 1:01:06stands for a Python file, and it used
  2047. 1:01:08that in combination with my API key. As
  2048. 1:01:10you can see here, YouTube data API. So,
  2049. 1:01:13that's what I'm going to show you guys
  2050. 1:01:14now in our knowledge work project. We're
  2051. 1:01:16going to get set up with an API. So, the
  2052. 1:01:18example that I'm going to show you guys
  2053. 1:01:19is Tavi. Tavi lets agents search the web
  2054. 1:01:22better. You can see here they even have
  2055. 1:01:24an official Tavi agent skills for Cloud
  2056. 1:01:26Code, which I'm not going to dive into
  2057. 1:01:27right now, but the reason I wanted to
  2058. 1:01:29show you guys Tavi is because you can
  2059. 1:01:30sign up here and you get a,000 free
  2060. 1:01:32credits right away, no matter what. So,
  2061. 1:01:34Cloud Code does have built-in tools for
  2062. 1:01:36research. So, if I say, "Hey, can you
  2063. 1:01:39please just research what is context
  2064. 1:01:41engineering?" And just give me like a
  2065. 1:01:42one-s sentence example or sorry, a one-s
  2066. 1:01:44sentence definition. So it will
  2067. 1:01:47basically because I'm prompting it to
  2068. 1:01:49research this. What it's going to do is
  2069. 1:01:50it will probably you see it says finding
  2070. 1:01:52tools. It's looking through different
  2071. 1:01:54tools and then it's going to actually
  2072. 1:01:55search the web using a search the web
  2073. 1:01:58tool. Query select web search. So web
  2074. 1:02:01search is one of the tools that it can
  2075. 1:02:02use. It also has something like a web
  2076. 1:02:03fetch. But anyways the point I'm trying
  2077. 1:02:06to make here is cloud code can natively
  2078. 1:02:08search the web. But if we give it
  2079. 1:02:09something like tavally it's always good
  2080. 1:02:11to just get other sources right. So what
  2081. 1:02:13I'm going to do here is go back into
  2082. 1:02:14tavi. You can see right here I have an
  2083. 1:02:16API key which I'm going to go ahead and
  2084. 1:02:18copy. Now API keys because they're
  2085. 1:02:20passwords once again do not share them
  2086. 1:02:23with anybody because let's say I am on a
  2087. 1:02:26paid plan of Tablety and let's say I
  2088. 1:02:27paid for 5,000 credits. If I gave you
  2089. 1:02:29guys my API key, you guys could all take
  2090. 1:02:31that and spend my money and I don't want
  2091. 1:02:34to, you know, I don't want you guys to
  2092. 1:02:35spend my money. So I'm not going to show
  2093. 1:02:36you my API key in this video. I will
  2094. 1:02:38because, you know, it's a demo and I'm
  2095. 1:02:40showing you and I'm going to delete it.
  2096. 1:02:41But that's how you should treat API
  2097. 1:02:43keys. You shouldn't be posting them
  2098. 1:02:44online. and you shouldn't be sharing
  2099. 1:02:45them across your team unless you know
  2100. 1:02:47your team is supposed to. So anyways,
  2101. 1:02:49what I'm going to do is say well not say
  2102. 1:02:52I'm going to go into my files and you
  2103. 1:02:53can see that once again we only have
  2104. 1:02:55these two. So what we need is we need a
  2105. 1:02:57file called aenv
  2106. 1:02:59which basically just stands for like
  2107. 1:03:01environment. So environment variables
  2108. 1:03:03hey cloud code I want to connect you to
  2109. 1:03:05tavi and in order to do that I need to
  2110. 1:03:07give you my API key for tavi. So can you
  2111. 1:03:09please create in this project aenv file
  2112. 1:03:12so that I can upload my secret. Now the
  2113. 1:03:14reason we want to create thisv file is
  2114. 1:03:16it just it's a safe place to put secrets
  2115. 1:03:19because they won't get pushed to GitHub.
  2116. 1:03:21You can see here it said let me also add
  2117. 1:03:23a dot getit ignore so the secret never
  2118. 1:03:25gets committed. Now, I'll talk about
  2119. 1:03:27GitHub more later on in this course, but
  2120. 1:03:29basically what that is is think about
  2121. 1:03:31this. When you make a Word doc on your
  2122. 1:03:34computer, no one else can get that,
  2123. 1:03:36right? But if you push that up to like a
  2124. 1:03:38shared drive, then other people can
  2125. 1:03:39collaborate on it and work on it if you
  2126. 1:03:41make that public. At least you can still
  2127. 1:03:42push something to the cloud or push
  2128. 1:03:43something to GitHub and keep it private.
  2129. 1:03:45So anyways, the point being if you put
  2130. 1:03:47something in yourv that will never get
  2131. 1:03:49pushed to GitHub ever. So basically
  2132. 1:03:52things that are secret and sensitive put
  2133. 1:03:53in yourv. So anyways, it went ahead and
  2134. 1:03:56it created that env as you can see right
  2135. 1:03:58here. And there's currently nothing in
  2136. 1:04:00there, but it did give us this
  2137. 1:04:01placeholder. It says Tableau API key.
  2138. 1:04:04This is where you would put your Tableau
  2139. 1:04:05API key. So I'm just going to go ahead
  2140. 1:04:07and delete the placeholder. Go back into
  2141. 1:04:09Tavi. Copy this value. Go back into
  2142. 1:04:12Claude, paste that in there, and then
  2143. 1:04:14hit save. So now that our API key is in
  2144. 1:04:16there and it's saved, I can say, cool.
  2145. 1:04:18So I just gave you my Tavly API key. Go
  2146. 1:04:20ahead and make a test request to Tavi to
  2147. 1:04:22make sure that that works.
  2148. 1:04:25So, I'll go ahead and shoot that off.
  2149. 1:04:26The dictation tool spelled Tavly wrong.
  2150. 1:04:28So, let me just go into here and add a
  2151. 1:04:31correction in the dictionary for the
  2152. 1:04:32real way that you're going to spell
  2153. 1:04:34Tavi.
  2154. 1:04:36Okay, there we go. Anyways, it's going
  2155. 1:04:39to make a test search request. As you
  2156. 1:04:42can see here, it made a post request to
  2157. 1:04:43this endpoint. It searched for what is
  2158. 1:04:45Claude Code by Enanthropic, pulled the
  2159. 1:04:47key from the ENV, and got a 200
  2160. 1:04:50response. So, all of that means it
  2161. 1:04:52worked. Here's what I want you guys to
  2162. 1:04:53notice. I didn't tell it how to do any
  2163. 1:04:55of that. It went off, it researched
  2164. 1:04:56Tavi, it figured out the endpoint, which
  2165. 1:04:58is this thing right here, and then it
  2166. 1:05:00just made the request, which is awesome.
  2167. 1:05:02Before, you know, a year ago, if you
  2168. 1:05:03were still building with Naden or
  2169. 1:05:05something like that, we had to basically
  2170. 1:05:07by hand research the API endpoints and,
  2171. 1:05:10you know, plug all this in by ourselves.
  2172. 1:05:11But now, Agentic AI is getting so
  2173. 1:05:13powerful that my simple request saying,
  2174. 1:05:15"Hey, just use Tavi turns into the agent
  2175. 1:05:18reasoning, researching, testing, and
  2176. 1:05:21verifying." So super super cool. Now
  2177. 1:05:23what would happen if I went into my
  2178. 1:05:24files and I went into thev and then I
  2179. 1:05:27basically just changed the API key. So
  2180. 1:05:29this is no longer a valid API key.
  2181. 1:05:30That's not correct. I'm going to go
  2182. 1:05:32ahead and clear out the conversation. So
  2183. 1:05:34I can do a slashclear command right
  2184. 1:05:36there. And now the conversation's reset.
  2185. 1:05:38And now if I say, hey, can you try to
  2186. 1:05:40use Tavi to search for Lenol Messi?
  2187. 1:05:44When I shoot this off, we're going to
  2188. 1:05:46see that it's going to try to use Tavi,
  2189. 1:05:48but it should come back with like a 400
  2190. 1:05:50error. and it's gonna say, hey, you
  2191. 1:05:51know, like something's wrong with the
  2192. 1:05:52API key or something like that. Okay, so
  2193. 1:05:54now it just defaulted to the search, you
  2194. 1:05:56know, the the default cloud code web
  2195. 1:05:57search tool, which I didn't want it to
  2196. 1:05:58do. So, let's try this again. No, we do
  2197. 1:06:02have a Tavi API key that I've given you.
  2198. 1:06:04Try to use that.
  2199. 1:06:06Don't use the clawed native web search
  2200. 1:06:09tool. Okay, so let's analyze what just
  2201. 1:06:11happened here because there's a lot of
  2202. 1:06:12lessons inside. So, let me close this
  2203. 1:06:14stuff out.
  2204. 1:06:15We used Tavi, right? We used it with the
  2205. 1:06:18correct API key and it worked. And then
  2206. 1:06:19I cleared the session. When I cleared
  2207. 1:06:21the session and asked for it to use
  2208. 1:06:23Tavi, it said there's no Tavly tool
  2209. 1:06:25connected in this session, so I can't
  2210. 1:06:27use it specifically. Now, what does that
  2211. 1:06:29tell us? That tells us that Cloud Code
  2212. 1:06:31just forgot what we just did. It forgot
  2213. 1:06:33that we just successfully used Tavi. We
  2214. 1:06:36also see that again when it said, "Okay,
  2215. 1:06:38I found the key, but there's no MCP tool
  2216. 1:06:40wired up, but let me try to call Tavi's
  2217. 1:06:42REST API."
  2218. 1:06:44It tried. It didn't work. So, it said,
  2219. 1:06:46"Okay, let me try a different method."
  2220. 1:06:48that also didn't work and then what it
  2221. 1:06:49did is it said okay confirm that the you
  2222. 1:06:52know the API key is correct so that just
  2223. 1:06:54shows you that it didn't work because
  2224. 1:06:55the API key was wrong but the other
  2225. 1:06:57lesson here is that we just used Tavly
  2226. 1:07:00successfully so why did it have to do
  2227. 1:07:02all this research once again you know
  2228. 1:07:04what we would do now is save that
  2229. 1:07:06somewhere in our project so what I'm
  2230. 1:07:08going to do is I'm going to fix the API
  2231. 1:07:10key real quick so I'm going to go back
  2232. 1:07:11into tablet copy this go back into
  2233. 1:07:13claude we're going to open up our files
  2234. 1:07:15go to thev and we're going to replace
  2235. 1:07:17this once again with the true API key,
  2236. 1:07:19which is correct. And then I'm going to
  2237. 1:07:20go back in here and say, "Okay, thanks.
  2238. 1:07:23You were right. Our API key was wrong. I
  2239. 1:07:25just fixed it. So, go ahead and test it
  2240. 1:07:27again." But then the other thing I want
  2241. 1:07:29you to do is somewhere in this project,
  2242. 1:07:32save this as, you know, a skill or save
  2243. 1:07:36this as something because we will
  2244. 1:07:37probably be using Tavi frequently. And
  2245. 1:07:40when I want you to do research, I want
  2246. 1:07:41you to default first to Tavali and then
  2247. 1:07:44to the default clawed web search tool.
  2248. 1:07:47So actually don't create a skill. Just
  2249. 1:07:49put this in the cloud. Denmd
  2250. 1:07:51save the endpoint so you understand like
  2251. 1:07:52we've done this before. I don't want you
  2252. 1:07:54to research it every time and that's how
  2253. 1:07:56you can keep getting smarter every time
  2254. 1:07:57I interact with you. So that was
  2255. 1:08:00obviously kind of a a very messy casual
  2256. 1:08:03version of my prompt, [snorts] but
  2257. 1:08:05that's the way I do it, right? I
  2258. 1:08:06identified something. I found myself
  2259. 1:08:08repeating something that I didn't want
  2260. 1:08:10to and then I feed it back in because
  2261. 1:08:12here's the thing that may not seem like
  2262. 1:08:13a big deal allowing it to search and
  2263. 1:08:15remake the request. But what happens is
  2264. 1:08:18this every time costs you tokens and
  2265. 1:08:21tokens cost money, right? Cuz they go
  2266. 1:08:22against your session limit. So the more
  2267. 1:08:24efficient you can be with memory and
  2268. 1:08:26with things like that, the more you're
  2269. 1:08:28also going to be saving tokens. So it
  2270. 1:08:31tried it again. It worked now that the
  2271. 1:08:32API is correct. And then it said, "Let
  2272. 1:08:35me save this setup to cloud.MD MD so I
  2273. 1:08:37don't have to figure out again and now
  2274. 1:08:38that's all saved. If I go back into our
  2275. 1:08:40files and we open up our cloudmd we can
  2276. 1:08:42now see here that it says research and
  2277. 1:08:45web search default tavly first the API
  2278. 1:08:48key lives in thev here is the off method
  2279. 1:08:50here is the endpoint and here is how all
  2280. 1:08:52that works. So if we were to clear the
  2281. 1:08:54memory right now and then ask it to
  2282. 1:08:56search the web it would actually use
  2283. 1:08:57tabi and that is how you iterate on your
  2284. 1:08:59system. Now, the other thing I wanted to
  2285. 1:09:01talk about real quick is that we right
  2286. 1:09:03here saw the term MCP, which stands for
  2287. 1:09:06model context protocol. If you guys have
  2288. 1:09:08never heard of that, it's basically it's
  2289. 1:09:10very similar to an API. APIs have lots
  2290. 1:09:12of different endpoints that can be hit.
  2291. 1:09:13And MCPs have a lot of different tools
  2292. 1:09:15that can be hit, but essentially it's
  2293. 1:09:16the same theory of how can we connect
  2294. 1:09:19cloud code to QuickBooks or Google
  2295. 1:09:21Sheets or Gmail or SharePoint. It's all
  2296. 1:09:24about connecting to other tools via MCP
  2297. 1:09:26or API or you might even hear later on
  2298. 1:09:29in this video something called a CLI.
  2299. 1:09:31They're all basically just methods of
  2300. 1:09:32connecting to different tools. They all
  2301. 1:09:34have little bit of different pros and
  2302. 1:09:35cons, but I don't want to get into the
  2303. 1:09:36weeds of that right now. There's no
  2304. 1:09:37reason getting overwhelmed about that.
  2305. 1:09:39We're just focused on let's connect to
  2306. 1:09:41the tools that we use every day to make
  2307. 1:09:43ourselves faster. So, that is going to
  2308. 1:09:45do it right now for number 10. Let's
  2309. 1:09:48move on to permissions and settings. So
  2310. 1:09:51back in this example, as you guys saw,
  2311. 1:09:53we have a couple things to think about.
  2312. 1:09:54The first thing is the actual permission
  2313. 1:09:56mode that we use inside of cloud code.
  2314. 1:09:59So if I go into here, you can see that
  2315. 1:10:01we have different modes. We have auto
  2316. 1:10:03mode, which is the default. We have
  2317. 1:10:05manual permissions, we have accept
  2318. 1:10:06edits, we have plan mode, and then we
  2319. 1:10:09have bypass permissions. And if you
  2320. 1:10:10don't see bypass permissions, you would
  2321. 1:10:12go into here, you'd go to your settings,
  2322. 1:10:14and then you would go to cloud code. And
  2323. 1:10:17if you keep scrolling down, there's
  2324. 1:10:18going to be something right here, allow
  2325. 1:10:19bypass permissions mode. This allows
  2326. 1:10:23Claude to just do everything. It will
  2327. 1:10:25never stop and say, "Hey, is this okay?
  2328. 1:10:26Can I do this?" It will just do
  2329. 1:10:28everything. And um
  2330. 1:10:31hence the name bypass permissions,
  2331. 1:10:33dangerously skip permissions. So,
  2332. 1:10:35typically being on auto mode works just
  2333. 1:10:37fine, but there might be some times
  2334. 1:10:38where you do want it to be able to
  2335. 1:10:39bypass, but there are some things that
  2336. 1:10:41you want to be explicitly very careful
  2337. 1:10:43of. We've all heard those horror stories
  2338. 1:10:45of agents deleting databases. We
  2339. 1:10:47actually had something internally where
  2340. 1:10:48an agent accidentally sent out an email
  2341. 1:10:50to like 150,000 people with a discount
  2342. 1:10:52code that wasn't supposed to go out. The
  2343. 1:10:54reason that happened though wasn't
  2344. 1:10:55because of a permissions mode like down
  2345. 1:10:57here. That was because the agent had
  2346. 1:11:00access to so many tools. And really what
  2347. 1:11:03you should be doing is like let's say
  2348. 1:11:04you connect your agent to your CRM and
  2349. 1:11:07your agent only needs to be able to read
  2350. 1:11:09it. It doesn't need to be able to delete
  2351. 1:11:10records or update records. So there's no
  2352. 1:11:12point in giving the agent that actual
  2353. 1:11:13tool to be able to do so. So that's
  2354. 1:11:16where you might want to think about like
  2355. 1:11:17API keys with scoped permissions and
  2356. 1:11:19things like that. And what's nice about
  2357. 1:11:21thinking about scope permissions is it's
  2358. 1:11:22usually pretty userfriendly on the third
  2359. 1:11:25party tool side. So here's 11 Labs for
  2360. 1:11:28example. If you guys don't know what
  2361. 1:11:29this is, it basically is just like AI
  2362. 1:11:31voice really. And you can also do like
  2363. 1:11:33you know you can create voice agents and
  2364. 1:11:35phone agents and things like that. So,
  2365. 1:11:36if I come in here to developers and I go
  2366. 1:11:38to my API keys, you can see I've got a
  2367. 1:11:40bunch of API keys here. Let's say I'm
  2368. 1:11:41going to create a new one. Let's say I'm
  2369. 1:11:43creating this API key and I just need it
  2370. 1:11:46for sound effects. That's it. And for
  2371. 1:11:48some reason, it's really high risk where
  2372. 1:11:50if this API key does other things, it
  2373. 1:11:52would be bad for the business. So, I
  2374. 1:11:54would name this key so I am aware of
  2375. 1:11:56like what it does. And it's always good
  2376. 1:11:57to name your keys specifically because
  2377. 1:11:59if you're giving keys to different
  2378. 1:12:00people on your team or for different
  2379. 1:12:01agents, you want to see what agents are
  2380. 1:12:03using what keys, how often, and how much
  2381. 1:12:05they're spending and how much people are
  2382. 1:12:06using it. So anyways, that's what we're
  2383. 1:12:09doing here. Demo sound effect. Right
  2384. 1:12:11here, you can see that there's an option
  2385. 1:12:12to restrict this key, which means I can
  2386. 1:12:14restrict it on credits. So it can only
  2387. 1:12:16spend a certain amount. So let's say I
  2388. 1:12:18wanted to only let it spend 10 credits
  2389. 1:12:21um on a certain, you know, time period,
  2390. 1:12:23then I could do that. We can also
  2391. 1:12:25restrict the endpoints. Endpoints is
  2392. 1:12:28just a fancy word for like what it can
  2393. 1:12:30do, capabilities, tools. So let's say
  2394. 1:12:32for this key, I only wanted it to be
  2395. 1:12:35able to do sound effects. So I would
  2396. 1:12:36say, okay, you can access that. But for
  2397. 1:12:38everything else, no access. You know,
  2398. 1:12:41maybe I want it to be able to read all
  2399. 1:12:43of this so it can read dubbing, read
  2400. 1:12:44agents, read projects, read all this.
  2401. 1:12:47But besides that, the only thing it can
  2402. 1:12:49actually physically touch and manipulate
  2403. 1:12:51and do is sound effects. And that's how
  2404. 1:12:53you give your agents a key that you can
  2405. 1:12:56actually sleep at night and feel 100%
  2406. 1:12:57confident that nothing wrong will
  2407. 1:12:59happen. Because if those horror stories
  2408. 1:13:01where people delete a database with an
  2409. 1:13:03agent, if they would have just
  2410. 1:13:04restricted the ability to delete, then
  2411. 1:13:06that never would have happened. So
  2412. 1:13:08that's what I want you guys to be
  2413. 1:13:09thinking about like this. Would you give
  2414. 1:13:11your a new hire a credit card and say,
  2415. 1:13:13"Hey, you can like don't spend anything,
  2416. 1:13:15but with this card you could." No. That
  2417. 1:13:18just makes no sense. So treat this once
  2418. 1:13:19again, what did I say earlier in this
  2419. 1:13:21video? You are a manager. Just think
  2420. 1:13:23about this as this is a human. How would
  2421. 1:13:26I interact with them? What access would
  2422. 1:13:27I give them? What permissions would I
  2423. 1:13:29give them? And a lot of the overwhelm
  2424. 1:13:31about how you think about these agents
  2425. 1:13:32might just disappear when you shift your
  2426. 1:13:34mind to think like that. Okay. Now, the
  2427. 1:13:36other thing we have are some other
  2428. 1:13:37settings like local settings. So, I'll
  2429. 1:13:39show you guys a quick example of that.
  2430. 1:13:41If I go to my back to my Herku project,
  2431. 1:13:43which is like I said is my main one that
  2432. 1:13:45I kind of operate in and I go to my
  2433. 1:13:48umcloud and we talked about our settings
  2434. 1:13:50living inside of this.cloud folder. So
  2435. 1:13:52I'm going to open up my settings. What
  2436. 1:13:53we see here is some environment
  2437. 1:13:55variables. So cloud code agent teams
  2438. 1:13:58one. I'll talk about this later in the
  2439. 1:13:59video during the agent team section, but
  2440. 1:14:00that's an environment variable. I've
  2441. 1:14:02also got some other things here that I'm
  2442. 1:14:04going to blur out. But then I have
  2443. 1:14:05permissions. And this is me saying
  2444. 1:14:07here's what you're allowed to do cloud
  2445. 1:14:09code. You're allowed to do bashes. So
  2446. 1:14:11just like kind of running these
  2447. 1:14:12commands. Web search is allowed. Web
  2448. 1:14:14fetch, edit, write, mcps, mcps, glob,
  2449. 1:14:17skills, all of this is allowed. But
  2450. 1:14:19here's what's important. Here are the
  2451. 1:14:21things you can never do. I I have this
  2452. 1:14:23project set up so it can never remove
  2453. 1:14:24anything or delete anything or change
  2454. 1:14:26these directories or anything here that
  2455. 1:14:28I would consider risky. And so what I
  2456. 1:14:30would do is I would put my cloud code on
  2457. 1:14:32bypass permissions mode. But I felt
  2458. 1:14:34comfortable about it because it could
  2459. 1:14:36never do anything that was actually
  2460. 1:14:37risky. So, that's how I played with the
  2461. 1:14:39settings in order to actually help me
  2462. 1:14:40out a little bit with, you know, access.
  2463. 1:14:42Now, the cool thing about that is I
  2464. 1:14:44don't understand like a lot of those
  2465. 1:14:46words, but I just said, "Hey, I'm trying
  2466. 1:14:47to change my permissions and my settings
  2467. 1:14:49inside of this project. Here's X, Y, and
  2468. 1:14:52Z things I want to never happen. Can you
  2469. 1:14:53help me update the settings file so that
  2470. 1:14:55you physically cannot do those things?"
  2471. 1:14:57And then it just worked for me.
  2472. 1:14:59Obviously, I wanted to test it out a
  2473. 1:15:00little bit cuz you don't always just
  2474. 1:15:01take the output, like I said, and just
  2475. 1:15:03fully blindly trust it, but that's what
  2476. 1:15:05I did. Now, I will say though, pretty
  2477. 1:15:07much if you come in here and you go to
  2478. 1:15:09auto mode, it's going to be really
  2479. 1:15:10solid. Auto mode was new. So, when I
  2480. 1:15:13designed that settings file, auto mode
  2481. 1:15:15didn't yet exist, but auto mode's pretty
  2482. 1:15:16solid for you guys. When you've opened
  2483. 1:15:18up Cloud Code and you've been following
  2484. 1:15:19along with this video so far, you've
  2485. 1:15:21probably been using auto mode, and
  2486. 1:15:22that's going to be just fine. So, the
  2487. 1:15:24settings thing is something to just be
  2488. 1:15:25aware of, and later you might want to
  2489. 1:15:27tweak that as you get a little more
  2490. 1:15:28advanced, but right now, you're probably
  2491. 1:15:29fine just sticking on auto mode. And
  2492. 1:15:31then another setting that I want to
  2493. 1:15:33bring to your guys' attention is down
  2494. 1:15:35here. So obviously we have the model,
  2495. 1:15:37right? And you can enable fast mode,
  2496. 1:15:38which I basically never touch. It costs
  2497. 1:15:40more and it's faster and I typically
  2498. 1:15:42don't care about speed too much. We have
  2499. 1:15:44the different models to choose between,
  2500. 1:15:45right? So sonnet, haiku, opus, fable.
  2501. 1:15:48And then what we can also do is the
  2502. 1:15:50effort, which is pretty interesting. So
  2503. 1:15:52effort lets you choose between faster
  2504. 1:15:54and smarter. So, if we move the effort
  2505. 1:15:56down to medium or low or extra high or
  2506. 1:15:59max or ultra code, we can play with the
  2507. 1:16:01effort levels. Now, I will be honest
  2508. 1:16:03with you guys, I pretty much keep all my
  2509. 1:16:06models just on high. I don't really like
  2510. 1:16:08to play with it too much. Typically,
  2511. 1:16:09what I like to do is switch between
  2512. 1:16:11models rather than switch between
  2513. 1:16:12effort. I think that for the most of the
  2514. 1:16:14knowledge work, you really don't need to
  2515. 1:16:16tweak it too much. But I will say the
  2516. 1:16:19unit economics of understanding what is
  2517. 1:16:22the right model for the specific task in
  2518. 1:16:24front of you because you're also
  2519. 1:16:25optimizing for cost is a very important
  2520. 1:16:27thing to be thinking about as you get
  2521. 1:16:29more advanced. Right now we're learning
  2522. 1:16:30the fundamentals. It's not a big deal
  2523. 1:16:32but as you get more advanced it is
  2524. 1:16:33interesting to think about this kind of
  2525. 1:16:34stuff. Look at this for example. We have
  2526. 1:16:36this chart with GBT 5.5 which is
  2527. 1:16:38currently OpenAI's best model but you
  2528. 1:16:40know things move quick. We have Opus 4.8
  2529. 1:16:42and we have Fable 5. We're showing all
  2530. 1:16:44of these models on different effort
  2531. 1:16:46levels. And on the y- axis, we see the
  2532. 1:16:49score. On the x-axis, we see the average
  2533. 1:16:51cost per task. Now, what I want you to
  2534. 1:16:53pay attention to here is look at GBT
  2535. 1:16:555.5. As effort increases, quality
  2536. 1:16:59doesn't increase. Score doesn't
  2537. 1:17:00increase, but cost certainly does. So,
  2538. 1:17:02that's one where it's like, okay, why
  2539. 1:17:03would you ever increase the effort? But
  2540. 1:17:05here on Fable, as you increase the
  2541. 1:17:07effort, the benchmarks show that your
  2542. 1:17:10score meaning improves. Now, me
  2543. 1:17:12personally, when I use Fable on high or
  2544. 1:17:14max, what I've actually found is that
  2545. 1:17:16it's slower and it overthinks and it
  2546. 1:17:18overreasons for no reason. So, I like
  2547. 1:17:20Fable on high. Opus 4.8 on extra high
  2548. 1:17:23does significantly feel better, but it's
  2549. 1:17:25slower and more expensive. So, it's it's
  2550. 1:17:27kind of a balancing act to play, but
  2551. 1:17:29looking at these benchmarks is
  2552. 1:17:30interesting and it's good to know that
  2553. 1:17:31you have that lever to tweak. But, like
  2554. 1:17:34I said, for the majority of my knowledge
  2555. 1:17:35work that I'm doing, I'm just leaving
  2556. 1:17:37the models on high and that has been
  2557. 1:17:39working pretty well for me. Okay, now
  2558. 1:17:40let's talk about something really fun,
  2559. 1:17:42which is privacy and your data. So, hey
  2560. 1:17:46Claude Code, can you just do some quick
  2561. 1:17:47research for me? What does Enthropic say
  2562. 1:17:49about our privacy? You know, when I'm
  2563. 1:17:51talking to Claude and the data goes to
  2564. 1:17:53their servers, like what are they doing
  2565. 1:17:54with it? Are they training on me? Should
  2566. 1:17:56I be what should I be careful of? You
  2567. 1:17:58know, how do I stay safe, especially
  2568. 1:18:00inside of my own organization and at
  2569. 1:18:01work? So, the reason I wanted to bring
  2570. 1:18:04this up is because it is a big question,
  2571. 1:18:05right? because these closed source
  2572. 1:18:09models so basically meaning you know
  2573. 1:18:11OpenAI Enthropic Google those are closed
  2574. 1:18:14source models because we as consumers
  2575. 1:18:16don't actually get to own the weights of
  2576. 1:18:19those models you know we can't install
  2577. 1:18:21them locally and we can't tune them or
  2578. 1:18:23anything like that. Now open source
  2579. 1:18:24models are the ones that you can
  2580. 1:18:26download locally and tune them but
  2581. 1:18:28they're not nearly as good as the closed
  2582. 1:18:30source models. Now the benefit with open
  2583. 1:18:32source models is that you can own them
  2584. 1:18:34locally. So your data, your conversation
  2585. 1:18:38never leaves your home because it stays
  2586. 1:18:40on your computer. But every single time
  2587. 1:18:41that I send a message to Claude or
  2588. 1:18:43OpenAI or Google, it goes to their
  2589. 1:18:46servers wherever they're running all
  2590. 1:18:47their compute and then it gets processed
  2591. 1:18:49and then an answer comes back. And
  2592. 1:18:51that's why they have these massive, you
  2593. 1:18:52know, data centers. But the point I'm
  2594. 1:18:54trying to make here is for the company
  2595. 1:18:55that you work for or your own business,
  2596. 1:18:57you should not be sending over private
  2597. 1:18:59sensitive data. For my case, it's really
  2598. 1:19:02not that much, right? because I'm making
  2599. 1:19:03content and I am doing stuff like that.
  2600. 1:19:05I'm not directly handling people's
  2601. 1:19:07credit card numbers or their personal
  2602. 1:19:08identifiable information. But I wanted
  2603. 1:19:11to bring this up because for some of the
  2604. 1:19:13clients that I've worked with, they had
  2605. 1:19:14very strict requirements. You know, like
  2606. 1:19:16we couldn't do anthropic stuff for them.
  2607. 1:19:19We had to do on-remise deployments and
  2608. 1:19:20we had to think about security in a much
  2609. 1:19:22different way as far as like encryption
  2610. 1:19:23and stuff like that. But that's why I
  2611. 1:19:26wanted to bring this up. I'm not going
  2612. 1:19:27to dive into deep deep deep deep about
  2613. 1:19:29like encryption and on-rem right now in
  2614. 1:19:30this course at least, but I wanted to
  2615. 1:19:32bring this up so that nobody here gets
  2616. 1:19:34in trouble because they watch this
  2617. 1:19:35course and then they're all of a sudden
  2618. 1:19:37putting a bunch of company documents and
  2619. 1:19:38legal contracts into AI when their
  2620. 1:19:41company would get them in big-time
  2621. 1:19:43trouble for doing something like that.
  2622. 1:19:44So, be safe. Think about what's allowed
  2623. 1:19:47inside of your industry, inside of your
  2624. 1:19:49organization before you start chucking
  2625. 1:19:50in documents into something like Claude.
  2626. 1:19:53Aha. And look at this. I'll research
  2627. 1:19:55this with Tavly first per hour clawmd
  2628. 1:19:57setup. But anyways, I'll just go over
  2629. 1:19:59real quick what this says. It depends
  2630. 1:20:00entirely on which cloud you're using on
  2631. 1:20:02consumer plans, which is, you know, the
  2632. 1:20:04free pro max, not a team plan. As of the
  2633. 1:20:07policy change effective October 8,
  2634. 1:20:09training is opt-in, but it's a forced
  2635. 1:20:11choice. So, you basically had to toggle
  2636. 1:20:12this on or off. You can check this right
  2637. 1:20:14now by going to your settings, going to
  2638. 1:20:16privacy, going to help improve Claude,
  2639. 1:20:18and then you can toggle it on or off.
  2640. 1:20:19Now, just because they claim that
  2641. 1:20:21they're not going to train models on
  2642. 1:20:22your data, they still have that data.
  2643. 1:20:25So, you know, that's why even if you
  2644. 1:20:27have that toggled off, check with your
  2645. 1:20:29own organization. Cool. So, now that
  2646. 1:20:31we've covered probably, of course, the
  2647. 1:20:33most fun and exciting thing of this
  2648. 1:20:34course, let's just talk more about
  2649. 1:20:36connecting your own tools because that's
  2650. 1:20:37how this stuff gets super super super
  2651. 1:20:40powerful. Okay, so in my Herk 2 project,
  2652. 1:20:43which I know I've mentioned a lot, this
  2653. 1:20:45is my AI operating system. So, it's
  2654. 1:20:47connected to every tool that I actually
  2655. 1:20:48use and it has information about my
  2656. 1:20:50entire business. It knows my business
  2657. 1:20:52better than I know it honestly because
  2658. 1:20:53it has a better memory. But the idea is
  2659. 1:20:55I got here because I've connected all my
  2660. 1:20:58tools and because I use this for
  2661. 1:21:00everything and every new memory, every
  2662. 1:21:02new skill, every new project gets
  2663. 1:21:04indexed into my wiki here, which I will
  2664. 1:21:06have sections on exactly how you do this
  2665. 1:21:08later in the course, but just bear with
  2666. 1:21:09me here. The point I'm trying to make is
  2667. 1:21:11that's my AI operating system with my
  2668. 1:21:13second brain inside. And if you guys
  2669. 1:21:15want to get the full course, which I
  2670. 1:21:16would recommend you do after this
  2671. 1:21:18course, that will be my free school
  2672. 1:21:19community right here. The link is in the
  2673. 1:21:21description. Like I said, completely
  2674. 1:21:23free. So the point I'm trying to make is
  2675. 1:21:26this
  2676. 1:21:28idea of connecting your tools is a core
  2677. 1:21:30piece of building your AI operating
  2678. 1:21:31system. Context, connections,
  2679. 1:21:33capabilities, and cadence. And so what
  2680. 1:21:35I'm talking about right now is kind of
  2681. 1:21:36like the context and connections thing.
  2682. 1:21:39So this is where I like to start. I
  2683. 1:21:41think of my tier one connections which
  2684. 1:21:43are revenue, customers, calendar, coms,
  2685. 1:21:46tasks, meetings, and knowledge. So,
  2686. 1:21:48right now, you know, you've created your
  2687. 1:21:50folder in Claude, which is going to
  2688. 1:21:51evolve into your AI operating system.
  2689. 1:21:53But you're thinking to yourself, maybe
  2690. 1:21:54okay, Gmail, um, you know, Slack, what
  2691. 1:21:58else do I connect? I don't know what
  2692. 1:21:59else to connect. The answer is go look
  2693. 1:22:02at the tabs you have open right now. Go
  2694. 1:22:03look at your bookmarks. Go look at your
  2695. 1:22:05history. What tools are you visiting
  2696. 1:22:07frequently? what tools do you need to go
  2697. 1:22:09to pull data or to talk to people?
  2698. 1:22:12That's what you want to connect. So,
  2699. 1:22:13it'll be things like where is your
  2700. 1:22:15revenue living? Can you connect your
  2701. 1:22:16bank accounts? Can you connect um any
  2702. 1:22:18reporting tools? Can you connect Stripe?
  2703. 1:22:20Can you connect your, you know, school?
  2704. 1:22:22Where do your customers live? You
  2705. 1:22:24probably want to also have some customer
  2706. 1:22:25data in there. You probably want to have
  2707. 1:22:27your calendar in there. You want to have
  2708. 1:22:28communications, so Google Workspace, but
  2709. 1:22:30also for me it's ClickUp and Slack. I
  2710. 1:22:32have tasks in there. So, ClickUp and
  2711. 1:22:34Notion. I've got my meeting recordings.
  2712. 1:22:36my transcripts get pulled in
  2713. 1:22:37automatically from Fireflies and then
  2714. 1:22:39just other knowledge. So, I've got a ton
  2715. 1:22:40of stuff locally. I've got a ton of
  2716. 1:22:42stuff in my Google Drive and of course
  2717. 1:22:44on my YouTube channel. So, that's
  2718. 1:22:46obviously not all of it. I think every
  2719. 1:22:48single week you're going to discover, oh
  2720. 1:22:49shoot, I need to connect this. And then
  2721. 1:22:51when you do, it's as simple as googling
  2722. 1:22:53that tool and then you Google API
  2723. 1:22:55documentation. So, let's say you use
  2724. 1:22:57Fireflies and you want to be able to
  2725. 1:22:58connect Fireflies to cloud code. You
  2726. 1:23:00would just go Fireflies API
  2727. 1:23:03documentation. Okay, cool. Fireflies has
  2728. 1:23:05an API. I will go ahead and say, "Hey,
  2729. 1:23:07Cloud Code, you know, take this link,
  2730. 1:23:09figure out how to use this." And then
  2731. 1:23:10I'm going to go get my API keys from
  2732. 1:23:11Fireflies. And once I get that, I'm
  2733. 1:23:13going to chuck that in the ENV. And
  2734. 1:23:15boom. Congratulations. You just
  2735. 1:23:16connected another tool to your AI
  2736. 1:23:19operating system to your cloud code.
  2737. 1:23:20That's all it takes. The hardest part,
  2738. 1:23:23honestly, is just like identifying what
  2739. 1:23:25tools you need. And the best way to do
  2740. 1:23:27this is to actually test it. Like prove
  2741. 1:23:30to yourself that you [snorts] can do
  2742. 1:23:32this. And what I mean by that is you
  2743. 1:23:34have to make the habit switch. So what
  2744. 1:23:36it looks like right now is you've
  2745. 1:23:37probably got all these different tools
  2746. 1:23:39and I'm not going to um like label all
  2747. 1:23:42these, but let's just say you've got all
  2748. 1:23:44these different tools and you open up
  2749. 1:23:46your Chrome or whatever browser you use
  2750. 1:23:48and all day you're just switching
  2751. 1:23:49between a bunch of different tools and
  2752. 1:23:51you're copying and pasting things. What
  2753. 1:23:53you need to do is just transition to the
  2754. 1:23:55fact that I can just use Cloud Code and
  2755. 1:23:58just talk to Claude Code and that's it.
  2756. 1:24:00because Claude can be the one to go use
  2757. 1:24:03all these tools. So, all I have to do as
  2758. 1:24:05a human, you know, let me just draw a
  2759. 1:24:07nice little picture of Oops, that's not
  2760. 1:24:09what I wanted. As myself sitting here
  2761. 1:24:12on, you know, my computer just talking
  2762. 1:24:14all day. Then all I have to do, that's
  2763. 1:24:17supposed to be a computer by the way.
  2764. 1:24:18All I have to do as the human is just
  2765. 1:24:20talk to Claude. And now this thing is
  2766. 1:24:21like my assistant. It does everything
  2767. 1:24:23for me. And I try to challenge myself.
  2768. 1:24:26One of the metrics I challenge myself to
  2769. 1:24:27is what percentage of my day, what
  2770. 1:24:30percentage of my work can I do from this
  2771. 1:24:33window right here? And I know that might
  2772. 1:24:35sound weird. It might sound like, oh,
  2773. 1:24:36I'm going to be less productive. But no,
  2774. 1:24:38trust me, not only will you be more
  2775. 1:24:40productive, but you're going to start to
  2776. 1:24:41build more skills. You're going to make
  2777. 1:24:42your cloudmd better. You're going to
  2778. 1:24:44improve your entire system. And that's
  2779. 1:24:45how you end up with something like this
  2780. 1:24:46with hundreds of skills, millions of
  2781. 1:24:49context files and projects, and
  2782. 1:24:51something that feels like a co-founder.
  2783. 1:24:52It's really a great feeling to be to
  2784. 1:24:54have. So, you're going to go through
  2785. 1:24:56these tiers. You're going to list out
  2786. 1:24:58the tools that you want to connect and
  2787. 1:24:59then just go through find if they have
  2788. 1:25:01an API, find if they have an MCP, maybe
  2789. 1:25:03they have a CLI, and start to get
  2790. 1:25:05connected. What I want to show you guys
  2791. 1:25:06right now, because I'm hoping a lot of
  2792. 1:25:07you guys are on the Google Workspace
  2793. 1:25:09ecosystem, is how you can connect to the
  2794. 1:25:11Google Workspace CLI because that allows
  2795. 1:25:14you to talk to everything in the Google
  2796. 1:25:15Workspace environment. Mail, calendar,
  2797. 1:25:18sheets, docs, slides, all of it. So,
  2798. 1:25:22that's what I'm about to show you guys
  2799. 1:25:23how to set up. Just a quick warning
  2800. 1:25:25before this next video starts playing.
  2801. 1:25:26Some of the clips that I'm inserting
  2802. 1:25:28into this course were recorded a few
  2803. 1:25:30months back, meaning they might be shown
  2804. 1:25:31in VS Code extension or the terminal
  2805. 1:25:34instead of the Cloud Desktop app that
  2806. 1:25:36we've been using so far. I just wanted
  2807. 1:25:38to give you guys a warning.
  2808. 1:25:39Functionally, exact same. So, don't
  2809. 1:25:41worry about it too much. It just might
  2810. 1:25:42look a little bit differently, but all
  2811. 1:25:44you have to do is listen to what I'm
  2812. 1:25:45saying and follow along with what I'm
  2813. 1:25:46actually doing and you will be just
  2814. 1:25:47fine. All of this stuff is still
  2815. 1:25:49relevant. Otherwise, I wouldn't be
  2816. 1:25:50putting it in this course. So, hopefully
  2817. 1:25:52that makes sense. See you guys in the
  2818. 1:25:54video. Google just dropped what some are
  2819. 1:25:56already calling the most powerful
  2820. 1:25:57workspace CLI on the internet. So, if
  2821. 1:26:00you've got a ton of stuff that lives in
  2822. 1:26:01the Google environment just like I do,
  2823. 1:26:03then you're going to love this because
  2824. 1:26:04now any of my cloud code projects can
  2825. 1:26:06access everything. And all I had to do
  2826. 1:26:08was install one simple thing. So, here
  2827. 1:26:11you can see I said, what can you do with
  2828. 1:26:12GWS, which is Google Workspace CLI? So,
  2829. 1:26:16it can search, list, upload, download,
  2830. 1:26:18move, copy, share, anything in my Google
  2831. 1:26:20Drive. It can do anything in my Gmail.
  2832. 1:26:23It can do anything in my calendar. It
  2833. 1:26:24can do anything with Google Docs. Same
  2834. 1:26:26thing with Sheets. Same thing with
  2835. 1:26:28Slides. And it also has multi-step
  2836. 1:26:30workflow recipes. So these are basically
  2837. 1:26:32like skills. These are chain command
  2838. 1:26:34patterns for common tasks like creating
  2839. 1:26:36docs from templates, reading sheet data,
  2840. 1:26:38and creating a report doc, finding free
  2841. 1:26:40time, and scheduling a meeting. And
  2842. 1:26:41there are over a hundred of these that
  2843. 1:26:42it actually has. So out of the box, when
  2844. 1:26:44you give Claude Code the GWS CLI, you
  2845. 1:26:47can do anything across any of the tools.
  2846. 1:26:48And you also have access to over a 100
  2847. 1:26:50skills. So, I don't know how many times
  2848. 1:26:52you guys have tried to use something
  2849. 1:26:53like Claude or Naden to build you a
  2850. 1:26:55Google doc and you do this over API and
  2851. 1:26:57it ends up just looking like something
  2852. 1:26:59like this. It literally just looks like
  2853. 1:27:00raw markdown and it's obviously
  2854. 1:27:02horrible. And sometimes to go along with
  2855. 1:27:04a YouTube video, I make resource guides
  2856. 1:27:05that look like this, but obviously they
  2857. 1:27:07have to be formatted. I've got like a
  2858. 1:27:08header up here and I've got links and
  2859. 1:27:10different things in this format. But now
  2860. 1:27:13I can literally just take the link to a
  2861. 1:27:14YouTube video. I can drop that into
  2862. 1:27:16Cloud Code and say, "Create me a YouTube
  2863. 1:27:18resource guide." It's going to go ahead
  2864. 1:27:19and download that transcript from the
  2865. 1:27:21video. And now what it's doing is it's
  2866. 1:27:23creating the Google doc, not via API
  2867. 1:27:25call, not via MCP, but via a bash
  2868. 1:27:27command, meaning it's literally running
  2869. 1:27:29a terminal command in order to talk to
  2870. 1:27:31Google and make this. So, it just
  2871. 1:27:33actually created the doc. Here's the ID.
  2872. 1:27:35And now it's going to populate it with
  2873. 1:27:36what I need. And now it finished this
  2874. 1:27:38up. It gave me the link. I'll click into
  2875. 1:27:39this. And we can see, boom, we have an
  2876. 1:27:41actual resource guide. It's got the
  2877. 1:27:43image inserted up here as a header. It's
  2878. 1:27:44got a link that goes right back to my
  2879. 1:27:46YouTube channel. It breaks down the
  2880. 1:27:47market traditional automation. It goes
  2881. 1:27:49through all this stuff and then even has
  2882. 1:27:50my CTA at the bottom as you can see
  2883. 1:27:52after all these horizontal lines to join
  2884. 1:27:54the plus group. So that was obviously
  2885. 1:27:56just one quick example, but there's so
  2886. 1:27:58many different benefits here using this
  2887. 1:27:59workspace CLI. The first one is that you
  2888. 1:28:01have one interface. So basically, like I
  2889. 1:28:03said, it was one GWS CLI that Cloud Code
  2890. 1:28:05now has access to and it can access my
  2891. 1:28:07Gmail, my drive, docs, sheets, calendar,
  2892. 1:28:09admin, and more. It's also JSON first
  2893. 1:28:11with structured responses. So our AI
  2894. 1:28:13agent is really, really good at working
  2895. 1:28:14with it. We have auto discovery, meaning
  2896. 1:28:16the CLI is pretty much always going to
  2897. 1:28:17stay up to date automatically. Pretty
  2898. 1:28:19much zero maintenance because we
  2899. 1:28:20authenticate and then we're going to be
  2900. 1:28:22good to go. It has built-in skills for
  2901. 1:28:24triage, for prep, for generations. Like
  2902. 1:28:26I said, there's 100 others. And it's not
  2903. 1:28:28much overhead because it's basically
  2904. 1:28:29just one tool. It's not the same as like
  2905. 1:28:31having all these different API endpoints
  2906. 1:28:33or all of these different MCP configs
  2907. 1:28:35and tools that would take up more
  2908. 1:28:36context. But I know you're probably
  2909. 1:28:38wondering, what is a CLI? It stands for
  2910. 1:28:40command line interface. And what we're
  2911. 1:28:42typically used to is a GUI or a
  2912. 1:28:44graphical user interface where we can
  2913. 1:28:45see buttons, we can see form fields, and
  2914. 1:28:47we can click on things and that's how we
  2915. 1:28:49navigate, but computers are more
  2916. 1:28:51navigating by text and by commands and
  2917. 1:28:53by typing. So that's really all that a
  2918. 1:28:55CLI is. And this is an open- source
  2919. 1:28:57Google Workspace product, and obviously
  2920. 1:28:59it's completely free. So I'll leave a
  2921. 1:29:01link to this GitHub repository down in
  2922. 1:29:02the description if you want to check it
  2923. 1:29:03out, read more about it. But I'm also
  2924. 1:29:05going to walk through some of the key
  2925. 1:29:05details right here. The first thing that
  2926. 1:29:07I wanted to show you is if you go down
  2927. 1:29:08here to the skills, this is where we can
  2928. 1:29:10actually see all of the different kind
  2929. 1:29:12of recipes they call them for pre-made
  2930. 1:29:14multi-step workflows that it has. As you
  2931. 1:29:16can see, creating events from sheets,
  2932. 1:29:18creating presentations, creating meat
  2933. 1:29:20space, label and archiving emails.
  2934. 1:29:22There's so many different patterns that
  2935. 1:29:23you might use from this pre-built
  2936. 1:29:25library. Now, if we keep scrolling down,
  2937. 1:29:27what you'll also notice is that right
  2938. 1:29:28here it says this is not an officially
  2939. 1:29:30supported Google product. Now, that
  2940. 1:29:32doesn't mean that it's unsafe. This is
  2941. 1:29:33an actual Google product, but the reason
  2942. 1:29:35why it's not officially supported is
  2943. 1:29:37because right now it's more of like an
  2944. 1:29:38open- source beta. It's kind of a
  2945. 1:29:40developer playground rather than like an
  2946. 1:29:42enterprisebacked software. And you can
  2947. 1:29:44see right here that it also says this
  2948. 1:29:46project is under active development.
  2949. 1:29:47Expect breaking changes as we march
  2950. 1:29:49towards v 1.0. So this thing's already
  2951. 1:29:51really good out of the box and it's only
  2952. 1:29:52going to get better. And you can see,
  2953. 1:29:54like I said, when Google Workspace adds
  2954. 1:29:55an API endpoints or method, GWS picks it
  2955. 1:29:58up automatically. So you might as well
  2956. 1:29:59chuck it into cloud code right now and
  2957. 1:30:01start getting used to it. Okay, so I
  2958. 1:30:02just uninstalled this so I can walk you
  2959. 1:30:04guys through step by step how this
  2960. 1:30:05actually works. It's super easy. What I
  2961. 1:30:07do is I basically copy the link to this
  2962. 1:30:09GitHub repository as you can see. And
  2963. 1:30:11I'm going to basically just give it to
  2964. 1:30:13Cloud Code and say, "Hey, I want to
  2965. 1:30:15install this GWS CLI, read through the
  2966. 1:30:19documentation, and help me install
  2967. 1:30:20everything that I need to install, and
  2968. 1:30:22then we're going to get set up." So,
  2969. 1:30:23this is basically going to do all the
  2970. 1:30:24research for me, and then all I have to
  2971. 1:30:26do is follow its instructions. So, it
  2972. 1:30:28read the docs. It's looking at what we
  2973. 1:30:30already have installed. It basically saw
  2974. 1:30:32that I already had some of the
  2975. 1:30:33prerequisites. So if you don't have
  2976. 1:30:34those, you'll have to install those. And
  2977. 1:30:36then it told me that we needed to
  2978. 1:30:37install the CLI. So it did that. And now
  2979. 1:30:39we have two options. So the first one is
  2980. 1:30:41to install G-Cloud CLI so that we have
  2981. 1:30:43automatic setup and off. Or we could do
  2982. 1:30:45it manually by creating our own project
  2983. 1:30:47and whatnot. So let's just go ahead and
  2984. 1:30:48try option A. Okay. I thought this was
  2985. 1:30:50going to be just like a simple command
  2986. 1:30:52that it ran and then we were good. But
  2987. 1:30:54it's actually like some other thing to
  2988. 1:30:55install. So let's actually go back and
  2989. 1:30:56try manual and I'll just show you guys I
  2990. 1:30:58guess the harder way. Okay. So I'm going
  2991. 1:31:00to go to this link. go to our Google
  2992. 1:31:01Cloud Console and make sure you're
  2993. 1:31:03signed in with the right account up in
  2994. 1:31:04the top right. And I'm just going to go
  2995. 1:31:05ahead and create a new project just to
  2996. 1:31:07show you guys what this would look like.
  2997. 1:31:08So, new project. I'm going to call this
  2998. 1:31:10one Claude Code GWS. And we're just
  2999. 1:31:15going to go ahead and create this
  3000. 1:31:16project. So, this is spinning up right
  3001. 1:31:18now as you can see. And now that it has
  3002. 1:31:20been created, I'm going to select it so
  3003. 1:31:21we're inside of it. And then I'm going
  3004. 1:31:22to go up here and type in APIs and
  3005. 1:31:25services. Click on that. And we have to
  3006. 1:31:26set up our OOTH consent screen. So, I'll
  3007. 1:31:28click on this. and it's going to say get
  3008. 1:31:30started. Click on that. We have to give
  3009. 1:31:33our app a name. And then we have to
  3010. 1:31:35choose an audience. So I'm just going to
  3011. 1:31:36do internal because I only need this
  3012. 1:31:38right now for my own organization. If
  3013. 1:31:40you want to do external, it'll basically
  3014. 1:31:42have you do testing or published. And if
  3015. 1:31:44you do testing, just make sure that you
  3016. 1:31:46add your email as a test user. And then
  3017. 1:31:49all you have to do after you put in your
  3018. 1:31:50contact information is hit I agree. And
  3019. 1:31:53then you go ahead and create that. Now
  3020. 1:31:54once that has been done, you're going to
  3021. 1:31:56go to create a client ID. So, I'm going
  3022. 1:31:58to go back into APIs and services. I'm
  3023. 1:32:00going to go to credentials and then I'm
  3024. 1:32:02going to go ahead and do a create
  3025. 1:32:03credential oath client ID. Now, in here,
  3026. 1:32:05we're going to choose a desktop app. I'm
  3027. 1:32:07going to just call this GWS and go ahead
  3028. 1:32:10and hit create. And now we have our
  3029. 1:32:12client ID and our client secret. And so,
  3030. 1:32:14what you're going to do is download this
  3031. 1:32:15as a JSON file. Now, you can see here
  3032. 1:32:17that it says to download that file and
  3033. 1:32:19save it to your global.config/GWS.
  3034. 1:32:23So, basically, if you can't find this,
  3035. 1:32:25just say, "Hey, can you give that to me
  3036. 1:32:26in a full path?" And then you can paste
  3037. 1:32:28that into your finder or your file
  3038. 1:32:30explorer and it will take you there. It
  3039. 1:32:31will probably look something like this.
  3040. 1:32:33And then you just drag in that
  3041. 1:32:34credential thing. I called mine client
  3042. 1:32:36secret. And cloud code will be able to
  3043. 1:32:38look at this globally now. And so what
  3044. 1:32:40you'll notice is that we didn't in this
  3045. 1:32:41project yet enable these APIs. So let me
  3046. 1:32:44just show you what happens without that.
  3047. 1:32:45So it says the last step is to run GWS
  3048. 1:32:48off login. So I just said, hey, I
  3049. 1:32:50finished option B. The credentials are
  3050. 1:32:51called client secret. And then I told it
  3051. 1:32:54to run the O login. So that should
  3052. 1:32:56basically open up a tab for you, but if
  3053. 1:32:58it doesn't, then you can ask for it to
  3054. 1:33:00give you that URL so that you can
  3055. 1:33:01actually authenticate in. So you would
  3056. 1:33:03basically choose your account that you
  3057. 1:33:04want to use. And then you just have to
  3058. 1:33:06basically confirm that it can access all
  3059. 1:33:07of these different things. As you can
  3060. 1:33:08see, and then when you hit allow, you
  3061. 1:33:11should be properly authenticated. After
  3062. 1:33:12that, it's going to come back and say,
  3063. 1:33:13"Okay, cool. Let me see if everything
  3064. 1:33:15works." Now, this hasn't been perfect on
  3065. 1:33:17the first try every time, but if you
  3066. 1:33:19just go back and forth a little bit,
  3067. 1:33:20say, "Hey, that didn't work. Hey, this
  3068. 1:33:21is what I'm seeing." It will be able to
  3069. 1:33:23get you there. It's going to be your
  3070. 1:33:24best friend for something like this
  3071. 1:33:26because remember it can read all of the
  3072. 1:33:27actual documentation. And now it says
  3073. 1:33:29that the author is working, but we have
  3074. 1:33:30to enable these APIs in our Google Cloud
  3075. 1:33:33projects. So basically just clicking
  3076. 1:33:34open these one at a time and all you
  3077. 1:33:36have to do is hit enable. So it's super
  3078. 1:33:38simple. You just have to do this like I
  3079. 1:33:40said for all of these different services
  3080. 1:33:42that you actually want to be able to
  3081. 1:33:43use. So that's why I did this on a new
  3082. 1:33:44project cuz I just wanted you guys to
  3083. 1:33:45see that. But if you already have one
  3084. 1:33:47that has all these enabled, then you can
  3085. 1:33:48just use that project and generate that
  3086. 1:33:50OOTH client ID. So there you go. You can
  3087. 1:33:52see that this works. I said, "Can you
  3088. 1:33:54find my Google doc that I made in April
  3089. 1:33:55of 2025?" And I went ahead and pulled
  3090. 1:33:57links to all five of these because
  3091. 1:33:59obviously that was a very vague request.
  3092. 1:34:01And now we could take action pretty much
  3093. 1:34:02anywhere in Google Workspace super
  3094. 1:34:04simply with this CLI. But like I said, I
  3095. 1:34:07just got this set up today and I've been
  3096. 1:34:08playing around with it a ton in my
  3097. 1:34:10executive assistant project and it's
  3098. 1:34:11been awesome. It can literally do
  3099. 1:34:13anything. So here I'm asking it to grab
  3100. 1:34:14my unread emails from today and based on
  3101. 1:34:16what it knows about my business and my
  3102. 1:34:18priorities, give them a score and if the
  3103. 1:34:20priority score is below five, just mark
  3104. 1:34:21it as unread automatically. All right.
  3105. 1:34:22So, here you can see it said, "Got 30
  3106. 1:34:24unready emails. Here's my priority score
  3107. 1:34:26based on your business context." And as
  3108. 1:34:28I scroll down, you can see that it's
  3109. 1:34:29getting different ratings. And based on
  3110. 1:34:31what I'm seeing right now, this actually
  3111. 1:34:33looks pretty good. So, then I started
  3112. 1:34:34playing around with Google Slides
  3113. 1:34:35because I use Gamma right now, but at
  3114. 1:34:37some point I could imagine that if this
  3115. 1:34:39gets good enough, then I wouldn't need
  3116. 1:34:40Gamma anymore. And this is a free option
  3117. 1:34:42compared to Gamma subscription. So, I
  3118. 1:34:44had it create me a slide deck and it was
  3119. 1:34:46okay. I threw in my brand guidelines. I
  3120. 1:34:48threw in my logo and I said, "Hey, can
  3121. 1:34:49you see this? you created this using the
  3122. 1:34:51Google Slides and it's okay, but there's
  3123. 1:34:53some weird things that I need you to
  3124. 1:34:54fix. So then it came back and said, I
  3125. 1:34:56cannot see the slides. I just know how
  3126. 1:34:58to build them programmatically. So
  3127. 1:34:59that's why there may be some errors with
  3128. 1:35:00spacing and stuff. So then I basically
  3129. 1:35:02just gave it access to ChromeDev tools
  3130. 1:35:04so that it could open the page,
  3131. 1:35:05screenshot it, look at it, and then we
  3132. 1:35:07built a plan to add visual validation to
  3133. 1:35:09this Google Slide Creator skill. So now
  3134. 1:35:11you can see as it's going through, it
  3135. 1:35:13actually takes screenshots and then it
  3136. 1:35:14can make fixes based on that. So then
  3137. 1:35:16after it fixes everything, it says,
  3138. 1:35:17"Okay, cool. Updated the skill. take a
  3139. 1:35:19look at it now. So, I'll open up this
  3140. 1:35:21link. Brings me to Google Slides where I
  3141. 1:35:23have this slide deck. It has kind of my
  3142. 1:35:26brand colors. It's got the logo up top
  3143. 1:35:27right. And then as we go through, we can
  3144. 1:35:29also see that the spacing is a little
  3145. 1:35:30bit better. It's still not perfect,
  3146. 1:35:31obviously, but we have custom images
  3147. 1:35:33here that were generated with Nano
  3148. 1:35:35Banana 2. And even the images are kind
  3149. 1:35:37of on brand with the sort of orange and
  3150. 1:35:39blue color scheme. As you can see, we've
  3151. 1:35:41got this one with the WAT framework.
  3152. 1:35:43We've got this slide. And it even ends
  3153. 1:35:45with the CTA for the free school
  3154. 1:35:47community. So, just to see what else
  3155. 1:35:48happens, I'm going to say, "Take a look
  3156. 1:35:49at the slide deck and do another audit.
  3157. 1:35:51How could you improve the skill in the
  3158. 1:35:52future?" So, it's going to go ahead open
  3159. 1:35:55up a tab as you guys just saw. It's
  3160. 1:35:57going to take images. It's going to
  3161. 1:35:58flick through the different slides and
  3162. 1:36:00capture them. And as you can see over
  3163. 1:36:02here, it now says take screenshot. And
  3164. 1:36:04now, it's reading that screenshot right
  3165. 1:36:06there.
  3166. 1:36:07Now, it just moved on to the next slide.
  3167. 1:36:09And it's going to go through and look at
  3168. 1:36:10every single slide. And then, it's going
  3169. 1:36:11to come back with a plan. And we could
  3170. 1:36:13probably do a similar visual and
  3171. 1:36:14validate flow with creating Google Docs
  3172. 1:36:17as well. So now you can see it's almost
  3173. 1:36:19on to that last slide. And I hope it
  3174. 1:36:20fixes this last slide because what you
  3175. 1:36:22can see here is that the spacing is
  3176. 1:36:24really off down here. So you can see it
  3177. 1:36:26came back with an audit. It came back
  3178. 1:36:27with some future improvements. And one
  3179. 1:36:29thing that I did notice is that because
  3180. 1:36:31I made the window smaller, its
  3181. 1:36:32screenshots were probably worse quality.
  3182. 1:36:34So it said presentation mode screenshots
  3183. 1:36:36would probably be better. But anyways, I
  3184. 1:36:38just wanted to give you guys a little
  3185. 1:36:39taste of how you can use the GWS CLI.
  3186. 1:36:42but also use it with other tools to make
  3187. 1:36:44the functionality even more powerful.
  3188. 1:36:46And there is one more important thing I
  3189. 1:36:47need you guys to understand about
  3190. 1:36:49connecting your tools. So what you might
  3191. 1:36:51have noticed is that in cloud code on
  3192. 1:36:53the desktop app, if you go to customize,
  3193. 1:36:55you can see some skills in here, but
  3194. 1:36:56then you can go to connectors. And what
  3195. 1:36:59are connectors? They're basically a
  3196. 1:37:00really simple way for you to connect to
  3197. 1:37:03different tools. If I click on browse,
  3198. 1:37:04you can see we've got Reend, Tableau,
  3199. 1:37:06Canva, Figma, Gmail, notion. And this is
  3200. 1:37:09really easy because you basically just
  3201. 1:37:11connect and then it prompts you to sign
  3202. 1:37:12in. You know, like you kind of ooth in.
  3203. 1:37:15Oh, that one's already installed. So, if
  3204. 1:37:17I did Notion, for example, it would just
  3205. 1:37:18bring me to Notion and it would want me
  3206. 1:37:20to sign in here and then my Claude Code
  3207. 1:37:22desktop app would automatically be
  3208. 1:37:24synced up to notion and I could just
  3209. 1:37:25interact with it. And it's very easy
  3210. 1:37:27because you don't really deal with, you
  3211. 1:37:29know, potentially the API keys in the
  3212. 1:37:30same way. As you can see, here's where I
  3213. 1:37:32would choose which workspace I would
  3214. 1:37:33request connection to. Now, the reason I
  3215. 1:37:35wanted to bring this up is because it's
  3216. 1:37:38easier and a lot of people might just
  3217. 1:37:39tell you to do that. But here's what I
  3218. 1:37:41want you to think about. If you rely on
  3219. 1:37:43these connections, that is not great
  3220. 1:37:46because what's going to happen is if you
  3221. 1:37:48switch off to a different desktop app or
  3222. 1:37:50a different harness, you lose
  3223. 1:37:51everything. So by going through the
  3224. 1:37:54method that we've talked about where you
  3225. 1:37:55open up your files and you go to yourv
  3226. 1:37:57and you put your API keys in there and
  3227. 1:37:59you build connections through that that
  3228. 1:38:01means later if you want to switch to
  3229. 1:38:02codeex which is chatgbt's coding agent
  3230. 1:38:05or if you want to switch to Hermes agent
  3231. 1:38:08or openclaw or any other new tool that
  3232. 1:38:09comes out then you'd have to reconnect
  3233. 1:38:11every single thing which is a huge pain
  3234. 1:38:13or even if later you decided you wanted
  3235. 1:38:15to go from cloud code desktop app to VS
  3236. 1:38:17code which is something that I I like to
  3237. 1:38:18use a lot as well you would have to
  3238. 1:38:20reset all those connections again that
  3239. 1:38:22is why I'm teaching teaching you guys to
  3240. 1:38:23do this all a little bit more manually,
  3241. 1:38:25but it's not too difficult at all, but
  3242. 1:38:26more manually by setting up yourv um API
  3243. 1:38:29keys in there because it's just way more
  3244. 1:38:31transferable. You're you're way more
  3245. 1:38:33tool agnostic and becoming tool agnostic
  3246. 1:38:35is the most important thing you can do
  3247. 1:38:37because these tools evolve so quick. New
  3248. 1:38:39models, new tools every day, every week.
  3249. 1:38:41So that is why I want you guys to think
  3250. 1:38:42about the fact that all we're doing here
  3251. 1:38:44is we're building a bunch of folders and
  3252. 1:38:46files. any agent, any AI can sit on top
  3253. 1:38:49of folders and files and look at them
  3254. 1:38:51and be just fine and use them. So, that
  3255. 1:38:53is super important to me and I just
  3256. 1:38:55wanted to make sure that I communicated
  3257. 1:38:56that to you guys because I knew some
  3258. 1:38:58people might be thinking, okay, well,
  3259. 1:38:59why would we not just use the connectors
  3260. 1:39:00inside of the desktop app that are so
  3261. 1:39:02much easier to connect? That's why if
  3262. 1:39:04you want to go for it, but just think
  3263. 1:39:06about when you have to switch or if you
  3264. 1:39:07want to switch later, that's going to be
  3265. 1:39:08a real pain for you to reconnect
  3266. 1:39:10potentially like 20 or 30 or 40 tools.
  3267. 1:39:13All right, awesome. Let's move on to
  3268. 1:39:15skills, which is my favorite Cloud Code
  3269. 1:39:17feature ever. Skills exist regardless of
  3270. 1:39:21really whatever AI model you end up
  3271. 1:39:23using. So, when you're building these
  3272. 1:39:24skills, these are also tool agnostic,
  3273. 1:39:26which is great, but skills are so so
  3274. 1:39:27important. So, let me find some blank
  3275. 1:39:30space over here so I can draw out some
  3276. 1:39:31stuff about skills. We're going to grab
  3277. 1:39:33this little cloud code crab, place them
  3278. 1:39:35down here. So, when you're talking to
  3279. 1:39:37Claude Code, the idea is that when you
  3280. 1:39:40ask it to do something, it just
  3281. 1:39:42understands you, right? knows your
  3282. 1:39:44processes and it knows what to do and
  3283. 1:39:46specifically if it does a process once
  3284. 1:39:48good or well then you would hope that if
  3285. 1:39:51you ask it to do it again next week it
  3286. 1:39:53would do it just as well if not better.
  3287. 1:39:56So the idea is that we have a bunch of
  3288. 1:39:58skills, right?
  3289. 1:40:00Let's just call Yeah, we'll just say
  3290. 1:40:02skill. And these are also going to be MD
  3291. 1:40:03files. So let's say skill.md as we know
  3292. 1:40:05that that stands for markdown.
  3293. 1:40:08Think about it like this. These are just
  3294. 1:40:10recipes. If you wanted to make chocolate
  3295. 1:40:13chip pancakes, I don't know why I always
  3296. 1:40:14use this example, but it just makes
  3297. 1:40:15sense. You would open up a recipe for
  3298. 1:40:18chocolate chip pancakes. If this was
  3299. 1:40:20your first time ever doing it, you would
  3300. 1:40:21follow that recipe because you don't
  3301. 1:40:23know off the top of your head the
  3302. 1:40:24measurements. um how long to cook it.
  3303. 1:40:27You know, you don't know exactly what to
  3304. 1:40:28do, but what you would do is you'd open
  3305. 1:40:29up the cookbook or you'd Google on our
  3306. 1:40:32phone the recipe and then you'd follow
  3307. 1:40:34it to a tea. You would see step one,
  3308. 1:40:36step two, step three, step four, and you
  3309. 1:40:37would just do that. After you finished
  3310. 1:40:39making, you know, you got the
  3311. 1:40:41deliverable from that recipe. You would
  3312. 1:40:42say to yourself, "Okay, did I like this
  3313. 1:40:44or did I not?" You know, maybe I wanted
  3314. 1:40:45to add more chocolate chips. So, I'm
  3315. 1:40:47going to change the recipe and add more
  3316. 1:40:48chocolate chips. So, then you would
  3317. 1:40:50change the recipe and then next time you
  3318. 1:40:52want to make chocolate chips, you'd open
  3319. 1:40:53this back up. You'd run it again and
  3320. 1:40:55you'd see if you liked it and eventually
  3321. 1:40:56you get to a spot where you like the
  3322. 1:40:58skill or you like the recipe and now
  3323. 1:41:00whenever anyone asks you, hey, you know,
  3324. 1:41:02can you make me some chocolate chip
  3325. 1:41:03pancakes? You know exactly how to do it
  3326. 1:41:04because you reach for the skill and you
  3327. 1:41:06just follow the instructions. So that's
  3328. 1:41:08what our agents do. What ends up
  3329. 1:41:09happening is we have tons of different
  3330. 1:41:11skills and when we ask our agent to do
  3331. 1:41:13something, it is able to think to
  3332. 1:41:15itself, oh, okay, cool. So, this person
  3333. 1:41:17wanted me to do a, you know, a morning
  3334. 1:41:19briefing. And all I have to do now is I
  3335. 1:41:22have to go grab this morning briefing
  3336. 1:41:23skill, read it, and then I'm going to go
  3337. 1:41:26execute, you know, the actual morning
  3338. 1:41:27briefing on my workspace, you know, so
  3339. 1:41:31on my laptop. Anyways, so it would read
  3340. 1:41:33this and then it would execute. And then
  3341. 1:41:36your job as the human is to say, "Okay,
  3342. 1:41:38cool. This is pretty good." But once
  3343. 1:41:40again, here's my feedback. And then you
  3344. 1:41:42just get into this place where the agent
  3345. 1:41:44would then loop. it would update the
  3346. 1:41:45skill and then you run it again and then
  3347. 1:41:47you judge the output, you loop, you run
  3348. 1:41:49it again. So take a look at this
  3349. 1:41:50example. This is my grill me skill. What
  3350. 1:41:53you'll notice is there's this little
  3351. 1:41:55front matter which is called YAML front
  3352. 1:41:57matter. It it's yl front matter. I don't
  3353. 1:42:00know exactly what the yl stands for but
  3354. 1:42:02it's front matter. And this is important
  3355. 1:42:04because this is what the agent reads in
  3356. 1:42:08order to decide should I use the skill
  3357. 1:42:10or not. So this skill is called grill
  3358. 1:42:12me. It says, "Enter the user
  3359. 1:42:13relentlessly about a plan, design, or
  3360. 1:42:15topic, checkpointing every answer to a
  3361. 1:42:17brainstorm file so nothing is lost. Use
  3362. 1:42:19when the user wants to stress test a
  3363. 1:42:21plan, get grilled on a design, run a
  3364. 1:42:23brainstorm or discovery session, extract
  3365. 1:42:24what's in their head into a doc, or
  3366. 1:42:26says, "Krill me." I'm going to do a full
  3367. 1:42:28section later on the skill. It's it's a
  3368. 1:42:29it's a great skill. But this is what it
  3369. 1:42:32looks like. So, let's say I say, "Hey,
  3370. 1:42:34you know, Claude Code, I want to um
  3371. 1:42:36build out a new course on cloud code for
  3372. 1:42:40knowledge work." for example, which is
  3373. 1:42:42actually I did this exact thing when I
  3374. 1:42:44was planning out this course. I said,
  3375. 1:42:46can you please grill me about the way I
  3376. 1:42:47use cloud code, the way I think about
  3377. 1:42:49it, and what I need to know. And then
  3378. 1:42:51what it did is it just asked me tons and
  3379. 1:42:52tons of questions. But before it did
  3380. 1:42:54that, it had to read the skill and
  3381. 1:42:55invoke it. And it and the reason I
  3382. 1:42:58wanted to tell you guys about this front
  3383. 1:42:59matter is because that is how it
  3384. 1:43:00decides. Look at this, right? If I go to
  3385. 1:43:02my Herk 2 project and if I go into
  3386. 1:43:04mycloud and I go to the skills folder, I
  3387. 1:43:07have tons of skills. There's like 40ome
  3388. 1:43:09in here. So, because there's so many
  3389. 1:43:12skills, what this looks like more like
  3390. 1:43:14in reality is our agent has to look
  3391. 1:43:17through
  3392. 1:43:18so many skills to be able to pick out
  3393. 1:43:20the right one, which is overwhelming and
  3394. 1:43:23it starts to cost tokens. So that's why
  3395. 1:43:26we use this front matter which it's a
  3396. 1:43:28process called progressive disclosure
  3397. 1:43:30which basically means the agent is able
  3398. 1:43:32to quickly scan all of the front matter
  3399. 1:43:34for every single skill and based on the
  3400. 1:43:36description decide ah this is the one
  3401. 1:43:39that I need to use based on the request
  3402. 1:43:41that the user just requested from me. So
  3403. 1:43:44that is why it would then pick this one
  3404. 1:43:46then it could read everything and then
  3405. 1:43:47it would invoke it. So that's how sort
  3406. 1:43:50of the skills look. That's how they
  3407. 1:43:52work. And that is how progressive
  3408. 1:43:54disclosure works. So let us go ahead and
  3409. 1:43:58build our own skill. The cool thing
  3410. 1:43:59about skills is they can be invoked by
  3411. 1:44:01natural language. Like if I said, "Hey,
  3412. 1:44:02can you just grill me?" Or, "Hey, can
  3413. 1:44:04you run like my storm research?" They
  3414. 1:44:06would be invoked. But you can also
  3415. 1:44:07invoke them from slash commands. So if I
  3416. 1:44:09do a slash, you can see that I've got a
  3417. 1:44:11command called session handoff, which I
  3418. 1:44:12could invoke by doing slash. Or I could
  3419. 1:44:15use, you know, slashgrill me, for
  3420. 1:44:17example, which is the one that you guys
  3421. 1:44:18just saw. So you can use slash commands.
  3422. 1:44:21And what else is cool about that is
  3423. 1:44:22there is a slash command from Enthropic
  3424. 1:44:24called skill creator. Create new skills,
  3425. 1:44:25modify and improve, blah blah blah. So
  3426. 1:44:27I'm going to call on that skill and then
  3427. 1:44:29I'm just going to in my natural language
  3428. 1:44:31tell it what I want to build a skill
  3429. 1:44:33around. Before I do this, there are two
  3430. 1:44:35different ways that you can actually
  3431. 1:44:37write skills or make skills. So let me
  3432. 1:44:40once again come over here and show you
  3433. 1:44:41guys visually. There are two ways. One
  3434. 1:44:44of them is you kind of proactively are
  3435. 1:44:46building skills and the other one is you
  3436. 1:44:48build a skill after the fact. So what I
  3437. 1:44:50mean by that is let's say we decide okay
  3438. 1:44:53I want a skill for my morning brief. So
  3439. 1:44:55what I'm going to do is I'm going to say
  3440. 1:44:57hey Claude code help me build a skill to
  3441. 1:45:00help me with my morning briefings.
  3442. 1:45:01Here's what you're going to do. Step one
  3443. 1:45:03is you go to my calendar and you see
  3444. 1:45:04what's on my my day. Step two is you go
  3445. 1:45:06to my ClickUp. You see my tasks that are
  3446. 1:45:08due today. Step three is you read
  3447. 1:45:10through my conversations and you see if
  3448. 1:45:11there's anything that I committed to
  3449. 1:45:13blah blah blah. That is how you build
  3450. 1:45:14the morning briefing skill. Or what you
  3451. 1:45:16could do on the other side is you just
  3452. 1:45:19do that. So instead of planning out and
  3453. 1:45:21saying, "Hey, help me build the skill,"
  3454. 1:45:23you just do the thing. So you would do
  3455. 1:45:25step one, you would do step two, you do
  3456. 1:45:27step three, you do step four. You do all
  3457. 1:45:28of that manually with Claude. And then
  3458. 1:45:30you would say, "Hey, look back at all
  3459. 1:45:33those four steps that we just did. That
  3460. 1:45:35is a process that I do every morning.
  3461. 1:45:37So, can you turn that into a skill? So,
  3462. 1:45:39you basically have those two paths. You
  3463. 1:45:41can either say, "Hey, help me write a
  3464. 1:45:43skill." And then explain 1 2 3 4. Here's
  3465. 1:45:45what we do. Or you actually do the
  3466. 1:45:47action and then you say, "You know what?
  3467. 1:45:48That would be a great skill. Turn that
  3468. 1:45:50into a skill for me." So, let me show
  3469. 1:45:53you. Um, we're going to proactively
  3470. 1:45:54build one just to keep this simpler. And
  3471. 1:45:56also, what I'm going to do is I'm going
  3472. 1:45:57to clear out this conversation because
  3473. 1:45:58we don't need all this in here. So, I
  3474. 1:46:00can do a slash command to clear
  3475. 1:46:02slashcle. And then we have a fresh chat.
  3476. 1:46:04So, I'm going to invoke the skill
  3477. 1:46:06creator skill. And now, let's think of a
  3478. 1:46:08good use case to build a skill around.
  3479. 1:46:11Hey Claude, I would like you to help me
  3480. 1:46:13build a skill. So, I want something
  3481. 1:46:14that's going to help me sort of just
  3482. 1:46:16manage my email inbox a little bit
  3483. 1:46:17better. You should be able to touch my
  3484. 1:46:19inbox because we set up the Google
  3485. 1:46:21Workspace CLI. So, that's the first step
  3486. 1:46:24is see if you can reach it. And then
  3487. 1:46:26what I want the skill to do is basically
  3488. 1:46:27give me a rundown of all of my unread
  3489. 1:46:30emails and then help me sort of just
  3490. 1:46:32like triage them. Tell me if anything's
  3491. 1:46:33important. tell me if you know there's
  3492. 1:46:36anything that I committed to that I need
  3493. 1:46:37to respond to and if I need to reach out
  3494. 1:46:39to anyone else on my team basically just
  3495. 1:46:41help me triage these emails and label
  3496. 1:46:43them for me high priority you know which
  3497. 1:46:45ones needs actions which ones can be
  3498. 1:46:46completely ignored and then after that
  3499. 1:46:49happens and after you've given me a
  3500. 1:46:51quick brief we'll actually take action.
  3501. 1:46:52So I'll say hey you know all of those
  3502. 1:46:54down there you can just mark them as
  3503. 1:46:55unread for these three emails I want you
  3504. 1:46:57to help me create a draft blah blah
  3505. 1:46:58blah. So you're basically going to help
  3506. 1:47:00me triage my inbox and clean it up.
  3507. 1:47:03Okay, so that was a very messy prompt,
  3508. 1:47:05right? And that's why sometimes it's
  3509. 1:47:07better to build a skill after you've
  3510. 1:47:09done something. So, what we're going to
  3511. 1:47:10do here is it's going to start to build
  3512. 1:47:11out the skill thing. And then what it's
  3513. 1:47:13going to do is we're going to run
  3514. 1:47:14through this example and then we're
  3515. 1:47:16going to go back and improve the skill.
  3516. 1:47:17The first step is that it's checking the
  3517. 1:47:19Google Workspace to see if it can
  3518. 1:47:20actually hit my inboxes. There we go.
  3519. 1:47:22Reachable. And there are 201 unread
  3520. 1:47:24emails. So, I certainly do need the
  3521. 1:47:26skill. And now what it's doing is it's
  3522. 1:47:28saying, "Okay, so I have everything set
  3523. 1:47:29up, but before I write the skill,
  3524. 1:47:31there's a few questions that I have for
  3525. 1:47:32you." So, it's asking me some questions
  3526. 1:47:34to make this skill better. I have 201
  3527. 1:47:36unready emails. How much should we
  3528. 1:47:38triage in one run? I'm just going to say
  3529. 1:47:40the most recent 25 to 30 just to keep
  3530. 1:47:42this simple. When the skill labels an
  3531. 1:47:45email, what actually should happen? Read
  3532. 1:47:47Gmail labels. Brief only, no labels,
  3533. 1:47:50stars plus brief. I'm going to go ahead
  3534. 1:47:52and say brief only, no labels, just so
  3535. 1:47:54it's not doing anything that I'm not
  3536. 1:47:56explicitly approving, at least to start.
  3537. 1:47:58Once we've ran the skill 10, 20, 30
  3538. 1:48:00times and we've kind of like battle
  3539. 1:48:02tested it and we feel more confident in
  3540. 1:48:04it, then we can maybe make it a little
  3541. 1:48:05bit more autonomous. But to start, I
  3542. 1:48:07like to be in full control of
  3543. 1:48:08everything. What categories should the
  3544. 1:48:10brief sort emails into? Let's just go on
  3545. 1:48:12high, action, ignore. That's totally
  3546. 1:48:13fine for now. And it's going to keep
  3547. 1:48:15building out this skill. So, while this
  3548. 1:48:16is finishing running up, let me just
  3549. 1:48:18talk about some of the common questions
  3550. 1:48:19I get around skills because skills can
  3551. 1:48:22be as simple as like a two- sentence
  3552. 1:48:24prompt, but they can also be pretty
  3553. 1:48:25complex. So, let me show you guys a
  3554. 1:48:27quick example. If I go into my skills
  3555. 1:48:30here, let me show you an example of one
  3556. 1:48:32that is kind of more on the complex
  3557. 1:48:34side. Okay, so this is one called
  3558. 1:48:36packaging, which helps me out with
  3559. 1:48:37sometimes packaging up YouTube videos
  3560. 1:48:39and stuff like that and brainstorming.
  3561. 1:48:40So, it's called packaging. Here's the
  3562. 1:48:42description of when to use it. And then
  3563. 1:48:44what you'll notice inside of this skill
  3564. 1:48:46is we're routing to other files. So,
  3565. 1:48:48sometimes it needs to read this full
  3566. 1:48:49packaging playbook, which is a massive
  3567. 1:48:52um markdown file of packaging rules. So,
  3568. 1:48:54it says read this every time. It has
  3569. 1:48:55Nate's actual decision logic. Then it
  3570. 1:48:57went to the decision logic source. So
  3571. 1:48:59another massive markdown file. Then it
  3572. 1:49:02can also read my channel data. And then
  3573. 1:49:03it can also look at thumbnail analysis.
  3574. 1:49:05It can also look at a script to generate
  3575. 1:49:06thumbnails. And it also has to find my
  3576. 1:49:08API key. So this is an example where we
  3577. 1:49:11have tons of brand assets like all of my
  3578. 1:49:13thumbnail assets, the core model. And
  3579. 1:49:16look how long this is. There's so many
  3580. 1:49:17different instructions. There's so many
  3581. 1:49:18different modes. There's so many
  3582. 1:49:20different decisions to be made. And
  3583. 1:49:21every time that I use the skill, it gets
  3584. 1:49:23better and better, right? because, you
  3585. 1:49:25know, I give it that feedback loop.
  3586. 1:49:27There's lots of files that it
  3587. 1:49:28references. Here's one called idea
  3588. 1:49:30mining. So, we use this when someone
  3589. 1:49:31asks for content ideas, video ideas,
  3590. 1:49:33what to make next, or just to run idea
  3591. 1:49:34mining. So, once again, this actually
  3592. 1:49:36needs to be updated cuz I have more than
  3593. 1:49:37this many subscribers now, but context
  3594. 1:49:40files, you know, execution. But what's
  3595. 1:49:42cool about this is this skill calls on
  3596. 1:49:44sub agents. So, I know we haven't talked
  3597. 1:49:46about sub aents yet, but skills can do
  3598. 1:49:48so many things. It can reference full
  3599. 1:49:50workflows. It can reference full
  3600. 1:49:51scripts. It can reference sub aents. So
  3601. 1:49:53the first agent that's supposed to run
  3602. 1:49:55this skill will call on the YouTube
  3603. 1:49:57analyzer sub agent and then later it
  3604. 1:49:59will call on my researcher agent.
  3605. 1:50:01Anyways, the point I'm trying to make is
  3606. 1:50:03skills can be really simple. It could be
  3607. 1:50:04a two sentence prompt. Skills can call
  3608. 1:50:06other skills. Skills can call sub aents.
  3609. 1:50:08It's basically whatever process you
  3610. 1:50:10have. It's basically just an SOP.
  3611. 1:50:12However you decide you want to do
  3612. 1:50:13something, a skill just packages it up
  3613. 1:50:16so that you can consistently do that
  3614. 1:50:17again every time. Another cool thing
  3615. 1:50:19about skills is because they're just
  3616. 1:50:20markdown files, you can take skills from
  3617. 1:50:22other people. You know, they will have
  3618. 1:50:24open source GitHub repos like this
  3619. 1:50:25superpowers plugin that has skills in
  3620. 1:50:27here. And this gives us skills for
  3621. 1:50:29brainstorming and for other things like
  3622. 1:50:31that. If I go to the skills, you can see
  3623. 1:50:32there's a brainstorming one, there's an
  3624. 1:50:34executing plans, there is a dispatching
  3625. 1:50:36parallel agents, there's writing plans.
  3626. 1:50:38So, you can leverage other people's
  3627. 1:50:40skills and other people's subject matter
  3628. 1:50:41expertise by taking the markdown file
  3629. 1:50:44that they give you for a skill. For
  3630. 1:50:45example, this brainstorming one, like I
  3631. 1:50:47said, just a markdown file. It's just a
  3632. 1:50:49simple prompt and then you can put this
  3633. 1:50:50into your own project and you can use
  3634. 1:50:52it. So, if you go on X or if you go on
  3635. 1:50:54LinkedIn, you'll see people talking
  3636. 1:50:55about these really cool skills and
  3637. 1:50:56plugins and it's kind of just like an
  3638. 1:50:58open marketplace where people are
  3639. 1:50:59sharing stuff. If you guys remember the
  3640. 1:51:01grill me skill that I've been talking
  3641. 1:51:02about, I was inspired to create that by
  3642. 1:51:04Matt PCO who made this skill called
  3643. 1:51:06grilling. And look how simple it is.
  3644. 1:51:08This is literally one of those examples
  3645. 1:51:09I talked about where this is like, you
  3646. 1:51:11know, five or six sentences and it's
  3647. 1:51:13just a prompt, but it's still very, very
  3648. 1:51:14effective. And once again, I could
  3649. 1:51:16download this, put it into my own
  3650. 1:51:18project, and then use it. Okay, so the
  3651. 1:51:20skill is done. Obviously, it's not
  3652. 1:51:22perfect yet because we haven't even
  3653. 1:51:23really tested it. But if I go into
  3654. 1:51:24mycloud and I go to skills, you can see
  3655. 1:51:26we now have one called inbox triage. And
  3656. 1:51:29inside of this inbox triage skill, we
  3657. 1:51:31have some references, we have some
  3658. 1:51:33scripts, and then we also have the main
  3659. 1:51:35markdown file. And what I'm assuming is
  3660. 1:51:37in this main markdown file, it calls on
  3661. 1:51:39the references right here. Um, yes,
  3662. 1:51:41inbox triage scripts. So, it calls on
  3663. 1:51:43the script and then it also calls on
  3664. 1:51:45this reference which is the cookbook MD
  3665. 1:51:47which it's still being written out it
  3666. 1:51:48looks like. But that's the whole point
  3667. 1:51:49is that inside of the skill, the
  3668. 1:51:51markdown file is the master instruction.
  3669. 1:51:53And sometimes you include other assets
  3670. 1:51:55like in my YouTube thumbnail skill, I
  3671. 1:51:58have brand assets in here that needs a
  3672. 1:51:59call on because it needs to use my, you
  3673. 1:52:01know, my head shot to create some of
  3674. 1:52:04those thumbnails. So that is what this
  3675. 1:52:05looks like. You can see that it's being
  3676. 1:52:06built once again completely by Claude
  3677. 1:52:08and it already has like the front
  3678. 1:52:10matter. It already has the description.
  3679. 1:52:12So you really don't have to worry about
  3680. 1:52:13the technical details of how do you
  3681. 1:52:15actually physically build one. You just
  3682. 1:52:17have to worry once again about speaking
  3683. 1:52:19clearly about what you want. Okay. So
  3684. 1:52:20I'm going to blur out all of these
  3685. 1:52:22emails obviously, but here are some
  3686. 1:52:23things that it says high priority. And I
  3687. 1:52:25would agree that those are high
  3688. 1:52:26priority. We've got some things that
  3689. 1:52:27need action. Um this one's something I
  3690. 1:52:29just need to approve. This is something
  3691. 1:52:31I need to respond to. And this actually
  3692. 1:52:33this one could be ignored. And so what
  3693. 1:52:35I'm going to do is say, "Okay, cool.
  3694. 1:52:37This looks pretty good for a first pass.
  3695. 1:52:39The only thing I would say here is the
  3696. 1:52:42third email in the needs action bucket,
  3697. 1:52:45you can move that to ignore. So if you
  3698. 1:52:47ever see an email like that again in the
  3699. 1:52:49future, just make a note that from this
  3700. 1:52:52particular sender and for this
  3701. 1:52:53particular reason, those can be ignored
  3702. 1:52:55because I don't actually need to action
  3703. 1:52:57those at all." You can see it says
  3704. 1:52:58that's the skill. Nothing was touched.
  3705. 1:52:59All 16 are still on red. Now tell me
  3706. 1:53:01what you do and then after it makes this
  3707. 1:53:04change I'm going to say cool go mark all
  3708. 1:53:06of those that are in the can ignore
  3709. 1:53:08bucket I'm going to say to mark those as
  3710. 1:53:10unread in Gmail and then maybe you could
  3711. 1:53:11say like hey so for those couple that
  3712. 1:53:13were high priority can you create a task
  3713. 1:53:15for me in ClickUp or can you create a
  3714. 1:53:17task for me here and then I will
  3715. 1:53:19remember to do that by the end of today.
  3716. 1:53:21So when I talk about the idea that we
  3717. 1:53:22want to make this thing understand your
  3718. 1:53:24preferences and your workflows and your
  3719. 1:53:26business so well skills are the core of
  3720. 1:53:28that skills are the instructions and the
  3721. 1:53:30preferences that you can save. So right
  3722. 1:53:32here you can see it added this rule into
  3723. 1:53:33the skill.mmd. So the skill.mmd got
  3724. 1:53:35changed. You can see right here it said
  3725. 1:53:36edited the skill.md and it added 13
  3726. 1:53:39lines right there as you can see.
  3727. 1:53:40Awesome. So for now this skill is
  3728. 1:53:42complete. What I want you to do and add
  3729. 1:53:44this to the end of the skills is that
  3730. 1:53:46once the user has confirmed that all of
  3731. 1:53:48those emails that are in the can ignore
  3732. 1:53:50bucket, you can just go ahead and mark
  3733. 1:53:52those off as unread or sorry, you mark
  3734. 1:53:54them off as red once the user has
  3735. 1:53:56confirmed. So go ahead and mark those as
  3736. 1:53:58red and then update the skill to say
  3737. 1:54:00that. Awesome. So it has marked those as
  3738. 1:54:02red. I will check that in a sec. It's
  3739. 1:54:04also edited the skill. So if I open this
  3740. 1:54:06up, you can see it added this line right
  3741. 1:54:08here that said, "How do you clear the
  3742. 1:54:10ignore bucket?" Once Nate confirms that
  3743. 1:54:11he's fine with it, you mark them as red,
  3744. 1:54:13blah, blah, blah. So, that is how we see
  3745. 1:54:14that it edited the skill. And now, let
  3746. 1:54:16me check the email real quick. Awesome.
  3747. 1:54:18So, blurring this out, of course, but
  3748. 1:54:20you guys can see, well, you probably
  3749. 1:54:21can't, but the ones that I said to
  3750. 1:54:24ignore, it went ahead and it marked
  3751. 1:54:26those off as red. Sweet. So, that is how
  3752. 1:54:29we built our first skill. Just remember
  3753. 1:54:31that all of the skills that I use on the
  3754. 1:54:33dayto-day and on the week to week,
  3755. 1:54:35they're not done. Every single time I
  3756. 1:54:37use it, I'm able to give it some sort of
  3757. 1:54:38feedback. Sometimes you don't, but you
  3758. 1:54:40always want to look for areas to improve
  3759. 1:54:43those skills, especially as different
  3760. 1:54:46models come out. So like Opus 4.7 might
  3761. 1:54:48behave differently on a skill than Opus
  3762. 1:54:504.8. So every time a model drops, just
  3763. 1:54:52run your skills and make sure you still
  3764. 1:54:54like them. If you ever end up switching
  3765. 1:54:55your harness, so if you switch from
  3766. 1:54:57Claude Code to something else like
  3767. 1:54:58OpenClaw or Codeex, they can still use
  3768. 1:55:02those skills. You just have to make sure
  3769. 1:55:03they're in the right folder for them to
  3770. 1:55:04see. You know how this one is called a
  3771. 1:55:06Claude? So, for example, um, codeex
  3772. 1:55:09looks for skills in a codex folder, I
  3773. 1:55:12believe, or maybe it's a agents folder.
  3774. 1:55:14So, it's just a little bit about
  3775. 1:55:15learning what's the terminology for this
  3776. 1:55:16harness. But because the fact that all
  3777. 1:55:18of them are just markdown files and all
  3778. 1:55:20pi python scripts and files and folders,
  3779. 1:55:22they all transfer over. So, that was
  3780. 1:55:24your first skill. Now, what you'd want
  3781. 1:55:25to do is you'd probably want to think
  3782. 1:55:26about, let me think about my week. Let
  3783. 1:55:29me think about things that I do that
  3784. 1:55:30happen based on an event trigger. So,
  3785. 1:55:32maybe every time a new lead processes a
  3786. 1:55:34form, what do I do? That's a great
  3787. 1:55:36opportunity for a skill or maybe even an
  3788. 1:55:38automation. And then maybe everything
  3789. 1:55:40like every Monday if I do something or
  3790. 1:55:42every Friday if I do something, what is
  3791. 1:55:43that process? And let me turn that into
  3792. 1:55:45a skill. So you're just going to start
  3793. 1:55:47stacking up your library of skills. All
  3794. 1:55:49right. So moving on to number 15 here.
  3795. 1:55:51We're going to talk about context
  3796. 1:55:52windows, which is so so so important. So
  3797. 1:55:56let me find my little graphic here for
  3798. 1:55:58context windows. This is the one we're
  3799. 1:56:00going to start with. So what is a
  3800. 1:56:01context window? Remember how if I open
  3801. 1:56:04up Cloud Code and I click on this little
  3802. 1:56:06button in the bottom right, we see right
  3803. 1:56:08here context window and it says 110,000
  3804. 1:56:11out of a million, which is about 11% of
  3805. 1:56:14our context window. I can open this up
  3806. 1:56:16and see what lives in the context
  3807. 1:56:17window. So messages are taking up 72,000
  3808. 1:56:20tokens. System tools are taking up
  3809. 1:56:2218,000 tokens. Skills take up this many.
  3810. 1:56:24System prompts take up this many.
  3811. 1:56:25Whatever. If I go ahead and I do a
  3812. 1:56:28slashcle, that would wipe everything
  3813. 1:56:30clean. That's how we get a fresh
  3814. 1:56:32session. Right now, the idea is that we
  3815. 1:56:36have a million tokens to play with until
  3816. 1:56:38the model has to automatically like
  3817. 1:56:39reset because it can't take all that
  3818. 1:56:41context. It's too much, you know,
  3819. 1:56:43information. But the thing is, the
  3820. 1:56:47models reach something called a dumb
  3821. 1:56:49zone. So basically, answer quality
  3822. 1:56:51drifts as the context window fills. So
  3823. 1:56:55at the beginning, you're super super
  3824. 1:56:57sharp. And if you guys have ever talked
  3825. 1:56:59to Claude in chat, you don't see the
  3826. 1:57:01context window. You basically just keep
  3827. 1:57:03talking. So if you've been having a
  3828. 1:57:04conversation with chat with Claude chat
  3829. 1:57:06for a full day or for multiple days and
  3830. 1:57:09you ever think to yourself, "This is
  3831. 1:57:10getting really, really dumb." It's
  3832. 1:57:12because all of that context is being
  3833. 1:57:14loaded up. So what that does is it
  3834. 1:57:15causes Claude to get confused, forget
  3835. 1:57:17things. It just gets dumber and dumber.
  3836. 1:57:19And that is called the dumb zone. And
  3837. 1:57:21it's also called context rot. So a big
  3838. 1:57:23part of your job as a manager is to
  3839. 1:57:26manage the context rot. Like you know
  3840. 1:57:27how truck drivers are only allowed to
  3841. 1:57:29drive a certain amount of time before
  3842. 1:57:30they have to like pull over and rest?
  3843. 1:57:33That's because the longer they're awake,
  3844. 1:57:35the worse their cognitive function
  3845. 1:57:36becomes, right? Like they their reaction
  3846. 1:57:38time gets slower, their judgment gets
  3847. 1:57:39worse. Same thing with models. So your
  3848. 1:57:41job is to basically when you get to the
  3849. 1:57:43point where the model is starting to hit
  3850. 1:57:46that context rot territory, what you
  3851. 1:57:48need to do is you need to be able to
  3852. 1:57:49wipe the context clean without getting
  3853. 1:57:52rid of the knowledge and like losing
  3854. 1:57:53progress because that's obviously worst
  3855. 1:57:55case scenario. So right now at the time
  3856. 1:57:56of filming this video, the models
  3857. 1:57:59basically have a context window if we're
  3858. 1:58:00using cloud code of 1 million. So 1
  3859. 1:58:03million is the max, right? On this end
  3860. 1:58:05we have 1 million and on this end we
  3861. 1:58:06have zero. Now what I like to do is I've
  3862. 1:58:09typically found that when I get to 250K
  3863. 1:58:13I like to do a reset. So this isn't
  3864. 1:58:16drawn to scale, but let's pretend that
  3865. 1:58:18this green for me is 250,000 about 25%
  3866. 1:58:21of the full window. And that's when I
  3867. 1:58:22will reset my context. Now, how do I do
  3868. 1:58:25that? I built my own custom skill, which
  3869. 1:58:27I'll give you guys for free. It's very
  3870. 1:58:28simple, called session handoff. So, I'm
  3871. 1:58:30going to do session handoff. Go ahead
  3872. 1:58:32and execute that skill. Now, what that
  3873. 1:58:35does is it's going to look at everything
  3874. 1:58:36that we've done and it's going to look
  3875. 1:58:38at anything that might be open like open
  3876. 1:58:40decisions, any files that we were
  3877. 1:58:42editing. Basically, a quick summary of
  3878. 1:58:44everything that we've done, right? So,
  3879. 1:58:45you can see we have where it started. We
  3880. 1:58:48have decisions locked and what shipped.
  3881. 1:58:50We have key files for the next session
  3882. 1:58:51running state verification deferred and
  3883. 1:58:53open questions and pick up here. So then
  3884. 1:58:55what I do is I copy this message.
  3885. 1:58:57Remember right now we're at 112,000.
  3886. 1:59:00And then I do my slash clear. Now our
  3887. 1:59:03context window is at zero. Then what I
  3888. 1:59:06do is I paste in that session handoff
  3889. 1:59:08message. I hit enter. And then the
  3890. 1:59:10context window is going to fill up a
  3891. 1:59:11little bit again, but it's going to
  3892. 1:59:15actually pick up right where we left
  3893. 1:59:16off. So the whole idea is like let's say
  3894. 1:59:18you know every single you've got shifts
  3895. 1:59:21you've got workers that come in and they
  3896. 1:59:22work on code or they work on projects
  3897. 1:59:24for five hours at a time when the person
  3898. 1:59:27is basically closing out their shift
  3899. 1:59:29they're going to hand over a document to
  3900. 1:59:31the next engineer and say hey here's
  3901. 1:59:32what I did here's you know some bugs
  3902. 1:59:34here's some things to keep in mind here
  3903. 1:59:35are the files I was working on and then
  3904. 1:59:37that that new engineer can open up their
  3905. 1:59:39shift right on the same page so that's
  3906. 1:59:42basically what the session handoff skill
  3907. 1:59:43does you can see I'm completely picked
  3908. 1:59:44up it knows everything because it
  3909. 1:59:46wouldn't have if I just did a clear. Now
  3910. 1:59:48look at this. If I open up my context
  3911. 1:59:50window now, this is at 55,000 tokens.
  3912. 1:59:53Did this all take 55,000 tokens? No,
  3913. 1:59:56because system tools by default will
  3914. 1:59:59take up some. MCP tools will take up
  3915. 2:00:01some, memory files will take up some,
  3916. 2:00:03skills will take up some, system prompts
  3917. 2:00:04will take up some, and then the rest
  3918. 2:00:06will basically be your messages and
  3919. 2:00:07other things that you do. But on a blank
  3920. 2:00:09fresh session, your context window might
  3921. 2:00:11already be like 30k or 40k because of
  3922. 2:00:14just what's in your project. And that's
  3923. 2:00:16a big reason why, remember earlier when
  3924. 2:00:18I was talking about this whole idea with
  3925. 2:00:19with uh skills about progressive
  3926. 2:00:21disclosure because every skill this is
  3927. 2:00:24basically autoloaded in and that's what
  3928. 2:00:26your agent can look at. But imagine if
  3929. 2:00:29every single skill the full markdown
  3930. 2:00:31file was loaded in. You know sometimes
  3931. 2:00:32the full skill is you know hundreds and
  3932. 2:00:34hundreds of lines. So because of the
  3933. 2:00:36whole progressive disclosure that is why
  3934. 2:00:38we're able to save a lot of context and
  3935. 2:00:40only invoke a skill if and when it is
  3936. 2:00:42needed. So it's all starting to come
  3937. 2:00:44full circle here. Isn't that pretty
  3938. 2:00:46magical? Anyways, that is the context
  3939. 2:00:48window. My best practice is basically if
  3940. 2:00:51we get past 250,000 300,000, I'm going
  3941. 2:00:53to do a session handoff and then just
  3942. 2:00:54paste it into a new chat and keep on
  3943. 2:00:56working. Cloud code basically has
  3944. 2:00:58something called autocompact or a
  3945. 2:01:00/compact feature which is a summarize
  3946. 2:01:02and keep going. But the autocompact
  3947. 2:01:04kicks in way too late. It kicks in like
  3948. 2:01:06way more around like this area where
  3949. 2:01:08you've already probably gotten stuff
  3950. 2:01:10worse. And um it also takes a long time.
  3951. 2:01:13So, the session handoff skill will be in
  3952. 2:01:14the free school community that you guys
  3953. 2:01:15can go and grab completely for free. The
  3954. 2:01:17link for that is down in the
  3955. 2:01:18description. You're just going to go to
  3956. 2:01:19the classroom. You'll go to all YouTube
  3957. 2:01:21resources and then you can grab every
  3958. 2:01:23single resource that I've ever given
  3959. 2:01:24away for free. GitHub repos, skills,
  3960. 2:01:26templates, anything. It's all found in
  3961. 2:01:28here in my free school community. As you
  3962. 2:01:30can see, this is also where we have a
  3963. 2:01:317-day challenge as well as a build your
  3964. 2:01:33own AI operating system course, which is
  3965. 2:01:35what I want you guys to all take after
  3966. 2:01:37you finish this course because it's
  3967. 2:01:38really going to help you level up. But
  3968. 2:01:40this is what I want you guys to do next.
  3969. 2:01:41So go ahead and request to join the free
  3970. 2:01:42school community. We've got almost half
  3971. 2:01:44a million members in here. It is a great
  3972. 2:01:46place to be. You can ask questions,
  3973. 2:01:48collaborate with people, stuff like
  3974. 2:01:49that. So the context window theory is
  3975. 2:01:51really important to understand because
  3976. 2:01:52there's a lot of things that we're going
  3977. 2:01:53to learn later in this course that help
  3978. 2:01:54you protect that context window and help
  3979. 2:01:56you keep this as lean as possible
  3980. 2:01:58because also all of this contributes to
  3981. 2:02:00your 5-hour limits and your weekly
  3982. 2:02:02limits. So managing context and managing
  3983. 2:02:05tokens is a really important thing to
  3984. 2:02:07get good at. But right now, I just
  3985. 2:02:08needed you to understand, you know,
  3986. 2:02:10clearing and context rot and where you
  3987. 2:02:12can, you know, get visibility on this
  3988. 2:02:14stuff. And now we're able to take that
  3989. 2:02:16knowledge into the rest of this course.
  3990. 2:02:18All right. So, let's talk about memory.
  3991. 2:02:20What else can you do to make your agent
  3992. 2:02:22actually remember things about you in a
  3993. 2:02:25way where you know you're not repeating
  3994. 2:02:27things? So, let me go back into cloud.
  3995. 2:02:29I'm going to go to my Herk 2 project
  3996. 2:02:30because this is just where I have tons
  3997. 2:02:32and tons of stuff, right? I am currently
  3998. 2:02:34making a course right now which actually
  3999. 2:02:35you're aware of my knowledge work cloud
  4000. 2:02:37code master class and I'm trying to
  4001. 2:02:39explain the concept of memory to the
  4002. 2:02:40audience. So what I want you to do right
  4003. 2:02:42now is tell me where do you look in my
  4004. 2:02:45project or globally what files where do
  4005. 2:02:48you look when you need to find memories
  4006. 2:02:50about me and things like my preferences
  4007. 2:02:52and just having a bit of an automemory
  4008. 2:02:55sort of feature so that we're
  4009. 2:02:57continuously growing our relationship
  4010. 2:02:58and you get smarter over time. Where do
  4011. 2:03:00you actually look? Because I think of
  4012. 2:03:01memory as a couple different things.
  4013. 2:03:03Memory in my mind is first of all like
  4014. 2:03:05the actual chat. So the fact that it
  4015. 2:03:07remembers what we're talking about in
  4016. 2:03:08one session. Then we also have the
  4017. 2:03:10ability for it to remember like
  4018. 2:03:11preferences, to remember decisions
  4019. 2:03:13you've made, to remember meetings you've
  4020. 2:03:15had, that sort of idea. So kind of like
  4021. 2:03:17building cloud code as your second
  4022. 2:03:19brain. So you guys remember earlier when
  4023. 2:03:20I showed you this Obsidian sort of
  4024. 2:03:22second brain of mine. All of these are
  4025. 2:03:24not only knowledge, but I would also
  4026. 2:03:25consider these memories because it has
  4027. 2:03:27my YouTube transcripts, it has my
  4028. 2:03:28meeting transcripts, it has decisions
  4029. 2:03:30I've made, it has my chat threads, it
  4030. 2:03:32has things that I found important enough
  4031. 2:03:34to want to store so that Claude could
  4032. 2:03:36also pull them. Okay, so let's take a
  4033. 2:03:37look at what it said. It said the
  4034. 2:03:40automemory folder, and this is something
  4035. 2:03:42really cool. Cloud has auto memory which
  4036. 2:03:44basically means after a certain amount
  4037. 2:03:46of sessions or a certain amount of time
  4038. 2:03:48cloud will look at what you've done and
  4039. 2:03:49it will write memory to the auto global
  4040. 2:03:53scope. So here is in the users in the
  4041. 2:03:55nates in the docloud in the projects we
  4042. 2:03:57have memory. It's a folder of 72
  4043. 2:03:59individual markdown files one fact per
  4044. 2:04:02file. Each file has a name like feedback
  4045. 2:04:04noel hooks.mmd or reference corporate
  4046. 2:04:06structure.mmd. A file holds one thing, a
  4047. 2:04:08preference that you've corrected me on,
  4048. 2:04:10a project state, a reference fact about
  4049. 2:04:12your setup. The key file in there is
  4050. 2:04:14called memory.mmd. So remember we have
  4051. 2:04:16our claw.mmd. We also have a memory.mmd
  4052. 2:04:18and that is the index. Those are tagged
  4053. 2:04:20with front matter. So user, feedback,
  4054. 2:04:22project and reference. Then it also
  4055. 2:04:24considers the claw.mmd files as memory.
  4056. 2:04:27So once again, we've got the global one
  4057. 2:04:28and we've got the project one and we've
  4058. 2:04:30got the private local one. I don't
  4059. 2:04:31really touch these too much, but that is
  4060. 2:04:33a third one you can you can pull. I'm
  4061. 2:04:34not going to talk about this right now,
  4062. 2:04:35but that's more so like when you're
  4063. 2:04:37collaborating with a team, if you want
  4064. 2:04:38to keep one cloudmd that's just for you
  4065. 2:04:40and then one that's sort of like this is
  4066. 2:04:42the general project system prompt. So,
  4067. 2:04:44you know, those are the two differences.
  4068. 2:04:45And then the herkbrain wiki, which is
  4069. 2:04:47basically this thing that I just showed
  4070. 2:04:49you guys, this is the wiki of
  4071. 2:04:50everything. None of this is autoloaded.
  4072. 2:04:53What happens is if it realizes, okay, I
  4073. 2:04:55don't understand based on my memory,
  4074. 2:04:56based on the cloudmd, or based on
  4075. 2:04:58skills, I will look here. I will look
  4076. 2:05:00here for things like team, finances,
  4077. 2:05:02metrics, strategies. That is how this
  4078. 2:05:04one works. But once again, the important
  4079. 2:05:05mental model cloudmd is the rules.
  4080. 2:05:08Memory is, you know, learned facts. And
  4081. 2:05:10the cloudmd, if you guys remember,
  4082. 2:05:12actually, you know what? I'll just open
  4083. 2:05:13it up again. What was really important
  4084. 2:05:15to me is that I treat this cloudmd as a
  4085. 2:05:17router. Meaning cloud reads through this
  4086. 2:05:20and it understands if I need this, I go
  4087. 2:05:22here. If I need this, I go here. If I
  4088. 2:05:23need this, I go here. If I need this, I
  4089. 2:05:25go here. And that is how it's able to
  4090. 2:05:27have this feeling of memory. Now, how do
  4091. 2:05:30you actually turn on automemory? Is it
  4092. 2:05:32enabled by default for everyone? How
  4093. 2:05:34does that work? Because what you'll
  4094. 2:05:35notice here is in cloud on the desktop
  4095. 2:05:37app, if I go to do a slashmemory,
  4096. 2:05:39we don't have slashmemory. We have
  4097. 2:05:41consolidate memory, but we don't have a
  4098. 2:05:44just a regular command called
  4099. 2:05:45slashmemory. But if I go into my cloud
  4100. 2:05:47code on the VS Code terminal, I'm just
  4101. 2:05:51switching back to a different model
  4102. 2:05:52here. We do have a slashmemory. If you
  4103. 2:05:53see this, I can go slashmemory. And then
  4104. 2:05:56right here, I can turn automemory on or
  4105. 2:05:57off. So earlier in this video when I
  4106. 2:06:00talked about where should you use cloud
  4107. 2:06:01code for the majority of this video
  4108. 2:06:03we're using the desktop app just because
  4109. 2:06:04it's easy to understand and it just has
  4110. 2:06:05a nice UI. But the one limitation about
  4111. 2:06:08using it in something like the desktop
  4112. 2:06:10app is there are a few a few very niche
  4113. 2:06:13slash commands that you don't get for
  4114. 2:06:15the majority of your driving. 99% of the
  4115. 2:06:17time you don't need these commands but
  4116. 2:06:19sometimes you know there's just little
  4117. 2:06:21tiny things where the terminal version
  4118. 2:06:25has more functionality than the others.
  4119. 2:06:26So, it's good to get familiar with the
  4120. 2:06:28terminal every once in a while, but like
  4121. 2:06:30I said, for the most part, you are okay.
  4122. 2:06:32And you can also see right here that it
  4123. 2:06:33is on by default because once again,
  4124. 2:06:36Claude itself has skills to read its own
  4125. 2:06:39documentation. So, if you ever have a
  4126. 2:06:40question about how Claude works under
  4127. 2:06:42the hood or trying to figure out
  4128. 2:06:43something about your setup, just ask
  4129. 2:06:45Claude to to figure it out, to help you
  4130. 2:06:47research it. Another big mindset shift
  4131. 2:06:48here is treating this thing like a
  4132. 2:06:50mentor, not just like a an engineer, not
  4133. 2:06:53just like your your best friend. It is
  4134. 2:06:54the smartest person you know and it is
  4135. 2:06:56your mentor. So you can ask it
  4136. 2:06:57questions. You can ask it why'd you do
  4137. 2:06:59that? What would happen if you didn't do
  4138. 2:07:00that? What was that tool call you did?
  4139. 2:07:02Why did you need to do that tool call?
  4140. 2:07:03All these sorts of questions. Being
  4141. 2:07:04genuinely curious is what helps you get
  4142. 2:07:06way more out of this thing. So anyways,
  4143. 2:07:08automemory should be turned on by
  4144. 2:07:10default for you guys. But if you want to
  4145. 2:07:11drill in, you can find the actual memory
  4146. 2:07:13files because they're just markdown
  4147. 2:07:14files and you can go look at them. So
  4148. 2:07:16remember this is the path that it told
  4149. 2:07:17me to go to to see this. So, I'm just
  4150. 2:07:19going to copy this, open up an explorer,
  4151. 2:07:22paste that in, and in here we have the
  4152. 2:07:2472 markdown files that it was referring
  4153. 2:07:25to. So, like feedback LinkedIn balance
  4154. 2:07:28line, um, feedback team names from wiki.
  4155. 2:07:30So, I just opened one up real quick.
  4156. 2:07:32This is a feedback internal doc visual
  4157. 2:07:34style. It's got description, it's got
  4158. 2:07:35metadata, and then it stores a memory,
  4159. 2:07:37which is basically this is what Nate
  4160. 2:07:39told us, why, how to apply, blah blah
  4161. 2:07:41blah. So, this is super super cool. All
  4162. 2:07:44right, so let's talk about AI slop. AI
  4163. 2:07:46slop means different things to different
  4164. 2:07:48people. Some people think AI slop means
  4165. 2:07:50AI generated images that look bad or
  4166. 2:07:52those Tik Toks you might see where
  4167. 2:07:54there's like two AI generated fruits and
  4168. 2:07:56there's like a love story between them.
  4169. 2:07:57Whatever you consider AI slop, let's
  4170. 2:07:59talk about it real quick because how I
  4171. 2:08:01define it is basically when I can
  4172. 2:08:04clearly tell something was generated by
  4173. 2:08:05AI. Now, I don't necessarily think
  4174. 2:08:08that's a bad thing because people should
  4175. 2:08:11be using AI, but I do think you get to a
  4176. 2:08:13point where you start to lose trust in
  4177. 2:08:15people. And the most important thing is
  4178. 2:08:16that you are judging all of your work
  4179. 2:08:18and you want people to look at it and be
  4180. 2:08:20like, you know, I don't care if he used
  4181. 2:08:22AI or not, but I trust that he checked
  4182. 2:08:24this and I trust that because he signed
  4183. 2:08:26his name to this, he is taking
  4184. 2:08:27accountability and responsibility for
  4185. 2:08:29it. So, I actually wrote up a little
  4186. 2:08:31post which I'm going to read for you
  4187. 2:08:32guys word for word. The real problem
  4188. 2:08:33with AI slop. So, I'm sure you guys have
  4189. 2:08:35heard the term AI slop and everyone sort
  4190. 2:08:37of defines it differently. Maybe you
  4191. 2:08:38think of those Tik Toks, blah blah blah.
  4192. 2:08:40I use that example again. But I want to
  4193. 2:08:41talk about it in the context of
  4194. 2:08:43communication, internal, external,
  4195. 2:08:45content you put out in the world. I
  4196. 2:08:46write my LinkedIn post with AI. My agent
  4197. 2:08:48knows my business, how I write, how I
  4198. 2:08:50speak. That's just how I work now. And
  4199. 2:08:51there's nothing wrong with that because
  4200. 2:08:52I think that everyone should be using AI
  4201. 2:08:54to write if it makes them more
  4202. 2:08:55efficient. But this isn't a binary yes
  4203. 2:08:57or no. It's a spectrum. Sometimes AI can
  4204. 2:08:59draft and send automatically. Most of
  4205. 2:09:01the time I want it to just draft and
  4206. 2:09:03then I review. If someone sends me an
  4207. 2:09:05email with M dashes everywhere, I don't
  4208. 2:09:06actually care at all that they used AI.
  4209. 2:09:08But the fact that I can clearly tell
  4210. 2:09:10it's AI generated isn't the problem.
  4211. 2:09:11What I do start asking is, did they even
  4212. 2:09:13proofread this? Is this even accurate?
  4213. 2:09:16And subconsciously, I might start losing
  4214. 2:09:18trust, not in the email, but in the
  4215. 2:09:20person who sent it. Our job here has
  4216. 2:09:21changed from writer to reviewer. And
  4217. 2:09:23this quote really stuck with me. You can
  4218. 2:09:24outsource your thinking, but you can
  4219. 2:09:26never outsource your understanding. When
  4220. 2:09:28your name is attached to the content,
  4221. 2:09:30you take credit if it lands, as you
  4222. 2:09:31should, but that also means you need to
  4223. 2:09:33take accountability if it's incorrect.
  4224. 2:09:34Taste and reviewing is becoming more
  4225. 2:09:36important than ever. And maybe that
  4226. 2:09:38should be R. So, you can tell I didn't
  4227. 2:09:41write this with AI. AI is super
  4228. 2:09:42intelligent and powerful, but I don't
  4229. 2:09:44want to see a world where we trust AI so
  4230. 2:09:45much that we stop reviewing things and
  4231. 2:09:47then the human on the other end of the
  4232. 2:09:49content starts losing trust in us.
  4233. 2:09:50That's why even though I write with AI
  4234. 2:09:52and people know that, I still try my
  4235. 2:09:54best to disguise it and make it sound as
  4236. 2:09:56innate as possible. And like that's
  4237. 2:09:58exactly why I wanted to show you guys
  4238. 2:09:59this AI phrase kill list, which I kind
  4239. 2:10:01of showed earlier. But you should be
  4240. 2:10:03building up something like this and you
  4241. 2:10:05should be building up the way that you
  4242. 2:10:07speak. So I've obviously got skills for
  4243. 2:10:08helping me write LinkedIn posts or
  4244. 2:10:10YouTube scripts or um emails, internal
  4245. 2:10:13communication. And I want my
  4246. 2:10:14communication to sound like me. And I
  4247. 2:10:16want people to trust that what I'm doing
  4248. 2:10:18is me. Because it's not just about
  4249. 2:10:19communication. It's also about if you
  4250. 2:10:21send over a report or if you send over
  4251. 2:10:23some analytics or if you send over, you
  4252. 2:10:25know, you're writing up a case study or
  4253. 2:10:26the copy that's on your website. You
  4254. 2:10:28don't want any of that to clearly be AI
  4255. 2:10:30generated because once again, trust is
  4256. 2:10:32like the biggest currency and you don't
  4257. 2:10:34want to lose that currency. And not only
  4258. 2:10:36for you, but it's important to
  4259. 2:10:37communicate this down to your team when
  4260. 2:10:39you guys are all as an organization
  4261. 2:10:40learning how to use AI better. So
  4262. 2:10:42anyways, just a really quick section. I
  4263. 2:10:44hope that that hit and I hope that that
  4264. 2:10:45little change of pace real quick was
  4265. 2:10:46helpful to you guys and just kind of
  4266. 2:10:48made you think about the way that you
  4267. 2:10:50really truly want to be using your AI
  4268. 2:10:51agents and how the teams should be using
  4269. 2:10:54them together. And looking back at these
  4270. 2:10:55mindset shifts again, you'll notice that
  4271. 2:10:56number three, you can outsource your
  4272. 2:10:58thinking but you cannot outsource your
  4273. 2:10:59understanding is one that I referenced
  4274. 2:11:01in that post as well because I think
  4275. 2:11:03that one is just a really really good
  4276. 2:11:05one of how the future is going. You
  4277. 2:11:08know, like we're able to outsource the
  4278. 2:11:09ability for agents to go do the research
  4279. 2:11:12and to grab a bunch of sources and give
  4280. 2:11:14you some sort of consensus, but you
  4281. 2:11:16still have to read that. You still have
  4282. 2:11:17to understand it and you still have to
  4283. 2:11:18know how to apply it. Okay. Now, this
  4284. 2:11:20next section of the actual kind of
  4285. 2:11:22agenda up here is about picking what to
  4286. 2:11:24build because that's a huge pain point
  4287. 2:11:26that I hear from my audience when
  4288. 2:11:27they're, you know, hey, I'm just getting
  4289. 2:11:28started. I don't know what projects to
  4290. 2:11:29do. Like, where do I start? So, let's
  4291. 2:11:32look at just these mindset shifts real
  4292. 2:11:33quick on the method. the method about
  4293. 2:11:36how to decide five mindset shifts real
  4294. 2:11:38quick that I'm just going to read off
  4295. 2:11:39the constraint is the only place where
  4296. 2:11:41work compounds everywhere else you're
  4297. 2:11:43just busy automate a broken process and
  4298. 2:11:46you don't fix it you scale it becoming
  4299. 2:11:48AI native doesn't mean using AI for
  4300. 2:11:50everything it means being a problem
  4301. 2:11:52solver who sometimes uses AI you can't
  4302. 2:11:55automate what you can't map every build
  4303. 2:11:57needs a north star one number picked
  4304. 2:11:59before you build that tells you whether
  4305. 2:12:01the build was worth it and if these
  4306. 2:12:02mindset shifts are interesting to you
  4307. 2:12:03guys then you should definitely Check
  4308. 2:12:05out the book. It's called Becoming AI
  4309. 2:12:06Native. But anyways, what do these mean
  4310. 2:12:08to me? The first one, the constraint is
  4311. 2:12:10the only place where work compounds. We
  4312. 2:12:12see too often people, whether you're
  4313. 2:12:14working with a client or whether you're
  4314. 2:12:15trying to automate your own business or
  4315. 2:12:17whether you're trying to help yourself
  4316. 2:12:18out, automating things that aren't
  4317. 2:12:20actually being used very often. They're
  4318. 2:12:22automating things that sound sexy,
  4319. 2:12:23right? Like, oh, we need this sales
  4320. 2:12:25agent to do all this. And they start to
  4321. 2:12:26try to automate that or we need, you
  4322. 2:12:28know, this fancy thing that I saw a demo
  4323. 2:12:29of on LinkedIn. But really what you need
  4324. 2:12:32to think about and the way that I always
  4325. 2:12:33like to think whether I'm thinking about
  4326. 2:12:34my processes and my team's processes or
  4327. 2:12:36whether I'm consulting with a business
  4328. 2:12:38owner. The way I think is let's take the
  4329. 2:12:41flow of your business right like let's
  4330. 2:12:42imagine it as a pipe which is you know I
  4331. 2:12:44think a great analogy. So let me just
  4332. 2:12:46draw a pipe real quick. This is your
  4333. 2:12:48pipe and ideally what happens is you
  4334. 2:12:50have water coming in the front and the
  4335. 2:12:52water flows through and this is your
  4336. 2:12:54business. When water comes out the other
  4337. 2:12:55side, this is you basically this is your
  4338. 2:12:57profit because things might happen in
  4339. 2:12:59the middle and you know you have to pay
  4340. 2:13:00people, you have to do whatever, you
  4341. 2:13:01lose clients, they turn out this over
  4342. 2:13:03here, all of this is profit and you want
  4343. 2:13:05to maximize on both ends really how much
  4344. 2:13:07water comes in and what percentage of
  4345. 2:13:09that comes out. Now what we want to be
  4346. 2:13:11thinking about are in this process where
  4347. 2:13:13are the clogs, where are the constraints
  4348. 2:13:16that sit here that basically make less
  4349. 2:13:18water go through? And there's not just
  4350. 2:13:20going to be one. You know, you're going
  4351. 2:13:21to have multiple constraints and they're
  4352. 2:13:22going to be different sizes and
  4353. 2:13:23different priorities. But the point I'm
  4354. 2:13:25trying to make here is I like to work
  4355. 2:13:27from front back. I like to work with the
  4356. 2:13:30first constraint. So I say tomorrow if
  4357. 2:13:33you got 5x the amount of customers going
  4358. 2:13:36through your pipe, so 5x the amount of
  4359. 2:13:37water, what would break first? And that
  4360. 2:13:39forces the business owner to walk
  4361. 2:13:41through in their mind what do they do on
  4362. 2:13:42the day-to-day? What does the team do?
  4363. 2:13:44Where is water being stopped? And how
  4364. 2:13:46can we, you know, basically that's the
  4365. 2:13:48problem. That's the only way you grow a
  4366. 2:13:50business is if you are attacking these
  4367. 2:13:52constraints. So by attacking the
  4368. 2:13:53constraint that is going to not only
  4369. 2:13:55make the automation more powerful and
  4370. 2:13:56and more successful for you, but it
  4371. 2:13:58gives you a clear road map of where to
  4372. 2:14:00start. And then guess what? Once this
  4373. 2:14:02bottleneck has been unclogged, once the
  4374. 2:14:04clog has been unclogged, now all the
  4375. 2:14:05water is moving to the next constraint.
  4376. 2:14:07And even though some more's, you know,
  4377. 2:14:08sliding through right here, you're still
  4378. 2:14:10having a big clog. And you want to get
  4379. 2:14:12rid of that. And then after you get rid
  4380. 2:14:14of these two, for example, guess what
  4381. 2:14:16happens? Because there's more demand up
  4382. 2:14:17front. another clog pops up. So this is
  4383. 2:14:20a never- ending cycle, but that gives
  4384. 2:14:21you at least a framework to work from.
  4385. 2:14:23So that's why the constraint is the only
  4386. 2:14:25place where work compounds because if
  4387. 2:14:27you have, let's say, this main big clog
  4388. 2:14:29up front and you've got a bunch of
  4389. 2:14:31little ones in the back, oops,
  4390. 2:14:34then does it make sense to start
  4391. 2:14:36eliminating these? I don't know. I mean,
  4392. 2:14:38you could argue that yes, so that when
  4393. 2:14:39you open this one, water flows through.
  4394. 2:14:42But really, this is just like you want
  4395. 2:14:43to go for the constraints first. It's a
  4396. 2:14:45theory of constraints. And then I just
  4397. 2:14:47wanted to loop this back to number nine,
  4398. 2:14:49which is every build needs a north star.
  4399. 2:14:52So when you're deciding on a problem
  4400. 2:14:53that you want to attack, before you
  4401. 2:14:55build it, you want to think about what
  4402. 2:14:57is the metric that you're looking at and
  4403. 2:14:59which way do you want to move it. So
  4404. 2:15:01let's say right here we realize that the
  4405. 2:15:03clog is actually like up up front,
  4406. 2:15:05right? Like there's just not much
  4407. 2:15:07business coming in the front of the
  4408. 2:15:08funnel at all. So we basically just have
  4409. 2:15:10no water in the system and that's the
  4410. 2:15:11problem. Okay. Well, let's say the
  4411. 2:15:13metric here that we want to fix is um we
  4412. 2:15:16are getting about five leads a week. So,
  4413. 2:15:20we would think about this. Five leads a
  4414. 2:15:23week is our metric and our north star is
  4415. 2:15:26we want to design a system so that we
  4416. 2:15:28can now be bringing in 15 leads a week.
  4417. 2:15:30And that's how we're able to from the
  4418. 2:15:32beginning everyone is aligned on this
  4419. 2:15:34metric. If we're able to hit this metric
  4420. 2:15:36in the next couple weeks or months, does
  4421. 2:15:39everyone consider this product a
  4422. 2:15:40success? If the answer is yes, then it's
  4423. 2:15:42a great thing to work on. But the
  4424. 2:15:44problem that we've seen from when I've
  4425. 2:15:45done consulting, when I've built stuff,
  4426. 2:15:47is that if we don't align on the metric,
  4427. 2:15:48a lot of people are confused about,
  4428. 2:15:50okay, well, how do we know if we got ROI
  4429. 2:15:52on this? You know, like what where's the
  4430. 2:15:53benefit? I can't actually see it.
  4431. 2:15:55Because productivity isn't as onetoone
  4432. 2:15:58as for something like running ads, you
  4433. 2:15:59know, like you pay an agency to run ads,
  4434. 2:16:01they are going to spend $200,000 a month
  4435. 2:16:04and you can directly see that those
  4436. 2:16:05$200,000 brought in an extra million to
  4437. 2:16:08the business. But when you're removing
  4438. 2:16:09constraints and when you're doing things
  4439. 2:16:11on the back end, you don't always see it
  4440. 2:16:13super clearly about how it affects the
  4441. 2:16:14bottom line. So every project that you
  4442. 2:16:16work on before you start building it,
  4443. 2:16:18before you agree to it, pick the north
  4444. 2:16:20star and make sure everyone agrees,
  4445. 2:16:22okay, this would affect the bottom line
  4446. 2:16:24in some way and it would be a success if
  4447. 2:16:25we could move the metric from five to 15
  4448. 2:16:27leads coming in a week. So at a large
  4449. 2:16:29scale to really impact the business,
  4450. 2:16:31that is typically what I think about. I
  4451. 2:16:32think about constraints and I just stick
  4452. 2:16:34to that. Now, when you're just getting
  4453. 2:16:35started, so like you're sitting there
  4454. 2:16:36today and you want to this week start to
  4455. 2:16:38automate some stuff. Maybe you don't yet
  4456. 2:16:40have first of all like the confidence in
  4457. 2:16:42that or like the luxury to be able to
  4458. 2:16:44make those decisions or the budget for
  4459. 2:16:46it. Right? So, what I want you to do
  4460. 2:16:48then is start to write things down.
  4461. 2:16:51Literally get out a piece of paper and I
  4462. 2:16:52want you to write down kind of the
  4463. 2:16:54following information. I want you to
  4464. 2:16:55think about from week to week and like
  4465. 2:16:57doing an audit of yourself. So, like
  4466. 2:16:59what processes do you have or you know
  4467. 2:17:02what tools am I using? What processes
  4468. 2:17:05did I repeat? What are my triggers? And
  4469. 2:17:09by triggers, I mean what things happen
  4470. 2:17:12throughout the week that basically
  4471. 2:17:14trigger you to do something else. A lead
  4472. 2:17:16comes in, what do you have to do about
  4473. 2:17:17it? A customer support ticket gets
  4474. 2:17:19submitted, what do you have to do about
  4475. 2:17:20it? And I think this one is powerful
  4476. 2:17:22because this will help you identify like
  4477. 2:17:24five to 10 processes. And then once you
  4478. 2:17:26have those five to 10 processes that are
  4479. 2:17:27pretty event- based or trigger based,
  4480. 2:17:29you then think, okay, in my typical week
  4481. 2:17:32or month, which one of these happens the
  4482. 2:17:34most often? And then you just want to
  4483. 2:17:35probably go for that one. Unless that
  4484. 2:17:37thing is like super super high risk to
  4485. 2:17:38the business where you have to be
  4486. 2:17:40involved right now and you can't really
  4487. 2:17:42change the way you're doing it, then
  4488. 2:17:43maybe you want to bump down. But then
  4489. 2:17:45you just basically have that whole list
  4490. 2:17:46and you drill down on those. And then
  4491. 2:17:48this other mindset shift that I called
  4492. 2:17:50out here was that you can't automate
  4493. 2:17:51what you can't map. So remember how we
  4494. 2:17:53talked about the way that you actually
  4495. 2:17:54build these skills or you build these
  4496. 2:17:56automations is you have to basically
  4497. 2:17:58define how they work and whether that
  4498. 2:18:00means you do it first and then you
  4499. 2:18:02actually execute or whether that means
  4500. 2:18:03you execute and then you build a skill
  4501. 2:18:05around it. If you don't clearly
  4502. 2:18:06understand the process already then how
  4503. 2:18:09in the world do you expect an intern to
  4504. 2:18:11to understand it or an AI agent to
  4505. 2:18:13understand it? You have to know the
  4506. 2:18:14process well enough or you have to be
  4507. 2:18:16able to talk to the stakeholders or the
  4508. 2:18:17subject matter experts that do in order
  4509. 2:18:19to automate it because the subject
  4510. 2:18:21matter expertise that goes into the
  4511. 2:18:22system is the most important thing. We
  4512. 2:18:24talked about this, right? No matter how
  4513. 2:18:26good the AI model is, you could have the
  4514. 2:18:28best AI model in the world and the best
  4515. 2:18:29harness in the world, but it's not going
  4516. 2:18:31to be able to do anything meaningful
  4517. 2:18:32with your business and your business
  4518. 2:18:34data unless you feed in that theme, that
  4519. 2:18:36subject matter expertise. You guys have
  4520. 2:18:38probably heard some of these phrases
  4521. 2:18:39like garbage in garbage out. That's
  4522. 2:18:42that's a really popular one. or like
  4523. 2:18:43context is king. And these are two
  4524. 2:18:45pillars that I believe will be true
  4525. 2:18:47forever. Even though with new tools
  4526. 2:18:49coming out, this these two things super
  4527. 2:18:52super important. And then there's one
  4528. 2:18:53more that I like to reference which is
  4529. 2:18:54Abraham Lincoln. If I had 6 hours to
  4530. 2:18:57chop down a tree, I would spend the
  4531. 2:18:58first four sharpening the axe. Meaning
  4532. 2:19:00there's so much importance in the
  4533. 2:19:02planning stage, mapping things out
  4534. 2:19:04clearly, writing down processes clearly
  4535. 2:19:06before you try to actually automate them
  4536. 2:19:08and you know build them or execute on
  4537. 2:19:10them. So the picking what to build is
  4538. 2:19:12just a very mindset oriented thing. And
  4539. 2:19:14the actual building itself is once again
  4540. 2:19:16very mindset. It's it's all about the
  4541. 2:19:17planning. It's all about the clear
  4542. 2:19:18communication and it's all about sitting
  4543. 2:19:20there watching the agent go steering it
  4544. 2:19:22to make sure it's going in the right
  4545. 2:19:24direction and then giving feedback and
  4546. 2:19:25iterating and iterating and iterating.
  4547. 2:19:27And we've talked about all of this stuff
  4548. 2:19:28where you guys could now pretty
  4549. 2:19:29confidently go do that. We talked about
  4550. 2:19:31prompting. We've talked about
  4551. 2:19:32understanding how to connect your tools.
  4552. 2:19:34We talked about skills. And we've talked
  4553. 2:19:35about context windows. And there's going
  4554. 2:19:36to be more later on about managing this
  4555. 2:19:38right here, token management. But you
  4556. 2:19:40guys have basically all the skills that
  4557. 2:19:42you now need to start to pick processes
  4558. 2:19:44and go automate them. And all of the
  4559. 2:19:45stuff that we're about to dive into is
  4560. 2:19:47just getting a little bit more advanced
  4561. 2:19:48and taking it really to the next level.
  4562. 2:19:50So that is how you pick what to build.
  4563. 2:19:52All right. So we've mentioned sub agents
  4564. 2:19:54a few times. When we talked about the
  4565. 2:19:56skills, I talked a little bit about how
  4566. 2:19:57sometimes you can have skills call on
  4567. 2:19:59certain sub aents and you can also have
  4568. 2:20:01sub agents call on certain skills. And
  4569. 2:20:03sub aents are really important because
  4570. 2:20:05you know how we talk about the context
  4571. 2:20:06window. What happens is when we use a
  4572. 2:20:08sub agent we can delegate tokens to be
  4573. 2:20:10spent in a different context window in a
  4574. 2:20:13fresh sub agent. That way our main
  4575. 2:20:15orchestration agent right here is able
  4576. 2:20:17to just call on a bunch of them. So,
  4577. 2:20:19it's pretty cool because instead of
  4578. 2:20:20having one main session where we just
  4579. 2:20:22fill up the context window, we can have
  4580. 2:20:24our main session keep it clean because
  4581. 2:20:26it's delegating work to little smaller
  4582. 2:20:28sub aents that are each having their own
  4583. 2:20:31context windows and we're able to just
  4584. 2:20:32disperse it out a little bit more. The
  4585. 2:20:34other cool thing is let's say this main
  4586. 2:20:36agent is on Opus, so it's the most
  4587. 2:20:37expensive. This main agent can delegate
  4588. 2:20:40work to all of these little workers that
  4589. 2:20:41are all like maybe on sonnet or maybe
  4590. 2:20:43even on haiku. So you can delegate work
  4591. 2:20:45that's a little bit less like high
  4592. 2:20:48priority or high risk to cheaper models
  4593. 2:20:50and you can just get some really cool
  4594. 2:20:52results by doing stuff like that. So I'm
  4595. 2:20:54going to go ahead and shoot you guys
  4596. 2:20:55into a video that I made pretty much
  4597. 2:20:57breaking down everything there is to
  4598. 2:20:59know about Claude Code sub aents. Just a
  4599. 2:21:01quick warning before this next video
  4600. 2:21:03starts playing. Some of the clips that
  4601. 2:21:04I'm inserting into this course were
  4602. 2:21:06recorded a few months back. meaning they
  4603. 2:21:08might be shown in VS Code extension or
  4604. 2:21:11the terminal instead of the cloud
  4605. 2:21:12desktop app that we've been using so
  4606. 2:21:14far. I just wanted to give you guys a
  4607. 2:21:15warning. Functionally, exact same. So,
  4608. 2:21:18don't worry about it too much. It just
  4609. 2:21:19might look a little bit differently, but
  4610. 2:21:20all you have to do is listen to what I'm
  4611. 2:21:22saying and follow along with what I'm
  4612. 2:21:23actually doing and you will be just
  4613. 2:21:24fine. All of this stuff is still
  4614. 2:21:26relevant. Otherwise, I wouldn't be
  4615. 2:21:27putting it in this course. So, hopefully
  4616. 2:21:29that makes sense. See you guys in the
  4617. 2:21:31video. So, I don't know what's going on
  4618. 2:21:32up here, but I just told Cloud Code to
  4619. 2:21:34spin up five different sub aents, and
  4620. 2:21:35they all have different personalities.
  4621. 2:21:37One is going to be a complete beginner,
  4622. 2:21:38one will be a software engineer, one
  4623. 2:21:40will be a business owner, one will be a
  4624. 2:21:41publisher. And it comes back, and it
  4625. 2:21:43says, "Okay, I'm kicking off all five
  4626. 2:21:44now, each with a distinct persona and
  4627. 2:21:46lens. These will run in parallel." You
  4628. 2:21:48can see that this is now running four
  4629. 2:21:50agents. The fifth one's about to spin
  4630. 2:21:51up. And on the bottom, if I click into a
  4631. 2:21:53different session, so we've got the main
  4632. 2:21:55or we've got like the beginner, and I
  4633. 2:21:56enter this conversation, we can actually
  4634. 2:21:58see what's going on here. Meaning if I
  4635. 2:22:00scroll up I can see the actual prompt
  4636. 2:22:02that the main session kicked off to this
  4637. 2:22:05sub aent. So here we have Linda 58 years
  4638. 2:22:07old a retired elementary school teacher.
  4639. 2:22:09You are a complete beginner to AI and
  4640. 2:22:11then we see the actual task which is to
  4641. 2:22:13read all the chapters and give a bit of
  4642. 2:22:15a review. And so all of the other sub
  4643. 2:22:17aents probably have a very similar
  4644. 2:22:19prompt if I go to like the enterprise
  4645. 2:22:20exec. So same exact prompt except for
  4646. 2:22:22here you're role playinging as David 52
  4647. 2:22:25a COO at a 12,000 person Fortune 500
  4648. 2:22:27financial services company. So anyways,
  4649. 2:22:29the point being what we can do is have
  4650. 2:22:31our main session up here and the main
  4651. 2:22:32session can delegate to as many
  4652. 2:22:34different sub agents as we want and all
  4653. 2:22:35the sub agents can have different chat
  4654. 2:22:37models, different personas, different
  4655. 2:22:38skills, different subject matter
  4656. 2:22:40expertise. And if you watch my video
  4657. 2:22:41where I ranked all of my favorite Cloud
  4658. 2:22:43Code features, sub agents ranked number
  4659. 2:22:45six. So today, what I'm going to do is
  4660. 2:22:47I'm going to tell you guys exactly how
  4661. 2:22:49to use them, what they are, when you
  4662. 2:22:50need to use them, and how you can use
  4663. 2:22:51them better than 99% of people using
  4664. 2:22:53Cloud Code. So let's not waste any time
  4665. 2:22:55and get straight into today's video.
  4666. 2:22:56Okay, so what is a sub agent? You guys
  4667. 2:22:58just saw a demo. We have a main chat.
  4668. 2:23:00So, right here is where I said, "Hey,
  4669. 2:23:01can you spin up five different sub
  4670. 2:23:02aents?" And what it did is it right here
  4671. 2:23:04kicked off five different ones. And then
  4672. 2:23:05it comes back with an overall review.
  4673. 2:23:07Apparently, I need to do some work on
  4674. 2:23:08this book because I only got about an
  4675. 2:23:10eight. More info on my book will be
  4676. 2:23:12coming soon. But anyways, the main
  4677. 2:23:13session is basically the orchestrator.
  4678. 2:23:15It says, "Okay, cool. So, I am the one
  4679. 2:23:17who's actually talking to Nate, but what
  4680. 2:23:18I can do is I can spin up a bunch of sub
  4681. 2:23:20agents that can only talk to me, and I
  4682. 2:23:21can assign them work. Go read these
  4683. 2:23:23files. Go do this research. Go fix that
  4684. 2:23:26bug." and then you come back to me with
  4685. 2:23:27a report of what you did and I'll
  4686. 2:23:29communicate that back to Nate. So there
  4687. 2:23:30are a ton of different reasons why these
  4688. 2:23:32sub aents are useful and why they exist.
  4689. 2:23:33So let's just start with this first one
  4690. 2:23:34which is that it keeps your context
  4691. 2:23:36clean. So let's say I'm in cloud code,
  4692. 2:23:38right? And I'm just talking. Hello, how
  4693. 2:23:39are you doing? What's going on? Let's
  4694. 2:23:41build something, right? Like maybe we're
  4695. 2:23:42doing research, maybe we're building an
  4696. 2:23:43app, whatever it is. You start to fill
  4697. 2:23:45up your context window, which you guys
  4698. 2:23:47can see right here with my status line.
  4699. 2:23:48You can see right now we're about 48,000
  4700. 2:23:50tokens in 5% of the way up. And so as
  4701. 2:23:53this starts to fill up, it starts to get
  4702. 2:23:54polluted with information. But if you
  4703. 2:23:57kick something off to a sub agent, as
  4704. 2:23:58you guys saw earlier, it's a completely
  4705. 2:24:00fresh chat. So just to show you guys
  4706. 2:24:02another real quick visual demo, I'm in
  4707. 2:24:04the desktop app, which is a little bit,
  4708. 2:24:06you know, easier to see and it's
  4709. 2:24:07visually more pleasing than the terminal
  4710. 2:24:08sometimes, but let's say I said, "Hey
  4711. 2:24:11Cloud Code, go ahead and kick off a sub
  4712. 2:24:12agent to do some research for me about a
  4713. 2:24:15product called Fireflies.ai." And so
  4714. 2:24:18this is my main session. You know, I can
  4715. 2:24:20talk to this thing. It'll help me do
  4716. 2:24:21research on different tools. And then
  4717. 2:24:22what happens is it kicks off a
  4718. 2:24:24researcher agent to do the research. And
  4719. 2:24:26what's cool is right now you'll notice
  4720. 2:24:27I'm using Opus, right, which is
  4721. 2:24:29obviously the most expensive model, but
  4722. 2:24:30we can have a sub agent kick off and do
  4723. 2:24:32research with Haiku or Sonnet. So we're
  4724. 2:24:34getting this research for cheaper and
  4725. 2:24:36we're getting a fresh context. So if I
  4726. 2:24:37click on this agent here, you can see
  4727. 2:24:39this is basically the prompt that the
  4728. 2:24:40main agent sent over to this sub agent
  4729. 2:24:43which was, hey, research Fireflyy's dead
  4730. 2:24:44AI. Give us what it is, core features,
  4731. 2:24:47how it works, pricing, give us all this
  4732. 2:24:48stuff. And now this agent is the one
  4733. 2:24:50over here searching the web and creating
  4734. 2:24:52its opinions rather than our main
  4735. 2:24:54session. So this helps preserve your
  4736. 2:24:55main context in case you're ever doing a
  4737. 2:24:57ton of research or reading a ton of
  4738. 2:24:59stuff that you don't want to fill up
  4739. 2:25:00your main context window, right? So
  4740. 2:25:02that's one thing. There's also built-in
  4741. 2:25:04sub agents which is the one we just saw,
  4742. 2:25:05right? That was like basically a
  4743. 2:25:07built-in cloud code research agent that
  4744. 2:25:09will you've probably seen it get invoked
  4745. 2:25:11automatically without you even asking it
  4746. 2:25:12to be invoked. And then you've got
  4747. 2:25:14custom sub agents that you're actually
  4748. 2:25:15able to build yourself. And if you guys
  4749. 2:25:18remember earlier in the demo when we
  4750. 2:25:19spun up those different agents, I said,
  4751. 2:25:21"Hey, one should be a software engineer,
  4752. 2:25:22one should be a beginner, blah blah
  4753. 2:25:23blah." You remember those all said
  4754. 2:25:25general purpose. So those were still
  4755. 2:25:27builtin
  4756. 2:25:29native generic agents that just had a
  4757. 2:25:31prompt. So that doesn't mean that we
  4758. 2:25:33built those custom agents. That was just
  4759. 2:25:34a general purpose agent that cloud code
  4760. 2:25:36prompted differently. If we wanted to
  4761. 2:25:38actually build a custom agent, that
  4762. 2:25:39would be a markdown file. So if I open
  4763. 2:25:41up my VS Code, you guys know in the
  4764. 2:25:43cloud folder, we have different things.
  4765. 2:25:45And the one you probably know the best
  4766. 2:25:47is called skills. So in the skills
  4767. 2:25:48folder, let's just take a look at real
  4768. 2:25:50quick my agent builder skill. What this
  4769. 2:25:52is is it's a markdown file. This lives
  4770. 2:25:54as markdown so that I could send it to
  4771. 2:25:56you guys. I could put it in my
  4772. 2:25:57community. I could send it to my team.
  4773. 2:25:58And all someone has to do is put this
  4774. 2:26:00markdown file in there. Claude in a
  4775. 2:26:02skills folder and then they're able to
  4776. 2:26:04use it. And so a sub agent is the exact
  4777. 2:26:06same actual tangible thing as a skill.md
  4778. 2:26:10file. It's just called something else.
  4779. 2:26:12You know, we've got the YAML front
  4780. 2:26:13matter up here. And then we have the
  4781. 2:26:14instructions of what the skill does and
  4782. 2:26:16the actual steps to take. So if I open
  4783. 2:26:18up my agents folder also in my
  4784. 2:26:20do.claude. You can see I've got a
  4785. 2:26:21different a couple different agents
  4786. 2:26:22here. Right. So this one let's just look
  4787. 2:26:24at is called the clickup-archer.md.
  4788. 2:26:27And that's an agent that's called
  4789. 2:26:28clickup searcher. We've got the yaml
  4790. 2:26:30front matter up here name clickup
  4791. 2:26:31searcher. We've got the description.
  4792. 2:26:33We've got the model which I've defined
  4793. 2:26:34here. We've got the color which means if
  4794. 2:26:36I actually use the clickup searcher
  4795. 2:26:38agent it shows the color. So actually
  4796. 2:26:40let me just show you. can you go ahead
  4797. 2:26:41and use the ClickUp searcher agent to
  4798. 2:26:43show me what we've talked about today in
  4799. 2:26:45the weekly commitments channel? And so
  4800. 2:26:46what you'll notice is I invoked that
  4801. 2:26:47with completely natural language. I'll
  4802. 2:26:49have the ClickUp searcher agent pull
  4803. 2:26:50today's messages and then right here I
  4804. 2:26:52can see the green color. So that's all
  4805. 2:26:53it means when you actually assign an
  4806. 2:26:55agent a color. It's just so you can
  4807. 2:26:57actually see it right there. And down
  4808. 2:26:58here, you know, earlier right here is
  4809. 2:27:00where it said general purpose. What it
  4810. 2:27:02says now is ClickUp Searcher. And that's
  4811. 2:27:04how we know that that's a custom agent
  4812. 2:27:05that we built ourselves. So anyways,
  4813. 2:27:07those are the two differences. And like
  4814. 2:27:09I said, it's just one markdown file. And
  4815. 2:27:12what this is called up here, the YAML
  4816. 2:27:13front matter, that's called progressive
  4817. 2:27:15disclosure. Which basically means if you
  4818. 2:27:17say, "Hey, go do X, Y, and Z for me,"
  4819. 2:27:20Cloud Code will naturally go search
  4820. 2:27:22through your sub agents and your skills
  4821. 2:27:24to see if you have any sub aents or
  4822. 2:27:26skills to use. And so for the rest of
  4823. 2:27:27this video, I'm just going to say sub
  4824. 2:27:28agents, not skills, but they both work
  4825. 2:27:29with this kind of progressive disclosure
  4826. 2:27:32um process. But the idea is that cloud
  4827. 2:27:34code is able to read just the front
  4828. 2:27:36matter, just the name and the
  4829. 2:27:37description and then decide does this
  4830. 2:27:39apply to this prompt. If so, I'll pull
  4831. 2:27:42in the sub agent and I'll run all of the
  4832. 2:27:44extra stuff and read it. But otherwise,
  4833. 2:27:45I'm not going to waste my tokens by
  4834. 2:27:47reading everything if I'm not going to
  4835. 2:27:49end up invoking that sub agent. So
  4836. 2:27:51that's why we have this YAML front
  4837. 2:27:53matter and that's why that's very
  4838. 2:27:54important besides the fact that it also
  4839. 2:27:55defines things like tools, model, and
  4840. 2:27:57then there's tons of other levers you
  4841. 2:27:58can pull there, but not going to dive
  4842. 2:28:00into that right now. So anyways,
  4843. 2:28:01settings up top and then your
  4844. 2:28:02instructions go below that. And these
  4845. 2:28:04are the four that I think matter the
  4846. 2:28:05most. The name obviously so you can
  4847. 2:28:07reference the sub aent. The description
  4848. 2:28:09is really important. This is basically
  4849. 2:28:10the trigger and this is how you can make
  4850. 2:28:12sure that your sub aents are getting
  4851. 2:28:13invoked without you actually saying,
  4852. 2:28:15"Hey, go invoke this X Y and Z sub
  4853. 2:28:18aent." So the more precise that your
  4854. 2:28:20descriptions are, the more often cloud
  4855. 2:28:22code will actually trigger them and you
  4856. 2:28:24won't get misfires. Misfire is basically
  4857. 2:28:26meaning you want it to invoke a sub
  4858. 2:28:29agent but it doesn't or you don't want
  4859. 2:28:31it to invoke a sub agent but it does.
  4860. 2:28:33And so sometimes the only way that you
  4861. 2:28:35can really make sure that you're you're
  4862. 2:28:36tuning the actual front matter so that
  4863. 2:28:37you're not getting this misfires is you
  4864. 2:28:39just have to test it out and you just
  4865. 2:28:40have to use it more and more and then
  4866. 2:28:41like when it doesn't fire and you think
  4867. 2:28:43it should you just think about okay why
  4868. 2:28:45didn't that happen and then you update
  4869. 2:28:46the description and then same thing if
  4870. 2:28:49it's the opposite way around. And then
  4871. 2:28:50if you go to the actual cloud code
  4872. 2:28:51documentation on these sub aents, you
  4873. 2:28:54can see all of the different things that
  4874. 2:28:55you can actually put in the front
  4875. 2:28:57matter. You can put tools like we just
  4876. 2:28:58mentioned, but you can also put
  4877. 2:28:59disallowed tools. So if you don't want
  4878. 2:29:01it to ever write or edit files, you can
  4879. 2:29:03put that so that these sub aents are
  4880. 2:29:04explicitly read only. You can also
  4881. 2:29:06define things like which MCP servers
  4882. 2:29:08it's allowed to use. And you can even
  4883. 2:29:10give it skills. So basically any setting
  4884. 2:29:12that you want to configure for your
  4885. 2:29:15custom sub aents, you can pretty much
  4886. 2:29:17do. just come to the documentation, have
  4887. 2:29:18cloud code read the documentation and
  4888. 2:29:20say, "Hey, I want to set up a sub agent
  4889. 2:29:21that does X, Y, and Z. It should not be
  4890. 2:29:23able to do X, Y, and Z. It should be
  4891. 2:29:24able to look at this data, not look at
  4892. 2:29:26this data." And it will help you build
  4893. 2:29:29the right YAML front matter. So, how do
  4894. 2:29:30you actually write a great sub agent?
  4895. 2:29:32So, obviously not having a weak
  4896. 2:29:34description. So, having, you know, a
  4897. 2:29:36very precise type of description. You
  4898. 2:29:37can even say something like use
  4899. 2:29:38proactively if you want it to fire off,
  4900. 2:29:40you know, pretty generously. And then
  4901. 2:29:43after you have the actual front matter
  4902. 2:29:44dialed in, it's all about the body. The
  4903. 2:29:46body is the way that the sub aent
  4904. 2:29:48actually works, what skills it invokes,
  4905. 2:29:50because yes, sub agents can invoke
  4906. 2:29:51skills and skills can invoke sub agents.
  4907. 2:29:54So, keep that in mind. They work
  4908. 2:29:55together. They're not um you know,
  4909. 2:29:57competitors. And you have to have that
  4910. 2:29:58same idea once again that that you have
  4911. 2:30:00to iterate. It's not going to be perfect
  4912. 2:30:02on the first try. Every time you use
  4913. 2:30:03your sub agent, you have the opportunity
  4914. 2:30:05to give it feedback on what it didn't do
  4915. 2:30:07well and how to make that better and
  4916. 2:30:09then what it did really well and how to
  4917. 2:30:10make sure that it does it every time.
  4918. 2:30:12And real quick, what's the difference
  4919. 2:30:13between a skill and a sub aent? Well,
  4920. 2:30:14honestly, at their core, they're very
  4921. 2:30:16similar because you're able to define,
  4922. 2:30:18do X, Y, and Z in this order. You know,
  4923. 2:30:20here's a prompt, here's a persona,
  4924. 2:30:22whatever. But the main difference really
  4925. 2:30:23is that one has a clean context window,
  4926. 2:30:25and one doesn't. And you can run a ton
  4927. 2:30:28of different sub agents in parallel in,
  4928. 2:30:29you know, independent sessions, as we
  4929. 2:30:31saw earlier, whereas the skill is
  4930. 2:30:33typically more of something that I'm
  4931. 2:30:34kind of triggering in my main session
  4932. 2:30:36all the time. But once again, that
  4933. 2:30:37doesn't mean that I don't have a great
  4934. 2:30:38LinkedIn research skill that I hand off
  4935. 2:30:40to sub agents to use. You know what I
  4936. 2:30:42mean? So really I think of it as kind of
  4937. 2:30:44like the parallel use and the clean
  4938. 2:30:46context window and of course the ability
  4939. 2:30:48to use a different model. Now there is
  4940. 2:30:50something that I'm going to show you
  4941. 2:30:50guys real quick in cloud code which is
  4942. 2:30:52like it allows you to build agents very
  4943. 2:30:54easily with a slash command. You can
  4944. 2:30:56also do it with natural language but um
  4945. 2:30:58I'll show you that in a sec. Before we
  4946. 2:30:59show you that I did want to kind of go
  4947. 2:31:01over this real quick which is project
  4948. 2:31:03level versus global level sub aents. And
  4949. 2:31:06this is the same, you know, if you
  4950. 2:31:08understand how the cloud code like
  4951. 2:31:09settings files work or the cloud code
  4952. 2:31:11like hooks and skills, MCP servers even,
  4953. 2:31:14it's all the same. You always have
  4954. 2:31:15project level stuff or you have global
  4955. 2:31:17level stuff. So project level stuff is
  4956. 2:31:19basically what lives in your project in
  4957. 2:31:21that repo. So right here we're in my
  4958. 2:31:22Herk 2 project and anything that you see
  4959. 2:31:24inside of mycloud right here is project
  4960. 2:31:27level. So all of these agents are
  4961. 2:31:28product project level. All of these
  4962. 2:31:30skills are project level. And then I've
  4963. 2:31:31got other sub aents and other skills
  4964. 2:31:33that are global. So, for example, if I
  4965. 2:31:35say, hey, where does my session handoff
  4966. 2:31:38skill live? That's going to find that
  4967. 2:31:41globally because if I go to my skills,
  4968. 2:31:43there's no skill in here called session
  4969. 2:31:44handoff, as you guys can see. But right
  4970. 2:31:46here, the session handoff skill lives in
  4971. 2:31:47your global skills directory at the, you
  4972. 2:31:50know, the user level. And so, global
  4973. 2:31:51ones are usable by every product on your
  4974. 2:31:53machine. So, no matter which project or
  4975. 2:31:55repo I'm working in, I can always use
  4976. 2:31:57that session handoff skill or I can
  4977. 2:31:58always use that, you know, sub agent
  4978. 2:32:00that I've built and it belongs to me.
  4979. 2:32:02So, if I share this GitHub repo to
  4980. 2:32:03someone, they won't get that skill or
  4981. 2:32:05they won't get that sub agent. It's not
  4982. 2:32:06a big deal because you can easily say,
  4983. 2:32:08"Oh, you know, you accidentally made
  4984. 2:32:09that sub agent globally, but I actually
  4985. 2:32:10wanted in this project, can you just
  4986. 2:32:12move it?" And because it's just a
  4987. 2:32:13markdown file, they move super easily.
  4988. 2:32:15Or you can even have them both. You
  4989. 2:32:16know, you can have them in both spots.
  4990. 2:32:17But the reason why I wanted to explain
  4991. 2:32:19that before I showed you this is because
  4992. 2:32:21if you know, you have to choose. So, if
  4993. 2:32:23you do a slash agents, you can look at
  4994. 2:32:24what agents are currently running. If
  4995. 2:32:26you've got a bunch of sub aents, you can
  4996. 2:32:27go to your library and you can see a
  4997. 2:32:29bunch of different built-in agents down
  4998. 2:32:31here like claude, claude code guide,
  4999. 2:32:33explore plan, and then you can also look
  5000. 2:32:35at your project level agents. So, for
  5001. 2:32:37example, we could look at, you know, the
  5002. 2:32:39AI trend hunter. We can look at carousel
  5003. 2:32:41planner. You'll notice that some of
  5004. 2:32:42these have different models like all of
  5005. 2:32:44these are sonnet, but then some of these
  5006. 2:32:45have different project memory. You know,
  5007. 2:32:46this one has project memory. This one
  5008. 2:32:48has none. But anyways, what I wanted to
  5009. 2:32:49show you guys if you go to create a new
  5010. 2:32:51agent, you choose here if it's a
  5011. 2:32:53personal or global or if it's a project.
  5012. 2:32:55So let's just make a new project one
  5013. 2:32:56right now. In order to create it, we can
  5014. 2:32:58generate with claude or we can do manual
  5015. 2:33:00configuration. So I would probably come
  5016. 2:33:02in here and choose generate with claude.
  5017. 2:33:03And then you basically just describe
  5018. 2:33:04what this agent should do and when it
  5019. 2:33:06should be used. And it says to be
  5020. 2:33:07comprehensive for the best results.
  5021. 2:33:09Create me a sub agent that criticizes
  5022. 2:33:11all of my work. I basically want to be
  5023. 2:33:13able to hand it off ideas and I want it
  5024. 2:33:15to not agree with me, but I want it to
  5025. 2:33:17um criticize it. I want it to roast it.
  5026. 2:33:19I want it to play devil's advocate and
  5027. 2:33:21look for every possible hole in the plan
  5028. 2:33:23and what could go wrong and give me back
  5029. 2:33:26basically that report. I want this thing
  5030. 2:33:28to be invoked whenever I say roast my
  5031. 2:33:30plan or review my plan. Anything like
  5032. 2:33:32that. So that's my prompt. Obviously
  5033. 2:33:34that's pretty concise. So like if you
  5034. 2:33:36really had a good sub aent use case,
  5035. 2:33:38you'd probably want to give it some more
  5036. 2:33:39detail and some more nuance there. But I
  5037. 2:33:41just want to show you how it's able to
  5038. 2:33:42generate this file from the description.
  5039. 2:33:44And because I chose project level, it's
  5040. 2:33:46going to create that in the agents
  5041. 2:33:48folder within my do.cloud. So in a sec
  5042. 2:33:50here, we'll see an agent pop up. It'll
  5043. 2:33:52probably be called like um devil's
  5044. 2:33:54advocate.md or roast agent.mmd,
  5045. 2:33:57something like that. Oh, but before
  5046. 2:33:58that, it also says what tools do we want
  5047. 2:34:00it to be able to use? So like for
  5048. 2:34:02example, in this one, maybe I only want
  5049. 2:34:04it to go with readonly tools. So I could
  5050. 2:34:06say just readon. And then you know, we
  5051. 2:34:09could look at some advanced options too,
  5052. 2:34:11which would be all these MCP servers and
  5053. 2:34:13a bunch of other things. and even like
  5054. 2:34:15individual tools. Whoops. Even
  5055. 2:34:16individual tools like bash, cron create,
  5056. 2:34:18cronde delete. Like you can get really
  5057. 2:34:20granular here. But in this case, I'm
  5058. 2:34:22just going to go ahead and hit continue
  5059. 2:34:23with readonly tools. And then we're able
  5060. 2:34:25to choose the model. And in this case,
  5061. 2:34:26we're going to go with haiku. But you
  5062. 2:34:28can also inherit from the parent. So if
  5063. 2:34:29the parents running on haiku, all sub
  5064. 2:34:31aents that all of that sub aent will be
  5065. 2:34:33inherited. Or same thing with opus or
  5066. 2:34:35sonnet. And then finally, we can choose
  5067. 2:34:36our background color. I'm just going to
  5068. 2:34:38go ahead and choose pink. And then we
  5069. 2:34:40get to choose the memory. So whether
  5070. 2:34:41that's project, none, user, or local.
  5071. 2:34:44And so really for the sub agents that
  5072. 2:34:46I'd be creating and the ones that I
  5073. 2:34:47would recommend you guys do, I'd
  5074. 2:34:48probably just say project scope. Unless
  5075. 2:34:50you want all these sub agents to be
  5076. 2:34:51completely completely innocent, wake up
  5077. 2:34:54completely blind, no memory at all, then
  5078. 2:34:55you would choose none. But as far as
  5079. 2:34:57between project user and local, I'm
  5080. 2:34:59probably just going to always choose
  5081. 2:35:00project. All right, there we go. So I'm
  5082. 2:35:01going to go ahead and save this new
  5083. 2:35:02agent. And you can see it just popped up
  5084. 2:35:04right here. It's called the plan roster.
  5085. 2:35:06And what happens when you create them
  5086. 2:35:08with Claude is it makes this huge
  5087. 2:35:11because it doesn't yet understand what
  5088. 2:35:13you might say and how you want it to
  5089. 2:35:14trigger. So my first recommendation
  5090. 2:35:16would be trim this down a little bit
  5091. 2:35:18because once again this is part of the
  5092. 2:35:20progressive disclosure. So there's no
  5093. 2:35:22need for the description to be so long.
  5094. 2:35:24So I'm literally going to delete all of
  5095. 2:35:26this. I mean it's good to look at but
  5096. 2:35:27I'm gonna delete all of this up to here.
  5097. 2:35:29And really in my case this is good
  5098. 2:35:30enough, right? Use this agent when Nate
  5099. 2:35:32wants an adversarial critique of an
  5100. 2:35:34idea, plan, strategy, blah blah blah.
  5101. 2:35:35Trigger on phrases like roast my plan or
  5102. 2:35:37review my plan. We've got the tools, the
  5103. 2:35:39model, the color, the memory, and the
  5104. 2:35:41name. So now I'm just going to open up a
  5105. 2:35:42new session of Claude. And um let's real
  5106. 2:35:45quick just say so I've got this plan and
  5107. 2:35:48I want to create an ice cream stand in,
  5108. 2:35:51you know, uh Chicago. I want to create
  5109. 2:35:53this ice cream stand on Oak Street Beach
  5110. 2:35:56and I don't yet have a refrigerator and
  5111. 2:35:58I want to sell the ice cream all day
  5112. 2:36:01long for about, you know, 20 bucks a pop
  5113. 2:36:04and it's just a little a little piece of
  5114. 2:36:06ice cream. So, um, go ahead and roast my
  5115. 2:36:08plan. This is actually interesting. So,
  5116. 2:36:10I created a skill called roast and it's
  5117. 2:36:12going to use that instead. So, it
  5118. 2:36:13defaults to that because it thinks that
  5119. 2:36:15it's good enough. And in the skill, the
  5120. 2:36:18roast skill, I actually have it spinning
  5121. 2:36:20up five different sub agents. So, that's
  5122. 2:36:22a good demo. I didn't mean for this to
  5123. 2:36:23happen. These are all general purpose
  5124. 2:36:25sub aents that live within my row skill,
  5125. 2:36:27but I'm going to go ahead and cancel
  5126. 2:36:28that. I'm going to run this prompt
  5127. 2:36:29again, but this time I'm going to
  5128. 2:36:30explicitly tell it to not use a skill,
  5129. 2:36:32but like I said, that's a good example
  5130. 2:36:34of showing you that in a skill, you can
  5131. 2:36:36have it fire off a bunch of sub aents.
  5132. 2:36:37Anyways, the whole reason why the
  5133. 2:36:38roasting thing is so top of mind is
  5134. 2:36:40because cloud code and AI in general can
  5135. 2:36:42be a little bit of a sickopant. It can
  5136. 2:36:44just be a yes man. So, having things
  5137. 2:36:46worked out like a roast skill or like a
  5138. 2:36:48plan roaster sub agent is pretty
  5139. 2:36:50helpful. Okay, so look what happened
  5140. 2:36:51here. It did not invoke our roast, our
  5141. 2:36:54plan roster sub aent. So what I'm going
  5142. 2:36:56to say is go ahead and take a look
  5143. 2:36:58within ourclaw agents folder. We've got
  5144. 2:37:01a sub aent called plan roster.mmd and
  5145. 2:37:04you didn't invoke it here and I'm not
  5146. 2:37:06sure exactly why. Go ahead and read the
  5147. 2:37:08description of that and and look back at
  5148. 2:37:10my prompt and help me understand why did
  5149. 2:37:12you not fire off the sub agent so we can
  5150. 2:37:14make this better because that exact
  5151. 2:37:15prompt is something where I'd want you
  5152. 2:37:17to use that that sub agent. And so
  5153. 2:37:18that's really the way that I think about
  5154. 2:37:20um iterating on my descriptions both for
  5155. 2:37:23skills and for sub agents. Just just
  5156. 2:37:24understanding like why didn't it fire or
  5157. 2:37:26why did it fire and how do we then
  5158. 2:37:28rework the description. I do think
  5159. 2:37:30there's a little bit of you know foul
  5160. 2:37:32play here because my roast skill got
  5161. 2:37:35invoked earlier and it's probably like
  5162. 2:37:37defaulting to those skills before a sub
  5163. 2:37:39agent. So, you know, maybe that wasn't
  5164. 2:37:41the best example, but I guess it's good
  5165. 2:37:42that it happened so I can show you guys
  5166. 2:37:43the way that you might think about
  5167. 2:37:46improving your YAML front matter. Okay,
  5168. 2:37:49so completely my fault. I didn't close
  5169. 2:37:52out the front matter. So, good tip. You
  5170. 2:37:55have to close off the quotes if you open
  5171. 2:37:58them up, right? That can break your
  5172. 2:37:59JSON. It can break other things as well.
  5173. 2:38:00So, it will break your YAML front
  5174. 2:38:02matter. It said the problem wasn't
  5175. 2:38:04judgment, it was mechanical. It also
  5176. 2:38:07said, "Hey, you know, you do have a rose
  5177. 2:38:08skill, so maybe there was a little bit
  5178. 2:38:09of, you know, cloudiness there." So, I
  5179. 2:38:11completely get that, but it went ahead
  5180. 2:38:12and it updated the description. You can
  5181. 2:38:14see it made it a little bit longer, but
  5182. 2:38:16there's still collision between the
  5183. 2:38:17roast skill and the plan roster, right?
  5184. 2:38:19They both get invoked kind of similarly.
  5185. 2:38:21So, really, the best thing to do here is
  5186. 2:38:23you would combine the skill to say,
  5187. 2:38:24"Hey, whenever you run the skill, you
  5188. 2:38:26also invoke the plan roster agent
  5189. 2:38:28instead." But for the sake of the demo,
  5190. 2:38:30I am just going to actually be way more
  5191. 2:38:32specific about what to use. So, there
  5192. 2:38:34goes our prompt once again. The copy and
  5193. 2:38:36pasting out of the terminal is horrible.
  5194. 2:38:38So, usually if I want to copy and paste
  5195. 2:38:40something from the terminal, I will tell
  5196. 2:38:41it to write it to a text file or I will
  5197. 2:38:43just use it in the desktop app. But
  5198. 2:38:45either way, I was way more explicit
  5199. 2:38:46here. You can see I said use the plan
  5200. 2:38:48roster sub agent, not the roast skill.
  5201. 2:38:50And now it's initializing our pink plan
  5202. 2:38:52roster sub aent. And what I can do is I
  5203. 2:38:54can go down to this section down here. I
  5204. 2:38:57can open up this other terminal and we
  5205. 2:38:59can see the exact prompt that got sent
  5206. 2:39:00over to our plan roster, which was roast
  5207. 2:39:03this business plan hard. Here it is in
  5208. 2:39:04full. I want to create an ice cream
  5209. 2:39:06stand in Chicago, blah blah blah. So,
  5210. 2:39:07it's basically exactly what I said. Tear
  5211. 2:39:08it apart, hit every flaw, the missing
  5212. 2:39:10refrigerator, the absurd $20 price, and
  5213. 2:39:13then the sub agent already finished up.
  5214. 2:39:14So, it sent us back to the main session.
  5215. 2:39:16And now the main terminal is going to
  5216. 2:39:18interpret what the plan roster sub agent
  5217. 2:39:20said and then give us the rundown. And
  5218. 2:39:22what you'll notice here is the the plan
  5219. 2:39:24roster took 22.8K tokens, but those
  5220. 2:39:2622.8K tokens did not pollute our main
  5221. 2:39:29session. All we got was basically this
  5222. 2:39:31much, which is pretty awesome. So
  5223. 2:39:33anyways, that's a real quick a little
  5224. 2:39:34bit of a sloppy example, but hopefully
  5225. 2:39:36it showed you guys the different
  5226. 2:39:37elements to play with and you know the
  5227. 2:39:39way that you think about using these sub
  5228. 2:39:40aents, but that's what it looks like in
  5229. 2:39:42cloud code. The way that I like to think
  5230. 2:39:43about these is the same way that I've
  5231. 2:39:45thought about AI since the beginning of
  5232. 2:39:46my YouTube channel, which is your AI.
  5233. 2:39:49You know, it's very fun and cool to have
  5234. 2:39:50one mega personal assistant agent that
  5235. 2:39:52can do everything, but really the best
  5236. 2:39:53way to do it is to have each AI be a
  5237. 2:39:55specialist. And that's where your main
  5238. 2:39:57general ones can be pretty good at, you
  5239. 2:39:59know, a jack of all trades because of
  5240. 2:40:00skills, right? You invoke a skill and
  5241. 2:40:02now it's good at LinkedIn post. Now it's
  5242. 2:40:03good at doing research. Now it's good at
  5243. 2:40:04scripting videos, whatever. But really,
  5244. 2:40:06the sub agents are actual specialists.
  5245. 2:40:08They have subject matter expertise. So
  5246. 2:40:10you can have one that's a security
  5247. 2:40:11auditor, you can have one that does
  5248. 2:40:13tests, you can have one that writes
  5249. 2:40:14docs, you can have one that's an expert
  5250. 2:40:15with databasing, whether that's the
  5251. 2:40:17architecture or the queries or anything
  5252. 2:40:18like that. And you can just silo
  5253. 2:40:21basically this assembly line or parallel
  5254. 2:40:23work of a bunch of agents that are good
  5255. 2:40:24at one thing and really really good at
  5256. 2:40:26that one thing. And the other thing
  5257. 2:40:27that's cool about that is you can borrow
  5258. 2:40:30subject matter expertise from other
  5259. 2:40:32people. This is just one of the hundreds
  5260. 2:40:34of thousands of examples out there, but
  5261. 2:40:35there's a GitHub repo which I'll link in
  5262. 2:40:36the description. And this one's called
  5263. 2:40:38awesome cloud code sub aents. So if you
  5264. 2:40:40scroll down here, you can see there's a
  5265. 2:40:41bunch of sub aents that you can use and
  5266. 2:40:43in different categories, right? You've
  5267. 2:40:44got an API designer, a back-end
  5268. 2:40:46developer, a GraphQL architect. We've
  5269. 2:40:49got other language specialists like
  5270. 2:40:51TypeScript or SQL. You know, you can
  5271. 2:40:53scroll through and find a lot of these
  5272. 2:40:55custom same way that you look for skills
  5273. 2:40:56from other people, custom sub aents that
  5274. 2:40:58other people have already built, and
  5275. 2:41:00they maybe know a lot more about CLI
  5276. 2:41:02developing than you do. So, they've put
  5277. 2:41:04all their subject matter expertise into
  5278. 2:41:05a sub agent, and now you can just use
  5279. 2:41:06that because all it is is a markdown
  5280. 2:41:08file. Now, yes, because everything's
  5281. 2:41:10open source and because all these
  5282. 2:41:11markdown files are out there, you want
  5283. 2:41:12to be careful, right? Like, if you're
  5284. 2:41:14downloading a file or you're putting
  5285. 2:41:15into your system, just make sure there's
  5286. 2:41:16no prompt injections in there. Make sure
  5287. 2:41:18there's nothing, you know, malicious.
  5288. 2:41:20And you can even do it by having maybe a
  5289. 2:41:22sub agent that verifies open source
  5290. 2:41:24repos. And it's read only. It can never
  5291. 2:41:25send data. It can never do anything. And
  5292. 2:41:27all it does is verifies that there's
  5293. 2:41:29nothing malicious inside of that
  5294. 2:41:31markdown file. So anyways, we looked a
  5295. 2:41:33little bit about how cloud picks out the
  5296. 2:41:34agents. It can be automatic and it can
  5297. 2:41:36automatically invoke things when you are
  5298. 2:41:38like looking through your codebase or
  5299. 2:41:40whether you are doing research. It'll
  5300. 2:41:41automatically chuck some out there. You
  5301. 2:41:43can also have them very proactively use
  5302. 2:41:45sub aents if you have things like that
  5303. 2:41:47in the description so it fires
  5304. 2:41:48frequently. You [snorts] can also list
  5305. 2:41:50them explicitly by name. You know, you
  5306. 2:41:52can tag the agent name or you can say,
  5307. 2:41:53"Hey, use the plan roster sub agent like
  5308. 2:41:55I just did in that example. And you can
  5309. 2:41:57also launch a session as a sub agent. If
  5310. 2:42:00you do claude with a flag of the sub
  5311. 2:42:02agents name, it'll actually put you
  5312. 2:42:03right in a terminal right away with one
  5313. 2:42:05of those sub aents." And honestly, I
  5314. 2:42:06never do this, but it's nice to know
  5315. 2:42:08that that feature exists. So, once
  5316. 2:42:10again, just wanted to hit on the point
  5317. 2:42:11that you can do readonly sub agents,
  5318. 2:42:13which is pretty cool, just by using tool
  5319. 2:42:15restrictions and giving them only
  5320. 2:42:17certain things. It's always nice to have
  5321. 2:42:18basically the mindset of if my AI could
  5322. 2:42:21touch data or could read data, I have to
  5323. 2:42:24assume that it will. Even if I never
  5324. 2:42:25prompt it, I have to assume that it
  5325. 2:42:27will. And that's the difference between
  5326. 2:42:28a permission layer being explicit tools
  5327. 2:42:30that it's allowed to use and explicit
  5328. 2:42:32MCP servers it's allowed to use and just
  5329. 2:42:35prompting and saying, "Hey, don't do
  5330. 2:42:37that or you don't need to read that.
  5331. 2:42:38Don't worry about it." There's a big
  5332. 2:42:40difference between those types of
  5333. 2:42:41permission layers. And then, of course,
  5334. 2:42:43you have the ability to save a ton of
  5335. 2:42:44money here. Let's say you have to read a
  5336. 2:42:46300page research report and just get,
  5337. 2:42:48you know, maybe three fun facts from it
  5338. 2:42:50or just get a summary. There's probably
  5339. 2:42:52no reason unless it's a really really,
  5340. 2:42:54you know, technical report to use opus
  5341. 2:42:56for that. Probably not even sonnet. So
  5342. 2:42:58delegate that to a haiku sub agent to
  5343. 2:43:00read everything and then send back just
  5344. 2:43:02a small summary to your main session.
  5345. 2:43:04And that's how you have the system where
  5346. 2:43:05you have your smart boss, which is the
  5347. 2:43:07opus model that you talk to on the
  5348. 2:43:08day-to-day that just works with a bunch
  5349. 2:43:10of little haiku agents. It's going to
  5350. 2:43:12save you a lot of money. it's going to
  5351. 2:43:13keep things moving faster and that's the
  5352. 2:43:15way that you want to start utilizing
  5353. 2:43:17these things. Another way that you can
  5354. 2:43:18also keep them from getting out of
  5355. 2:43:19control is you can have a max turns set
  5356. 2:43:22on these sub agents. So maybe they're
  5357. 2:43:23starting to do loops of research or
  5358. 2:43:24they're doing loops of reviewing through
  5359. 2:43:26a codebase. You can say, "Hey, max turns
  5360. 2:43:28equals 10." Honestly, I don't use this
  5361. 2:43:30very often because most of my sub aent
  5362. 2:43:32delegation is research or very specific
  5363. 2:43:34workflows where it doesn't really I'm
  5364. 2:43:36not worried about a loop and I'm keeping
  5365. 2:43:38my hands on either way. But that is once
  5366. 2:43:40again just another nice lever to pull.
  5367. 2:43:42So then after we've seen all these
  5368. 2:43:44benefits, hopefully it's starting to
  5369. 2:43:45become a little bit more clear, but a
  5370. 2:43:47lot of people might also still wonder,
  5371. 2:43:48okay, so when do you actually use a sub
  5372. 2:43:50agent? When is it really better to? So
  5373. 2:43:52one core question you can think about
  5374. 2:43:53is, is this about to dump a pile of
  5375. 2:43:55stuff into my chat that I'll never read
  5376. 2:43:57again? If that's ever yes, delegate it
  5377. 2:44:00to a sub agent. If it's no, then maybe
  5378. 2:44:01you keep it in line. But there's also
  5379. 2:44:03some other things to think about, too,
  5380. 2:44:04right? So let's look at some signals. If
  5381. 2:44:06you're about to read a lot of files, do
  5382. 2:44:09some sub aents. If you're going to spit
  5383. 2:44:11out a wall of output, maybe do sub
  5384. 2:44:13agents. If it's a job that you keep
  5385. 2:44:14repeating, build a custom sub aent for
  5386. 2:44:16it. If it is independent stuff and you
  5387. 2:44:18can run a ton of things in parallel,
  5388. 2:44:20like you know, maybe you have 15
  5389. 2:44:22chapters of a book and you want each
  5390. 2:44:23chapter to be reviewed and like it
  5391. 2:44:25doesn't have to be in chronological
  5392. 2:44:26order. All of them can be reviewed at
  5393. 2:44:28the same time. Then that that's parallel
  5394. 2:44:29and then you can go ahead and do those
  5395. 2:44:30independent jobs. And also if you want
  5396. 2:44:32like an unbiased reviewer because once
  5397. 2:44:34again sub agents can wake up no context
  5398. 2:44:37completely fresh no memory and you can
  5399. 2:44:39get an honest review. Now you don't need
  5400. 2:44:41a sub agent if you're just doing a quick
  5401. 2:44:43edit if the steps depend on each other
  5402. 2:44:45right so if it's like 1 2 3 then four if
  5403. 2:44:47the agents need to talk to each other
  5404. 2:44:49then that's when you would need more of
  5405. 2:44:50like an agent team or a different type
  5406. 2:44:52of orchestration. I've made a video on
  5407. 2:44:53agent teams before. Um they are more
  5408. 2:44:55expensive than sub agents because
  5409. 2:44:56they're they're talking and stuff like
  5410. 2:44:57that but they share task list and
  5411. 2:44:59everything. Sub aents do not work that
  5412. 2:45:00way. It's just a onetoone relationship
  5413. 2:45:02between sub agent and main session, not
  5414. 2:45:04like a one to many. If you've got five
  5415. 2:45:06sub agents running, they cannot talk to
  5416. 2:45:07each other. You would also skip them if
  5417. 2:45:09you need the sub aent to have like the
  5418. 2:45:11context of the entire conversation or if
  5419. 2:45:13it needs to ask you a question because
  5420. 2:45:14you don't really get to talk to the sub
  5421. 2:45:16agents. You know, the main agent is the
  5422. 2:45:18orchestrator. Now, there's also
  5423. 2:45:19something to think about which is a
  5424. 2:45:20fairly newer feature. It was with with
  5425. 2:45:21the release of Opus 4.8, which is the
  5426. 2:45:24dynamic workflows. And what that does is
  5427. 2:45:26it spins up a workflow that typically
  5428. 2:45:29delegates to a ton of different sub
  5429. 2:45:30agents in parallel. So remember the idea
  5430. 2:45:32is that the main chat is the
  5431. 2:45:33orchestrator and you've got a bunch of
  5432. 2:45:34different sub aents running whether
  5433. 2:45:35that's three or whether that's 40. A lot
  5434. 2:45:37of times if you're asking for a big
  5435. 2:45:39project and it decides to use a dynamic
  5436. 2:45:41workflow, then all that's doing is it's
  5437. 2:45:43creating a bunch of sub aents and it's
  5438. 2:45:45delegating to them all at one time. So I
  5439. 2:45:47made a video about those. I will tag
  5440. 2:45:49that right up here if you want to check
  5441. 2:45:50out the dynamic workflows video. You'll
  5442. 2:45:52see an example I did where it spun up 41
  5443. 2:45:54sub agents at the same time and just ran
  5444. 2:45:56them. I've also done some examples, not
  5445. 2:45:58on video, but like when I was testing it
  5446. 2:45:59out, where I did some workflows and one
  5447. 2:46:02of them spun up like 210 sub agents at
  5448. 2:46:04the same time, which was great, but it
  5449. 2:46:06ate through my context or sorry, it ate
  5450. 2:46:08through my session limit like crazy. So,
  5451. 2:46:10you definitely want to be careful when
  5452. 2:46:11you're spinning up dynamic workflows.
  5453. 2:46:13They actually then a few days after this
  5454. 2:46:15came out, they said, "Hey, we changed
  5455. 2:46:16the trigger word for dynamic workflows
  5456. 2:46:18from workflow to to ultra code." You can
  5457. 2:46:20still say to use a workflow for this,
  5458. 2:46:21but when you're clearly referring to
  5459. 2:46:23something else, Claude won't kick off a
  5460. 2:46:24dynamic workflow. So, you want to make
  5461. 2:46:26sure that you are being very careful
  5462. 2:46:28about when you kick off those dynamic
  5463. 2:46:29workflows because like I said, they are
  5464. 2:46:31expensive. So, anyways, that is pretty
  5465. 2:46:33much all of the stuff that I wanted to
  5466. 2:46:36talk about here with sub agents. So, the
  5467. 2:46:38whole thing on one slide, just to do a
  5468. 2:46:39quick recap, if it's just one quick
  5469. 2:46:41thing, you don't need a sub agent,
  5470. 2:46:43right? Just because this feature is
  5471. 2:46:44awesome, which it really is a great
  5472. 2:46:45feature, that doesn't mean to force it.
  5473. 2:46:47because sometimes if you're forcing too
  5474. 2:46:49many sub agents, you're going to get
  5475. 2:46:50worse results. So, play around with
  5476. 2:46:51them, understand the benefits, and start
  5477. 2:46:53to kick them off when you really do need
  5478. 2:46:54them. If you want to share them with
  5479. 2:46:55your team, keep them in your project,
  5480. 2:46:57keep them in your repo. If you want to
  5481. 2:46:58keep sub agents just for you that you
  5482. 2:46:59can use across any project, then put
  5483. 2:47:01them in your home folder. Kind of, you
  5484. 2:47:03know, make them globally or personally.
  5485. 2:47:05You can save a lot of money by having
  5486. 2:47:06cheap workers with one smart lead. You
  5487. 2:47:08can get better results by letting a
  5488. 2:47:09fresh agent review your work or do work
  5489. 2:47:11in parallel. If you want to do a giant
  5490. 2:47:13parallel job, go ahead and check out a
  5491. 2:47:15dynamic workflow. Just be careful of
  5492. 2:47:16your session limit. And if you're not
  5493. 2:47:18sure, if it's a pile of stuff that
  5494. 2:47:20you're never going to reread, then go
  5495. 2:47:21ahead and spin off a sub agent. Whether
  5496. 2:47:23you are using cloud code in the terminal
  5497. 2:47:25or whether you're using in the desktop
  5498. 2:47:26app or even the VS Code extension in VS
  5499. 2:47:29Code or, you know, on the web, wherever
  5500. 2:47:30you're using cloud code, everywhere that
  5501. 2:47:32you use cloud code can run sub aents.
  5502. 2:47:34And the principles that I just talked
  5503. 2:47:35about are always the same. This is where
  5504. 2:47:38they live. That's how you invoke them.
  5505. 2:47:39They're always YAML front matter. And
  5506. 2:47:41those are pretty much the best
  5507. 2:47:42practices. So, I know we covered a ton
  5508. 2:47:45of information. If you guys want to
  5509. 2:47:46download this exact slide deck, all you
  5510. 2:47:48have to do is join my free school
  5511. 2:47:49community. The link for that is down in
  5512. 2:47:50the description. Once you join here, all
  5513. 2:47:52you have to do is click on the
  5514. 2:47:53classroom, click on all YouTube
  5515. 2:47:54resources, and then you'll be able to
  5516. 2:47:56find everything that I've dropped in
  5517. 2:47:58here for free. GitHub repos, skills,
  5518. 2:48:00templates, slide decks, whatever you
  5519. 2:48:01want. It's all in there for free. All
  5520. 2:48:03right, so we got sub agents crossed off
  5521. 2:48:05the list. We're just going to keep
  5522. 2:48:06making our way down through the rest of
  5523. 2:48:08this course. So, next we have websites.
  5524. 2:48:11And websites kind of go handinhand with
  5525. 2:48:12GitHub because Cloud Code's really
  5526. 2:48:15really good at building websites for us.
  5527. 2:48:16It can build websites out of any coding
  5528. 2:48:18language that you want. So HTML or you
  5529. 2:48:20know CSS or all the other ones out
  5530. 2:48:22there. It's really good at that because
  5531. 2:48:24websites are code. But what happens is
  5532. 2:48:26when we build code, it might give us
  5533. 2:48:28something like a local host, which if
  5534. 2:48:30you've never heard that before, don't
  5535. 2:48:31worry. It's it's we'll break it down.
  5536. 2:48:33But it's basically a URL that only you
  5537. 2:48:35locally could open. If you tried to copy
  5538. 2:48:37a local host URL and give it to your
  5539. 2:48:39friend, nothing would pull up on their
  5540. 2:48:41laptop if they tried to open that up.
  5541. 2:48:42I've seen some funny tweets where it's
  5542. 2:48:43like, "Hey, I'm a beginner. I just
  5543. 2:48:45started using Claude Code. Check out
  5544. 2:48:46what I built." And then they, you know,
  5545. 2:48:48they attach a local host URL. And
  5546. 2:48:50obviously that's like a meme. It's a
  5547. 2:48:51joke, but it is pretty funny. So, just
  5548. 2:48:53keep that in mind. We're building the
  5549. 2:48:54website in code and then the code we
  5550. 2:48:56push that to GitHub so that we can
  5551. 2:48:58actually deploy that somewhere on the
  5552. 2:48:59cloud. So, that is what I'm about to
  5553. 2:49:01walk you guys through in this next
  5554. 2:49:02video. Just a quick warning before this
  5555. 2:49:04next video starts playing. Some of the
  5556. 2:49:05clips that I'm inserting into this
  5557. 2:49:07course were recorded a few months back,
  5558. 2:49:09meaning they might be shown in VS Code
  5559. 2:49:11extension or the terminal instead of the
  5560. 2:49:14Cloud Desktop app that we've been using
  5561. 2:49:15so far. I just wanted to give you guys a
  5562. 2:49:17warning. Functionally, exact same. So,
  5563. 2:49:19don't worry about it too much. It just
  5564. 2:49:21might look a little bit differently, but
  5565. 2:49:22all you have to do is listen to what I'm
  5566. 2:49:23saying and follow along with what I'm
  5567. 2:49:25actually doing and you will be just
  5568. 2:49:26fine. All of this stuff is still
  5569. 2:49:27relevant. Otherwise, I wouldn't be
  5570. 2:49:29putting it in this course. So, hopefully
  5571. 2:49:31that makes sense. See you guys in the
  5572. 2:49:33video. Today I'm going to be showing you
  5573. 2:49:34guys five simple hacks that you can use
  5574. 2:49:36to make sure that Claude Code is
  5575. 2:49:37building you websites that don't look
  5576. 2:49:39like they were AI vibe coded, but they
  5577. 2:49:41actually feel professional and branded.
  5578. 2:49:43And we're going to be going through this
  5579. 2:49:44in a way where even if you've never used
  5580. 2:49:45Claude Code before, that's completely
  5581. 2:49:47fine. You're going to be able to by the
  5582. 2:49:48end of this video spin up some really
  5583. 2:49:50awesome looking landing pages and
  5584. 2:49:51websites. All right, so I don't want to
  5585. 2:49:53waste any time at all. The first thing
  5586. 2:49:54that you need to do is you need to go
  5587. 2:49:55download Visual Studio Code. So go to a
  5588. 2:49:57browser and type in VS Code and download
  5589. 2:49:59this for your operating system. This is
  5590. 2:50:01essentially just the IDE that we're
  5591. 2:50:03going to be using Claude Code within. So
  5592. 2:50:05once you've done that and you've opened
  5593. 2:50:07it up, this is what it will look like.
  5594. 2:50:08You're going to go to the lefth hand
  5595. 2:50:09side right here and click on extensions
  5596. 2:50:11and you're going to type in cloud code
  5597. 2:50:13and install it like what you see right
  5598. 2:50:15here. Now once you do that, it's going
  5599. 2:50:16to prompt you to sign in with your
  5600. 2:50:18anthropic subscription or your cloud
  5601. 2:50:19subscription, which you do need a paid
  5602. 2:50:21account. As you can see here, if you're
  5603. 2:50:22on free, you don't have access to cloud
  5604. 2:50:24code, but here on pro, you actually can
  5605. 2:50:27use cloud code. Whether you're on pro or
  5606. 2:50:29max, you can use it. I'd probably just
  5607. 2:50:31start with pro. If you hit limits, which
  5608. 2:50:32you probably will if you want to, you
  5609. 2:50:34know, build websites all day, then you
  5610. 2:50:36should probably upgrade to max. So once
  5611. 2:50:38you've got that installed, you will see
  5612. 2:50:40this little button up here, which is
  5613. 2:50:41cloud code. And when you click on that,
  5614. 2:50:43this is where it opens up the ability to
  5615. 2:50:45actually use cloud code, talk to this
  5616. 2:50:47little crab agent. And this is very
  5617. 2:50:49similar to sort of like a chatbt or
  5618. 2:50:50using cloud in the web. Now, the way
  5619. 2:50:52that this works when you're using Cloud
  5620. 2:50:54Code in Visual Studio Code or really
  5621. 2:50:55wherever you use it is you have files on
  5622. 2:50:57the lefth hand side and then you have
  5623. 2:50:58your agent on the right hand side. So,
  5624. 2:51:00first thing we need to do is open up a
  5625. 2:51:02project so that we can start working
  5626. 2:51:03with some files. So, I'm going to go up
  5627. 2:51:05here to the top left and I'm going to
  5628. 2:51:06click on explorer. What you can see is
  5629. 2:51:08that it says you have not yet opened a
  5630. 2:51:09folder. So, I'm going to go ahead and
  5631. 2:51:11open up a fresh folder that has nothing
  5632. 2:51:12in it. So, here we are in my website
  5633. 2:51:15building YouTube folder, which like I
  5634. 2:51:17said, it's a blank project. If you don't
  5635. 2:51:19have a folder, just go ahead and create
  5636. 2:51:20one. Whether that's in your desktop or
  5637. 2:51:22your documents, just create one to start
  5638. 2:51:24and then open that up. And that is where
  5639. 2:51:26we will be working on this project. So,
  5640. 2:51:28let's get started going through these
  5641. 2:51:29five hacks. The first one is actually
  5642. 2:51:31number zero. And the reason that I did
  5643. 2:51:32this is because the first one is a
  5644. 2:51:34claw.md file. And I put this as number
  5645. 2:51:36zero because it's kind of a
  5646. 2:51:37prerequisite, but also a lot of times
  5647. 2:51:39near the end, even after 1 2 3 and four,
  5648. 2:51:41you might have to rego back and update
  5649. 2:51:44your claw. MD file or just have Claude
  5650. 2:51:46do it itself. So what is a claw.md file?
  5651. 2:51:48Just think of it as a system prompt.
  5652. 2:51:50Think of it as every time before you ask
  5653. 2:51:53cloud code to do something, it will read
  5654. 2:51:56the claw.md file first. It will always
  5655. 2:51:59process that. So what you want to do is
  5656. 2:52:00make sure that that is pretty concise.
  5657. 2:52:02You don't want to bloat it too much with
  5658. 2:52:03context, but you want to give it the
  5659. 2:52:05rules that it needs. So every time you
  5660. 2:52:07are doing something in this project,
  5661. 2:52:08this website building project, do this,
  5662. 2:52:10this, and this. And always remember
  5663. 2:52:12that's kind of the end goal. And so if
  5664. 2:52:13you don't exactly know your full process
  5665. 2:52:15yet or the end goal, then you might
  5666. 2:52:17start without a claw.mmd file. But
  5667. 2:52:18luckily for you guys, if you go over to
  5668. 2:52:20my free school community, the link for
  5669. 2:52:21that's down in the description. You go
  5670. 2:52:23to the classroom, you go to claude code,
  5671. 2:52:25and right here you will see the web
  5672. 2:52:26designcloud.md file, which is the one
  5673. 2:52:28we're going to be using today. You can
  5674. 2:52:30go ahead and just download that for free
  5675. 2:52:31right here. Now, once you've done that,
  5676. 2:52:33you can actually just drag it right over
  5677. 2:52:34here to the lefth hand side. Like I told
  5678. 2:52:36you guys, the lefth hand side is where
  5679. 2:52:37we can see our files and our folders.
  5680. 2:52:39And what that does is it opens up the
  5681. 2:52:40claw.md file which if I drag over here
  5682. 2:52:42we can see it kind of full screen. Now
  5683. 2:52:44the MD stands for markdown which is
  5684. 2:52:47basically just this right here. We've
  5685. 2:52:48got the pound signs. We've got um
  5686. 2:52:50asterisk and it just helps keep the text
  5687. 2:52:52organized so that the agent can read you
  5688. 2:52:54know what's a header, what's a
  5689. 2:52:55subheader, what's bold, what are bullet
  5690. 2:52:57points, things like that. So you could
  5691. 2:52:58obviously read through this entire
  5692. 2:53:00claw.md file if you want to to kind of
  5693. 2:53:02understand what we're telling it to do
  5694. 2:53:03in this project. I'm not going to read
  5695. 2:53:05everything because you guys can just,
  5696. 2:53:06you know, look at it here or download
  5697. 2:53:07it. And as we go through these other
  5698. 2:53:09hacks, you will see why I put some of
  5699. 2:53:10this stuff in here. But that actually
  5700. 2:53:12brings me over to our first technically
  5701. 2:53:14our first hack, which is the front-end
  5702. 2:53:16design skill, which is why you can see
  5703. 2:53:18right here in our cloud.MD, the first
  5704. 2:53:20thing I wrote is always invoke the
  5705. 2:53:22front-end design skill before writing
  5706. 2:53:23any front-end code every session. No
  5707. 2:53:26exceptions. So, first of all, real
  5708. 2:53:27quick, what are skills? Well, if you go
  5709. 2:53:29to the cloud code docs, you can read
  5710. 2:53:30about skills right here. Essentially,
  5711. 2:53:32they are custom instructions. So every
  5712. 2:53:34time you build like a custom GBT or
  5713. 2:53:36cloud project, you're usually putting in
  5714. 2:53:37knowledge and you're putting in
  5715. 2:53:38instructions. And basically skills are
  5716. 2:53:41just that but in a markdown file. And
  5717. 2:53:43why it's so important and cool is
  5718. 2:53:45because every time you ask Claude a
  5719. 2:53:47question, first it reads its cloud.MD
  5720. 2:53:49file, but then it will think, okay, the
  5721. 2:53:51user asks me this, do I have any skills
  5722. 2:53:53in my library that help me do this
  5723. 2:53:55better? If yes, I'll grab the skill,
  5724. 2:53:57I'll read it, and then I'll take action.
  5725. 2:53:58If no, I'll just use my general
  5726. 2:54:00knowledge. So that's why we need to have
  5727. 2:54:02the front-end skill because it helps us
  5728. 2:54:04create designs that are way more modern
  5729. 2:54:06and professional and they don't look as
  5730. 2:54:08much vibecoded AI vibe coded. And the
  5731. 2:54:11good news is it's super super simple.
  5732. 2:54:13You just have to install it. So here's a
  5733. 2:54:15tweet that showed the power of this. All
  5734. 2:54:17they prompted Claude Code to do was use
  5735. 2:54:19the front-end design skill, create a
  5736. 2:54:20music player app, and it created this
  5737. 2:54:22that has some, you know, animations. It
  5738. 2:54:24has some dynamic elements. And if you
  5739. 2:54:26would have just told Cloud Code to do
  5740. 2:54:27this without that skill, it would have
  5741. 2:54:28looked much worse. So, I'll leave a link
  5742. 2:54:30to this tweet in the description of this
  5743. 2:54:31video. You basically just have to run
  5744. 2:54:32this command and then you run this one
  5745. 2:54:34and then you should be good with the
  5746. 2:54:36skill installed globally across any
  5747. 2:54:38cloud code project that you might use in
  5748. 2:54:39the future. And when I say run these
  5749. 2:54:41commands, you can literally just copy
  5750. 2:54:42this if you wanted to and just paste
  5751. 2:54:44that right into here in cloud code and
  5752. 2:54:46it would install that for you. All
  5753. 2:54:47right, so let me go ahead and show you
  5754. 2:54:49guys how good this front-end design
  5755. 2:54:51skill really is with such a minimal
  5756. 2:54:53prompt. So, before we prompt this agent,
  5757. 2:54:55I just wanted to show you guys something
  5758. 2:54:56else you can do, which is kind of a
  5759. 2:54:57bonus hack. What I'm going to do is I'm
  5760. 2:54:59going to create a new folder. I'm going
  5761. 2:55:00to call this brand_assets.
  5762. 2:55:03And our claw.mmd file actually explains
  5763. 2:55:05that this might be a file or a folder
  5764. 2:55:07that cloud code needs to look at. And
  5765. 2:55:09what I'm going to put in here are two
  5766. 2:55:12things. My logo and brand guidelines so
  5767. 2:55:15that it creates this website and it
  5768. 2:55:17feels very branded towards me and my
  5769. 2:55:18business. So right here I'm dragging in
  5770. 2:55:20the Amazon Society logo as you can see
  5771. 2:55:22like that. And then I'm also going to
  5772. 2:55:24drag in our brand guidelines which has
  5773. 2:55:26stuff like our colors, our typography,
  5774. 2:55:29icons, stuff like that. And so now that
  5775. 2:55:31Claude can look at that, I'm going to
  5776. 2:55:33just give it a very, very simple prompt.
  5777. 2:55:35So all I'm saying is build me a modern
  5778. 2:55:36and professional landing page for AI
  5779. 2:55:38Automation Society. And I'm also going
  5780. 2:55:40to tell it that here's my logo and
  5781. 2:55:41here's my brand guidelines. It would be
  5782. 2:55:43able to figure it out either way because
  5783. 2:55:44we put it in the claw.md. But I just
  5784. 2:55:46wanted to show you guys that you can
  5785. 2:55:47actually tag assets directly. So, if I
  5786. 2:55:50do an at, it will basically pop up and
  5787. 2:55:52let me choose or point at the right
  5788. 2:55:54things. So, now I can explicitly say,
  5789. 2:55:56hey, here are the, you know, here's the
  5790. 2:55:58brand guidelines and here's the logo
  5791. 2:55:59because maybe they're not named in a way
  5792. 2:56:01that's super intuitive. And now I'm just
  5793. 2:56:04showing cloud code exactly what I want.
  5794. 2:56:05So, I'm going to shoot this off. I'm not
  5795. 2:56:07even in plan mode. I just want to show
  5796. 2:56:08you guys how good this front-end design
  5797. 2:56:10skill is. And what you're going to
  5798. 2:56:11notice is first of all, what it did is
  5799. 2:56:13it read the cloudmd file and now it's
  5800. 2:56:16reading the brand assets. And now what
  5801. 2:56:18it's going to do is it should hopefully
  5802. 2:56:19invoke the front-end design skill and
  5803. 2:56:21start building out that website for us.
  5804. 2:56:23There we go. Right on Q. It has invoked
  5805. 2:56:26the front-end design skill right there.
  5806. 2:56:28All right. So, that has finished up. You
  5807. 2:56:29can see that we've got a nav, a hero,
  5808. 2:56:31tools, marquee. We've got stats, about
  5809. 2:56:33benefits. So, a full onepage landing
  5810. 2:56:35page. And it should be completely
  5811. 2:56:36matching our brand as far as the logo,
  5812. 2:56:38the colors, and the typography. It also
  5813. 2:56:41added some animations. So, I'm excited
  5814. 2:56:42to see how that works. And it threw it
  5815. 2:56:44on local host for us to check out. So,
  5816. 2:56:45let's head over there. All right. Look
  5817. 2:56:46at that. We've got like a little
  5818. 2:56:48animation up here. We've got a a line
  5819. 2:56:49going down. We can see that we do have
  5820. 2:56:51our logo up here as well as our exact
  5821. 2:56:54colors and font. We've got a community
  5822. 2:56:56rating. Ooh, that's super nice. We've
  5823. 2:56:58also got some scrolling tech companies.
  5824. 2:57:01So, we've got Editen, Make Claude,
  5825. 2:57:03GBT40, Zapier, Air Table. We've got some
  5826. 2:57:05random stats here. Obviously, we'd have
  5827. 2:57:07to fill this in with our own copy, but
  5828. 2:57:09keep in mind all of this happened with
  5829. 2:57:11only us saying, "Create me a landing
  5830. 2:57:13page for our community called A
  5831. 2:57:14Automation Society." That was literally
  5832. 2:57:16it and it created all of this. We've got
  5833. 2:57:18testimonials. We've got a final call to
  5834. 2:57:20action here. The logo is doing a little
  5835. 2:57:21floating for basically a one sentence
  5836. 2:57:23prompt. This is super super solid with
  5837. 2:57:25the front-end design skill. Now, there
  5838. 2:57:27was another secret thing going on here
  5839. 2:57:28that I didn't yet tell you guys about,
  5840. 2:57:29but if you've already read the Claw
  5841. 2:57:31Denm, you might have noticed. And that
  5842. 2:57:33brings us on to hack number two, which
  5843. 2:57:35is the screenshot loop. So, the idea
  5844. 2:57:38here is that AI is really good at
  5845. 2:57:40getting you where you want to go, but it
  5846. 2:57:42takes a lot of manual correction and
  5847. 2:57:44steering. So, let's say I just told
  5848. 2:57:46Claude Code to build us that website.
  5849. 2:57:47Without the front-end design skill, it
  5850. 2:57:49might have gotten us like 40% of the way
  5851. 2:57:51there. But now that we added the
  5852. 2:57:52front-end design skill, it's going to
  5853. 2:57:53get us maybe let's let's just call it
  5854. 2:57:5560. What we can do now is use
  5855. 2:57:57screenshots to help AI iterate upon
  5856. 2:57:59itself. So, instead of it getting 60% of
  5857. 2:58:01the way there and then we make an
  5858. 2:58:02improvement and then we make another
  5859. 2:58:03improvement and we keep doing this, it
  5860. 2:58:05basically should just bridge this gap
  5861. 2:58:06itself because it's able to take a
  5862. 2:58:08screenshot, look at the browser, see
  5863. 2:58:10what it looks like, and then make make
  5864. 2:58:11changes. So, what you guys didn't
  5865. 2:58:13notice, or maybe you did, is over here,
  5866. 2:58:15it created a new folder for us called
  5867. 2:58:16temporary screenshots. And we can see
  5868. 2:58:18that in that process of building out
  5869. 2:58:20that first version of our workflow, it
  5870. 2:58:22took 10 screenshots. So, I can click
  5871. 2:58:24here, and I can see what it looked at.
  5872. 2:58:25It looked at the hero section, which
  5873. 2:58:27kind of was a a random full page. It got
  5874. 2:58:30the viewport, which was that's more of
  5875. 2:58:31the hero section. It looked at the
  5876. 2:58:33stats. It looked at the about page. And
  5877. 2:58:35what it did is it used these screenshots
  5878. 2:58:36as it kept clicking through and looking
  5879. 2:58:39and improved things. So, you guys didn't
  5880. 2:58:41see this, but in the actual to-dos, it
  5881. 2:58:44wrote the index html, it started the
  5882. 2:58:46server and screenshotted the workflow,
  5883. 2:58:48and then it did a two pass screenshot
  5884. 2:58:49review and polish. So, it basically uses
  5885. 2:58:51its eyes to check that what it's
  5886. 2:58:53building actually looks good. And in
  5887. 2:58:54order to set that up, it's actually
  5888. 2:58:55really, really easy. If you go to the
  5889. 2:58:57cloudMD file, you can see that I've got
  5890. 2:58:58a section for screenshot workflow. And
  5891. 2:59:00we're just doing this using Puppeteer.
  5892. 2:59:02So, literally, if you take this claw.md
  5893. 2:59:04and say, "Hey, Claude Code, can you set
  5894. 2:59:05up Puppeteer to take screenshots?" it
  5895. 2:59:08should be able to install all of that
  5896. 2:59:09stuff for you right there really simply.
  5897. 2:59:11And so, yes, that's cool on its own, but
  5898. 2:59:13where it actually comes into handy a lot
  5899. 2:59:15more is when we look at hack number
  5900. 2:59:17three, which is using other websites as
  5901. 2:59:20inspiration. Because what we're able to
  5902. 2:59:22do is say, "Hey, Claude Code, take this
  5903. 2:59:24website right here and build me a
  5904. 2:59:26clone." So, you should build one that
  5905. 2:59:27looks exactly like this one. And then
  5906. 2:59:29what it's able to do is use its eyes,
  5907. 2:59:30use its screenshot tool to screenshot
  5908. 2:59:32what it's building and look at the
  5909. 2:59:33reference and keep going back and forth
  5910. 2:59:35until it's close enough. So, let me show
  5911. 2:59:38you guys that in action right now. So,
  5912. 2:59:40there's tons of sites that you could go
  5913. 2:59:41to for [snorts] website inspiration.
  5914. 2:59:43Here's one example called Dribble.
  5915. 2:59:44Here's another example called godly
  5916. 2:59:46website. And here's another really cool
  5917. 2:59:48example called Awards with three W's.
  5918. 2:59:50So, there's tons of places that you can
  5919. 2:59:52find inspiration. So, for the sake of
  5920. 2:59:54this video, I found this one that I want
  5921. 2:59:56to use. It's got a nice little animation
  5922. 2:59:58in the background. It's obviously not
  5923. 2:59:59our color scheme, but it has some cool
  5924. 3:00:01things as you scroll down like a
  5925. 3:00:03dashboard. It's got some other little
  5926. 3:00:04cards down here. None of this is really
  5927. 3:00:06too animated. Well, I guess that is. But
  5928. 3:00:08let's just say we wanted our website to
  5929. 3:00:10look like this one for example. First
  5930. 3:00:11thing that I would do is I would hit
  5931. 3:00:12F12. I'm on Windows, [snorts] by the
  5932. 3:00:14way. I would go to console and I would
  5933. 3:00:17do control shiftp and search for
  5934. 3:00:19screenshot. What this lets me do is
  5935. 3:00:21capture a full-size screenshot of the
  5936. 3:00:23entire page rather than just my current
  5937. 3:00:25view.
  5938. 3:00:26So here you can see it downloaded this
  5939. 3:00:27screenshot and you can see that that is
  5940. 3:00:29indeed the entire website. Now if you're
  5941. 3:00:31on Mac that's still doable but you just
  5942. 3:00:34have to Google the different buttons to
  5943. 3:00:36do it. And then the next thing what I
  5944. 3:00:37want to do is on the top right here I'm
  5945. 3:00:39going to go to elements and in the style
  5946. 3:00:41section down here I'm just going to copy
  5947. 3:00:43everything. So I'm actually copying
  5948. 3:00:45basically like the raw code or HTML or
  5949. 3:00:48you know whatever you want to consider
  5950. 3:00:49this as that tells the website how this
  5951. 3:00:51is styled and we're going to give Claude
  5952. 3:00:53code that. So, I'm going to go ahead and
  5953. 3:00:55do a clear so we can start a fresh
  5954. 3:00:56session. I'm going to first of all just
  5955. 3:00:59paste in the code that we just copied,
  5956. 3:01:00which is the style information. So, I
  5957. 3:01:02said, I want you to spin up a new
  5958. 3:01:03website for us. Get rid of the old one
  5959. 3:01:05and you can put this one on local host.
  5960. 3:01:07I basically want you to clone this
  5961. 3:01:08website. So, I'm going to give you the
  5962. 3:01:10screenshot, which what I'm going to do
  5963. 3:01:11is just drag it in from my files and put
  5964. 3:01:13it right over here. As you can see, that
  5965. 3:01:14is the screenshot we just took. And I'm
  5966. 3:01:16going to point to it so it knows what to
  5967. 3:01:18use, which is the www right there. And
  5968. 3:01:22then I said, here's the screenshot.
  5969. 3:01:23here's the style and just go ahead and
  5970. 3:01:24clone this website for us. So that is
  5971. 3:01:27all we're going to do to start and then
  5972. 3:01:29we can come back in later and tell it to
  5973. 3:01:31use our branding and our you know colors
  5974. 3:01:33and logo and everything like that. Now a
  5975. 3:01:35couple things to keep in mind when
  5976. 3:01:36you're doing some of the big processes
  5977. 3:01:38like spinning up a website from scratch
  5978. 3:01:40or comparing two websites and cloning
  5979. 3:01:42them that coding process and thinking
  5980. 3:01:44will take longer. But once you have a
  5981. 3:01:46working version making small changes or
  5982. 3:01:49tweaks that happens pretty quickly. And
  5983. 3:01:51one other thing is you might have
  5984. 3:01:52noticed that this really isn't stopping
  5985. 3:01:54to ask me questions. And that's because
  5986. 3:01:55I'm using bypass permissions mode. So if
  5987. 3:01:58you don't see this in your instance,
  5988. 3:01:59you're going to go to settings. You're
  5989. 3:02:01going to type in clawed code. And then
  5990. 3:02:03right here, you should see allow
  5991. 3:02:05dangerously skip permissions. And that
  5992. 3:02:06is where you turn that on. Now I
  5993. 3:02:08definitely have a responsibility to tell
  5994. 3:02:09you that this is dangerous. It has the
  5995. 3:02:12potential to just kind of like run any
  5996. 3:02:14command that it wants. But in my
  5997. 3:02:16practice, I've never really had this be
  5998. 3:02:18an issue, especially because I'm never
  5999. 3:02:20like setting this to code all night long
  6000. 3:02:22and then going to sleep. I'm always
  6001. 3:02:23still kind of like watching it or I'm
  6002. 3:02:25nearby and nothing bad really is going
  6003. 3:02:28to happen. All right, awesome. So, we
  6004. 3:02:30just got to the point where now it is
  6005. 3:02:31creating a to-do list. And what you can
  6006. 3:02:33see here is once it actually writes the
  6007. 3:02:35code for the website, it's going to
  6008. 3:02:37start up the server and it's going to
  6009. 3:02:38take screenshots and it's going to do
  6010. 3:02:40two rounds at least of comparing. It's
  6011. 3:02:43going to look at what it built versus
  6012. 3:02:44the reference. It's going to fix any
  6013. 3:02:45mismatches and then it's going to do
  6014. 3:02:46that again. And that is why the
  6015. 3:02:48screenshot loop is so powerful. So
  6016. 3:02:50logically, this is really cool. I mean,
  6017. 3:02:51it's going through and it's looking
  6018. 3:02:53section by section and analyzing how
  6019. 3:02:55well it's stacking up. But we will have
  6020. 3:02:56to see how it actually turns out. Okay,
  6021. 3:02:58so that just finished up and before we
  6022. 3:03:00actually see how good it really built
  6023. 3:03:02this, I wanted to point out one thing
  6024. 3:03:03about the screenshots. So you can see
  6025. 3:03:05that we have screenshot 1 2 3 4, all
  6026. 3:03:07this kind of stuff, but we don't really
  6027. 3:03:09know which one is which without clicking
  6028. 3:03:11on them. So, it looks like these are the
  6029. 3:03:13clones as you can see because they're
  6030. 3:03:14coming out looking like the website that
  6031. 3:03:16we gave it. Well, we either should have
  6032. 3:03:18before we started this new build. We
  6033. 3:03:19should have told cloud code, hey, you
  6034. 3:03:21can delete all of those temporary
  6035. 3:03:22screenshots or in the claw.md, we should
  6036. 3:03:25be more specific about the naming
  6037. 3:03:27convention of the screenshots so that we
  6038. 3:03:28can actually tell. Now, realistically,
  6039. 3:03:30these temporary screenshots are more for
  6040. 3:03:31Claude codes benefit than for ours, but
  6041. 3:03:34that is something else that you can be
  6042. 3:03:35thinking about if you do want to be able
  6043. 3:03:36to click through and see the changes
  6044. 3:03:38that were made with each version. But
  6045. 3:03:39anyways, let's go ahead and open up this
  6046. 3:03:40link and see what we got. All right, so
  6047. 3:03:42I'm going to switch this to English for
  6048. 3:03:44my head. But we can see we've got the
  6049. 3:03:46purple colors. We've got your strategic
  6050. 3:03:49ally for a truly profitable business.
  6051. 3:03:50We've got the same top menu bar. Um a
  6052. 3:03:52similar type of dashboard here. We've
  6053. 3:03:54got some cards. And as we scroll down,
  6054. 3:03:56it feels very similar to the real
  6055. 3:03:58version that we gave it, which was this
  6056. 3:04:00one. Obviously, some of the dynamic
  6057. 3:04:02elements in the background and some of
  6058. 3:04:04the actual images could not have been
  6059. 3:04:05the exact same, but for a clone, this is
  6060. 3:04:08very, very similar. And it is a really
  6061. 3:04:11good spot for us to actually start. And
  6062. 3:04:13now we can just start to integrate our
  6063. 3:04:14own colors and logos and copy right into
  6064. 3:04:17this template. And it's as simple as
  6065. 3:04:20just asking it to do so. So, I'm going
  6066. 3:04:21to go ahead and clear this out. I'm
  6067. 3:04:24going to say go ahead and delete all of
  6068. 3:04:26the temporary screenshots in the
  6069. 3:04:27temporary screenshots folder. And so now
  6070. 3:04:29all of those have been deleted as you
  6071. 3:04:30can see. And we're basically going to
  6072. 3:04:32say the most recent landing page looks
  6073. 3:04:34really good. What I want you to do now
  6074. 3:04:36is work in our brand assets. So our
  6075. 3:04:40brand guidelines and our AIS logo. And
  6076. 3:04:44this is for our community called AI
  6077. 3:04:46Automation Society. So just work in
  6078. 3:04:48those changes to that website clone that
  6079. 3:04:50you just built. And once again, we are
  6080. 3:04:52just going to stay on bypass
  6081. 3:04:53permissions. I'm going to shoot that
  6082. 3:04:54off. One shot prompt this thing. And
  6083. 3:04:57hopefully we should get something that
  6084. 3:04:58looks pretty solid. Now, what I'm
  6085. 3:05:00interested to see is what it ends up
  6086. 3:05:01doing with this dashboard and what it
  6087. 3:05:03ends up doing with this iPhone screen
  6088. 3:05:04because we haven't given it any other
  6089. 3:05:06pictures. As you saw in our website, we
  6090. 3:05:08obviously gave it some different
  6091. 3:05:09pictures like the school games dashboard
  6092. 3:05:11or me with Hermosi and Sam Ovens. But
  6093. 3:05:13that's what you could do is you would
  6094. 3:05:14come back into Claude Code and you would
  6095. 3:05:16say, "Hey, I gave you some more pictures
  6096. 3:05:17in the brand assets. Put this one here.
  6097. 3:05:19Put this one there." And it would figure
  6098. 3:05:21that out for you. And of course, you
  6099. 3:05:22would also have to say, "Cool. When they
  6100. 3:05:24click on start for free, take them to
  6101. 3:05:25this link." or when they click on see
  6102. 3:05:26the demo, take them to this link. So,
  6103. 3:05:28there's other little pieces that you
  6104. 3:05:29would obviously have to configure as
  6105. 3:05:31well, but those changes take basically
  6106. 3:05:33no time. Okay, so that finished up
  6107. 3:05:35pretty quickly. We've got three
  6108. 3:05:36screenshots here, but I'm not going to
  6109. 3:05:38click into them because I don't want to
  6110. 3:05:39ruin the final reveal here. But it used
  6111. 3:05:41our colors. We have our primary accent,
  6112. 3:05:43our secondary, our dark background, and
  6113. 3:05:45our mid background. We've got the right
  6114. 3:05:47typography. We've got the right logo,
  6115. 3:05:48and everything was fully translated from
  6116. 3:05:50French to English, thank goodness. And
  6117. 3:05:52now it's rewritten for our community,
  6118. 3:05:54which once again, we didn't actually
  6119. 3:05:55give it facts about the community yet.
  6120. 3:05:57This is just very simple prompting. It
  6121. 3:05:59also mocked up a dashboard. So, let's
  6122. 3:06:00head over to our local host. Let's give
  6123. 3:06:02this a hard refresh. And boom. We now
  6124. 3:06:04have our new site, master a automation,
  6125. 3:06:07build faster, earn more. For the
  6126. 3:06:09dashboard, it worked in like a little
  6127. 3:06:10bit of a it's got members. It's got
  6128. 3:06:11automations, courses. It's got it's kind
  6129. 3:06:14of like a community tracker dashboard,
  6130. 3:06:16and it uses our colors in there, too,
  6131. 3:06:18which is cool. We've got different
  6132. 3:06:19things on here, workshops, templates,
  6133. 3:06:21expert community. It also changed this
  6134. 3:06:23iPhone thing to member growth this
  6135. 3:06:25month. So, it's keeping all of this on
  6136. 3:06:27brand with the actual original reference
  6137. 3:06:29site, which once again looked like this.
  6138. 3:06:32However, now it has our colors and it
  6139. 3:06:34has our information in here. We've got
  6140. 3:06:36two paths and then we have some other
  6141. 3:06:37stats down here and a nice little call
  6142. 3:06:39to action at the bottom. So, cool. What
  6143. 3:06:41we could do now is obviously go back and
  6144. 3:06:42forth a little bit, maybe change some
  6145. 3:06:44text, make things bigger, you know,
  6146. 3:06:45change the images and stuff like that.
  6147. 3:06:47But let's say we're at a spot where we
  6148. 3:06:48like the overall feel and vibe of the
  6149. 3:06:50website. But now, how do we really up it
  6150. 3:06:52to the next level to make it feel
  6151. 3:06:53unique? Well, what we're going to do is
  6152. 3:06:55unlock the final hack, which is
  6153. 3:06:58individual components. And what I mean
  6154. 3:07:00by that is taking inspiration from
  6155. 3:07:01different places, but for very
  6156. 3:07:03individual components for small pieces,
  6157. 3:07:06not entire websites. So, what we can do
  6158. 3:07:08is we can go to a website called
  6159. 3:07:0921st.dev,
  6160. 3:07:11which has some of the best website
  6161. 3:07:13components you might be able to find.
  6162. 3:07:14It's got shaders. It's got backgrounds.
  6163. 3:07:16It's got home screens. It's got buttons.
  6164. 3:07:19It's got, you know, mouse highlights.
  6165. 3:07:20It's got so many different things that
  6166. 3:07:21you can do. So, here you can see I've
  6167. 3:07:23got buttons and I could make them have a
  6168. 3:07:24rainbow outline. I could make them
  6169. 3:07:26shiny. We could toggle, you know, dark
  6170. 3:07:27mode or light mode. There's lots of
  6171. 3:07:29different things we could do here. Or I
  6172. 3:07:30could just click on backgrounds in here
  6173. 3:07:31and I could look at other ways that we
  6174. 3:07:33could have our background. So, maybe we
  6175. 3:07:34want these little kind of drop down
  6176. 3:07:36pills instead. Or maybe we want these
  6177. 3:07:38hero waves in the background. I think we
  6178. 3:07:39should actually do this instead. So,
  6179. 3:07:40what I'm going to do is just copy this
  6180. 3:07:42prompt right here. This will basically
  6181. 3:07:43copy a chunk of code for us to give to
  6182. 3:07:46claude code. And I'm just going to say,
  6183. 3:07:47I want you to work in this background
  6184. 3:07:50element right behind the hero text. And
  6185. 3:07:52after I give it that prompt, I just
  6186. 3:07:54paste in what we grabbed from 21st.dev.
  6187. 3:07:56And it should be able to use all of this
  6188. 3:07:59and understand how to put that into our
  6189. 3:08:02site. So, I'm just going to go ahead and
  6190. 3:08:03shoot this off and we will see.
  6191. 3:08:05Actually, one thing that I forgot to
  6192. 3:08:06mention is in this case, because we're
  6193. 3:08:09working with an animation, the
  6194. 3:08:11screenshot might not always work the
  6195. 3:08:12best. So, sometimes you might want to
  6196. 3:08:14tell it not to do the screenshot flow.
  6197. 3:08:16So, I'm basically actually just going to
  6198. 3:08:17copy all of this text. Once again, I'm
  6199. 3:08:20going to clear this out. I'm going to
  6200. 3:08:21paste it back in. But then I'm also
  6201. 3:08:24going to say
  6202. 3:08:26because this is an animated background,
  6203. 3:08:28do not use the screenshot tool to
  6204. 3:08:30compare. just work in the code and then
  6205. 3:08:32I will let you know if we need to make
  6206. 3:08:34any changes. So hopefully with that
  6207. 3:08:35mention, even though it's going to read
  6208. 3:08:37the claw.mmd, it won't do a bunch of
  6209. 3:08:38screenshots here because I've actually
  6210. 3:08:40tested this out and I've had, you know,
  6211. 3:08:42different background elements come
  6212. 3:08:43through and because they're dynamic,
  6213. 3:08:45sometimes the screenshot doesn't fully
  6214. 3:08:46capture it. So it gets stuck in this
  6215. 3:08:47loop of thinking, I haven't built this
  6216. 3:08:49good enough. I'm going to keep trying
  6217. 3:08:50and it like overengineers and it just
  6218. 3:08:52doesn't really work. So sometimes you
  6219. 3:08:54may want to turn off the screenshot
  6220. 3:08:56tool. All right, so that just finished
  6221. 3:08:57up. It didn't take a bunch of
  6222. 3:08:58screenshots, so it didn't take forever.
  6223. 3:09:00Let's go to the website. Let's give it a
  6224. 3:09:03refresh and see. Okay. Okay. So, we've
  6225. 3:09:06got a background. It looks a little bit
  6226. 3:09:09um distracting. It also looks a little
  6227. 3:09:10bit cheap. It looks like too pixelated.
  6228. 3:09:12So, what I'm going to do now is just
  6229. 3:09:13iterate. I'm going to tell it that
  6230. 3:09:16I think that it's a little bit
  6231. 3:09:18distracting as far as it makes the hero
  6232. 3:09:21text right behind it a little bit tough
  6233. 3:09:23to read. Also, in the hero text, I'd
  6234. 3:09:26like it if the earn more was maybe a
  6235. 3:09:30blue or a different color. I think that
  6236. 3:09:31doesn't really feel good to have that be
  6237. 3:09:33orange. It would be good if there was
  6238. 3:09:34maybe some sort of background behind the
  6239. 3:09:36hero text so that we could see it and it
  6240. 3:09:38would still stand out and contrast
  6241. 3:09:40against the background animation, but
  6242. 3:09:43the background animation looks super
  6243. 3:09:44fuzzy and super pixy. If you could make
  6244. 3:09:46that look a little bit more professional
  6245. 3:09:49and clean, that would be great. And if
  6246. 3:09:51you guys were curious why I was just
  6247. 3:09:52like staring at that and talking is
  6248. 3:09:53because I was dictating and I wanted to
  6249. 3:09:55be able to look at what I was talking
  6250. 3:09:57about. So, we've given some feedback.
  6251. 3:09:59Now, let's see if it can go ahead and
  6252. 3:10:01make those changes. And once again, like
  6253. 3:10:03we're being pretty vague here and it
  6254. 3:10:05would be up to the creativity of the
  6255. 3:10:07model to understand what we're asking
  6256. 3:10:08for and be able to make these changes.
  6257. 3:10:10Now, if you were on plan mode, it might
  6258. 3:10:12be able to do a little bit better job of
  6259. 3:10:13asking you some questions and maybe
  6260. 3:10:15helping you get to a better solution
  6261. 3:10:17first before it starts coding. But for
  6262. 3:10:19the sake of the video, let's see how
  6263. 3:10:21well it does with this prompt. All
  6264. 3:10:23right, that just finished up and you can
  6265. 3:10:24see that that looks much much better.
  6266. 3:10:26This is definitely more what I was
  6267. 3:10:28looking for when we copied over that
  6268. 3:10:30animation into this website. So from
  6269. 3:10:33here, we would just keep going through
  6270. 3:10:34and we keep being really nitpicky about
  6271. 3:10:35what we want to change. We'd add our own
  6272. 3:10:37pictures in. We'd maybe want to change
  6273. 3:10:38some of these buttons to be more
  6274. 3:10:40dynamic. We'd want to maybe animate some
  6275. 3:10:41of this other stuff, which we could
  6276. 3:10:43easily do just by asking Claude Code to
  6277. 3:10:45do so. So from here, the question is,
  6278. 3:10:46how do you actually get this onto a real
  6279. 3:10:49landing page? Because right now, we're
  6280. 3:10:50still developing all of this code and
  6281. 3:10:52we're previewing this in our local host.
  6282. 3:10:54So what we're going to do is we're going
  6283. 3:10:55to use a combination of GitHub and
  6284. 3:10:56Versell to do this. Cloud code is where
  6285. 3:10:58we're working right now. All of these
  6286. 3:11:00folders, all of these files are local,
  6287. 3:11:02meaning if I pulled up my laptop, I
  6288. 3:11:03wouldn't be able to access them. And
  6289. 3:11:05when we're building our website, which
  6290. 3:11:06is obviously this website right here,
  6291. 3:11:08this is all made up of a bunch of code
  6292. 3:11:10in our cloud code project. So what we
  6293. 3:11:12need to do with that is we sync that
  6294. 3:11:14code to GitHub and GitHub has version
  6295. 3:11:17control. We can see all of our commits,
  6296. 3:11:19other people can work on it, stuff like
  6297. 3:11:20that. We basically host our code or our
  6298. 3:11:22project in the cloud and we set up a
  6299. 3:11:24really cool auto deploy between Verscell
  6300. 3:11:27and GitHub. And Verscell is basically
  6301. 3:11:28just where we deploy our code to a live
  6302. 3:11:31site. So basically what this means is
  6303. 3:11:33whenever we tell cloud code, hey this
  6304. 3:11:35looks good, push these changes to
  6305. 3:11:37GitHub, GitHub grabs the new changes and
  6306. 3:11:39then Verscell automatically grabs those
  6307. 3:11:41from GitHub and then updates the real
  6308. 3:11:44working version of our site. And I will
  6309. 3:11:45show you guys that. But let's first of
  6310. 3:11:46all do this pipeline. So the first thing
  6311. 3:11:49that you're going to need to do is go to
  6312. 3:11:51GitHub, create an account if you don't
  6313. 3:11:52already have one, and you're going to
  6314. 3:11:53need to create a new repository. So I'm
  6315. 3:11:56going to create a repository right here
  6316. 3:11:57called AIS test website. I'm not going
  6317. 3:12:01to worry right now about a description
  6318. 3:12:02or all of this and I'm just going to go
  6319. 3:12:04ahead and create that repository. Now,
  6320. 3:12:06what you also could do is you could tell
  6321. 3:12:08Claude Code, hey, create me a GitHub
  6322. 3:12:11repository and it could actually do
  6323. 3:12:13that. But right now, I just wanted to
  6324. 3:12:14show you guys so you can get a feel for
  6325. 3:12:15GitHub if you've never used it before.
  6326. 3:12:17So, anyways, now we have this repository
  6327. 3:12:19called AIS test website. I'm just going
  6328. 3:12:20to copy the name of that real quick and
  6329. 3:12:22I'm going to come back into Cloud Code.
  6330. 3:12:24We're going to clear this out and say
  6331. 3:12:25awesome. So now that this site looks
  6332. 3:12:27good, we need to actually deploy this on
  6333. 3:12:29our domain. I need you to help push this
  6334. 3:12:32to GitHub and we're going to push it to
  6335. 3:12:34a GitHub repository called
  6336. 3:12:37and then I'm going to paste in the name.
  6337. 3:12:39Now, so far it has not yet gotten our
  6338. 3:12:41GitHub credentials. So we're going to
  6339. 3:12:42have to obviously authenticate into
  6340. 3:12:44GitHub first so it can push that into
  6341. 3:12:46GitHub. So I just got logged in as Nate
  6342. 3:12:48Herk AI and now it's going to create
  6343. 3:12:50the.get ignore and get everything set up
  6344. 3:12:52so it can actually do so. Now, it's not
  6345. 3:12:54too big of a deal right now because
  6346. 3:12:55nothing that we'd be pushing into the
  6347. 3:12:57public GitHub or, you know, onto the
  6348. 3:12:59cloud has API keys or has any usernames
  6349. 3:13:02or passwords or any sensitive
  6350. 3:13:03information or, you know, web hook
  6351. 3:13:05abilities. But that is something to be
  6352. 3:13:06aware of once you actually are pushing
  6353. 3:13:08automations and things like that to the
  6354. 3:13:09cloud. Make sure that you're not putting
  6355. 3:13:11any of your sensitive information out
  6356. 3:13:13there. Awesome. So, it now says that our
  6357. 3:13:15site is live on GitHub. So, if I click
  6358. 3:13:17into this link, we should see that we
  6359. 3:13:18now have a new commit. We have all of
  6360. 3:13:20this stuff like our claw.mmd. We have
  6361. 3:13:22our screenshot stuff. We have brand
  6362. 3:13:23assets. And now we can sync this to
  6363. 3:13:26Verscell. So that would be step two is
  6364. 3:13:27you're going to go to versell.com,
  6365. 3:13:29create an account. When you create that
  6366. 3:13:30account, it's much easier if you just
  6367. 3:13:31sign in or create that account with your
  6368. 3:13:33GitHub credentials. And then all we have
  6369. 3:13:36to do is go ahead and add a new project.
  6370. 3:13:38And then we're able to just choose a
  6371. 3:13:40GitHub repository. As simple as that. So
  6372. 3:13:42I can literally just hit import on our
  6373. 3:13:44AIS test website, which you guys just
  6374. 3:13:45saw me set up. And then all I have to do
  6375. 3:13:47is go ahead and deploy this project.
  6376. 3:13:50Awesome. So I've deployed a new project
  6377. 3:13:51to my project. I can go ahead and
  6378. 3:13:53continue to the dashboard here. And what
  6379. 3:13:55this now does is we can actually visit
  6380. 3:13:57this by going to
  6381. 3:13:58ais-test-website.vercell.app.
  6382. 3:14:01I open that up. And now this is no
  6383. 3:14:03longer local. I could open up my phone
  6384. 3:14:05and type in this. You could open up your
  6385. 3:14:06browser and type this in. And you guys
  6386. 3:14:08could all visit this site because it's
  6387. 3:14:09now deployed on the cloud. But of course
  6388. 3:14:12it's got an ugly domain. So, what you
  6389. 3:14:14would have to do now is you would have
  6390. 3:14:15to go to your project settings. You
  6391. 3:14:18would go to domains. And then this is
  6392. 3:14:19where you would actually just have to
  6393. 3:14:20either buy a domain right here or add an
  6394. 3:14:23existing one. And it's really simple. It
  6395. 3:14:24would walk you through the DNS
  6396. 3:14:25configuration that you need to set up.
  6397. 3:14:27And it's not too difficult, but I'm not
  6398. 3:14:29going to actually do that live in this
  6399. 3:14:30video. So, what I wanted to show you
  6400. 3:14:31guys real quick before we end off this
  6401. 3:14:33video is what actually happens if we
  6402. 3:14:35realize that we want to make a change to
  6403. 3:14:36our website that is on the cloud. Well,
  6404. 3:14:38that's why it's good that we still have,
  6405. 3:14:40you guys can't see because you can't see
  6406. 3:14:42the URL, but we still do have our local
  6407. 3:14:44version because if I make a change here
  6408. 3:14:46and I don't like it, I don't want that
  6409. 3:14:47to automatically get pushed to um
  6410. 3:14:49Verscell. So, what you'd probably want
  6411. 3:14:51to do is in your claw.md file, you would
  6412. 3:14:53say ultimately what's going to happen is
  6413. 3:14:55we're syncing all of the changes to
  6414. 3:14:56GitHub. GitHub's going to automatically
  6415. 3:14:58push them to Verscell and we'll be good
  6416. 3:14:59to go. But when I'm making changes with
  6417. 3:15:01you here, we're always going to test on
  6418. 3:15:03a local host until I tell you explicitly
  6419. 3:15:05to push that to GitHub or commit those
  6420. 3:15:07changes to GitHub. Okay. So, this is our
  6421. 3:15:10local version. And let's just say, for
  6422. 3:15:11example, we wanted to make this button a
  6423. 3:15:13little bit cooler. So, I'm going to ask
  6424. 3:15:15in Cloud Code, could you go ahead and
  6425. 3:15:18make the join the community button in
  6426. 3:15:20the main hero text section, make it more
  6427. 3:15:23professional. So, give it like a cool
  6428. 3:15:24glow. And once you've made this change,
  6429. 3:15:26let me see it in local host. Don't push
  6430. 3:15:29it to GitHub until I tell you to. This
  6431. 3:15:31thing is getting pretty screenshot
  6432. 3:15:32happy. I may have to adjust the wording
  6433. 3:15:34in the cloud. Mmd file a little bit. It
  6434. 3:15:36literally took one of the main screen
  6435. 3:15:37and then it took one of where it just
  6436. 3:15:39cropped the actual button, but hey, it
  6437. 3:15:41looks good. Okay, so what happens is
  6438. 3:15:43here's the local host. I'll refresh
  6439. 3:15:44that. Now we can see the little glow
  6440. 3:15:46behind the join the community button and
  6441. 3:15:48here is the web app version. I refresh
  6442. 3:15:50this and we don't have that change yet,
  6443. 3:15:52which is great because we don't want to
  6444. 3:15:53push changes if they're not good, right?
  6445. 3:15:55But now what I'll do is say awesome. I
  6446. 3:15:57love that change. Go ahead and push that
  6447. 3:15:59to GitHub. All right, so it just pushed
  6448. 3:16:00that. We have a new commit. If I go to
  6449. 3:16:02GitHub and I give this a refresh, we can
  6450. 3:16:04see that we should see right here two
  6451. 3:16:05commits. This one was add glowing pulse
  6452. 3:16:08effect to hero join the community
  6453. 3:16:10button. And then if I go to Verscell and
  6454. 3:16:13we go to our deployments, we should see
  6455. 3:16:15that we just got a second one come
  6456. 3:16:16through as well just now. And now if I
  6457. 3:16:18go to the site on the web and I refresh,
  6458. 3:16:21we see the actual glowing join the
  6459. 3:16:23community button. All right, so those
  6460. 3:16:24are the five hacks that I wanted to
  6461. 3:16:25cover today. We have our claw.md file,
  6462. 3:16:27which as you could tell by this video,
  6463. 3:16:29yes, it's nice to have something to
  6464. 3:16:30start, but you are going to continue to
  6465. 3:16:32iterate upon it throughout your project
  6466. 3:16:33until you get to a good spot. We've got
  6467. 3:16:35the front-end design skill, which is
  6468. 3:16:36just like way too easy to not use. We've
  6469. 3:16:38got the screenshot loop, which you got
  6470. 3:16:40to be careful about, but it is very
  6471. 3:16:41helpful. We've got inspiration websites,
  6472. 3:16:43and then we have inspiration individual
  6473. 3:16:45components, and now it's just a matter
  6474. 3:16:47of making small tweaks and iterating
  6475. 3:16:49upon your website. Awesome. So now that
  6476. 3:16:52you guys understand how building the
  6477. 3:16:54websites work and how cloud code is able
  6478. 3:16:56to push to GitHub and push to versel to
  6479. 3:16:57actually deploy them, you can continue
  6480. 3:16:59going down some other like design stuff
  6481. 3:17:01if you want. And if you do, you should
  6482. 3:17:02try out claude's tool called claw
  6483. 3:17:04design. So it's literally just a
  6484. 3:17:06different web-based app that is
  6485. 3:17:07basically specifically only designed for
  6486. 3:17:10design. So if you want to check that
  6487. 3:17:11out, I did drop a full course on cloud
  6488. 3:17:13design which I will tag right up here.
  6489. 3:17:14But anyways, now that we have finished
  6490. 3:17:17talking about websites and GitHub, we
  6491. 3:17:19are going to move on to talking about
  6492. 3:17:21trusting the output. This is a really
  6493. 3:17:23important topic and it's pretty nuanced
  6494. 3:17:26because the the trust factor differs
  6495. 3:17:29based on the type of automation that
  6496. 3:17:30you're actually building. So, let me
  6497. 3:17:32explain what I mean by that. So,
  6498. 3:17:33deterministic versus non-deterministic.
  6499. 3:17:35Deterministic means essentially
  6500. 3:17:37predictable input and then we know
  6501. 3:17:39what's going to happen and we know what
  6502. 3:17:40we're going to get out. So, think a
  6503. 3:17:42vending machine. we know that we have,
  6504. 3:17:44you know, A1, E4. We can click these
  6505. 3:17:47buttons and when we click the button, we
  6506. 3:17:48know exactly what's going to happen and
  6507. 3:17:49exactly what we're going to get. Now,
  6508. 3:17:51nondeterministic is basically just the
  6509. 3:17:53exact output. We don't exactly know what
  6510. 3:17:55the trigger is going to look like. We
  6511. 3:17:56don't exactly know what's going to
  6512. 3:17:57happen inside the process, and we don't
  6513. 3:17:59exactly know what we're going to get on
  6514. 3:18:01the other side. We obviously have things
  6515. 3:18:02that we're steering the system towards
  6516. 3:18:04and we're trying to get one type of
  6517. 3:18:06output. But because AI is essentially a
  6518. 3:18:09black box and it's kind of like a slot
  6519. 3:18:11machine, AI automations are more
  6520. 3:18:13non-deterministic and they're designed
  6521. 3:18:15to be. That's good about them. You know,
  6522. 3:18:17they're flexible and that's what unlocks
  6523. 3:18:19so much extra opportunities in this
  6524. 3:18:21world is that now we have intelligence
  6525. 3:18:22inside these automations. But with that
  6526. 3:18:24non-determinism comes a lot of other
  6527. 3:18:26things to think about. Think about a
  6528. 3:18:28quick example of like responding to
  6529. 3:18:29emails or writing cold emails. With the
  6530. 3:18:32deterministic side, what we would do is
  6531. 3:18:34we would have variables. So variables
  6532. 3:18:35would fit into some sort of templated
  6533. 3:18:38email copy and the variables would say,
  6534. 3:18:40okay, the person's name goes here, their
  6535. 3:18:42company name goes there and their, you
  6536. 3:18:44know, MR goes there or something like
  6537. 3:18:46that and it was very static. But now on
  6538. 3:18:48the nondeterministic side, the AI can
  6539. 3:18:50just look at all this input and then
  6540. 3:18:51write a more personalized email. So it's
  6541. 3:18:53not a template anymore. It's more of an
  6542. 3:18:56actual, you know, generative AI. It's
  6543. 3:18:57generated content. Now, from there
  6544. 3:18:59though, I think about this as an AI
  6545. 3:19:02systems pyramid. On the bottom, we have
  6546. 3:19:04chat bots and at the top we have agents.
  6547. 3:19:06So, let me explain kind of what I mean
  6548. 3:19:07by this and why I like to think about it
  6549. 3:19:09like this. So, really the core message
  6550. 3:19:12that I think about and that Enthropic
  6551. 3:19:14talks about and that other, you know,
  6552. 3:19:15tech labs and leaders in the space talk
  6553. 3:19:16about is you want to design the simplest
  6554. 3:19:20solution for the job. Which means if the
  6555. 3:19:22process doesn't need AI, there's no
  6556. 3:19:24reason you should put AI in there
  6557. 3:19:26because as you move up this pyramid,
  6558. 3:19:27which is basically, you know, you're
  6559. 3:19:29moving up in, let me actually change the
  6560. 3:19:31arrow type. You're basically scaling up
  6561. 3:19:33in autonomy as you move up, which also
  6562. 3:19:36means you're scaling up in basically
  6563. 3:19:37like unpredictability. And as you're
  6564. 3:19:40scaling up these two things, you're also
  6565. 3:19:41scaling up a few other things like cost
  6566. 3:19:44and risk, just to name a few. So as you
  6567. 3:19:47move up, you have things to think about
  6568. 3:19:49as well. So, a chatbot, what do I mean
  6569. 3:19:51by this? I think about a chatbot as
  6570. 3:19:53basically something where a human has to
  6571. 3:19:55trigger it. So, we're in full control of
  6572. 3:19:57when we want the chatbot to run. I even
  6573. 3:19:59would think of this as things like your
  6574. 3:20:01claw skills that we're building, right?
  6575. 3:20:02Because typically what's happening is
  6576. 3:20:04you are invoking the skills by yourself,
  6577. 3:20:06which means you're able to sit there,
  6578. 3:20:07watch it, you're still kind of driving,
  6579. 3:20:09you're still in control, you take the
  6580. 3:20:10output, and now you're doing something
  6581. 3:20:12with it. That's not really a high-risk
  6582. 3:20:14environment because it's not like it's
  6583. 3:20:15going to shoot off thousands of requests
  6584. 3:20:17and do a thousand things without you
  6585. 3:20:19asking unless you know that's what the
  6586. 3:20:21skill entails on the inside. But think
  6587. 3:20:23about this more like something where you
  6588. 3:20:25actually trigger it as the human. And
  6589. 3:20:27then what we have are workflows. These
  6590. 3:20:28are deterministic workflows that are
  6591. 3:20:30nothing new. It's basically just
  6592. 3:20:31automation. Maybe like moving data from
  6593. 3:20:34one spreadsheet to a database or
  6594. 3:20:36something like that that takes no AI at
  6595. 3:20:38all, but it's triggered by an event or
  6596. 3:20:40on a schedule. So this thing runs while
  6597. 3:20:43you sleep and you're not really there.
  6598. 3:20:44It's not as much human in the loop. So
  6599. 3:20:46it really starts to scale up here, but
  6600. 3:20:48still not super dangerous because this
  6601. 3:20:49is still like basically 100%
  6602. 3:20:51deterministic. You know the input and
  6603. 3:20:53you know the output. Then you get up to
  6604. 3:20:55AI workflows where basically the order
  6605. 3:20:57of events is still the same. It still
  6606. 3:20:59goes 1 2 3 4 5 and then somewhere in
  6607. 3:21:03that process there's an AI step. So let
  6608. 3:21:05me try to make this a little more
  6609. 3:21:06practical with an example. Let's take
  6610. 3:21:08first of all let's just do the customer
  6611. 3:21:10support example. responding to emails.
  6612. 3:21:12So with a chatbot or something like
  6613. 3:21:14that, what happens is an email comes in
  6614. 3:21:17and then the human would trigger the
  6615. 3:21:20skill. So the email comes in, the human
  6616. 3:21:22triggers the skill, the skill looks up
  6617. 3:21:24the database, it you know generates the
  6618. 3:21:26email and then the human would go off
  6619. 3:21:27and send the email back to the person.
  6620. 3:21:30So that is very like you know we are in
  6621. 3:21:31control the whole way. Now what happens
  6622. 3:21:33with a workflow? Okay, so the email
  6623. 3:21:35would come in that would maybe trigger a
  6624. 3:21:38like data lookup tool and that could be
  6625. 3:21:39a lookup based on the email account and
  6626. 3:21:42then maybe that could just trigger a
  6627. 3:21:43notification for a human to be able to
  6628. 3:21:45actually go look at the ticket and
  6629. 3:21:46process the email. So that is like a
  6630. 3:21:49workflow because it's basically just
  6631. 3:21:50moving data from one side to the other
  6632. 3:21:52from left to right and there's no AI.
  6633. 3:21:54Now let's take a look at what an AI
  6634. 3:21:56workflow here could look like. Let's say
  6635. 3:21:57an email comes in. We then do a data
  6636. 3:21:59lookup so we can collect more
  6637. 3:22:00information about the user. But then
  6638. 3:22:02what happens is instead of notifying a
  6639. 3:22:04human, what we want to do here with the
  6640. 3:22:05AI is maybe we generate an email. And
  6641. 3:22:07then this is where the non-determinism
  6642. 3:22:09kicks in because we don't know what the
  6643. 3:22:10email is going to look like. But over
  6644. 3:22:11here, this is still like one 1 2 3. It's
  6645. 3:22:15still like a workflow in nature because
  6646. 3:22:16we know the steps that are going to
  6647. 3:22:18happen and in what order. But then when
  6648. 3:22:20we get to an agent, it's much different
  6649. 3:22:22because what happens with an agent is we
  6650. 3:22:24don't know what's going to happen. We
  6651. 3:22:25would basically have an AI agent that
  6652. 3:22:27has a bunch of different tools. And
  6653. 3:22:28obviously I'm just making up what these
  6654. 3:22:30tools would be, but we don't know if the
  6655. 3:22:31email is going to come in and then the
  6656. 3:22:33agent will go, "Okay, I'm going to use
  6657. 3:22:34none of these tools." Or maybe I'm going
  6658. 3:22:35to use the data tool twice and then the
  6659. 3:22:37ticket tool. Or maybe I'm going to use
  6660. 3:22:38the ticket tool, then the data tool,
  6661. 3:22:40then the ticket tool again. Because that
  6662. 3:22:41loop of reasoning and decision is all
  6663. 3:22:44inside of this AI step right here. And
  6664. 3:22:46that is where we lose the element of a
  6665. 3:22:48workflow. We don't know the steps, but
  6666. 3:22:50we do know that this is like the fully,
  6667. 3:22:52[snorts] you know, most autonomous
  6668. 3:22:53situation that we could possibly have.
  6669. 3:22:55And we know that on the end result, what
  6670. 3:22:57we want is for the agent to respond to
  6671. 3:23:00the user with an accurate email. But
  6672. 3:23:02that's why we have to be able to build
  6673. 3:23:03the right systems to make sure that we
  6674. 3:23:04actually trust that output. So hopefully
  6675. 3:23:06that paints a little bit of a picture
  6676. 3:23:07about the different ways you can
  6677. 3:23:08orchestrate these systems and what
  6678. 3:23:10you're kind of sacrificing or what you
  6679. 3:23:12have to be aware of as you move up this
  6680. 3:23:14pyramid of the AI systems. And all of
  6681. 3:23:17this stuff will come into play later
  6682. 3:23:18when we start to talk more about like
  6683. 3:23:20routines and deploying automations and
  6684. 3:23:22things like that. Just keep in mind you
  6685. 3:23:23want to build the simplest solution
  6686. 3:23:25possible for what you're trying to do.
  6687. 3:23:27And there's one more thing I wanted to
  6688. 3:23:29talk about here when it comes to
  6689. 3:23:31actually trusting the outputs. And
  6690. 3:23:33that's what a permission layer looks
  6691. 3:23:34like because we've got prompts and then
  6692. 3:23:36we've got like an actual permission
  6693. 3:23:38layer like a tool level permission
  6694. 3:23:39layer. So I should maybe move this up
  6695. 3:23:41here and then just say here like tool
  6696. 3:23:43layer. So anyways, let's say this is a
  6697. 3:23:46visualization of like an agent we're
  6698. 3:23:48building and we've prompted it to do
  6699. 3:23:49things like never send an email only
  6700. 3:23:51draft or never delete our database or
  6701. 3:23:54never delete emails. Well, the prompt
  6702. 3:23:56layer is one kind of guardrail, but it's
  6703. 3:23:59not solid enough. The agent could follow
  6704. 3:24:01instructions 100 times, but on the 101st
  6705. 3:24:03time, maybe it forgets to or maybe it
  6706. 3:24:05just gets a little bit clouded or
  6707. 3:24:06confused and it ignores that prompt. So
  6708. 3:24:08the point I'm trying to make here is
  6709. 3:24:10let's say you said, "Hey, don't ever
  6710. 3:24:12send an email." A lot of times the email
  6711. 3:24:14boundary will stay within the prompt
  6712. 3:24:15layer, but every once in a while it'll
  6713. 3:24:17sneak out of the prompt layer because it
  6714. 3:24:20has a tool to do so. So if you take away
  6715. 3:24:22the tool to send an email, then there's
  6716. 3:24:24no way that the agent could actually get
  6717. 3:24:26through the tool layer to hit that email
  6718. 3:24:28tool. So that's the idea. If you want
  6719. 3:24:29the agent to draft emails but not send,
  6720. 3:24:31then don't put a send email tool inside
  6721. 3:24:34of its tool layer. Keep that on the
  6722. 3:24:35outside. But then it's perfectly fine to
  6723. 3:24:37have the draft email tool right here and
  6724. 3:24:39say you can draft emails, but just don't
  6725. 3:24:41ever send them. Similarly with delete
  6726. 3:24:43functions, right? Like why would you
  6727. 3:24:45ever allow this to be inside of the tool
  6728. 3:24:47permission layer, even if your prompt
  6729. 3:24:49says never ever ever ever delete
  6730. 3:24:52anything, then just move the delete tool
  6731. 3:24:54out of there so that it physically
  6732. 3:24:56couldn't, even if it tried to, if it
  6733. 3:24:57wanted to go rogue, I don't know,
  6734. 3:24:59whatever the situation is. Don't give it
  6735. 3:25:01tools if it shouldn't be able to use
  6736. 3:25:03those tools. And I know that sounds
  6737. 3:25:04obvious, but it happens way more often
  6738. 3:25:06than you'd think. You've seen maybe
  6739. 3:25:08stories on X or LinkedIn where massive
  6740. 3:25:11companies had databases deleted because
  6741. 3:25:12an agent went rogue or we actually
  6742. 3:25:14internally had a situation where an
  6743. 3:25:16agent sent out like 100,000 emails or
  6744. 3:25:18150,000 emails to our list with a
  6745. 3:25:20discount code and we didn't want it to
  6746. 3:25:21do that. But what we found is that
  6747. 3:25:23because it had access to the tool even
  6748. 3:25:25though it was never told to send that
  6749. 3:25:26email, it just did. So you have to
  6750. 3:25:29assume that if an agent can read or
  6751. 3:25:31touch or use something, assume that it
  6752. 3:25:33will assume worst case scenario. Let me
  6753. 3:25:35show you guys another quick example that
  6754. 3:25:36I think will really resonate because
  6755. 3:25:38when I first started building AI agents
  6756. 3:25:40for people or AI automations, this was
  6757. 3:25:42like the most common request was like an
  6758. 3:25:44inbox triaging responding agent. So like
  6759. 3:25:46an an email agent really. So a lot of
  6760. 3:25:49people wanted one that looked like this
  6761. 3:25:51and I built a lot that looked like this.
  6762. 3:25:53We would basically have the trigger
  6763. 3:25:55being a Slack message. The agent would
  6764. 3:25:57have, you know, a little bit of a memory
  6765. 3:25:59as well as a system prompt. And the
  6766. 3:26:01system prompt would be massive. It would
  6767. 3:26:02be a bunch of rules about what do you do
  6768. 3:26:05with the emails, how do you label them,
  6769. 3:26:06how do you respond, how do you do this,
  6770. 3:26:08what is important, what's not important,
  6771. 3:26:10and then after you respond to the to the
  6772. 3:26:12actual email, you would send a message
  6773. 3:26:14to the user and say, "Hey, here's what I
  6774. 3:26:15did. There's the draft or I sent this or
  6775. 3:26:17whatever." So, you'd have a agent would
  6776. 3:26:19have a bunch of different tools, a bunch
  6777. 3:26:20of email tools like draft an email,
  6778. 3:26:22label, mark them as read, mark them as
  6779. 3:26:24unread, um, pull them back, like
  6780. 3:26:26actually get them and be able to read
  6781. 3:26:27them and search through old ones. And
  6782. 3:26:29there was probably more. But the point
  6783. 3:26:30I'm trying to make here is I built a lot
  6784. 3:26:32of agents like this and they weren't
  6785. 3:26:34super reliable because of the fact that
  6786. 3:26:36there was they were agents and there was
  6787. 3:26:38so much reasoning. There were so many
  6788. 3:26:40decisions. There were so many logic
  6789. 3:26:42rules baked into the prompt. And as we
  6790. 3:26:45know, a prompt isn't exactly a hard
  6791. 3:26:47layer. Prompting is almost just more
  6792. 3:26:48like a suggestion. So I then started to
  6793. 3:26:52design all of my inbox agents like this.
  6794. 3:26:55Now, this looks a little bit scarier,
  6795. 3:26:57but it's so much simpler because all of
  6796. 3:26:59this is a workflow. So, I moved this
  6797. 3:27:01down from an AI agent at the top of the
  6798. 3:27:04pyramid to AI workflows where now it is
  6799. 3:27:07so so simple because what happens is the
  6800. 3:27:09trigger would come in and then we're
  6801. 3:27:10just using routing rules. Like for
  6802. 3:27:12example, right here, if the contact is
  6803. 3:27:15in um Google contacts, if yes, then we
  6804. 3:27:18will do nothing. And if no, then we will
  6805. 3:27:20extract the information using AI. So
  6806. 3:27:22we'll pull in their name, their email,
  6807. 3:27:23phone number, information about them,
  6808. 3:27:25and we have to use AI for that. And then
  6809. 3:27:27we would create a new record in the
  6810. 3:27:28Google contacts. Now, every single one
  6811. 3:27:31of these nodes is just one step. And the
  6812. 3:27:33workflow is always going to follow the
  6813. 3:27:35chain. So after we would basically
  6814. 3:27:37figure out are they a contact or not.
  6815. 3:27:39Then we would look to see how we respond
  6816. 3:27:41to the email. We had three routing rules
  6817. 3:27:44here. If the email [email protected],
  6818. 3:27:47then we would label it over here as
  6819. 3:27:49internal. If the email domain was
  6820. 3:27:52[email protected],
  6821. 3:27:54then we would label as bill or sorry, we
  6822. 3:27:57would label it as billing. We would then
  6823. 3:27:59summarize the email and then we'd send a
  6824. 3:28:00summary to the right person in Slack
  6825. 3:28:02that hey, we just got this new billing
  6826. 3:28:04inquiry. And if it was a VIP email, then
  6827. 3:28:08we would basically just label it as VIP.
  6828. 3:28:10And so this is a very very simple
  6829. 3:28:12example of different routing rules. What
  6830. 3:28:14what you'll notice is that because the
  6831. 3:28:17decisions are basically being made by
  6832. 3:28:19legitimately objective facts rather than
  6833. 3:28:23an AI prompt, this type of system had
  6834. 3:28:27basically no failures. The only failures
  6835. 3:28:29would be if it extracted information
  6836. 3:28:31wrong or if it summarized an email
  6837. 3:28:33weird, right? Because all of these blue
  6838. 3:28:36steps are objective. They were simple
  6839. 3:28:39logic. They were easy. The green where
  6840. 3:28:42you have decisions and where you have
  6841. 3:28:43generative AI is where you get the
  6842. 3:28:45variability. They could perform the
  6843. 3:28:47exact same these two systems. Like
  6844. 3:28:48essentially they're doing the same thing
  6845. 3:28:49in theory. This one on the right was so
  6846. 3:28:52much more consistent. It was also
  6847. 3:28:55cheaper and it was just faster because
  6848. 3:28:57over here you have so many decisions and
  6849. 3:28:59you have different things going on and
  6850. 3:29:00you get the visibility is worse. And
  6851. 3:29:02it's harder to improve this because it's
  6852. 3:29:03harder to drill down where did something
  6853. 3:29:05go wrong. Whereas over here if something
  6854. 3:29:06goes wrong we just follow the trail and
  6855. 3:29:08we see exactly what happened. So
  6856. 3:29:11hopefully that makes sense. So here's a
  6857. 3:29:12message that I actually sent to my team
  6858. 3:29:15um about a month ago or so. Let me just
  6859. 3:29:16read this out and then I'll break it
  6860. 3:29:18down real quick. So the above weekly
  6861. 3:29:20stats update was not meant to go here.
  6862. 3:29:22This was like a public channel in our
  6863. 3:29:23ClickUp. That was an automation of mine
  6864. 3:29:25that I completely forgot existed. Back
  6865. 3:29:27at the end of March, I set up an
  6866. 3:29:28automation to keep the stats on my
  6867. 3:29:30website current. So every week it pulls
  6868. 3:29:31my YouTube subscriber count and school
  6869. 3:29:33member numbers and it updates the
  6870. 3:29:34website. And I built this on a separate
  6871. 3:29:36account as a cloud routine. And it was
  6872. 3:29:38mostly because I wanted to test it and
  6873. 3:29:40then I made a YouTube video about it,
  6874. 3:29:41but I completely forgot that that
  6875. 3:29:42automation existed. It's been running
  6876. 3:29:44quietly every week for 2 months and I
  6877. 3:29:46completely forgot it existed, right? It
  6878. 3:29:48works, which was the whole point of the
  6879. 3:29:49test, but I never really vetted it. If
  6880. 3:29:51we think back to my teaching a kid to
  6881. 3:29:52ride a bike analogy, which I'll explain
  6882. 3:29:54in just a sec. I basically put the kid
  6883. 3:29:56on a bike with a helmet and training
  6884. 3:29:57wheels and then I just walked back
  6885. 3:29:58inside and took a nap. I told the
  6886. 3:30:00automation to send me a personal DM each
  6887. 3:30:02week, but prompting is not a permission
  6888. 3:30:04layer. And the first five weeks it was
  6889. 3:30:06sending me a DM in ClickUp, but then it
  6890. 3:30:08started to go rogue and it started to
  6891. 3:30:10send other people DMs and it started to
  6892. 3:30:12drop these weekly stats updates in like
  6893. 3:30:14general public channels rather than a
  6894. 3:30:16private DM. Once again, just because I
  6895. 3:30:17said, "Hey, only send it here," doesn't
  6896. 3:30:19mean it's going to because it has access
  6897. 3:30:21to every single channel in ClickUp.
  6898. 3:30:22Sometimes it might make a mistake. So
  6899. 3:30:24anyways, no harm done. Nothing sensitive
  6900. 3:30:26happened. But it made me realize how bad
  6901. 3:30:28that could have been. the fact that I
  6902. 3:30:30completely forgot that an automation
  6903. 3:30:31existed and the fact that I didn't have
  6904. 3:30:33hard tool layer walls inside of this
  6905. 3:30:36automation and was just relying on a
  6906. 3:30:37prompt that could get bad really quick,
  6907. 3:30:40especially because it was silently doing
  6908. 3:30:41things that I forgot about. So anyways,
  6909. 3:30:43hopefully there's some lessons there
  6910. 3:30:44that you can take out of this. But what
  6911. 3:30:46is the bike analogy? So basically the
  6912. 3:30:47bike analogy is the idea that when you
  6913. 3:30:50are building an automation, it's very
  6914. 3:30:52much like you're teaching a kid to ride
  6915. 3:30:53a bike. You can't expect to just put a
  6916. 3:30:55kid on a bike and that they're going to
  6917. 3:30:56be able to go 25 miles an hour down the
  6918. 3:30:59road without falling ever. What you have
  6919. 3:31:01to assume is that they're going to fall.
  6920. 3:31:03So, when you put them on the bike,
  6921. 3:31:04they've got training wheels, they've got
  6922. 3:31:05helmets, they've got elbow pads and knee
  6923. 3:31:07pads, and you're still going to hold the
  6924. 3:31:09bike. You're going to push them. You're
  6925. 3:31:10going to make sure that they are feeling
  6926. 3:31:11comfortable. You're going to see, okay,
  6927. 3:31:13you're leaning too much to the left,
  6928. 3:31:14maybe shift more of your body weight to
  6929. 3:31:15the middle. You're going to help them
  6930. 3:31:16adjust. And slowly, you get to a place
  6931. 3:31:18where you feel more confident. And if we
  6932. 3:31:20relate this back to skills, you run the
  6933. 3:31:22skill, you watch it, you very closely
  6934. 3:31:24watch it, you give feedback, you run the
  6935. 3:31:25skill again, you watch it, and you do
  6936. 3:31:27that and slowly you're able to remove
  6937. 3:31:28yourself more and more from that
  6938. 3:31:30process. But what happens is even when
  6939. 3:31:32the skill is like pretty battle tested,
  6940. 3:31:34do you want to still just like say,
  6941. 3:31:35"Hey, go off, kid. Take off your helmet.
  6942. 3:31:38Go bike down the busy road and I'm going
  6943. 3:31:40to go inside and take a nap." You're
  6944. 3:31:41probably still going to like watch them
  6945. 3:31:43a little bit. And you're going to wait
  6946. 3:31:44till you feel comfortable to the point
  6947. 3:31:46where there's basically nothing that
  6948. 3:31:47could go wrong in this automation
  6949. 3:31:49because you did all of the things that
  6950. 3:31:50we talked about because you have the
  6951. 3:31:52right system in place. That's the right
  6952. 3:31:54amount of autonomy because you
  6953. 3:31:55understand the difference between
  6954. 3:31:56deterministic and nondeterministic
  6955. 3:31:58because you set up the right prompting
  6956. 3:31:59layers and tool layering so that you
  6957. 3:32:01actually feel comfortable with the
  6958. 3:32:02permissions that this thing has access
  6959. 3:32:04to. And so like the majority of the work
  6960. 3:32:06that we've been talking about in this
  6961. 3:32:07course so far pretty much all lives down
  6962. 3:32:09here. Like everything that we've been
  6963. 3:32:10building are systems for a second brain
  6964. 3:32:13and skills and capabilities so that we
  6965. 3:32:16can have our agents help us do things
  6966. 3:32:18much quicker and those are pretty much
  6967. 3:32:19all things that are being triggered by
  6968. 3:32:20us. And later when we start to talk a
  6969. 3:32:22little bit more about deploying things
  6970. 3:32:23and using cloud routines and stuff like
  6971. 3:32:25that, that's where you really need to
  6972. 3:32:27start thinking about these other
  6973. 3:32:28elements. You know, like if you have a
  6974. 3:32:29cloud skill that does something like
  6975. 3:32:30let's just say um when a new lead comes
  6976. 3:32:33in, you research the lead and then you
  6977. 3:32:35shoot a message to the team in ClickUp.
  6978. 3:32:37that probably doesn't need to be a human
  6979. 3:32:39triggered thing. That's probably where
  6980. 3:32:41an AI workflow actually comes into play
  6981. 3:32:43a little bit better and you deploy that
  6982. 3:32:44after you've evaluated it and you feel
  6983. 3:32:46comfortable in it. So that is what I
  6984. 3:32:48wanted to talk about here when it comes
  6985. 3:32:49to trusting the outputs and obviously
  6986. 3:32:52there's a lot to drill into once you
  6987. 3:32:54really start to get into the weeds of
  6988. 3:32:55building out like pretty big automations
  6989. 3:32:57then eval comes into play. Evals are
  6990. 3:33:00basically the idea of having a golden
  6991. 3:33:02data set. So maybe 100 or a few hundred
  6992. 3:33:04examples of input and expected output
  6993. 3:33:07and then running those inputs on your
  6994. 3:33:09system and seeing how many times did it
  6995. 3:33:11pass, how many times did it fail, when
  6996. 3:33:13it failed, why did it fail, and
  6997. 3:33:14iterating on that automation, changing
  6998. 3:33:16the prompt, changing the tools, watching
  6999. 3:33:18for edge cases, and evaluating your
  7000. 3:33:20systems or QA, quality assuring your
  7001. 3:33:22systems before you ever push them into
  7002. 3:33:24production or before you ever roll out a
  7003. 3:33:26different model or a different prompt or
  7004. 3:33:28whatever it is. Evals are very
  7005. 3:33:29important. So hopefully now you're
  7006. 3:33:31starting to understand some of these
  7007. 3:33:32things that go into how you actually
  7008. 3:33:34trust the output of these AI systems.
  7009. 3:33:37And what you guys are probably starting
  7010. 3:33:38to pick up on, which I think is
  7011. 3:33:39important for me to call out here, is
  7012. 3:33:41that so much of this stuff is
  7013. 3:33:43non-technical. So much of this stuff is
  7014. 3:33:45mindset and theoretical like oriented.
  7015. 3:33:48And that is really really important to
  7016. 3:33:50realize because as you start to doubt
  7017. 3:33:52yourself or doubt your automations or
  7018. 3:33:54have any sorts of doubt or discomfort,
  7019. 3:33:57just use your words to figure it out.
  7020. 3:34:00When I first started building
  7021. 3:34:01automations in Cloud Code and I wanted
  7022. 3:34:02to test them to see if they would
  7023. 3:34:03actually work and see if they'd survive
  7024. 3:34:05edge cases, I would literally say, "Hey,
  7025. 3:34:07so you know how we just pushed this
  7026. 3:34:08automation to Modal, which is something
  7027. 3:34:10I'll talk about later, but we basically
  7028. 3:34:12built an automation and we put it on a
  7029. 3:34:13deployment site called Modal." I said,
  7030. 3:34:16"Okay, so now that that's live, I'm a
  7031. 3:34:18little bit confused and concerned about
  7032. 3:34:20what could go wrong. So, help me figure
  7033. 3:34:21out what are all the edge cases that we
  7034. 3:34:23might want to think about here and how
  7035. 3:34:25do we make sure that if something goes
  7036. 3:34:26wrong, it's not like a bad failure. It's
  7037. 3:34:29a safe failure." And so, this thing
  7038. 3:34:31basically helped me look at all of the
  7039. 3:34:33scenarios and then it designed tests for
  7040. 3:34:35me. So, me and Claude with natural
  7041. 3:34:37language went back and forth and we
  7042. 3:34:38tested all these different scenarios. We
  7043. 3:34:40tested invoices that came in weird. We
  7044. 3:34:42tested what would happen if the API was
  7045. 3:34:43down. We tested a bunch of these things
  7046. 3:34:45and then because of those tests I said,
  7047. 3:34:47"Okay, cool. Let's bake in all those
  7048. 3:34:49guardrails so that if anything errors, I
  7049. 3:34:51get a notification or the automation
  7050. 3:34:53gets shut down or we always are doing
  7051. 3:34:55things in a safe fashion so that the
  7052. 3:34:56database won't get deleted so that
  7053. 3:34:58records won't get merged so that nothing
  7054. 3:35:00ever goes out externally so that we can
  7055. 3:35:02fail safely and that we have logs of
  7056. 3:35:04what's actually going on in our systems.
  7057. 3:35:07Okay, so let's continue talking about
  7058. 3:35:09how do we keep building out our AIOS
  7059. 3:35:11here and giving it more memories, more
  7060. 3:35:12subject matter expertise, more context
  7061. 3:35:15about what we do. And that is kind of
  7062. 3:35:17the element of building out our second
  7063. 3:35:18brain. Just a quick warning before this
  7064. 3:35:20next video starts playing. Some of the
  7065. 3:35:22clips that I'm inserting into this
  7066. 3:35:23course were recorded a few months back,
  7067. 3:35:25meaning they might be shown in VS Code
  7068. 3:35:28extension or the terminal instead of the
  7069. 3:35:30cloud desktop app that we've been using
  7070. 3:35:32so far. I just wanted to give you guys a
  7071. 3:35:33warning. Functionally, exact same. So,
  7072. 3:35:36don't worry about it too much. It just
  7073. 3:35:37might look a little bit differently, but
  7074. 3:35:39all you have to do is listen to what I'm
  7075. 3:35:40saying and follow along with what I'm
  7076. 3:35:41actually doing and you will be just
  7077. 3:35:42fine. All of this stuff is still
  7078. 3:35:44relevant. Otherwise, I wouldn't be
  7079. 3:35:45putting it in this course. So, hopefully
  7080. 3:35:47that makes sense. See you guys in the
  7081. 3:35:49video. What you're looking at right here
  7082. 3:35:50is 36 of my most recent YouTube videos
  7083. 3:35:53organized into an actual knowledge
  7084. 3:35:55system that makes sense. And in today's
  7085. 3:35:57video, I'm going to show you how you can
  7086. 3:35:58set this up in 5 minutes. It's super
  7087. 3:35:59super easy. You can see here how we have
  7088. 3:36:01these different nodes and different
  7089. 3:36:02patterns emerging. And as we zoom in, we
  7090. 3:36:05can see what each of these little dots
  7091. 3:36:07represents. So, for example, this is one
  7092. 3:36:09of my videos, $10,000 aentic workflows.
  7093. 3:36:11We can see it's got some tags. It's got
  7094. 3:36:13the video link. It's got the raw file.
  7095. 3:36:15And it gives an explanation of what this
  7096. 3:36:17video is about and what the takeaways
  7097. 3:36:19are. And the coolest part is I can
  7098. 3:36:20follow the back links to get where I
  7099. 3:36:22want. There's a backlink for the WAT
  7100. 3:36:24framework. There's a backlink for Claude
  7101. 3:36:26Code. There's a backlink for all these
  7102. 3:36:28different tools I mentioned like
  7103. 3:36:29Perplexity, Visual Studio Code, Nano
  7104. 3:36:31Banana, Nen. It also has techniques like
  7105. 3:36:33the WT framework or bypass permissions
  7106. 3:36:35mode or human review checkpoint. So as
  7107. 3:36:38this continues to fill up, we can start
  7108. 3:36:39to see patterns and relationships
  7109. 3:36:41between every tool or every skill or
  7110. 3:36:43every MCP server that I might have
  7111. 3:36:45talked about in a YouTube video and I
  7112. 3:36:46can just query it in a really efficient
  7113. 3:36:48way now that we have this actual system
  7114. 3:36:50set up. And the crazy part is I said,
  7115. 3:36:52"Hey Cloud Code, go grab the transcripts
  7116. 3:36:54from my recent videos and organize
  7117. 3:36:56everything." I literally didn't have to
  7118. 3:36:58do any manual relationship building
  7119. 3:37:00here. It just figured it all out on its
  7120. 3:37:02own. And then right here I have a much
  7121. 3:37:04smaller one, but this is more of my
  7122. 3:37:05personal brain. So this is stuff going
  7123. 3:37:06on in my personal life. This is stuff
  7124. 3:37:08going on with, you know, Upai or my
  7125. 3:37:10YouTube channel or my different
  7126. 3:37:11businesses and my employees and our
  7127. 3:37:13quarter 2 initiatives and things like
  7128. 3:37:15that. This is more of my own second
  7129. 3:37:16brain. So I've got one second brain here
  7130. 3:37:18and then I've got one basically YouTube
  7131. 3:37:20knowledge system. And I could combine
  7132. 3:37:22these or I could keep them separate and
  7133. 3:37:24I can just keep building more knowledge
  7134. 3:37:25systems and plug them all into other AI
  7135. 3:37:27agents that I need to have this context.
  7136. 3:37:29It's just super cool. So, Andre Carpathy
  7137. 3:37:32just released this little post about LLM
  7138. 3:37:33knowledge bases and explaining what he's
  7139. 3:37:35been doing with them and in just a
  7140. 3:37:36matter of few days, it got a ton of
  7141. 3:37:38traction on X. So, let's do a quick
  7142. 3:37:40breakdown and then I'm going to show you
  7143. 3:37:41guys how you can get this set up in
  7144. 3:37:42basically 5 minutes. It's way more
  7145. 3:37:44simple than you may think. Something
  7146. 3:37:45I've been finding very useful recently
  7147. 3:37:47is using LLM to build personal knowledge
  7148. 3:37:49bases for various topics of research
  7149. 3:37:51interest. So, there's different stages.
  7150. 3:37:53The first part is data ingest. He puts
  7151. 3:37:55in basically source documents. So he
  7152. 3:37:57basically takes a PDF and puts it into
  7153. 3:37:59cloud code and then cloud code does the
  7154. 3:38:00rest. He uses Obsidian as the IDE. So
  7155. 3:38:03this is nothing really too gamechanging.
  7156. 3:38:04Obsidian just lets you visually see your
  7157. 3:38:06markdown files. But for example, this
  7158. 3:38:08Obsidian project right here with all
  7159. 3:38:10this YouTube transcript stuff that
  7160. 3:38:11actually lives right here. This is the
  7161. 3:38:13exact same thing. Here are the raw
  7162. 3:38:14YouTube transcripts. And here's that
  7163. 3:38:16wiki that I showed you guys with the
  7164. 3:38:17different um folders for what Cloud Code
  7165. 3:38:20did with my YouTube transcripts. And
  7166. 3:38:22then there's a Q&A phase where you
  7167. 3:38:24basically can ask questions about
  7168. 3:38:26YouTube or about the research and it can
  7169. 3:38:28look through the entire wiki in a much
  7170. 3:38:29more efficient way and it can give you
  7171. 3:38:31answers that are super intelligent. He
  7172. 3:38:33said here, I thought that I had to reach
  7173. 3:38:35for fancy rag, but the LLM has been
  7174. 3:38:37pretty good about automaintaining index
  7175. 3:38:38files and brief summaries of all
  7176. 3:38:40documents and it reads all the important
  7177. 3:38:42related data fairly easily at this small
  7178. 3:38:44scale. So right now he's doing about 100
  7179. 3:38:46articles and about half a million words.
  7180. 3:38:48So there's a few other things that we'll
  7181. 3:38:49cover later, but the TLDDR is you give
  7182. 3:38:52raw data to cloud code. It compares it,
  7183. 3:38:54it organizes it, and then it puts it
  7184. 3:38:55into the right spots with relationships,
  7185. 3:38:57and then you can query it about
  7186. 3:38:59anything. And it can help you identify
  7187. 3:39:00where there's gaps in that node or in
  7188. 3:39:02that, you know, relationship, and it can
  7189. 3:39:04go do research and fill in the gaps. All
  7190. 3:39:06right. So why is this a big deal?
  7191. 3:39:07Because normal AI chats are ephemeral,
  7192. 3:39:09meaning the knowledge disappears after
  7193. 3:39:11the conversation. But this method, using
  7194. 3:39:13Carpathy's LLM wiki, makes knowledge
  7195. 3:39:16compound like interest in a bank. People
  7196. 3:39:17on X are calling it a game changer
  7197. 3:39:19because it finally makes AI feel like a
  7198. 3:39:20tireless colleague who actually
  7199. 3:39:22remembers everything and it stays
  7200. 3:39:23organized. It's also super simple. It
  7201. 3:39:25will take you five minutes to set up.
  7202. 3:39:27I'll show you guys. You don't need a
  7203. 3:39:28fancy vector database embeddings or
  7204. 3:39:30complex infrastructure. It's literally
  7205. 3:39:32just a folder with markdown files.
  7206. 3:39:34That's it. You literally just have a
  7207. 3:39:35vault up top. So, in this example, it's
  7208. 3:39:37called my wiki. You've got a raw folder
  7209. 3:39:39where you put all of the stuff. And then
  7210. 3:39:41you've got a wiki folder, which is what
  7211. 3:39:42the LLM takes from your raw and puts it
  7212. 3:39:45into the wiki. So in here you have all
  7213. 3:39:46the wiki pages which it will create but
  7214. 3:39:48then you also have an index and you have
  7215. 3:39:50a log. So for example in my YouTube
  7216. 3:39:52transcripts vault here is the index. You
  7217. 3:39:54can see that I have all these different
  7218. 3:39:55tools which I could obviously click on
  7219. 3:39:56and it would take me right to that page
  7220. 3:39:58or after that I have all the different
  7221. 3:40:00techniques agent teams sub agents
  7222. 3:40:02permission modes the WAT framework and
  7223. 3:40:05then we've got different concepts MCP
  7224. 3:40:07servers rag vibe coding we've got all
  7225. 3:40:09these different sources which are you
  7226. 3:40:10know the YouTube videos and then when I
  7227. 3:40:12have people or when I have comparisons
  7228. 3:40:14they will be put in here in the index
  7229. 3:40:15and then we also have a log which is the
  7230. 3:40:17operation history so in this case in the
  7231. 3:40:19YouTube project the log isn't huge cuz I
  7232. 3:40:21only ran one huge batch of the initial
  7233. 3:40:2336 YouTube videos, but now every time I
  7234. 3:40:25have one, I say, "Hey, can you go ahead
  7235. 3:40:27and ingest the new YouTube video into
  7236. 3:40:30the wiki and then we'll see every single
  7237. 3:40:32time we update this." And then, of
  7238. 3:40:33course, you need your claw.md to explain
  7239. 3:40:35how the project works and how to search
  7240. 3:40:37through things and how to, you know,
  7241. 3:40:39update things. It's also a big deal from
  7242. 3:40:41a cost perspective, token efficiency,
  7243. 3:40:42and long-term value. One ex user turned
  7244. 3:40:45383 scattered files and over 100 meeting
  7245. 3:40:48transcripts into a compact wiki and
  7246. 3:40:50dropped token usage by 95% when querying
  7247. 3:40:52with Claude. And obviously token
  7248. 3:40:54management and efficiency is a huge
  7249. 3:40:56conversation right now and will always
  7250. 3:40:57be. The other thing that's really cool
  7251. 3:40:59about this is there's not really like a
  7252. 3:41:01GitHub repo you go copy or there's not a
  7253. 3:41:03complicated setup. You literally just
  7254. 3:41:04say hey cloud code read this idea from
  7255. 3:41:06Andre Karpathy and implement it. And
  7256. 3:41:08people on X are now talking about like
  7257. 3:41:10this is how 2026 AI agentic software and
  7258. 3:41:13products will be made. You just give it
  7259. 3:41:15a highle idea and it goes and builds it
  7260. 3:41:17out. And Karpathy even said hey you know
  7261. 3:41:19I left this prompt vague so that you
  7262. 3:41:21guys can customize it and I'll show you
  7263. 3:41:22the ways in my two different vaults
  7264. 3:41:24right now that it changed things a
  7265. 3:41:25little bit based on the context and
  7266. 3:41:27understanding of what the project is
  7267. 3:41:28actually for. Okay. So this was the
  7268. 3:41:30original tweet I just showed you guys
  7269. 3:41:31and then he followed up and said, "Hey,
  7270. 3:41:32this one went viral. So here is the idea
  7271. 3:41:34in a gist format." So if you open this
  7272. 3:41:36up, this is basically just another
  7273. 3:41:37explanation of the core idea of how this
  7274. 3:41:39works and why the architecture indexing
  7275. 3:41:42all this kind of stuff. And by the way,
  7276. 3:41:44this is the part where he says, "Hey,
  7277. 3:41:45this is left vague so that you can hack
  7278. 3:41:46it and customize it to your own
  7279. 3:41:48project." So we're going to come right
  7280. 3:41:50back to this in a sec, but the first
  7281. 3:41:51prerec that we're going to do, it's not
  7282. 3:41:53necessary, but I like to have a nice
  7283. 3:41:55little front end to see the
  7284. 3:41:56relationships, is we're going to go to
  7285. 3:41:58Obsidian and download it. So, if you
  7286. 3:42:00just go to obsidian.mmd, you can see
  7287. 3:42:02this is the completely free tool and
  7288. 3:42:03you're going to go ahead and download
  7289. 3:42:05it. So, just for your operating system,
  7290. 3:42:07download this and then open up the
  7291. 3:42:09wizard and open up the app. So, when you
  7292. 3:42:11open up the app, it'll look like this.
  7293. 3:42:13And what we're going to do here is we're
  7294. 3:42:14going to create a new vault. So, down
  7295. 3:42:15here, you can see I have Herk Brain and
  7296. 3:42:17I have YouTube transcripts. I'll just
  7297. 3:42:18make it a little bigger. I'm going to go
  7298. 3:42:20to manage vaults. I'm going to create a
  7299. 3:42:22new one. And now, we just have to give
  7300. 3:42:24this a name. So, I'm just going to call
  7301. 3:42:25this one demo vault. and you're going to
  7302. 3:42:27choose a location where you want to put
  7303. 3:42:29this. So, I'm just throwing this on my
  7304. 3:42:30desktop and I'm going to go ahead and
  7305. 3:42:32create this vault. Then, what you're
  7306. 3:42:34going to do is go to wherever you like
  7307. 3:42:35to run cloud code. So, in this case, I'm
  7308. 3:42:37doing it in VS Code. And I open up that
  7309. 3:42:39folder. So, demo vault. We get an
  7310. 3:42:41Obsidian and then we get a welcome.md.
  7311. 3:42:44So, I'm going to open up Claude. So, I'm
  7312. 3:42:46going to do it in my terminal. I'm going
  7313. 3:42:47to run Claude. And lately, I've been
  7314. 3:42:48liking using my terminal better for
  7315. 3:42:50Claude. I like to do it inside of VS
  7316. 3:42:52Code, but the reason is just because I
  7317. 3:42:53like to see the status line and I have,
  7318. 3:42:55you know, a little bit more
  7319. 3:42:56functionality. So, anyways, now that we
  7320. 3:42:58have Cloud Code open, here's what we're
  7321. 3:43:00going to do. We're going to go back over
  7322. 3:43:01to the LLM wiki thing that we got from
  7323. 3:43:03Andre Carpathy. We're going to copy all
  7324. 3:43:05of this and we're going to go back into
  7325. 3:43:08Cloud Code and then just paste it in
  7326. 3:43:10there. So, that is the prompt from
  7327. 3:43:13Carpathy that's going to build out
  7328. 3:43:14everything we need. And then before we
  7329. 3:43:16send that off, we're dropping this in
  7330. 3:43:17which you guys can screenshot and then
  7331. 3:43:19just throw into yours. But I'm saying
  7332. 3:43:21you are now my LLM wiki agent. Implement
  7333. 3:43:23this exact idea file as my complete
  7334. 3:43:25second brain. Guide me step by step.
  7335. 3:43:27Create the cloudmd schema. Blah blah
  7336. 3:43:29blah. So this is just telling it what it
  7337. 3:43:31needs to do with this idea that we just
  7338. 3:43:33got from Kpapathy. So anyways, on the
  7339. 3:43:35right we have this cloud code running
  7340. 3:43:36and on the left we have our Obsidian
  7341. 3:43:38vault. And you can see it just created
  7342. 3:43:39those two folders. So it created the raw
  7343. 3:43:41and it created the wiki as you can see.
  7344. 3:43:43Now, by default, it threw in four
  7345. 3:43:45folders. It threw in analysis, concepts,
  7346. 3:43:47entities, and sources. Once we start to
  7347. 3:43:48populate stuff, we can talk to it to see
  7348. 3:43:50if that's actually the way we want to do
  7349. 3:43:51it or not. Because it's interesting in
  7350. 3:43:53my personal kind of second brain, the
  7351. 3:43:56wiki is literally just markdown files.
  7352. 3:43:57There's no structure to it. And in some
  7353. 3:43:59cases, that's good. Carpathy actually
  7354. 3:44:01said, "Sometimes I like to keep it
  7355. 3:44:02really simple and really flat, which
  7356. 3:44:04means like no subfolders and not a bunch
  7357. 3:44:06of over organizing." But then you guys
  7358. 3:44:08did see in my YouTube transcript one,
  7359. 3:44:10there were different subfolders. And I
  7360. 3:44:12think that in this case it actually
  7361. 3:44:13makes more sense. But you can see that
  7362. 3:44:15it went ahead and it created a claw.mmd.
  7363. 3:44:17It created an index and a log and then a
  7364. 3:44:19few different folders in our wiki. But
  7365. 3:44:20now it's saying, "Hey, let's go ahead
  7366. 3:44:21and try it out. Drop in your first
  7367. 3:44:22source into the raw folder and tell me
  7368. 3:44:24to ingest it." Okay, so I'm at this
  7369. 3:44:26website called AI2027. If you guys
  7370. 3:44:28haven't read this before, it's kind of
  7371. 3:44:29an interesting read. So go check it out.
  7372. 3:44:31And now let's say I want to get this
  7373. 3:44:33into my vault. What I could do is just
  7374. 3:44:35copy the whole page, right? And it might
  7375. 3:44:37just come through a little weird. or we
  7376. 3:44:39can just get an Obsidian extension which
  7377. 3:44:41lets us basically take articles right
  7378. 3:44:42from the web and just put it right into
  7379. 3:44:44our vault. Super easy. So, search for
  7380. 3:44:46this extension called Obsidian Web
  7381. 3:44:47Clipper. You would go ahead and add this
  7382. 3:44:49to Chrome. So, then when you're in the
  7383. 3:44:50article that you want, you basically
  7384. 3:44:52just click on your extensions, you open
  7385. 3:44:53up Obsidian Web Clipper, and then you
  7386. 3:44:55can just chuck it into your vault. And
  7387. 3:44:56then right here, you're going to want to
  7388. 3:44:57set this to RAW because this is the
  7389. 3:44:59actual folder that it's going to put it
  7390. 3:45:00in. So you can go ahead and click add to
  7391. 3:45:01Obsidian. Open Obsidian. And then now
  7392. 3:45:03you can see in my RAW section, we have
  7393. 3:45:06this AI 2027 source with the title, the
  7394. 3:45:09source, and it's not super super
  7395. 3:45:11populated yet because the LLM in cloud
  7396. 3:45:14code is going to do that. So here is our
  7397. 3:45:16file. I'm going to open up Cloud Code
  7398. 3:45:18and say, awesome. I just threw in an
  7399. 3:45:19article called AI2027 into the RAW. Can
  7400. 3:45:22you please go ahead and ingest that? It
  7401. 3:45:24might ask you some questions. It might
  7402. 3:45:26also be helpful to before you start
  7403. 3:45:27ingesting stuff say, "Hey, by the way,
  7404. 3:45:29this project is specifically for my
  7405. 3:45:30second brain." So, personal things,
  7406. 3:45:32business things, whatever. Or this is
  7407. 3:45:34just a research project. This is where
  7408. 3:45:36I'm going to chuck you all the articles
  7409. 3:45:37and all the things that I want to learn
  7410. 3:45:38about and all the things that I know.
  7411. 3:45:40So, there's different ways that you can
  7412. 3:45:41set up the project as you saw with mine.
  7413. 3:45:43One for YouTube, one for just personal
  7414. 3:45:45second brain. So, now what it's doing is
  7415. 3:45:47it's going to read through this article
  7416. 3:45:48and then it's going to figure out where
  7417. 3:45:50should I chuck everything into the wiki.
  7418. 3:45:52It's not just going to create one MD
  7419. 3:45:54file for this. it might create five or
  7420. 3:45:56it might create 10. And there's going to
  7421. 3:45:57be relationships between each of the
  7422. 3:45:58different sections that it creates. So,
  7423. 3:46:00it's kind of doing its own method of
  7424. 3:46:01chunking. Now, one thing I want to call
  7425. 3:46:03out real quick is with this extension,
  7426. 3:46:05if you go here and you open up the
  7427. 3:46:07options for it, you can see that you can
  7428. 3:46:09actually change where by default the
  7429. 3:46:12folders are dropped, which is in the
  7430. 3:46:14location section. By default, it'll be
  7431. 3:46:15going to a place called clippings, but
  7432. 3:46:17just go ahead and change that to raw.
  7433. 3:46:19Okay. So, here it came back with all
  7434. 3:46:20these questions, right? It said, "Here
  7435. 3:46:22are my key takeaways from this article,
  7436. 3:46:23blah blah blah." And now it'll ask you,
  7437. 3:46:25what do you want to emphasize from this
  7438. 3:46:26article? What's your focus? How granular
  7439. 3:46:28do you want to be? What's your plan? So,
  7440. 3:46:30I'm just going to say, I want this to be
  7441. 3:46:32extremely thorough. This is my passion
  7442. 3:46:35looking at where AI is going to go. Um,
  7443. 3:46:37and this whole project, by the way, that
  7444. 3:46:38you're setting up in this vault is
  7445. 3:46:40basically just going to be my place to
  7446. 3:46:42dump in research about AI. So, help me
  7447. 3:46:44keep all that organized so that I can
  7448. 3:46:45query it and that I can, you know, keep
  7449. 3:46:47my thoughts related. So that's just a
  7450. 3:46:49quick example of what it might look like
  7451. 3:46:51for you to give it some more context to
  7452. 3:46:53continuously build your project. So I'm
  7453. 3:46:55going to switch over over here to the
  7454. 3:46:56graph view because I think it'll be
  7455. 3:46:58interesting to see as it is starting to
  7456. 3:47:00go through and create those different
  7457. 3:47:01wiki files. It's going to go ahead and
  7458. 3:47:03it's going to create all those
  7459. 3:47:04relationships and we'll be able to watch
  7460. 3:47:05it in real time. All right, so it's
  7461. 3:47:07creating all of the wiki pages now and
  7462. 3:47:09you can see that it said it's going to
  7463. 3:47:10make about 25 because there's so much
  7464. 3:47:12stuff going on in the original AI 2027
  7465. 3:47:15article. Okay, so our first one just
  7466. 3:47:17popped in here and there a second one
  7467. 3:47:18just came through and now you can
  7468. 3:47:20understand you're starting to see where
  7469. 3:47:21do you have hubs or where do you just
  7470. 3:47:22have little individual nodes so this is
  7471. 3:47:24a major hub someone named Eli someone
  7472. 3:47:27named Thomas Daniel and you can see all
  7473. 3:47:29the different relationships here with
  7474. 3:47:31things like AI governance with things
  7475. 3:47:33like open brain superhuman coder okay so
  7476. 3:47:36that ingest took about 10 minutes so
  7477. 3:47:38sometimes you have to be a little
  7478. 3:47:39patient with you know it reading through
  7479. 3:47:40everything and organizing everything but
  7480. 3:47:42it does a lot of heavy lifting of course
  7481. 3:47:44when I uploaded the 36 6 YouTube
  7482. 3:47:46transcripts in batch. It took about 14
  7483. 3:47:48minutes. So, it kind of just depends,
  7484. 3:47:50but it created 23 wiki pages. We have
  7485. 3:47:52the source. We have six people, five
  7486. 3:47:55organizations, and one AI systems page.
  7487. 3:47:57Different concepts, so technical,
  7488. 3:47:59alignment, and geopolitical. And then an
  7489. 3:48:01analysis, and then it asks some
  7490. 3:48:03questions about it so that it can help
  7491. 3:48:04make the relationships and make the
  7492. 3:48:06structure even better. Now, let's just
  7493. 3:48:08open this one up a little bit deeper and
  7494. 3:48:10see what it actually did in here with
  7495. 3:48:12this stuff. So we have this is the
  7496. 3:48:14source with all the main relationships.
  7497. 3:48:16So as we start to add other articles, we
  7498. 3:48:18will see other big kind of like nodes
  7499. 3:48:20and maybe in some cases we'll have
  7500. 3:48:21relationships between like compute
  7501. 3:48:23scaling with different articles that we
  7502. 3:48:25upload as well. So let's just see if I
  7503. 3:48:26click into the main source we can see
  7504. 3:48:28the tags that it got. We can see the
  7505. 3:48:30authors and we can click around. So
  7506. 3:48:32here's a link to OpenAI. Okay, what's
  7507. 3:48:34OpenAI? Here's references in AI 2027.
  7508. 3:48:36Here's some other connections with
  7509. 3:48:37OpenAI like model spec. Okay, we're in
  7510. 3:48:39modelsp spec. Let's take a look. We can
  7511. 3:48:41see other things about model spec and we
  7512. 3:48:43could also go to how the LLM psychology
  7513. 3:48:45model works. So this is just super super
  7514. 3:48:47cool all the relationships that we get
  7515. 3:48:49and once again all of this stuff that
  7516. 3:48:51we're looking at was derived from one
  7517. 3:48:53article and automatically organized and
  7518. 3:48:55related. So the question now is like
  7519. 3:48:57what do we do from here? Do we query it
  7520. 3:48:59inside of this environment? Do we query
  7521. 3:49:00it from somewhere else? And that's
  7522. 3:49:02completely up to the way that you want
  7523. 3:49:03to use this. So, for example, with my
  7524. 3:49:05YouTube project, I'm probably just going
  7525. 3:49:07to keep this here and whenever I want to
  7526. 3:49:08ask questions about YouTube or if I want
  7527. 3:49:10to turn this into like a website, I can
  7528. 3:49:12just do that from here. Or if I need to,
  7529. 3:49:14I can point a different project at this
  7530. 3:49:16folder since everything's here and it
  7531. 3:49:18can crawl through the wiki. It can read
  7532. 3:49:19the index and it knows how this stuff
  7533. 3:49:21works because you can give it the claw
  7534. 3:49:23MD so it understands the project as
  7535. 3:49:24well. So, for example, in this one,
  7536. 3:49:26which is just my second brain where we
  7537. 3:49:28have all of the different things about
  7538. 3:49:29like I drop in my meeting recordings, I
  7539. 3:49:31drop in, you know, ClickUp channels,
  7540. 3:49:33summaries, and things like that. This is
  7541. 3:49:34something that I want to use in my
  7542. 3:49:35executive assistant. So, what I did in
  7543. 3:49:37my executive assistant here called Herk
  7544. 3:49:392. If I go to this claw.md, you can see
  7545. 3:49:41that we have a wiki path. So, whenever
  7546. 3:49:43you need to read things about me and my
  7547. 3:49:46business that you don't have already,
  7548. 3:49:47you would basically go to my Herkbrain
  7549. 3:49:49vault. You would go to that directory
  7550. 3:49:51and then you would read through the
  7551. 3:49:52wiki. You can read the hot cache, which
  7552. 3:49:53I'll explain in just a sec. You can read
  7553. 3:49:55the index. You can read the domain
  7554. 3:49:57subindex. And then you can also just
  7555. 3:49:59search through everything here. And I
  7556. 3:50:00said don't read from the wiki unless you
  7557. 3:50:02actually need it. Here are some things
  7558. 3:50:03that you might do that you don't need to
  7559. 3:50:05go read the wiki for. And all of this is
  7560. 3:50:06my business knowledge. Now, if you guys
  7561. 3:50:08remember, if you watch my video on
  7562. 3:50:09setting up an executive assistant, I
  7563. 3:50:11used to do this with context files
  7564. 3:50:13inside of this project. And when I
  7565. 3:50:15changed over to this method, I actually
  7566. 3:50:16saw a reduction in tokens that I was
  7567. 3:50:19actually calling in this project. So the
  7568. 3:50:21thing about the hot cache, right, I
  7569. 3:50:23didn't actually have this in my YouTube
  7570. 3:50:25one. So if I go to YouTube, you can see
  7571. 3:50:26there's no hot cache, but if I go to the
  7572. 3:50:29herk brain in the wiki, you can see
  7573. 3:50:31there's a hot.md right here. And this is
  7574. 3:50:33basically just a cache of like 500 words
  7575. 3:50:35or 500 characters that it saves, which
  7576. 3:50:37is like what is the most recent thing
  7577. 3:50:39that Nate just gave me or that we talked
  7578. 3:50:41about. In the context of my executive
  7579. 3:50:42assistant, this is really helpful. You
  7580. 3:50:44know, it might save me from having to
  7581. 3:50:45crawl different wiki pages. But in
  7582. 3:50:48something like the YouTube transcript
  7583. 3:50:49project, I don't really need a hot
  7584. 3:50:51cache. So, another thing that I alluded
  7585. 3:50:53to but didn't really cover was the idea
  7586. 3:50:54of linting. So, Karpathi says that he
  7587. 3:50:56runs some LLM health checks over the
  7588. 3:50:58wiki to find inconsistent data, impute
  7589. 3:51:01missing data with web searches, find
  7590. 3:51:03interesting connections for new article
  7591. 3:51:05candidates, things like that. So, it
  7592. 3:51:07basically helps you run a lint, you
  7593. 3:51:09know, every day, every week, whenever
  7594. 3:51:10you want, which helps make sure that
  7595. 3:51:12everything is scalable and structured in
  7596. 3:51:14the right way. And it might even come
  7597. 3:51:16back and say, "Hey, I don't fully
  7598. 3:51:17understand this. Can you give me some
  7599. 3:51:18more info or can you grab some more
  7600. 3:51:20articles that might help me out here?"
  7601. 3:51:21So now the final question about this
  7602. 3:51:23that I wanted to cover is like, "Does
  7603. 3:51:24this kill semantic search rag?" And the
  7604. 3:51:27answer is no, but kind of yes. And it
  7605. 3:51:30all depends on the goal of the project
  7606. 3:51:32and the goal of the context, how much
  7607. 3:51:34context you have. So here's a really
  7608. 3:51:35quick chart that I had my claude code
  7609. 3:51:37make. I was in my Herk brain where I
  7610. 3:51:39dumped in a bunch of information about
  7611. 3:51:41Karpathy's LLM knowledge and I just
  7612. 3:51:43said, "Hey, can you please explain
  7613. 3:51:45Karpathy knowledge as simple as
  7614. 3:51:46possible, keep it super concise, and um
  7615. 3:51:49compare it to typical semantic search
  7616. 3:51:52rag." So, it found Carpathy's idea.
  7617. 3:51:54Instead of a database, you just give the
  7618. 3:51:56LM well organized markdown files and it
  7619. 3:51:58compares it here to the actual semantic
  7620. 3:52:01search rag. So, actually, I might as
  7621. 3:52:02well just read it off from here. So it
  7622. 3:52:04finds it by reading indexes and follows
  7623. 3:52:06links rather than using similarity
  7624. 3:52:08search. So we're getting a deeper
  7625. 3:52:09understanding of relationships because
  7626. 3:52:11they're links rather than just saying,
  7627. 3:52:13"Hey, these chunks seem similar." As far
  7628. 3:52:14as infrastructure, it is literally just
  7629. 3:52:16markdown. So like I said, you don't even
  7630. 3:52:17need the obsidian. You just need these
  7631. 3:52:19markdown files. Whereas with semantic
  7632. 3:52:22search, you need an embedding model. You
  7633. 3:52:23need a vector database and a chunking
  7634. 3:52:24pipeline. The cost over here is
  7635. 3:52:26basically free. Your only cost is going
  7636. 3:52:28to be tokens. Whereas over here, you
  7637. 3:52:29might have ongoing compute and storage.
  7638. 3:52:31And for maintenance, you just run a
  7639. 3:52:33lint. You clean up things. You add more
  7640. 3:52:35articles. You give it more context
  7641. 3:52:37rather than having to re-mbed when
  7642. 3:52:39things change. But right now, the
  7643. 3:52:40weakness of course with the uh LLM
  7644. 3:52:43knowledge wiki is that it doesn't scale
  7645. 3:52:46huge across enterprises, right? Because
  7646. 3:52:47it's just a bunch of files. Um and that
  7647. 3:52:50is where the cost will probably get more
  7648. 3:52:51and more expensive than going to
  7649. 3:52:53something like standard semantic search
  7650. 3:52:55or knowledger graph or light rag or
  7651. 3:52:57whatever other tool is out there for
  7652. 3:52:59that. So here you can see if you have
  7653. 3:53:00hundreds of pages with good indexes,
  7654. 3:53:02you're fine with wiki graph. But if you
  7655. 3:53:03were getting up to the millions of
  7656. 3:53:05documents, then you're going to want to
  7657. 3:53:06actually do more of a traditional rag
  7658. 3:53:08pipeline. Today I'm going to explain the
  7659. 3:53:09different levels of building your own AI
  7660. 3:53:11second brain. You can see here we have a
  7661. 3:53:13visual of three very different types of
  7662. 3:53:15data. This one is where we have our
  7663. 3:53:17context really starting to form and
  7664. 3:53:18we're starting to see some relationships
  7665. 3:53:20and we're starting to see some different
  7666. 3:53:22nodes and entities form. And then as we
  7667. 3:53:24continue to scale this up, add more
  7668. 3:53:25knowledge, more knowledge, more
  7669. 3:53:27relationships, we start to get something
  7670. 3:53:28that looks a little bit more like this,
  7671. 3:53:30where we have clearly different
  7672. 3:53:31clusters, and inside of all of these
  7673. 3:53:33nodes, we can see how they relate to
  7674. 3:53:34each other. And then over here, we're
  7675. 3:53:35taking all of those relationships a step
  7676. 3:53:37further, and we're able to then start to
  7677. 3:53:39see how everything really pieces
  7678. 3:53:40together rather than just having files
  7679. 3:53:42that sort of link back to each other.
  7680. 3:53:44This is relationship mapping. And so
  7681. 3:53:46really the idea of an AI second brain
  7682. 3:53:48has blown up because we're all trying to
  7683. 3:53:50get as much information out of our heads
  7684. 3:53:52into our systems as possible. That's the
  7685. 3:53:54true value. Your moat is your data. It's
  7686. 3:53:56your IP. But the process of organizing
  7687. 3:53:58that into a system so that you can use
  7688. 3:54:00it with a bunch of different AI models
  7689. 3:54:02and so that it can actually recall
  7690. 3:54:04things in a way that makes sense rather
  7691. 3:54:05than just hallucinating or spending a
  7692. 3:54:07bunch of your time and tokens trying to
  7693. 3:54:08look through everything. That's the
  7694. 3:54:10issue. So clearly all of this is my real
  7695. 3:54:12data and this is what the actual project
  7696. 3:54:13looks like. It is my Herku project. I
  7697. 3:54:15have a bunch of folders and files here.
  7698. 3:54:17And at the end of the day, that's
  7699. 3:54:18basically all it is. It is markdown
  7700. 3:54:20files that are organized in a way that I
  7701. 3:54:21understand and that my agents
  7702. 3:54:23understand. And so, yes, I'm going to
  7703. 3:54:24walk you guys through what I have here
  7704. 3:54:25and how it works. But I also have this
  7705. 3:54:27other project where I'm going to show
  7706. 3:54:28you if you're starting from scratch or
  7707. 3:54:30if you feel like maybe you're in between
  7708. 3:54:32level two and three, how we can actually
  7709. 3:54:34look at the differences and what it
  7710. 3:54:35might look like to scale up your own
  7711. 3:54:37systems and start to add context in
  7712. 3:54:39different ways. So, super excited to dig
  7713. 3:54:41into this today and I don't want to
  7714. 3:54:42waste any of your guys' time. So let's
  7715. 3:54:43just start looking at these five levels
  7716. 3:54:45and how they differ. All right. So every
  7717. 3:54:47level of a claude code second brain and
  7718. 3:54:49I'm going to be obviously kind of
  7719. 3:54:50referring to claude code a lot but keep
  7720. 3:54:52in mind this can be used with any AI
  7721. 3:54:54model. I use my second brain all the
  7722. 3:54:56time with codecs as well. I use it with
  7723. 3:54:57Hermes agent. This can be used by
  7724. 3:54:58different agent harnesses because it's
  7725. 3:55:01just files and folders. So what is the
  7726. 3:55:04actual job of a second brain? A lot of
  7727. 3:55:05people probably define this differently,
  7728. 3:55:06but the way that I think about it is
  7729. 3:55:08that it's a place for me to save notes,
  7730. 3:55:11meeting recordings, ClickUp threads,
  7731. 3:55:13stuff like that. I can save it there and
  7732. 3:55:15then it helps me basically ingest it and
  7733. 3:55:17get it into the right spots so that it
  7734. 3:55:19can actually find it later. And so
  7735. 3:55:20that's really the thing to think about
  7736. 3:55:22is can your agent find it again and
  7737. 3:55:24could you find it again? Because if the
  7738. 3:55:26answer is no, then you probably don't
  7739. 3:55:27have the right routing or folder
  7740. 3:55:29architecture set up, which is what I'm
  7741. 3:55:31here to talk about today. And one other
  7742. 3:55:32sort of mindset thing that I want to get
  7743. 3:55:35out there before we dive into these five
  7744. 3:55:36levels is that you kind of have to work
  7745. 3:55:39backwards. You want to reverse engineer
  7746. 3:55:41based on the question. So this will
  7747. 3:55:42start to make more sense as we get into
  7748. 3:55:44it. But really what you should be
  7749. 3:55:45thinking about is how do I want to use
  7750. 3:55:47this data in the future because how it's
  7751. 3:55:50going to be accessed and recalled
  7752. 3:55:52determines the way that you put it in in
  7753. 3:55:54the first place. For example, a
  7754. 3:55:56basketball hoop and a basketball. We
  7755. 3:55:58know what shape the hoop is and we know
  7756. 3:56:00that the ball needs to go through. So,
  7757. 3:56:01why would we ever design the ball to be
  7758. 3:56:04a giant square? Because it just wouldn't
  7759. 3:56:07fit through the hoop. So, that would
  7760. 3:56:08make no sense. So, you need to start
  7761. 3:56:09with the end in mind a little bit. Once
  7762. 3:56:11again, I will show you exactly what I
  7763. 3:56:13mean by that as we continue on. Because
  7764. 3:56:15remember, we're trying to get to the
  7765. 3:56:16point where your second brain knows
  7766. 3:56:18everything about your business, about
  7767. 3:56:20you, your relationships. It knows
  7768. 3:56:21everything to the point where it
  7769. 3:56:23probably can recall stuff better than
  7770. 3:56:25you can because it has a better memory
  7771. 3:56:26and it can search through things way
  7772. 3:56:28faster than you can. So, we've got five
  7773. 3:56:29different levels to talk about, and they
  7774. 3:56:32each kind of have different questions.
  7775. 3:56:34So, level one is, can you find the file
  7776. 3:56:35or the info by looking for an exact word
  7777. 3:56:38or name? Level two is, can you pull
  7778. 3:56:40everything on a certain topic together?
  7779. 3:56:42Level three is, I searched for different
  7780. 3:56:44words than I wrote. So, semantic search,
  7781. 3:56:46you're searching for meaning rather than
  7782. 3:56:47an exact word match. And then trace
  7783. 3:56:50relationship chains. Can you ask about
  7784. 3:56:52topic X? And then trace that all the way
  7785. 3:56:55back to topic A. And then level five is
  7786. 3:56:57just kind of making this whole second
  7787. 3:56:59brain thing super autonomous to the
  7788. 3:57:01point that you don't even have to think
  7789. 3:57:02about it. And by the way, this isn't me
  7790. 3:57:04saying that number five is best. I have
  7791. 3:57:06some arguments about why I do not
  7792. 3:57:07currently sit on level five. The point
  7793. 3:57:09I'm trying to make here is each level is
  7794. 3:57:11different and you want to find the
  7795. 3:57:13simplest level or the lowest level that
  7796. 3:57:15actually fits your needs. If you don't
  7797. 3:57:17have a painoint in your system, then I
  7798. 3:57:19don't really think there's a need to go
  7799. 3:57:21experiment or develop a new sort of, you
  7800. 3:57:23know, architecture. If there's not pain,
  7801. 3:57:26then why create more? Okay, so level one
  7802. 3:57:29is pretty simple and this is where you
  7803. 3:57:30always start. So you start with a
  7804. 3:57:32claw.md or if you're using codeex or
  7805. 3:57:34something, you would start with an
  7806. 3:57:35agents.mmd. But you start with a
  7807. 3:57:37cloud.mmd which is kind of, you know,
  7808. 3:57:39that gets loaded up. That's almost like
  7809. 3:57:40the system prompt for that session for
  7810. 3:57:42that project. And then you've just got a
  7811. 3:57:43bunch of folders and files. But the key
  7812. 3:57:44part there is the cloudmd is kind of
  7813. 3:57:47treated as a router. So yes, you've got
  7814. 3:57:48some, hey, this is your role. Here is
  7815. 3:57:50what's important. But you also have
  7816. 3:57:52routing rules. If you ever need to find
  7817. 3:57:54information about me personally, look in
  7818. 3:57:55this folder. If you need information
  7819. 3:57:57about our quarter one priorities, look
  7820. 3:57:58in this folder. Because if you've ever
  7821. 3:58:00had a point where you ask Claude to do
  7822. 3:58:02something, and then it asks you, "Hey,
  7823. 3:58:04can you give me more info? I don't know
  7824. 3:58:05what you're talking about, but you know
  7825. 3:58:06there's files and folders in your
  7826. 3:58:08project, then you probably just didn't
  7827. 3:58:09give Claude the knowledge to go look
  7828. 3:58:12there." It's not just going to go search
  7829. 3:58:13your entire codebase automatically. I
  7830. 3:58:15mean, you wouldn't want it to do that
  7831. 3:58:16because it's going to waste your time
  7832. 3:58:17and your tokens. So, if it doesn't know
  7833. 3:58:19if something lives somewhere, then it's
  7834. 3:58:21probably not going to be able to find
  7835. 3:58:22it. So, when this is properly set up,
  7836. 3:58:24you will stop having to reexplain
  7837. 3:58:25things. You will talk to it and it will
  7838. 3:58:27just know where to go look and why. But
  7839. 3:58:29the problems with this is that if it
  7840. 3:58:30grows too big, it can start to get messy
  7841. 3:58:32and feel ignored. And this is typically
  7842. 3:58:34more of like an exact word type of
  7843. 3:58:36search depending on the way that you
  7844. 3:58:37route. So, if I open up my um example
  7845. 3:58:40project here, let's open up level one.
  7846. 3:58:43So, in level one, what you can see,
  7847. 3:58:44pretend this is its own cloud project.
  7848. 3:58:46We've got a clawmd. So let me click into
  7849. 3:58:48that. We can see here it says this file
  7850. 3:58:50loads automatically every time you open
  7851. 3:58:52cloud code in this folder. It is the one
  7852. 3:58:53file that tells the AI who you are, how
  7853. 3:58:55you work, and where things live. At
  7854. 3:58:56level one, this file plus a few folders
  7855. 3:58:58is your entire second brain. So here's
  7856. 3:59:00kind of like that basic knowledge. And
  7857. 3:59:01then right here, it's this simple where
  7858. 3:59:03things live in the context folder.
  7859. 3:59:05Always true background about you and how
  7860. 3:59:07you work. Read this first projects
  7861. 3:59:09decision log. And that's basically it.
  7862. 3:59:11So right here, you can see there's a
  7863. 3:59:12context folder. We have an about me file
  7864. 3:59:14which you could grow. We have stack and
  7865. 3:59:16conversations file. We have decisions.
  7866. 3:59:18So this is a decision log where you can
  7867. 3:59:20have your cloudmd always append new
  7868. 3:59:22decisions and the dates whenever you
  7869. 3:59:24make a big change to your project or to
  7870. 3:59:25your life or to your business. And then
  7871. 3:59:27we have projects. So this is where you
  7872. 3:59:28could have a markdown file or even
  7873. 3:59:30folders within the projects for all of
  7874. 3:59:32your ongoing projects, all of your
  7875. 3:59:33ongoing clients, whatever it is, however
  7876. 3:59:35you want to organize it. That's where
  7877. 3:59:36you can have some projects. And you can
  7878. 3:59:38even start to organize these things by
  7879. 3:59:39dates if you want. So, if you want to
  7880. 3:59:40just have one that's for like May and
  7881. 3:59:42then you have all of those stuff and you
  7882. 3:59:43have one for June. The thing that I
  7883. 3:59:45really want to stress here with level
  7884. 3:59:46one and the thing that I answer a lot in
  7885. 3:59:48my community in the comments is that
  7886. 3:59:50there is not yet a standard way that has
  7887. 3:59:53been proven the best way to set up your
  7888. 3:59:55projects or your second brain besides
  7889. 3:59:56some of the most common things like your
  7890. 3:59:58context and your cloudmd and your, you
  7891. 3:59:59know, whatnot. But the point I'm trying
  7892. 4:00:01to make there is don't see what I do and
  7893. 4:00:05think that that's the right way or see
  7894. 4:00:06what someone else you watch does and
  7895. 4:00:08think that that's the only right way.
  7896. 4:00:10All that matters is do you have proper
  7897. 4:00:13routing in place and does it make sense
  7898. 4:00:15to you and does it make sense to your
  7899. 4:00:17AI? Okay, so let's say I have my Herk 2
  7900. 4:00:20project right here and I need to find
  7901. 4:00:21something in here but I can't ask AI for
  7902. 4:00:23some reason. what I need to find is easy
  7903. 4:00:25because I understand the drill downs.
  7904. 4:00:27You know, I understand my base folders.
  7905. 4:00:28And let's say I'm looking for the HTML
  7906. 4:00:30slide deck I built for my ranking cloud
  7907. 4:00:33code features video. I would come into
  7908. 4:00:35here and I say, "Okay, I know that's a
  7909. 4:00:36project." So, I'll go there. Within my
  7910. 4:00:38projects, I've got another project for
  7911. 4:00:39YouTube videos. I'll open that up. And
  7912. 4:00:41now I know I made this video right here,
  7913. 4:00:44May 30th Claude Code top 50 features. In
  7914. 4:00:47here, I have the actual tier list deck.
  7915. 4:00:49And when I open that up, now I have the
  7916. 4:00:50slide deck. And not only can I find it
  7917. 4:00:52easily, but my agent can find it because
  7918. 4:00:54it all makes sense and I have routing
  7919. 4:00:55rules. Real quick, guys, if you're
  7920. 4:00:57watching this video, you're probably
  7921. 4:00:58interested in building your own AI
  7922. 4:01:00operating system. Lucky for you, I have
  7923. 4:01:01a full free course on that in my free
  7924. 4:01:03school community. The link for that is
  7925. 4:01:04down in the description. Join the free
  7926. 4:01:06school community. Hop in here, take the
  7927. 4:01:077-day challenge, build your own AI
  7928. 4:01:09operating system, and apply these
  7929. 4:01:10principles into building your second
  7930. 4:01:12brain, which will make your AI operating
  7931. 4:01:14system even more powerful. So, links in
  7932. 4:01:15the description. Let's get back to the
  7933. 4:01:16video. Awesome. Okay, so that is how you
  7934. 4:01:18start. Now, as you move up to level two,
  7935. 4:01:21you might be able to start to work in
  7936. 4:01:22some things like the LLM wiki, which is
  7937. 4:01:24what I've got set up for a few different
  7938. 4:01:26things. This is the whole Carpathy LLM
  7939. 4:01:28wiki, which I did make a full video
  7940. 4:01:29about. If you want to check that out,
  7941. 4:01:30I'll tag that right up here. But this is
  7942. 4:01:32when you start to have more files and
  7943. 4:01:34and they start to take a bit of a
  7944. 4:01:36different shape and you want to organize
  7945. 4:01:37them together in a bit of a different
  7946. 4:01:39way. So, it could be really good for
  7947. 4:01:41researching all on a certain project. It
  7948. 4:01:42could be really good for, you know, a
  7949. 4:01:44few of the ones that I've got set up is
  7950. 4:01:45my YouTube transcripts all live in their
  7951. 4:01:47own wiki. I've got all of like my
  7952. 4:01:48meeting transcripts that live in their
  7953. 4:01:50own wiki. So, for example, this is the
  7954. 4:01:51obsidian view of my wiki for all of my
  7955. 4:01:54YouTube video transcripts. You can see
  7956. 4:01:56here if I go to wiki, you can see
  7957. 4:01:57there's main concepts like aentic
  7958. 4:01:59workflows, AI coding market, context
  7959. 4:02:02window, and all of these in here start
  7960. 4:02:03to relate back to other tools and
  7961. 4:02:06concepts and videos and stuff like that.
  7962. 4:02:07So, we've got the sources, we've got
  7963. 4:02:09platforms, we've got um context
  7964. 4:02:11management techniques, and all of this
  7965. 4:02:13was autocreated by our cloud code when I
  7966. 4:02:16told it to ingest this YouTube
  7967. 4:02:18transcript into our wiki. So, I'm not
  7968. 4:02:19going to dive super super deep into all
  7969. 4:02:21this right now, but definitely check out
  7970. 4:02:22that YouTube video I linked. Now, what
  7971. 4:02:24else is cool about this is this
  7972. 4:02:26transcript wiki actually lives within my
  7973. 4:02:28main Herk 2 project. So, here's Herk 2.
  7974. 4:02:30If I go right here to other worlds and
  7975. 4:02:33then I go down to YouTube OS and I click
  7976. 4:02:35into the transcript wiki right here.
  7977. 4:02:38This is what we were just looking at in
  7978. 4:02:39Obsidian. We could see the concepts. We
  7979. 4:02:41could see the comparisons. We could see
  7980. 4:02:42sources, techniques. This is what we
  7981. 4:02:44were looking at in Obsidian. So all
  7982. 4:02:46Obsidian is is it basically just
  7983. 4:02:47visualizes your markdown files. You see
  7984. 4:02:50here wiki concepts, comparisons,
  7985. 4:02:52techniques. This is what we were just
  7986. 4:02:53looking at. All we get now is we just
  7987. 4:02:55get a visual view of all that. And so
  7988. 4:02:57the reason I wanted to bring that up as
  7989. 4:02:58well is because I think a lot of people
  7990. 4:03:00obviously get pretty infatuated by that
  7991. 4:03:03visual view. And obviously I started the
  7992. 4:03:05video with that because I think that's
  7993. 4:03:06what hooks a lot of people in. But all
  7994. 4:03:08that really matters is can your system
  7995. 4:03:10grab that and give it to you. If you are
  7996. 4:03:12a visual person and you really want that
  7997. 4:03:13view, then by all means install Obsidian
  7998. 4:03:16and set it up. It's super easy. But I'm
  7999. 4:03:18saying that you don't always need that
  8000. 4:03:19visual layer if it's not beneficial to
  8001. 4:03:21you. I hardly ever open Obsidian just to
  8002. 4:03:23be honest because I know that it all
  8003. 4:03:25lives here and I know that my second
  8004. 4:03:27brain and my OS can find all of that. So
  8005. 4:03:29anyways, in level two here, let's look
  8006. 4:03:30at this. It's very similar in shape to
  8007. 4:03:33level one. It's just building on top of
  8008. 4:03:34it because now we have our cloudMD which
  8009. 4:03:37starts to route to some other things
  8010. 4:03:38because it routes to the wiki and it
  8011. 4:03:40still routes to context projects
  8012. 4:03:42decisions, but it's also routing to
  8013. 4:03:44references and memory. So we're just
  8014. 4:03:46starting to add a bit more of these
  8015. 4:03:47routing rules inside of the claw.md. We
  8016. 4:03:50can grow the context. We can grow the
  8017. 4:03:52decisions. We can grow projects and
  8018. 4:03:53references. And we can also start to get
  8019. 4:03:55this idea of memory. And what's really
  8020. 4:03:57cool about this is you can turn on
  8021. 4:03:58automemory in cloud code. And the AI
  8022. 4:04:00will basically start to write this file
  8023. 4:04:02and update it on its own. So you don't
  8024. 4:04:04even have to think about it. If you come
  8025. 4:04:05in here and you do /memory, it'll say
  8026. 4:04:07automemory on or off. And if it's off,
  8027. 4:04:09if you want to turn that on, just turn
  8028. 4:04:11it on. And now one thing to think about
  8029. 4:04:12is I mentioned earlier that we want to
  8030. 4:04:14make our second brains tool agnostic.
  8031. 4:04:17And this is one thing that's pretty
  8032. 4:04:18specific about cloud code is it uses
  8033. 4:04:20claw.mmd and it uses this memory.mmd and
  8034. 4:04:23it keeps that updated on its own. So if
  8035. 4:04:25you wanted to move this over to codeex,
  8036. 4:04:26what you would do is you would first of
  8037. 4:04:28all transition your claw.md. You'd make
  8038. 4:04:30a copy of it called agents.mmd. As you
  8039. 4:04:32can see here in my herk 2, I've got my
  8040. 4:04:34if I scroll down claw.md right here and
  8041. 4:04:36then I've got agents.mmd right here. And
  8042. 4:04:38they're essentially the exact same file.
  8043. 4:04:39Just so codex can read this one and
  8044. 4:04:41cloud code can read this one. But
  8045. 4:04:42because claude code keeps that
  8046. 4:04:43automemory, all you need to do is make
  8047. 4:04:45sure you have that memory MD file and
  8048. 4:04:47just tell codecs, hey, by the way, for
  8049. 4:04:49memories, look in our memory.mmd file.
  8050. 4:04:52It's all about the routing there.
  8051. 4:04:53Anyways, just felt like that was
  8052. 4:04:54important to throw out. But at a certain
  8053. 4:04:56point when you have these, you know,
  8054. 4:04:57wiks, they do start to degrade a little
  8055. 4:04:59bit because what's what's great about
  8056. 4:05:00them is that they have indexes, right?
  8057. 4:05:02So when your AI starts to look in the
  8058. 4:05:04wiki, it knows, okay, if the user is
  8059. 4:05:07asking about agentic workflows, I'm
  8060. 4:05:08probably going to start here. And then
  8061. 4:05:10from here, I'm going to drill down and
  8062. 4:05:11read this to see what else is important
  8063. 4:05:14to them. Maybe they're asking about the
  8064. 4:05:15WAT framework, and then I can drill into
  8065. 4:05:17that. And maybe from there, I need to
  8066. 4:05:19learn a little bit more about the
  8067. 4:05:19cloudmd system prompt, and then I will
  8068. 4:05:21drill into that. So there are
  8069. 4:05:23relationships here a little bit, but
  8070. 4:05:25this isn't the same as like semantic
  8071. 4:05:27relationships or knowledge graph
  8072. 4:05:29relationships that have more meaning.
  8073. 4:05:31This is more about just actually
  8074. 4:05:33following a trail and reading the page
  8075. 4:05:35in its entirety. And I'll be fully
  8076. 4:05:37honest with you guys. I pretty much sit
  8077. 4:05:40my entire Herk 2 project in this level
  8078. 4:05:42in level two because this has been
  8079. 4:05:44working really well for me. Like I
  8080. 4:05:45mentioned earlier, I haven't felt a pain
  8081. 4:05:47yet big enough to switch over to level
  8082. 4:05:49two. And here's what I meant by that. My
  8083. 4:05:50wiki has links. Isn't that a knowledge
  8084. 4:05:52graph? Not exactly. Because this doesn't
  8085. 4:05:56have connections of how they are
  8086. 4:05:58related. like this is endorsed by this
  8087. 4:05:59or this has cron to here. These just
  8088. 4:06:02have connections because it's like a a C
  8089. 4:06:05also. It's like backlinks. So, they're
  8090. 4:06:07very similar and yes, they can achieve a
  8091. 4:06:08similar effect, but it's still a little
  8092. 4:06:11bit different. Anyways, let's take a
  8093. 4:06:12look at level three, which is where you
  8094. 4:06:14start to do things like semantic search.
  8095. 4:06:16Whether you do that in Obsidian, whether
  8096. 4:06:18you do that with Pine Cone or Superbase,
  8097. 4:06:20however you start to grab the actual
  8098. 4:06:22semantic search, that is what level
  8099. 4:06:24three is. And so just as a quick visual
  8100. 4:06:26for you guys, let's take a look at this
  8101. 4:06:29quadrant cluster of images. So every one
  8102. 4:06:32of these vector points is an image. And
  8103. 4:06:35what we see in here as the payload is
  8104. 4:06:37stuff like the file name, the URL, the
  8105. 4:06:38name of the author or the artist and the
  8106. 4:06:41URL. But we don't actually see like
  8107. 4:06:43what's in the image. We don't get a
  8108. 4:06:44description. So what we have to do is we
  8109. 4:06:46have to organize these images by meaning
  8110. 4:06:48or by similarity. So, when I open up
  8111. 4:06:50this graph and we start to visualize the
  8112. 4:06:52stuff here, what you see is that we have
  8113. 4:06:54this main image, these owls, these kind
  8114. 4:06:56of like I I don't even know. Um, it's a
  8115. 4:06:58very trippy style, like hallucenic
  8116. 4:07:00style. Anyways, then this one is kind of
  8117. 4:07:02similar, right? It's got those colors.
  8118. 4:07:04It's got the paint. This one is also
  8119. 4:07:06similar, but they're not the same. They
  8120. 4:07:08just share similarities. And as we start
  8121. 4:07:10to expand these more and more, we can
  8122. 4:07:12start to get into different styles. So,
  8123. 4:07:14this one has like some creepy eyes and
  8124. 4:07:15mushrooms or whatever. This one is kind
  8125. 4:07:17of more down that fantasy lane. And as
  8126. 4:07:19we start to build out more of these
  8127. 4:07:20relationships and meanings, we can
  8128. 4:07:22expand and grow away from them. And so
  8129. 4:07:24quadrant really just gives you a
  8130. 4:07:25visualization here. I mean, it's a it
  8131. 4:07:27has clusters and vector store, but the
  8132. 4:07:30reason I pulled this up as a demo is
  8133. 4:07:31just because we start to see the actual
  8134. 4:07:33relationships form here based on
  8135. 4:07:35meaning. And that's what's important
  8136. 4:07:37about semantic search is that we're no
  8137. 4:07:38longer doing keyword matching. We're
  8138. 4:07:40searching based on meaning. So here in
  8139. 4:07:42my YouTube transcript second brain if I
  8140. 4:07:45go to the smart lookup over here this is
  8141. 4:07:47very different from just the regular
  8142. 4:07:49search. So for example if I search here
  8143. 4:07:51for um feedback let's say we're actually
  8144. 4:07:56doing a match on the word feedback and
  8145. 4:07:58it's only showing me where that word
  8146. 4:08:00actually appears inside of our second
  8147. 4:08:02brain. But if I come over here in the
  8148. 4:08:04smart lookup and I search for feedback
  8149. 4:08:06we are getting matches that have things
  8150. 4:08:09in here that mean feedback. So live test
  8151. 4:08:11results, cloud code skills, which was
  8152. 4:08:13talking about evaluations and stuff. So
  8153. 4:08:15there's a big difference between keyword
  8154. 4:08:16matching and semantic search, you know,
  8155. 4:08:18similarity matching. This one over here
  8156. 4:08:20is saying X equals X. And this one is
  8157. 4:08:22saying X is similar to X, Y, and Z. And
  8158. 4:08:25so this all just goes back to vector
  8159. 4:08:26databases. I've talked so so much about
  8160. 4:08:29vector databases, so I'm not going to
  8161. 4:08:30dive super deep in. And I've got so many
  8162. 4:08:32resources on my channel, but basically
  8163. 4:08:34what it is is we take a document. So
  8164. 4:08:36let's just say YouTube transcript. We
  8165. 4:08:38chunk it up and then each chunk is ran
  8166. 4:08:40through an embeddings model. And the
  8167. 4:08:41embeddings model puts that chunk of text
  8168. 4:08:44onto like a three-dimensional space
  8169. 4:08:46where space is related to meaning. And
  8170. 4:08:49so it decides, okay, this chunk is about
  8171. 4:08:50a company, so we're going to put it up
  8172. 4:08:52here. This chunk is about finances, so
  8173. 4:08:54it's going to go here. And we start to
  8174. 4:08:55see these vectors form near other
  8175. 4:08:57similar vectors. Now, do you guys
  8176. 4:08:59remember how I said earlier like you
  8177. 4:09:00want to think about how is the data
  8178. 4:09:02going to be used? What type of questions
  8179. 4:09:04are you going to ask? This is a reason
  8180. 4:09:05why that's so important. So, think about
  8181. 4:09:07this. Let's say I put my meeting
  8182. 4:09:09transcript of March 5th meeting into my
  8183. 4:09:12second brain and I put those in as you
  8184. 4:09:14know vectorized chunks. So, let's say
  8185. 4:09:16when I vectorize that meeting, we
  8186. 4:09:18actually get, you know, like 20 chunks.
  8187. 4:09:21It actually creates 20 chunks or however
  8188. 4:09:23many that is. And then when I say, "Hey,
  8189. 4:09:24Mr. AI agent, can you summarize the
  8190. 4:09:27meeting on March 5th? It will basically
  8191. 4:09:29search for March 5th meeting summary and
  8192. 4:09:32it will pull chunks that are similar to
  8193. 4:09:34March 5th meeting summary. And then even
  8194. 4:09:36if it gets the right chunks, it's going
  8195. 4:09:38to only summarize those five chunks.
  8196. 4:09:40It's not able to look at the entire
  8197. 4:09:42meeting summary or sorry like meeting
  8198. 4:09:43transcript in entirety. So it doesn't
  8199. 4:09:45really know a summary. It might be
  8200. 4:09:47missing a lot of key information. Now,
  8201. 4:09:48yes, there are things you can start to
  8202. 4:09:49play with there like metadata and other
  8203. 4:09:51things like that to make these results
  8204. 4:09:52better. But at the end of the day,
  8205. 4:09:55people kind of assume that a vector
  8206. 4:09:57database was some magic solution where
  8207. 4:09:59it could always pull back what you need.
  8208. 4:10:00But that is very false. And I mean,
  8209. 4:10:02think about it like this. Let's say we
  8210. 4:10:03have a table and we say, "Hey, which
  8211. 4:10:05week do we have the highest sales?"
  8212. 4:10:07Okay, the agent looks for highest sales.
  8213. 4:10:09It maybe grabs this chunk outlined in
  8214. 4:10:11gray of data and then it looks at, okay,
  8215. 4:10:13week six here was the highest sales, so
  8216. 4:10:15that must be the answer. But in reality,
  8217. 4:10:17you can see week 14 was higher, week 19
  8218. 4:10:19was higher. So when you need something
  8219. 4:10:21that has actual full context, then you
  8220. 4:10:25can't do the vector database chunking.
  8221. 4:10:27That's where you'd rather just have a
  8222. 4:10:28markdown file of March 5th and then all
  8223. 4:10:31this agent would have to do is read that
  8224. 4:10:32entire markdown file and then give you a
  8225. 4:10:35summary and that's just going to be more
  8226. 4:10:37accurate. So in this project, if we open
  8227. 4:10:39up level three, you can see it's very
  8228. 4:10:40similar because you can still have
  8229. 4:10:41context files, decision files, you can
  8230. 4:10:44still have all that. And then you might
  8231. 4:10:45identify, okay, actually this one
  8232. 4:10:48specific unit of my business, maybe my
  8233. 4:10:50YouTube transcripts, maybe I want just
  8234. 4:10:52that to be a vector database, but I
  8235. 4:10:54still want my context and my projects
  8236. 4:10:55and my decisions to be markdown files.
  8237. 4:10:58So another point I'm trying to make here
  8238. 4:10:59is just because you have a second brain
  8239. 4:11:01and just because you have a massive, you
  8240. 4:11:03know, folder here with a bunch of
  8241. 4:11:04folders and files doesn't mean that the
  8242. 4:11:06whole folder needs to be one style.
  8243. 4:11:09Doesn't mean that everything needs graph
  8244. 4:11:11rag. Doesn't mean that everything is
  8245. 4:11:12just LLM wiki. It means that you're able
  8246. 4:11:14to decide based on the type of data and
  8247. 4:11:16the way you use it, how can you
  8248. 4:11:18structure this specific folder in the
  8249. 4:11:20way you want it. So here we have a
  8250. 4:11:21vector index folder and we click on the
  8251. 4:11:22how search works. It works by chunking,
  8252. 4:11:25embedding, search, hybrid, reranking.
  8253. 4:11:28There's some things you can get really,
  8254. 4:11:29really nitty-gritty on when it comes to
  8255. 4:11:30semantic search. But what vector
  8256. 4:11:32retrieval is really, really good at is
  8257. 4:11:34looking at tons and tons of data,
  8258. 4:11:35typically just like a lot of text, and
  8259. 4:11:37when you need a very specific answer,
  8260. 4:11:40something that's very similar. So, if
  8261. 4:11:41you had a thousand rules that you needed
  8262. 4:11:43to store, and you basically said, "Hey,
  8263. 4:11:45um, can you remind me what rule 17 was?"
  8264. 4:11:48That might be a really good use case for
  8265. 4:11:50vector search because it's able to
  8266. 4:11:51search for rule 17, pull in those
  8267. 4:11:53chunks, and just give you a little
  8268. 4:11:54snippet because it would be a waste of
  8269. 4:11:56time and tokens for your agent to read
  8270. 4:11:58the entire markdown file of all a
  8271. 4:11:59thousand rules if you just needed rule
  8272. 4:12:0217. So that's kind of the difference
  8273. 4:12:03there. Like I said, I've got so many
  8274. 4:12:05videos on vector stuff on my channel,
  8275. 4:12:07but really you could say, hey to your
  8276. 4:12:09cloud code agent, I have this data.
  8277. 4:12:10Here's how I want to use it. Do you
  8278. 4:12:12think this would be better for now as
  8279. 4:12:13markdown files, or should I do semantic
  8280. 4:12:15search? Like what would actually make
  8281. 4:12:17more sense here? and it will help walk
  8282. 4:12:18you through the way that you should
  8283. 4:12:19actually set that up. So now I hope you
  8284. 4:12:21guys are starting to understand why I
  8285. 4:12:22said, you know, moving up on or I'm
  8286. 4:12:25sorry, like moving up on levels, moving
  8287. 4:12:27down doesn't necessarily mean better.
  8288. 4:12:29It's all about figuring out what is the
  8289. 4:12:30pain point with what you're currently
  8290. 4:12:32doing and where would a different level
  8291. 4:12:34help you out and fix that pain point.
  8292. 4:12:36Okay, so now let's take a look at level
  8293. 4:12:38four. This is where we start to get into
  8294. 4:12:39like knowledge graphs and relationship
  8295. 4:12:41graphs, which typically are going to be
  8296. 4:12:43the most complex and sometimes the most
  8297. 4:12:45expensive as well. If you're doing it on
  8298. 4:12:46a certain platform, you could always use
  8299. 4:12:48open source software. But anyways,
  8300. 4:12:50knowledge graphs. And I also want to be
  8301. 4:12:51upfront. I've played with these a lot,
  8302. 4:12:53but I do not actually use these on the
  8303. 4:12:55day-to-day because I found out just
  8304. 4:12:57other ways to use routing files and wiks
  8305. 4:12:59that fit my needs. Now, my work is very
  8306. 4:13:02different than what a lot of your guys'
  8307. 4:13:03work may be. Mine is very project based
  8308. 4:13:05and it is very, you know, content heavy.
  8309. 4:13:08I don't have a massive CRM to manage
  8310. 4:13:10with a bunch of different businesses and
  8311. 4:13:12clients, you know, and if I did, maybe a
  8312. 4:13:14knowledge graph would make a lot more
  8313. 4:13:15sense, and it probably would. But
  8314. 4:13:16typically, the cool part about that is
  8315. 4:13:18if you identified that you needed a
  8316. 4:13:20knowledge graph, let's say for all your
  8317. 4:13:22projects, you needed you wanted to put
  8318. 4:13:23all of this in a knowledge graph, the
  8319. 4:13:25data probably already exists here. And
  8320. 4:13:27that's the thing about building out
  8321. 4:13:29these relationships in your knowledge
  8322. 4:13:31graph is that the system, whatever
  8323. 4:13:33software you use, is typically going to
  8324. 4:13:34be pretty good at embedding that and
  8325. 4:13:36creating that. But the problem that you
  8326. 4:13:38have to solve is you have to give it
  8327. 4:13:39enough data. And so one thing that I
  8328. 4:13:40really like to do is I like to have
  8329. 4:13:42these brainstorm sessions as you can
  8330. 4:13:43see. And what I do with these brainstorm
  8331. 4:13:46sessions is I use a skill called grill
  8332. 4:13:47me. So if you see here I have a skill
  8333. 4:13:49called grill me which I originally got
  8334. 4:13:50from Matt PCO. I customize it a little
  8335. 4:13:52bit. I'll leave the skill for grill me
  8336. 4:13:55in my free school community. The link
  8337. 4:13:56for that is down in the description. All
  8338. 4:13:57you have to do is hop in here, go to
  8339. 4:13:59classroom, click on all YouTube
  8340. 4:14:00resources, and you can find all the
  8341. 4:14:02skills and everything like that. But the
  8342. 4:14:04skill, what that does is it basically
  8343. 4:14:05just grills me. It interviews me
  8344. 4:14:07relentlessly about a certain topic and
  8345. 4:14:09it creates a brainstorm file here. It
  8346. 4:14:11only stops when it knows everything
  8347. 4:14:12about it. So if you wanted to start
  8348. 4:14:14building up a knowledge graph for all
  8349. 4:14:15your clients and businesses, just say,
  8350. 4:14:16"Grill me about client A, grill me about
  8351. 4:14:18client B, grill me about business A."
  8352. 4:14:21And it would just ask you questions and
  8353. 4:14:22you can feed it files, you can give it
  8354. 4:14:24stuff, you can feed it in transcripts,
  8355. 4:14:25you can feed it in, you know, contracts,
  8356. 4:14:27whatever it is. And that's how you can
  8357. 4:14:28start to form a lot of data. Hey guys,
  8358. 4:14:31me again. Real quick, I'm editing this
  8359. 4:14:32video and I realized that I needed to
  8360. 4:14:33throw out one thing here, which is that
  8361. 4:14:36obviously if you're putting all of this
  8362. 4:14:38data and you're sending it all to
  8363. 4:14:40Enthropic to Claude models, then that's
  8364. 4:14:42not [snorts] private. So, if you feel
  8365. 4:14:44comfortable with that, that's fine. I am
  8366. 4:14:46putting a lot of my data in there and it
  8367. 4:14:47is my business stuff and that's what I'm
  8368. 4:14:50doing. But if you don't feel comfortable
  8369. 4:14:52with that or you, you know, don't want
  8370. 4:14:53to send client data, of course you
  8371. 4:14:54don't, then maybe you want to do that
  8372. 4:14:56through open source models and maybe
  8373. 4:14:58cloud code isn't where you have this
  8374. 4:14:59second brain that has every single piece
  8375. 4:15:01of information about you and your
  8376. 4:15:03business and your client's business. So
  8377. 4:15:04the point I'm trying to make here is
  8378. 4:15:06just this is what I'm doing. I'm
  8379. 4:15:07obviously aware of the fact that my data
  8380. 4:15:10goes to Enthropic when I process it
  8381. 4:15:12through Claude. And if you guys are
  8382. 4:15:13doing that, then you should also be
  8383. 4:15:14aware of that. But there are other
  8384. 4:15:16options if you can't do that. So I had
  8385. 4:15:17to throw that out there. I am planning
  8386. 4:15:18to make a ton of videos here soon about
  8387. 4:15:21local AI and open source models and all
  8388. 4:15:22this stuff cuz it's a really really
  8389. 4:15:24exciting space that I think is going to
  8390. 4:15:25start becoming bigger and bigger. So
  8391. 4:15:28yeah, keep that in mind. Back to the
  8392. 4:15:29video. I think sometimes that's a
  8393. 4:15:31misconception about how I got here and
  8394. 4:15:34how people build their own AIOS or
  8395. 4:15:36second brain is that they think the
  8396. 4:15:39problem is the system not retrieving it.
  8397. 4:15:40Great, which sometimes it is, but
  8398. 4:15:42sometimes it seems like the bigger
  8399. 4:15:43problem is getting everything out of
  8400. 4:15:45your brain into the system. So before
  8401. 4:15:47you blame AI, take a look at your
  8402. 4:15:50folders and files and say, is this
  8403. 4:15:52actually holistic? Is this does this
  8404. 4:15:54have all the nuance that I have in my
  8405. 4:15:56brain? Anyways, from there, when you
  8406. 4:15:57open up level 4, you can see that it's
  8407. 4:15:59it's, you know, very similar still.
  8408. 4:16:01We're just adding on a few things. You
  8409. 4:16:02can see here we've added an agent.mmd,
  8410. 4:16:04which is the exact same as the cloud.MD.
  8411. 4:16:06And what else is cool is you can
  8412. 4:16:07literally just reference inside of your
  8413. 4:16:08cloudmd at agents.mmd. And then you can
  8414. 4:16:10delete all this because this basically
  8415. 4:16:12just like injects that file into here.
  8416. 4:16:14But I just wanted to show that. But
  8417. 4:16:15anyways, you can see we're still
  8418. 4:16:17following the same principles. We have a
  8419. 4:16:19wiki. We've also added a knowledge graph
  8420. 4:16:21layer. We've still got the same where
  8421. 4:16:22things live with the routing with all
  8422. 4:16:24these just regular folders and boring
  8423. 4:16:25markdown. But boring is beautiful. You
  8424. 4:16:27can see that our memory is still here.
  8425. 4:16:29It's starting to grow and we just keep
  8426. 4:16:31building on top of this. So, one thing
  8427. 4:16:33we added here as you can see was our
  8428. 4:16:34knowledge graph folder. And so, what
  8429. 4:16:36happens here is we get different
  8430. 4:16:37entities, right? So, like we can see,
  8431. 4:16:38okay, Jordan is a person, Acme is a
  8432. 4:16:40company. And then we can start to form
  8433. 4:16:41relationships between all these things.
  8434. 4:16:43So Jordan works at Acme. Acme is
  8435. 4:16:46endorsed by Postpilot. Postpilot is a
  8436. 4:16:48competitor of Cadently and it starts to
  8437. 4:16:50build out not only these entities, but
  8438. 4:16:52it shows you how they're all related.
  8439. 4:16:54And so that's why when I said that I
  8440. 4:16:56really like using, you know, this um
  8441. 4:16:58what's it called? LM Wiki is because I
  8442. 4:17:00have enough of that feel of all these
  8443. 4:17:02relationships because I've put so much
  8444. 4:17:04time and effort into ingesting these in
  8445. 4:17:07the right way and giving it context. The
  8446. 4:17:09thing about this one is that it has to
  8447. 4:17:10read every single file it wants. Maybe
  8448. 4:17:13it was looking at AI video production
  8449. 4:17:15and all it needed to know was 11 labs.
  8450. 4:17:17It still would have read this entire
  8451. 4:17:19file first. And so that's where
  8452. 4:17:21sometimes the knowledge graph is
  8453. 4:17:22actually more lightweight in that sense.
  8454. 4:17:24And this is the example I showed at the
  8455. 4:17:26beginning of the video where we have
  8456. 4:17:27light rag. And forgive me, I'm going to
  8457. 4:17:29have to blur some of this stuff out cuz
  8458. 4:17:30this is like legitimately my entire
  8459. 4:17:31second brain and our business. But as I
  8460. 4:17:33really zoom in here, and this kind of
  8461. 4:17:35slows down my computer cuz there's so
  8462. 4:17:36much. But what you'll notice is that we
  8463. 4:17:39actually start to get relationships. I
  8464. 4:17:40probably shouldn't have done this with
  8465. 4:17:41so much data, but you can see like we
  8466. 4:17:43have this collaborates with that. We
  8467. 4:17:46have this builds that. And so if I
  8468. 4:17:48really started to open up all of these
  8469. 4:17:50little, you know, circles, we could see
  8470. 4:17:53what was going on and how they're all
  8471. 4:17:54related. We can see that our 7-day AIS
  8472. 4:17:56challenge. It was provided from YouTube.
  8473. 4:17:59It connects to the onboarding process of
  8474. 4:18:01AIS Plus. It was developed by Aiden. And
  8475. 4:18:04so we can basically follow around these
  8476. 4:18:06relationships as you see. And even
  8477. 4:18:08though it's pretty much the same data
  8478. 4:18:09that you see here in Obsidian, we're not
  8479. 4:18:10getting that same level of relationships
  8480. 4:18:12between these different entities. So
  8481. 4:18:13anyways, if you guys want to see, you
  8482. 4:18:15know, a full breakdown video on
  8483. 4:18:16something like light rag or um graphify
  8484. 4:18:18or all the other solutions that there
  8485. 4:18:20are out there for more of a knowledge
  8486. 4:18:21graph, relationship graph, then let me
  8487. 4:18:23know. But that is kind of the difference
  8488. 4:18:24there. So if you don't need those sort
  8489. 4:18:26of relationship chains and you're not
  8490. 4:18:28worried about that semantic type of
  8491. 4:18:30relationships, then you probably don't
  8492. 4:18:31need to use something like a knowledge
  8493. 4:18:33graph. And then level five, we have more
  8494. 4:18:35of the always on brain OS and something
  8495. 4:18:38like Gbrain. Gary Tan, CEO of Y
  8496. 4:18:40Combinator, he created this thing called
  8497. 4:18:42GBrain, which pairs really well with
  8498. 4:18:44GStack. But GBrain is kind of the idea
  8499. 4:18:46of everything we've talked about here,
  8500. 4:18:48wikis, routing, relationships, tools.
  8501. 4:18:50But GBrain has kind of that always
  8502. 4:18:53element because it is like constantly
  8503. 4:18:55syncing and refreshing memories and
  8504. 4:18:57adding more stuff. So adding in Gbrain
  8505. 4:18:59to something like a Hermes agent would
  8506. 4:19:00be really, really good. You could still
  8507. 4:19:02do it in cloud code, but you'd have to
  8508. 4:19:03handle those crons and get all that
  8509. 4:19:04stuff set up, which is why I don't
  8510. 4:19:06currently run GBandra at the moment, but
  8511. 4:19:08I have been playing around with it with
  8512. 4:19:09my Hermes agent. So, anyways, the point
  8513. 4:19:10here is that it's very similar to
  8514. 4:19:12everything else we've just talked about.
  8515. 4:19:14It's just having that auto updating
  8516. 4:19:16feel, more of the autonomous always on
  8517. 4:19:18feel. But I will say another thing that
  8518. 4:19:20I kind that kind of scares me about that
  8519. 4:19:22is you have this whole dilemma of, you
  8520. 4:19:25know, when do you have too much context
  8521. 4:19:27and when does it get to the point where
  8522. 4:19:29it's actually doing more damage than
  8523. 4:19:30it's doing good? And the reason I bring
  8524. 4:19:32that up is because I am in complete
  8525. 4:19:34control of what my second brain ingests.
  8526. 4:19:36I will run a skill to go grab all of my
  8527. 4:19:38meeting transfers from the week. I will
  8528. 4:19:40say, "Hey, here's something. Help me
  8529. 4:19:42figure out like help me brainstorm about
  8530. 4:19:43this and then let's ingest it together."
  8531. 4:19:44And for me, I really like being in that
  8532. 4:19:46control because in my mind, there's a
  8533. 4:19:48big difference between a few types of
  8534. 4:19:50data. If you guys remember in my like
  8535. 4:19:51AIOS videos, I've talked about the four
  8536. 4:19:53C's. So, context, connections,
  8537. 4:19:54capabilities, and cadence. And for the
  8538. 4:19:56second brain, I mainly think about it as
  8539. 4:19:58just these first two. So, context and
  8540. 4:20:00connections. And so, when I think of
  8541. 4:20:01context, that's stuff like, you know,
  8542. 4:20:04what my business has done. So, if I come
  8543. 4:20:05into here into my my second brain, and
  8544. 4:20:07you can see here, if I go to um up at
  8545. 4:20:10OTAAS, so OTAAS are basically just our
  8546. 4:20:12projects for the quarter. And so here I
  8547. 4:20:14can see all the Q1 ones, right? I can
  8548. 4:20:15look at all those and I can click at
  8549. 4:20:16them and see decisions that we've made
  8550. 4:20:18in the statuses. And I can also see Q2
  8551. 4:20:20OTAAS. So I can see what's going on
  8552. 4:20:21here. And my second brain is able to see
  8553. 4:20:23that because that has been basically
  8554. 4:20:25those are locked in decisions. This is
  8555. 4:20:26what we're doing this quarter. And then
  8556. 4:20:28I'm updating the statuses of that stuff.
  8557. 4:20:29So that's like context. That's what's
  8558. 4:20:31going on in the business. But when it
  8559. 4:20:32comes to connections, if I go back to
  8560. 4:20:34this, this is more of like the real data
  8561. 4:20:36that isn't as evergreen. This is stuff
  8562. 4:20:38that changes. This is like Slack
  8563. 4:20:40threads. This is emails. this is
  8564. 4:20:42customer data and that type of data you
  8565. 4:20:44don't want to ingest into a second brain
  8566. 4:20:46because that's just noise then then you
  8567. 4:20:48have to go back every month and like
  8568. 4:20:49delete old stuff. So the way that I like
  8569. 4:20:51to think about my actual second brain is
  8570. 4:20:53stuff that I'm not going to delete. This
  8571. 4:20:55is stuff that is like okay in a year
  8572. 4:20:57will it be good for me to have this
  8573. 4:20:58memory in here? Yes. Otherwise it's just
  8574. 4:21:00adding noise. So when you're adding data
  8575. 4:21:03into your project think about it like
  8576. 4:21:05the context and connections. think about
  8577. 4:21:07if this is kind of like more evergreen
  8578. 4:21:08holistic data or if this is more things
  8579. 4:21:10that are going to change next week. So,
  8580. 4:21:12you probably shouldn't pull it in, but
  8581. 4:21:14you should make sure that your second
  8582. 4:21:15brain has access to go grab it. So, that
  8583. 4:21:17way if I said to my second brain, "Hey,
  8584. 4:21:20can you just take a look real quick at
  8585. 4:21:21what John and I were talking about last
  8586. 4:21:23week about, you know, OTAA number seven,
  8587. 4:21:25it would first go to our OTAA file and
  8588. 4:21:27it would search through there and it it
  8589. 4:21:28would try to find it there. If it
  8590. 4:21:30couldn't find it there, it would look
  8591. 4:21:31through the wiki and it would look
  8592. 4:21:32through meeting transcripts and see what
  8593. 4:21:33we talked about there. And if it
  8594. 4:21:34couldn't find it there, it would finally
  8595. 4:21:36go to ClickUp itself, pull real data in
  8596. 4:21:38from me and John's conversations and see
  8597. 4:21:40if the answer lived there. And so that
  8598. 4:21:41in my mind is still a second brain
  8599. 4:21:43because I'm able to ask a vague question
  8600. 4:21:45and the second brain knows exactly where
  8601. 4:21:47to look in what order to find that
  8602. 4:21:48real-time data and then give me back the
  8603. 4:21:50answer that I need. That's the question
  8604. 4:21:51I ask myself is does this thing
  8605. 4:21:53understand where my data lives and where
  8606. 4:21:55to look and can it give me accurate
  8607. 4:21:56answers. So as far as finding your
  8608. 4:21:58level, remember your whole project
  8609. 4:22:00doesn't fit into one level. Maybe this
  8610. 4:22:02folder is level two. Maybe this folder
  8611. 4:22:03is level four. Maybe this folder is
  8612. 4:22:04level three. Here are some things to
  8613. 4:22:06think about. If you are reexplaining
  8614. 4:22:07your setup and you need to find things
  8615. 4:22:09by exact words or files, look at level
  8616. 4:22:11one. If you have 30 plus notes and you
  8617. 4:22:12keep forgetting what's in them, look at
  8618. 4:22:14level two. That's where you sort of like
  8619. 4:22:15ingest them and get that wiki with
  8620. 4:22:17relationships. If your project is just
  8621. 4:22:19completely whiffing on notes that you
  8622. 4:22:20know exist and your routing isn't
  8623. 4:22:22working, then maybe you want to look for
  8624. 4:22:23something more like a semantic search
  8625. 4:22:25that doesn't rely on an exact word level
  8626. 4:22:27match. If you're looking for
  8627. 4:22:29relationships and to be able to follow
  8628. 4:22:30chains of questions and thoughts, then
  8629. 4:22:32you probably want to look for something
  8630. 4:22:33like a knowledge graph. And if you're
  8631. 4:22:34running agents offline and you've got so
  8632. 4:22:36much data and you want to sync up a
  8633. 4:22:37bunch of Hermes agents together, then
  8634. 4:22:39you probably are looking for something
  8635. 4:22:40like Level Five, something like Gbrain.
  8636. 4:22:42And another topic that I get some
  8637. 4:22:43questions about, which I'm not going to
  8638. 4:22:45fully address in this video, but I will
  8639. 4:22:46briefly bring up is the fact that you
  8640. 4:22:49are building your own second brain OS.
  8641. 4:22:51So are other people on your team. The
  8642. 4:22:53next question is how do you actually
  8643. 4:22:55make sure that everyone's data is
  8644. 4:22:56syncing together and how do you have
  8645. 4:22:58more of like your team second brain?
  8646. 4:23:00There's a lot of different ways to solve
  8647. 4:23:01that. I think once again it's not an
  8648. 4:23:03issue of oh do we use Google Drive or
  8649. 4:23:05notion or GitHub or cloud plugins. I
  8650. 4:23:08think the issue to figure out with your
  8651. 4:23:09team is how do we actually make sure
  8652. 4:23:11that we all habit shift so that this
  8653. 4:23:13stuff is actually useful and not just
  8654. 4:23:15noise. How do we make sure that process
  8655. 4:23:17owners are updating their docs and
  8656. 4:23:19syncing their stuff there? How do we
  8657. 4:23:20make sure that other people are pulling
  8658. 4:23:22from that rather than always just
  8659. 4:23:24pinging the same people for questions
  8660. 4:23:25and answers all the time? I think the
  8661. 4:23:27adoption and the change management
  8662. 4:23:28question is the bigger one. The tech and
  8663. 4:23:30the way it actually functionally rolls
  8664. 4:23:32out is a little bit less. But what I do
  8665. 4:23:34know is that you getting set up with
  8666. 4:23:36your own first and understanding how it
  8667. 4:23:38works, how you should route, how you
  8668. 4:23:40should make the decisions of where the
  8669. 4:23:41data should live, that's the first
  8670. 4:23:43hurdle. You can only solve the teamwide
  8671. 4:23:45problem once you feel comfortable about
  8672. 4:23:46the way you run it every single day and
  8673. 4:23:48that it works for you. All right, sweet.
  8674. 4:23:51So, you guys have heard me earlier in
  8675. 4:23:52this course talk about one of my skills
  8676. 4:23:53called the grill me, which was inspired
  8677. 4:23:55by Matt PCO's grill me skill as well.
  8678. 4:23:58So, now that you're thinking about
  8679. 4:24:00building out your second brain, I want
  8680. 4:24:02to talk about this grill me skill that
  8681. 4:24:04really helps me get more context into my
  8682. 4:24:07systems, but also helps grill me on
  8683. 4:24:10before I'm going to build an automation
  8684. 4:24:11or before I'm going to build a new
  8685. 4:24:13skill. Whenever I want to extract what's
  8686. 4:24:14in my brain and get it into my second
  8687. 4:24:16brain and get it into my AIOS, I like to
  8688. 4:24:19use this grill me skill. So, let's talk
  8689. 4:24:20about that real quick. The toughest part
  8690. 4:24:22about building good skills and building
  8691. 4:24:24a good operating system is trying to get
  8692. 4:24:26everything from your brain into your
  8693. 4:24:28system. So, for example, what you're
  8694. 4:24:30looking at here is after months and
  8695. 4:24:32months of me building up all of the
  8696. 4:24:33knowledge that lives inside of my AIOS.
  8697. 4:24:35It's basically just the idea that if
  8698. 4:24:37everyone's using the same model, so if
  8699. 4:24:38everyone's using Claude Opus 4.8,
  8700. 4:24:40then everyone's going to be using the
  8701. 4:24:42same prompts and getting the same output
  8702. 4:24:44because the model is fundamentally the
  8703. 4:24:45same for everybody. So what really makes
  8704. 4:24:46the difference is when you add context
  8705. 4:24:48into that model and you give it your
  8706. 4:24:49taste, your voice, your decisions, and
  8707. 4:24:51that's how you get outputs that actually
  8708. 4:24:53sound like you. But once again, the real
  8709. 4:24:54challenge is still the extraction,
  8710. 4:24:56getting everything from your head into
  8711. 4:24:58the AI system so that your skills can
  8712. 4:25:01use it and that your context is better.
  8713. 4:25:02And if you guys have been following me
  8714. 4:25:03for a while and you've seen videos I've
  8715. 4:25:05made about like discovery calls and and
  8716. 4:25:07scoping out projects, that's the
  8717. 4:25:09toughest part is especially if you're
  8718. 4:25:11working with a client, asking them so
  8719. 4:25:13many questions about this process to the
  8720. 4:25:14point where they might even get annoyed
  8721. 4:25:16because you're asking so many questions.
  8722. 4:25:17But that's just what you have to do.
  8723. 4:25:19It's the difference between a system
  8724. 4:25:20that is successful 95% of the time and
  8725. 4:25:22one that's only successful 80% of the
  8726. 4:25:24time. So this one skill we're going to
  8727. 4:25:25look at today is called grill me. It
  8728. 4:25:27basically takes what's in your head into
  8729. 4:25:29reusable context for your AI. So what
  8730. 4:25:31happens is all of that knowledge that's
  8731. 4:25:33in your head that you might think,
  8732. 4:25:34"Okay, I'm just going to brain dump into
  8733. 4:25:36clawed code for 5 minutes and it will be
  8734. 4:25:37good enough, it's not ever good enough."
  8735. 4:25:39So what this does is it basically
  8736. 4:25:41relentlessly asks you questions. It
  8737. 4:25:43grills you until it knows pretty much
  8738. 4:25:45everything about the process. It'll ask
  8739. 4:25:47you a question, you answer it, and then
  8740. 4:25:49it basically will checkpoint and it will
  8741. 4:25:50write everything back to a knowledge
  8742. 4:25:52dock and it will just keep going over
  8743. 4:25:54this loop endlessly until the knowledge
  8744. 4:25:56dock is good enough and there's no gaps
  8745. 4:25:58or holes in that knowledge. And so, like
  8746. 4:26:00I said, this results to better skills,
  8747. 4:26:01better context, and better projects. And
  8748. 4:26:04originally, this skill was built by Matt
  8749. 4:26:05PCO. And what's cool is if you look at
  8750. 4:26:07it, it is a super simple prompt. It's
  8751. 4:26:09like four to five sentences. Interview
  8752. 4:26:11me relentlessly about every aspect of
  8753. 4:26:13this plan until we reach a shared
  8754. 4:26:15understanding. Walk down each branch of
  8755. 4:26:17the design tree, resolving dependencies
  8756. 4:26:19between decisions one by one. For each
  8757. 4:26:21question, provide your recommended
  8758. 4:26:22answer. Ask questions one at a time. If
  8759. 4:26:24a question can be answered by exploring
  8760. 4:26:26the codebase, explore the codebase
  8761. 4:26:27instead. And I like to look at that
  8762. 4:26:28because it makes you realize that a
  8763. 4:26:30skill doesn't have to be super
  8764. 4:26:31complicated automation. A skill can just
  8765. 4:26:33be a prompt that you don't want to have
  8766. 4:26:35to say every single time. And of course,
  8767. 4:26:36naturally, what did I do? I destroyed
  8768. 4:26:38that. I ruined the skill. I made it a
  8769. 4:26:40little bit more complex, but I added
  8770. 4:26:42something that I think makes it much
  8771. 4:26:43better. So, if I go into mycloud, I go
  8772. 4:26:45down to my skills and we look for the
  8773. 4:26:46grill me right here and I open up the
  8774. 4:26:48skill.md. You can see it's a little bit
  8775. 4:26:50longer now. But basically what I did is
  8776. 4:26:52I worked in that whole element of
  8777. 4:26:54checkpointing after every single
  8778. 4:26:55question because originally the skill
  8779. 4:26:57doesn't do that and what happens is if
  8780. 4:26:59you are talking you know if it's
  8781. 4:27:01grilling you for an hour plus which
  8782. 4:27:02sometimes it will and that's a good
  8783. 4:27:03thing and as the condex window starts to
  8784. 4:27:05fill up I started to get worried that it
  8785. 4:27:07was going to misremember some of my
  8786. 4:27:09answers from earlier. So I just found
  8787. 4:27:10myself telling it manually hey write
  8788. 4:27:12this to a doc write this to a doc
  8789. 4:27:14checkpoint every time. And so I figured
  8790. 4:27:15okay why not just work that into the
  8791. 4:27:17skill. So now what the skill does is it
  8792. 4:27:19creates a folder called brainstorms and
  8793. 4:27:21it does this at the root of your
  8794. 4:27:22project. So if I go down here, you can
  8795. 4:27:24see I've got a brainstorm file or sorry
  8796. 4:27:26a brainstorm folder right here with
  8797. 4:27:27these four brainstorms. And so it will
  8798. 4:27:29create that for you if you don't have
  8799. 4:27:30it. But if you do have it, it will just
  8800. 4:27:32chuck a doc in there, a markdown file
  8801. 4:27:34right away. And so then if I open up
  8802. 4:27:36like for example this packaging one
  8803. 4:27:37which I was doing, it will find like the
  8804. 4:27:40algorithm, the key decisions, but then
  8805. 4:27:42it will also show you the step-by-step
  8806. 4:27:44Q&A log of the questions that it asked
  8807. 4:27:46and what I answered with and the key
  8808. 4:27:47highlights. And then as soon as we
  8809. 4:27:49finally got to the end of that packaging
  8810. 4:27:50grill me session, it said, "Hey, I
  8811. 4:27:52noticed you have this packaging guide
  8812. 4:27:54and you have a packaging skill and
  8813. 4:27:56there's a lot of nuance here that we
  8814. 4:27:57talked about that's not in there. So do
  8815. 4:27:59you want me to update both of those?"
  8816. 4:28:00And then I said yes. And now those
  8817. 4:28:02skills and docs are so much better. I
  8818. 4:28:04also did one where I said, "Hey, I want
  8819. 4:28:05you to understand everything about the
  8820. 4:28:07business." And we walked through from
  8821. 4:28:08beginning to end, all the decisions, all
  8822. 4:28:10the processes, and now my OS just feels
  8823. 4:28:12like it knows even more about the way
  8824. 4:28:14the business works. And so, if you think
  8825. 4:28:16about it like this, right, like nothing
  8826. 4:28:17is going to be perfect on the first try.
  8827. 4:28:19And so, let me just do a quick
  8828. 4:28:21visualization. This is kind of the old
  8829. 4:28:23way when you're building a skill, right?
  8830. 4:28:24So, we've got iterations down here.
  8831. 4:28:26Let's say by iteration one, after you've
  8832. 4:28:28knowledge dumped in your brain and you
  8833. 4:28:31want to build a skill, you maybe get
  8834. 4:28:32somewhere. or let's just say around here
  8835. 4:28:34where you're about like 70% successful
  8836. 4:28:36on iteration one and then what happens
  8837. 4:28:38is you run the skill and you make a
  8838. 4:28:40small improvement and now you're up
  8839. 4:28:41about I don't know right here like you
  8840. 4:28:43go up from 70% to 75 and then every time
  8841. 4:28:46you iterate you get a little bit better
  8842. 4:28:48with each iteration until maybe you cap
  8843. 4:28:50at the point where you're about like 95%
  8844. 4:28:53good and this could be 10 iterations it
  8845. 4:28:55could be 30 iterations it however many
  8846. 4:28:56it takes for your skill to feel a bit
  8847. 4:28:58more battle tested and honestly I don't
  8848. 4:29:00think you ever get to 100% because as
  8849. 4:29:02your business evolves and as you evolve,
  8850. 4:29:04the skill keeps evolving. So like all my
  8851. 4:29:06skills that I've been using for months
  8852. 4:29:07and months, I'm pretty much still
  8853. 4:29:10changing a lot. But the whole idea is
  8854. 4:29:12what if on iteration one because you do
  8855. 4:29:14this grill me and you spend extra time
  8856. 4:29:16up front, you're able to jump right up
  8857. 4:29:18here to like 90 at the beginning. And
  8858. 4:29:20yes, it's not perfect. You're still
  8859. 4:29:21going to iterate a little bit, but
  8860. 4:29:23you're just there a lot quicker, which
  8861. 4:29:24gives you more opportunity to find
  8862. 4:29:27better ways to iterate on it. So that's
  8863. 4:29:28my horrible visual of why I think this
  8864. 4:29:31is valuable. It just goes back to that
  8865. 4:29:32whole idea of if I had six hours to chop
  8866. 4:29:34down a tree, I would spend the first
  8867. 4:29:36four sharpening the axe where upfront,
  8868. 4:29:38yes, maybe it feels boring or
  8869. 4:29:40repetitive, but that's what you need to
  8870. 4:29:42do is get all that context in there
  8871. 4:29:43because it helps downstream so much
  8872. 4:29:45more. So anyways, if you guys want to
  8873. 4:29:47grab the grill me skill, you can look it
  8874. 4:29:48up here from Matt PCO. Or if you want my
  8875. 4:29:50version, you can come to my free school
  8876. 4:29:52community. The link for that is down in
  8877. 4:29:53the description. Just join the
  8878. 4:29:54community, go to the classroom, click on
  8879. 4:29:56all YouTube resources, and it will be
  8880. 4:29:57right in there for you to find along
  8881. 4:29:59with all my other free resources. And
  8882. 4:30:00then it's as simple as saying, "Hey,
  8883. 4:30:02grill me about this." Or, of course, you
  8884. 4:30:03can invoke it with a slash command.
  8885. 4:30:05Right there, you can see, "Grill me."
  8886. 4:30:07But I could just say something as simple
  8887. 4:30:08as, "Hey, I need you to grill me about
  8888. 4:30:10the way that I think about applying AI
  8889. 4:30:12to my own business internally in a safe
  8890. 4:30:15way that won't damage the business." You
  8891. 4:30:18can see it'll obviously load up that
  8892. 4:30:19grill me skill. We're going to see in a
  8893. 4:30:21second that it's going to create the
  8894. 4:30:22capture file so nothing gets lost. Right
  8895. 4:30:24there we have applying AI internally.
  8896. 4:30:26And this is what it looks like. It's
  8897. 4:30:28going to set up the discovery notes, the
  8898. 4:30:30summary key decisions, um, Q&A log, and
  8899. 4:30:32any open flags. And what's cool about
  8900. 4:30:34this is it'll flag things that you need
  8901. 4:30:36to go find. So, when I was running
  8902. 4:30:38through this funnel map, you know, there
  8903. 4:30:39were some things going on in the
  8904. 4:30:40business that I don't actually know
  8905. 4:30:42super well. Like, I can't explain the
  8906. 4:30:44same way as the actual stakeholder or
  8907. 4:30:45operator that does that process can
  8908. 4:30:47explain it. So, it said, "Hey, here's
  8909. 4:30:49some things to flag. Go reach out to
  8910. 4:30:50this person and have them send you
  8911. 4:30:52information and then come back and drop
  8912. 4:30:54that into me and then we'll update this
  8913. 4:30:56brainstorm." So that's basically how it
  8914. 4:30:57works. It might ask you five questions.
  8915. 4:30:59It might ask you 30. It's just going to
  8916. 4:31:01go until you guys feel like you have the
  8917. 4:31:02same shared knowledge and that it is a
  8918. 4:31:04good stopping point. And the cool thing
  8919. 4:31:06is because these are saved as docs. You
  8920. 4:31:08can reference them later. But you could
  8921. 4:31:09also come back to like for example
  8922. 4:31:10packaging. Let's say I I find a major
  8923. 4:31:13breakthrough in the way that I package
  8924. 4:31:14my content. I would just come back to
  8925. 4:31:16this doc and say, "Hey, grill me again.
  8926. 4:31:19Here's some new things I found. Let's
  8927. 4:31:20update all this information." All right.
  8928. 4:31:22Let's talk about agent teams. What do I
  8929. 4:31:24mean by this? I basically just mean how
  8930. 4:31:26can you just leverage
  8931. 4:31:28a bunch of cloud agents running at the
  8932. 4:31:30same time creating a team and typically
  8933. 4:31:33when I want to go for an agent team I've
  8934. 4:31:35got one reason and that is because I
  8935. 4:31:38want multiple perspectives. I want
  8936. 4:31:41multiple different types of agents that
  8937. 4:31:43have specialties in different areas to
  8938. 4:31:45collaborate on something together. Now
  8939. 4:31:47there is one important thing to
  8940. 4:31:48understand about agent teams. There is a
  8941. 4:31:51big difference between sub agents and
  8942. 4:31:54agent teams. Take a look at this visual.
  8943. 4:31:56On the lefth hand side, we have sub
  8944. 4:31:57aents. On the right hand side, we have
  8945. 4:31:58agent teams. Now, we've already talked
  8946. 4:32:00about sub aents. You guys understand
  8947. 4:32:01this. The main agent orchestrates sub
  8948. 4:32:03aents with fresh context windows. And
  8949. 4:32:05the sub aents cannot talk to each other.
  8950. 4:32:07They can only talk back to the main
  8951. 4:32:09agent. They can only report to the main
  8952. 4:32:11agent. But in agent teams, look at this.
  8953. 4:32:13The main agent spins up the team and
  8954. 4:32:15there's a shared task list. And now all
  8955. 4:32:18of these specialized teammates can
  8956. 4:32:20communicate between each other and they
  8957. 4:32:22can claim tasks off the list and they
  8958. 4:32:24literally can work together and talk to
  8959. 4:32:26each other and report back to the main
  8960. 4:32:28agent. So it's just a lot more of a team
  8961. 4:32:30rather than like individual workers in
  8962. 4:32:33cubicles that don't talk. These are
  8963. 4:32:35actual, you know, people sitting around
  8964. 4:32:36one desk having a meeting talking and
  8965. 4:32:38getting work done. So it's very cool,
  8966. 4:32:40but it is a little bit more token
  8967. 4:32:42intensive. So I don't use them all the
  8968. 4:32:45time. Like I said, it's a very specific
  8969. 4:32:46scenario when I want to have a bunch of
  8970. 4:32:48different perspectives collaborating
  8971. 4:32:50together in real time. Now, if you want
  8972. 4:32:52to do stuff in parallel, you're probably
  8973. 4:32:53better off just spinning up a dynamic
  8974. 4:32:56workflow. So, a dynamic workflow is
  8975. 4:32:57really cool because what it does is it
  8976. 4:32:58takes the main session and it basically
  8977. 4:33:02creates these dynamic workflows of
  8978. 4:33:04agents that will do different phases. So
  8979. 4:33:06maybe it'll spin up five for the
  8980. 4:33:07planning phase and then maybe it'll spin
  8981. 4:33:09up like 10 for the next phase and it
  8982. 4:33:10will just dynamically spin up more
  8983. 4:33:12phases of sub aents based on the results
  8984. 4:33:15of the previous session. So it is very
  8985. 4:33:18cool. It's it's also quite token
  8986. 4:33:19intensive, but it's a great way to do
  8987. 4:33:21like verification loops and to make sure
  8988. 4:33:23that everything is working as it should.
  8989. 4:33:25So um I do have videos on my channel
  8990. 4:33:26about dynamic workflows. I'll tag one
  8991. 4:33:28right up here if you want to check out
  8992. 4:33:29like kind of I break down how it works.
  8993. 4:33:31But those are all sub agents still. Now,
  8994. 4:33:33what if we want agent teams that
  8995. 4:33:35literally, as we know, collaborate with
  8996. 4:33:37each other, talk to each other, and all
  8997. 4:33:39report back to the main session, and
  8998. 4:33:41maybe they have some sort of shared task
  8999. 4:33:42list together. I mainly have one key use
  9000. 4:33:46case when I make agent teams because
  9001. 4:33:48typically I can I find that things can
  9002. 4:33:49be done in parallel. But let me talk
  9003. 4:33:52about my use case here. So, I like to do
  9004. 4:33:56councils or war rooms or, you know,
  9005. 4:33:58something what I call a roast. The idea
  9006. 4:34:00is whenever I'm having a big decision or
  9007. 4:34:03whenever I'm trying to analyze if
  9008. 4:34:04something is going to resonate with the
  9009. 4:34:06audience or you know if there's any
  9010. 4:34:07holes in my plan, I like to spin up a
  9011. 4:34:09debate team of different agents that
  9012. 4:34:11literally talk to each other and debate
  9013. 4:34:13and they go back and forth and chat and
  9014. 4:34:15chat and chat until they reach some sort
  9015. 4:34:17of consensus. And I just think that it's
  9016. 4:34:19not only pretty fun, but it gives me
  9017. 4:34:20different angles and then I'm able to
  9018. 4:34:22read the debate and I'm able to read
  9019. 4:34:24what did different perspectives bring
  9020. 4:34:25up. Now, before we actually do that, I
  9021. 4:34:28have to show you how you set up agent
  9022. 4:34:29teams because if you go to the
  9023. 4:34:30documentation, you can see that this is
  9024. 4:34:32an experimental feature that is disabled
  9025. 4:34:34by default, at least at the time of
  9026. 4:34:35making this video. So, you have to
  9027. 4:34:37enable them by adding a config to your
  9028. 4:34:39settings. So, look at this. All you have
  9029. 4:34:41to do is you have to add this
  9030. 4:34:43environment variable cloud code
  9031. 4:34:44experimental agent teams equals 1. So,
  9032. 4:34:46what I'm going to do is copy this. I'm
  9033. 4:34:48going to go into our knowledge work
  9034. 4:34:49project that we've been working on
  9035. 4:34:50together. You can see in here if I go to
  9036. 4:34:52the files and I go to my.claude. We
  9037. 4:34:54don't yet have a settings.json file. So
  9038. 4:34:57we're going to have to create that. But
  9039. 4:34:58here's what I'm going to say. Hey
  9040. 4:34:59Claude, I want to test out agent teams
  9041. 4:35:01which is currently an experient or
  9042. 4:35:03experiential an experimental feature
  9043. 4:35:05from cloud code. So take a look at this
  9044. 4:35:08environment variable. And I'm just going
  9045. 4:35:10to paste that in. The documentation told
  9046. 4:35:13me that we have to put this inside of
  9047. 4:35:14our local settings, the JSON file for
  9048. 4:35:17this project if we want to use agent
  9049. 4:35:19teams in this project. So inside of my
  9050. 4:35:20do.claude create the settings file and
  9051. 4:35:23add this to the config so that we can
  9052. 4:35:25actually use agent teams. Okay. So I'm
  9053. 4:35:27going to shoot that off and hopefully
  9054. 4:35:29it's able to understand that request.
  9055. 4:35:30It's able to create us that settings
  9056. 4:35:32file and then we'll be up and running
  9057. 4:35:33with agent teams. You can see it's even
  9058. 4:35:35running a skill right here that's called
  9059. 4:35:37update config. Okay, awesome. So it
  9060. 4:35:39created that file. If we go in here and
  9061. 4:35:41we just verify that in thecloud we have
  9062. 4:35:43a settings.local.json and there it is
  9063. 4:35:45right there. Perfect. Now, what we
  9064. 4:35:47probably need to do is reset the
  9065. 4:35:49session. So, I'm going to clear that
  9066. 4:35:50out. A lot of times when you add a new
  9067. 4:35:51config, you have to start a new session
  9068. 4:35:53in order to be able to have those
  9069. 4:35:54changes actually take effect. So, let's
  9070. 4:35:58see what we can do real quick. I pulled
  9071. 4:35:59up this report. It's a 2026 CEO study by
  9072. 4:36:02IBM. They surveyed a bunch of CEOs and
  9073. 4:36:04asked about some AI stuff, which I've
  9074. 4:36:05broken this down in a few different
  9075. 4:36:07videos. It's super super interesting.
  9076. 4:36:08So, if you want to check that out, just
  9077. 4:36:10Google this 2026 CEO study IBM and give
  9078. 4:36:14it a read. Super interesting. Anyways,
  9079. 4:36:16what I did though is I downloaded this
  9080. 4:36:18PDF. So, I'm going to just pull up my
  9081. 4:36:19downloads real quick. And what I like to
  9082. 4:36:22do is I like to just copy the path to
  9083. 4:36:24the file that I want my agents to look
  9084. 4:36:27at because it can obviously access your
  9085. 4:36:28downloads. So, I copied the path. I'm
  9086. 4:36:30going to go back into Claude, paste that
  9087. 4:36:31in there. Now, I'm going to say the
  9088. 4:36:33following.
  9089. 4:36:35All right. So, I just read this report
  9090. 4:36:36and I think it's really interesting, but
  9091. 4:36:38I'm having trouble understanding how to
  9092. 4:36:40apply the insights to my day-to-day. So,
  9093. 4:36:42what I would like you to do is I would
  9094. 4:36:44like you to create an agent team using
  9095. 4:36:46the team create function to create an
  9096. 4:36:48agent team. I want this agent team to
  9097. 4:36:50have different personas. So, I'm
  9098. 4:36:51thinking maybe like a small business
  9099. 4:36:53owner, a large enterprise business
  9100. 4:36:56owner, a CEO, and
  9101. 4:37:00maybe a entry-level employee. And then
  9102. 4:37:02any other personas that you think would
  9103. 4:37:04be interesting to have inside of this
  9104. 4:37:05discussion because I want them to debate
  9105. 4:37:08about this report. I want them to
  9106. 4:37:09analyze what stats did they think were
  9107. 4:37:11the most interesting and what was the
  9108. 4:37:12most concerning and I want them to go on
  9109. 4:37:15a couple rounds of debates so that they
  9110. 4:37:16can basically give me an analysis of how
  9111. 4:37:19I should use it for me and my business.
  9112. 4:37:21Now I know you don't know too much about
  9113. 4:37:23me at the moment. So go ahead and look
  9114. 4:37:25through my Herk 2 project so that you
  9115. 4:37:27can see who I am and what my business
  9116. 4:37:29does and then make sure all of the
  9117. 4:37:31insights and the debate are tailored
  9118. 4:37:33towards me personally for me and my
  9119. 4:37:34business. Okay. So, the reason why I
  9120. 4:37:37said that so specifically up at the
  9121. 4:37:39beginning where I said use the team
  9122. 4:37:40create function in order to create an
  9123. 4:37:42agent team is because sometimes if you
  9124. 4:37:43say an agent team, it might just spin up
  9125. 4:37:45a bunch of sub aents. So, you have to be
  9126. 4:37:46specific about agent teams that can
  9127. 4:37:48actually talk to each other. And the
  9128. 4:37:49good news is you'll actually be able to
  9129. 4:37:51see when it does that. Okay, so one
  9130. 4:37:54thing I wanted to call out is that
  9131. 4:37:55agents don't like to read PDFs and like
  9132. 4:37:57HTML as much because there's a lot of
  9133. 4:37:58metadata. So, what it did here is it
  9134. 4:38:00converted that PDF to text. If you see
  9135. 4:38:03right here, it converted it to text and
  9136. 4:38:04then it read the text. So anyways, you
  9137. 4:38:07can see here it says, "Before I spin up
  9138. 4:38:08the team, let me stage a shared brief."
  9139. 4:38:10So all personas debate the same facts
  9140. 4:38:13and they all tailor to you specifically.
  9141. 4:38:14So it's going to write up that brief and
  9142. 4:38:16then it will spin up the agent team and
  9143. 4:38:17I will point that out to you guys. Okay,
  9144. 4:38:19here we go. So it is launching six
  9145. 4:38:21distinct personas round one and it's
  9146. 4:38:23going to run all six in parallel. So
  9147. 4:38:25that word kind of scares me because I'm
  9148. 4:38:27not sure if it fully understood that we
  9149. 4:38:29want the team. Let's see what it does
  9150. 4:38:31here. Now, as you can see these
  9151. 4:38:32different personas being spun up. What's
  9152. 4:38:33cool is you can click into them and you
  9153. 4:38:35can see the actual prompt that was shot
  9154. 4:38:37off. So, this is the prompt that was
  9155. 4:38:38sent off to this specific agent, but it
  9156. 4:38:42looks like this might not be a team. It
  9157. 4:38:44looks like it's just spinning up six sub
  9158. 4:38:46aents. So, I'm going to stop this real
  9159. 4:38:47quick and just verify that it, you know,
  9160. 4:38:49it understands me correctly. And that is
  9161. 4:38:51something that you should do. Watch your
  9162. 4:38:52agents as they're working and they're
  9163. 4:38:54building things. And if it feels like
  9164. 4:38:55they're going off the track that you're
  9165. 4:38:57trying to put them on, then stop them
  9166. 4:38:59and explain. So, it looks like you're
  9167. 4:39:01creating just sub agents and you're just
  9168. 4:39:03running those in parallel, but they
  9169. 4:39:05can't actually talk to each other. And I
  9170. 4:39:07wanted you to use the agent team
  9171. 4:39:08function, team create function. So, you
  9172. 4:39:11can actually create an agent team that
  9173. 4:39:13can all talk to each other together. So,
  9174. 4:39:14that's super important. Please make sure
  9175. 4:39:16that you're doing it that way. Okay. So,
  9176. 4:39:18I was correct. It was doing it wrong and
  9177. 4:39:20it was able to do a little more research
  9178. 4:39:21and correct itself. Now, quick quiz
  9179. 4:39:23question. What would you do now? If you
  9180. 4:39:27said build a skill around agent teams or
  9181. 4:39:30if you said something like put this in
  9182. 4:39:31the cloudmd, then I would say you're
  9183. 4:39:33right. Whenever it misunderstands you,
  9184. 4:39:35correct it and tell it to update
  9185. 4:39:37instructions, update skills or create a
  9186. 4:39:39skill so that that misunderstanding
  9187. 4:39:40doesn't ever happen again. Remember? So
  9188. 4:39:43that's what you should do after this
  9189. 4:39:44message or even start up a new session
  9190. 4:39:46and say, "Hey, here's what happened and
  9191. 4:39:47here's what you did and we need to make
  9192. 4:39:48sure that it doesn't happen again." So
  9193. 4:39:50anyways, let's see what it's doing now.
  9194. 4:39:52It has these six different personas that
  9195. 4:39:54are being spun up and these are personas
  9196. 4:39:57that are going to be able to actually
  9197. 4:39:58talk to each other. You can see that
  9198. 4:39:59it's sending off different messages to
  9199. 4:40:01these different personas. So anyways,
  9200. 4:40:03now that we know that they're able to
  9201. 4:40:04actually talk to each other and debate
  9202. 4:40:05the way we wanted them to, I'll check in
  9203. 4:40:07with you guys when this is completely
  9204. 4:40:09done. Now, the other thing to remember
  9205. 4:40:10real quick about this is that this isn't
  9206. 4:40:12going to fill up too too much of our
  9207. 4:40:14actual context window, but this will eat
  9208. 4:40:16at our 5-h hour limit because all of
  9209. 4:40:17these agents, you know, they're on their
  9210. 4:40:19own context windows and they're eating
  9211. 4:40:20tokens and they're talking and agent
  9212. 4:40:22teams are expensive. But just wanted to
  9213. 4:40:23call out once again that these agents
  9214. 4:40:26are talking not in our main sessions
  9215. 4:40:28context window. All right, so that
  9216. 4:40:29finished up. I'm not going to read this
  9217. 4:40:31entire thing and every single round of
  9218. 4:40:32debates because that would be boring and
  9219. 4:40:33take forever. Let's just go over some of
  9220. 4:40:35the key facts. So, six personas, three
  9221. 4:40:37rounds, real cross talk. We had a small
  9222. 4:40:40business owner, we had a chief AI
  9223. 4:40:41officer, we had founder, CEO, we had a
  9224. 4:40:43bunch of different roles, right? So, as
  9225. 4:40:45far as the stats, each of the different
  9226. 4:40:46personas pulled out one that was the
  9227. 4:40:47most interesting and one that was the
  9228. 4:40:49most concerning. We saw the team's
  9229. 4:40:51collective verdict after they argued it
  9230. 4:40:53was that the most interesting stat was
  9231. 4:40:55the reality gap. 10% today versus 72% by
  9232. 4:40:582030. It's the one honest number in the
  9233. 4:41:00deck and it's your product market fit
  9234. 4:41:02written in a footnote. The most
  9235. 4:41:04concerning stat was the 25% use versus
  9236. 4:41:0686% skills adoption gap. It's your own
  9237. 4:41:09risk. The same disease as your 20% AI
  9238. 4:41:11plus churn and your single most sellable
  9239. 4:41:13lesson all at once. And the most
  9240. 4:41:14overrated was the plus 17% headline. So
  9241. 4:41:16anyways, they had to agree on this
  9242. 4:41:18stuff. They had to all come to a
  9243. 4:41:19consensus on these stats. And now it
  9244. 4:41:22gave us basically actionable steps
  9245. 4:41:24because it knows me. So audit your own
  9246. 4:41:26agents before you sell a cert about
  9247. 4:41:27auditing agents. Turn the Nate to John
  9248. 4:41:29handoff into a one-page decision rights
  9249. 4:41:31map. fix 20% churn, ship a free AI
  9250. 4:41:34adoption at audit, and adopt Gordon's
  9251. 4:41:35credibility guardrail on every citation.
  9252. 4:41:37We could dig into this, right? And we
  9253. 4:41:39can have a full report written up, but
  9254. 4:41:41the point I'm trying to make here is
  9255. 4:41:43getting different personas is really
  9256. 4:41:44nice because you have subject matter
  9257. 4:41:46expertise in one or maybe a few areas,
  9258. 4:41:48but you don't you can't see everything.
  9259. 4:41:50You can't see around every corner
  9260. 4:41:51because of your experience and because
  9261. 4:41:52of your knowledge, but other people can.
  9262. 4:41:55And Stanford actually proved this. They
  9263. 4:41:57have a research method called the storm
  9264. 4:41:58method where they have different
  9265. 4:41:59personas attack the angle and find the
  9266. 4:42:02holes in it and then it has been proven
  9267. 4:42:04that it's much better research and much
  9268. 4:42:06more thorough research. So, I did a
  9269. 4:42:08video breaking that one down as well.
  9270. 4:42:09It's called the storm research method
  9271. 4:42:11and I'll tag that video right up there
  9272. 4:42:12if you want to check it out for next
  9273. 4:42:14time you're doing research. But just
  9274. 4:42:15thinking about the idea of using
  9275. 4:42:17different agents as individual
  9276. 4:42:19specialized experts that can help you
  9277. 4:42:21create better plans, create better
  9278. 4:42:23products, create, you know, have better
  9279. 4:42:24ideas. What's really cool about this,
  9280. 4:42:26this wasn't planned, but the next thing
  9281. 4:42:27I wanted to talk about on here was
  9282. 4:42:29artifacts. So, it's cool because at the
  9283. 4:42:32end of this message, Claude says, "Do
  9284. 4:42:33you want me to package this into a
  9285. 4:42:34sharable artifact, a clean one page that
  9286. 4:42:36you can revisit or send to other
  9287. 4:42:38people?" So, basically, the way that you
  9288. 4:42:40used to share information is you would
  9289. 4:42:42create slide decks or you would create
  9290. 4:42:44like a little memo or I don't know,
  9291. 4:42:46however you like to send information to
  9292. 4:42:48your team, that's what you would do. And
  9293. 4:42:50a lot of times when you would send those
  9294. 4:42:51artifacts, they would be static, meaning
  9295. 4:42:52you would download it, you'd send it
  9296. 4:42:54over, they would open it, and if you
  9297. 4:42:55made changes on your end, it would kind
  9298. 4:42:57of, you know, you'd have to send them an
  9299. 4:42:58updated version. But Claude recently
  9300. 4:43:00dropped these things called artifacts
  9301. 4:43:01where it's able to package everything up
  9302. 4:43:03into a pretty HTML style and then it
  9303. 4:43:05will just give it to you on an actual
  9304. 4:43:06URL, meaning it's live on the web and
  9305. 4:43:08you don't have to host it. It's
  9306. 4:43:09literally just Claude will host it for
  9307. 4:43:11you. So that way whenever you have
  9308. 4:43:12artifacts and whenever you've been
  9309. 4:43:13brainstorming with Claude for a while,
  9310. 4:43:15you can say, "Hey, put that into a quick
  9311. 4:43:16artifact so I can send it to my whole
  9312. 4:43:18team." And then what's cool is if you
  9313. 4:43:19keep updating it on your side, as soon
  9314. 4:43:21as you update the artifact, whoever is
  9315. 4:43:23watching it, it will update on their
  9316. 4:43:24side, too. So, it's a really nice thing
  9317. 4:43:27to be able to utilize, especially if
  9318. 4:43:28you're working on projects with your
  9319. 4:43:30teams. I'm not going to spend too much
  9320. 4:43:31time here because it's a pretty simple
  9321. 4:43:33concept, but I definitely wanted to
  9322. 4:43:34bring it up. So, on this lefth hand
  9323. 4:43:36side, you can see if I click on
  9324. 4:43:37artifacts, I only have one right now
  9325. 4:43:38because it's a pretty new feature, but
  9326. 4:43:40let me open up this artifact to show
  9327. 4:43:41you. This is a URL. So, if I gave you
  9328. 4:43:43guys this URL, you could actually see
  9329. 4:43:45this as well. I guess actually you have
  9330. 4:43:47to be in my organization to see it, but
  9331. 4:43:48either way, the point is it's live. It's
  9332. 4:43:50not a local host. It's a real URL. And
  9333. 4:43:52so this one I had it spin up to prove to
  9334. 4:43:54me that the spacing on our book was
  9335. 4:43:56correct. So it was proving to me against
  9336. 4:43:58like The Great Gatsby and it was showing
  9337. 4:43:59me the indentation and the spacing and
  9338. 4:44:01all that kind of stuff. And this is not
  9339. 4:44:03itself a really impressive artifact. I
  9340. 4:44:05just wanted to show you that Claude
  9341. 4:44:07basically hosts these. You can switch
  9342. 4:44:08between them. You can rename them. You
  9343. 4:44:10can see the different versions. You can
  9344. 4:44:11copy the actual prompt to edit the
  9345. 4:44:13artifact. And like I said, if I go back
  9346. 4:44:15into the app, you can see that you will
  9347. 4:44:17be able to manage and view all of your
  9348. 4:44:19artifacts right here. Copy the link,
  9349. 4:44:20send them over to your team. All of
  9350. 4:44:22these things over here, these are not
  9351. 4:44:23artifacts. These are just different
  9352. 4:44:24chats or different projects. These are
  9353. 4:44:26the artifacts. All right. So, we have
  9354. 4:44:28our artifact fully built out. As you can
  9355. 4:44:30see, all I had to say was yes, turn that
  9356. 4:44:32into an artifact. So, it used all the
  9357. 4:44:34context and it used all of the rounds of
  9358. 4:44:36debating to help us build this out. Um,
  9359. 4:44:38let me just go ahead and open this up on
  9360. 4:44:40an actual URL. So, here is the actual
  9361. 4:44:43link. As you guys see, this is something
  9362. 4:44:44that I could send to my team very
  9363. 4:44:45easily. I'm going to open that up here.
  9364. 4:44:47Rewiring the seauite translated for one
  9365. 4:44:5015 person company. So, this was our
  9366. 4:44:51agent team debate on this study. We can
  9367. 4:44:53see the verdict. We can see the stats
  9368. 4:44:55each seat fought over. We can see the
  9369. 4:44:57round table with the different personas.
  9370. 4:44:59We can look at the five moves. So, we
  9371. 4:45:00could really just dig in here and I
  9372. 4:45:02could obviously, like I said, if I
  9373. 4:45:03wanted to show my team what I had worked
  9374. 4:45:05on today or show them something
  9375. 4:45:06interesting that I built, I would just
  9376. 4:45:07send that over. Super super easy, super
  9377. 4:45:09super quick. Awesome. So, that is
  9378. 4:45:11artifacts. Very very cool. Let me go
  9379. 4:45:13ahead and cross this out. We are really
  9380. 4:45:15making some great progress on this
  9381. 4:45:17course today. So the next thing you can
  9382. 4:45:19see down here is routines. And routines
  9383. 4:45:21are absolutely awesome in the desktop
  9384. 4:45:23app. It's really, really easy to manage
  9385. 4:45:25them. I click over here on routines. You
  9386. 4:45:27can see different routines that I have.
  9387. 4:45:29And what you'll notice over here is that
  9388. 4:45:30some are paused. You'll notice that some
  9389. 4:45:32are cloud. And then you can also spin up
  9390. 4:45:34ones that are local. And so really the
  9391. 4:45:36big difference is that the local
  9392. 4:45:37routines, they have to be running
  9393. 4:45:40locally. So your cloud code app has to
  9394. 4:45:42be open and your computer has to be on.
  9395. 4:45:44But if you put them in the cloud, then
  9396. 4:45:46all of this can be turned off and
  9397. 4:45:47they'll still be running on the cloud
  9398. 4:45:49whenever you want them to. So if you
  9399. 4:45:51want them triggered on a specific, you
  9400. 4:45:52know, day and a certain time, it can be
  9401. 4:45:54that. It can also be triggered on
  9402. 4:45:56certain actions. Now, the one thing is
  9403. 4:45:58you are limited on how many cloud
  9404. 4:45:59routines you can have active. I believe
  9405. 4:46:01it's like 15 per day can be triggered,
  9406. 4:46:04but they're super easy to set up. And
  9407. 4:46:05what's awesome is you get the full
  9408. 4:46:06agentic loop. So, I'm about to shoot you
  9409. 4:46:09guys over into a video where I break
  9410. 4:46:10down these routines and how to set them
  9411. 4:46:12up. It's completely awesome. Cloud Code
  9412. 4:46:14has finally brought us routines, which
  9413. 4:46:16basically means you can inject a prompt
  9414. 4:46:18into Cloud Code, but it can be running
  9415. 4:46:19on the web, so your laptop does not have
  9416. 4:46:21to stay open. And I'm so excited about
  9417. 4:46:23it. I've already been playing around
  9418. 4:46:24with it. I've been migrating my
  9419. 4:46:25automations over there, but there are a
  9420. 4:46:26lot of little gotchas. So, I'm here to
  9421. 4:46:28explain exactly how you can actually set
  9422. 4:46:29up these automations so that they work.
  9423. 4:46:31So, today, April 14th, Claude tweeted,
  9424. 4:46:33"Now in research preview, routines and
  9425. 4:46:35cloud code. You configure a routine
  9426. 4:46:37once, which is basically like a prompt,
  9427. 4:46:38and it can run on a schedule, from an
  9428. 4:46:40API call, or in response to an event,
  9429. 4:46:42and it runs on Anthropics web
  9430. 4:46:44infrastructure. So, that's awesome. So,
  9431. 4:46:46you can call a routine from an API, you
  9432. 4:46:48can have GitHub events trigger it, or
  9433. 4:46:50they can be scheduled, which are like
  9434. 4:46:51the scheduled automations that we
  9435. 4:46:52already have, but now they run on the
  9436. 4:46:54web. So, you really can create these
  9437. 4:46:55from anywhere. You can do it right here
  9438. 4:46:57as a scheduled trigger to run scheduled
  9439. 4:46:59remote agents, which is in the terminal.
  9440. 4:47:01You could also go to cloud.ai/code. So,
  9441. 4:47:03you could do it on the web. web. And
  9442. 4:47:04right here, you see I have three web-
  9443. 4:47:05based routines right here. Or what I'm
  9444. 4:47:07going to be showing you guys today is
  9445. 4:47:08just doing it in the desktop app.
  9446. 4:47:10Because right here, if I go to my
  9447. 4:47:11scheduled tasks, you can see that I've
  9448. 4:47:13got some like these four that are local.
  9449. 4:47:15And then I've got these four that are
  9450. 4:47:16running inside of a GitHub repository.
  9451. 4:47:18So these are the remote ones. If I go up
  9452. 4:47:20here and click on new task, this is
  9453. 4:47:22where we could set up a new local task
  9454. 4:47:24or a new remote task. It's very similar.
  9455. 4:47:26You set up the name, you set up what
  9456. 4:47:28Claude should do, and this is the actual
  9457. 4:47:30prompt. So I'll talk more about that in
  9458. 4:47:31a sec. But then you would configure your
  9459. 4:47:33model, your repository, and your cloud
  9460. 4:47:36environment. You set the cadence hourly,
  9461. 4:47:38daily, weekdays. I think the minimum is
  9462. 4:47:40once an hour. Like you couldn't go like
  9463. 4:47:42every 10 minutes or something, but still
  9464. 4:47:44not bad at all. This is where you could
  9465. 4:47:45configure all of your connectors. So if
  9466. 4:47:47you need to connect Slack or Gmail or,
  9467. 4:47:49you know, whatever it is, you can
  9468. 4:47:50connect them right here. But you can
  9469. 4:47:52also just do your regular API endpoints
  9470. 4:47:54with your API keys. And then of course,
  9471. 4:47:56you've got your permissions. So you can
  9472. 4:47:57choose how Claude should be acting. Now,
  9473. 4:48:00the one thing about these are these are
  9474. 4:48:02meant to be a oneshot prompt. You're not
  9475. 4:48:04around. So, you probably want to make
  9476. 4:48:05sure that it doesn't ever have to stop
  9477. 4:48:06and ask you questions. Otherwise, what's
  9478. 4:48:08the point of the automation? So, like I
  9479. 4:48:10said, there's tons of things to dive
  9480. 4:48:11into here, and I'm not going to try to
  9481. 4:48:13bore you guys, but some of this is
  9482. 4:48:14really important because when I first
  9483. 4:48:15got this set up, my automations weren't
  9484. 4:48:18just migrating over and working. So, I'm
  9485. 4:48:19going to tell you guys the issues that I
  9486. 4:48:21ran into, and hopefully answer
  9487. 4:48:22everything that you need to know so that
  9488. 4:48:24you won't have to go into the comments
  9489. 4:48:25and ask these common questions. I can
  9490. 4:48:27just answer them right here for you. So,
  9491. 4:48:28let me just first of all, real quick,
  9492. 4:48:29show you guys what I tested out. The
  9493. 4:48:31first thing I wanted to test out is if I
  9494. 4:48:33came in here and I created a new routine
  9495. 4:48:36for just shooting a message to my
  9496. 4:48:38ClickUp. Obviously, that's not any
  9497. 4:48:40value, but I just wanted to see how it
  9498. 4:48:41worked because what I wanted to do is
  9499. 4:48:42see if I could do this without adding my
  9500. 4:48:44connector of ClickUp. And I was able to
  9501. 4:48:47actually get this to fire off, but it
  9502. 4:48:48didn't work right away. So, let me show
  9503. 4:48:49you guys what I ran into. So, the way
  9504. 4:48:51that this works is you need a GitHub
  9505. 4:48:53repository to sync it to in order for
  9506. 4:48:55this to actually run. So, it's going to
  9507. 4:48:56clone my Herk 2 project right here in
  9508. 4:48:58the web. It's going to be able to read
  9509. 4:49:00my cloud.mmd. It's going to be able to
  9510. 4:49:01read my scripts and my skills. And then
  9511. 4:49:03after it finishes the job, it basically
  9512. 4:49:05just destroys that little cloud GitHub
  9513. 4:49:07clone. But as you guys know, you don't
  9514. 4:49:09push your secrets into GitHub because if
  9515. 4:49:12you see here, my my Herk 2 project, this
  9516. 4:49:14is my ENV file with all of my API keys
  9517. 4:49:17and this is listed in the git ignore,
  9518. 4:49:18which basically says, hey, when you push
  9519. 4:49:20to GitHub, you don't include these
  9520. 4:49:22files. So what that means is in here if
  9521. 4:49:24this is only looking at your GitHub
  9522. 4:49:25repo, there's no ENV. So how do you get
  9523. 4:49:28your API keys into this routine that
  9524. 4:49:31runs on the web? Well, what you do is
  9525. 4:49:33inside of this scheduled task, you have
  9526. 4:49:36a cloud environment. So if I click on
  9527. 4:49:38this one, you can see this one is called
  9528. 4:49:39Nate Cloud. So if I open up the
  9529. 4:49:41settings, what do you see? You have the
  9530. 4:49:43name of this cloud environment, you have
  9531. 4:49:44the network access, and you have
  9532. 4:49:46environment variables. So right here is
  9533. 4:49:48where I put in my YouTube API key, my
  9534. 4:49:50ClickUp API key, any of the other API
  9535. 4:49:52keys that I need to give this cloud
  9536. 4:49:54environment access to. And then the
  9537. 4:49:56other thing you have to do is you have
  9538. 4:49:57to look at the access levels because
  9539. 4:49:59right here you can see that this one is
  9540. 4:50:00on full, but by default this will be on
  9541. 4:50:03trusted, I believe. And that means you
  9542. 4:50:05can only download packages from verified
  9543. 4:50:07sources from Anthropic. And when we talk
  9544. 4:50:09about this later, I'll have a link which
  9545. 4:50:10you can go see all of them. You could
  9546. 4:50:12even do custom if you wanted to allow
  9547. 4:50:13specific domains that aren't on that
  9548. 4:50:15list. But in order for ClickUp to work
  9549. 4:50:16in this case, I had to go on full
  9550. 4:50:18because when I went on trusted, it said,
  9551. 4:50:19"Hey, we can't actually do that." But
  9552. 4:50:21when I changed this to full, it let me
  9553. 4:50:23send a message to my ClickUp. And that
  9554. 4:50:24is how I got this message right here
  9555. 4:50:25that says, "Just testing that the remote
  9556. 4:50:27tasks work and the credentials work." So
  9557. 4:50:29basically, when these run, whatever you
  9558. 4:50:31have here as your instructions is what
  9559. 4:50:33gets prompted. And that's exactly the
  9560. 4:50:35same way that the scheduled tasks
  9561. 4:50:36locally work. So right here, you can see
  9562. 4:50:38I say send a message in the internal
  9563. 4:50:39ClickUp channel. And right here, the
  9564. 4:50:41actual thing that it says was send a
  9565. 4:50:43message in the internal ClickUp channel.
  9566. 4:50:45So, think of a scheduled task or a
  9567. 4:50:47routine as you basically typing in a
  9568. 4:50:49prompt and then someone coming in to
  9569. 4:50:52your laptop and typing it in for you.
  9570. 4:50:54So, it's the exact same type of
  9571. 4:50:55interaction as you talking to cloud
  9572. 4:50:57code. But that's why once again, you
  9573. 4:50:59want to make sure it's specific enough
  9574. 4:51:00so that it can basically oneshot it.
  9575. 4:51:02Okay. So, let's take it a little deeper.
  9576. 4:51:04Now, what I tried to do is I did another
  9577. 4:51:05one which I wanted it to be able to use
  9578. 4:51:07the YouTube data API in order to grab
  9579. 4:51:10some YouTube comments for me and give me
  9580. 4:51:12a little analysis in, you know, ClickUp
  9581. 4:51:14or whatever. So, this is the prompt I
  9582. 4:51:16said, right? Analyze 50 of my most
  9583. 4:51:18recent comments from YouTube and give me
  9584. 4:51:19a quick bullet rundown. My YouTube API
  9585. 4:51:21key is available as an environment
  9586. 4:51:23variable. Use it directly from the
  9587. 4:51:25environment. Don't look for av because
  9588. 4:51:28what happens is in your repo, right? So
  9589. 4:51:30in this Herk 2 project, um, when I
  9590. 4:51:32normally run this, it grabs all my API
  9591. 4:51:34keys from thev and maybe it reads the
  9592. 4:51:36claw.mmd and realizes that's where a lot
  9593. 4:51:38of those live. So by default, it's maybe
  9594. 4:51:41going to try to look in thev and it's
  9595. 4:51:43not going to be smart enough to figure
  9596. 4:51:44out. And so for ClickUp, it was fine. It
  9597. 4:51:46figured it out. But for some reason with
  9598. 4:51:48this YouTube one, it didn't. So I had to
  9599. 4:51:49explicitly tell it, hey, look in the
  9600. 4:51:51environment variable rather than in the
  9601. 4:51:53env. So you can see this first time I
  9602. 4:51:55ran it 1241, I didn't say that and it
  9603. 4:51:58couldn't do it. It said like, "Hey, I
  9604. 4:52:00can't find that. I'm getting an error."
  9605. 4:52:01And I even tried to tell it here and it
  9606. 4:52:03still didn't work. But then on this most
  9607. 4:52:05recent run, when I updated the prompt a
  9608. 4:52:06little bit, it was able to fetch it
  9609. 4:52:08right away using the API key. And now I
  9610. 4:52:11have a remote, you know, routine that
  9611. 4:52:13would work. Obviously, I need to update
  9612. 4:52:15this. I'm going to migrate over my other
  9613. 4:52:17automations, but this was just for
  9614. 4:52:18testing purposes. And then another one
  9615. 4:52:20that I do is I have some automations
  9616. 4:52:23here which basically opens up a browser
  9617. 4:52:24using Playright CLI and it does some
  9618. 4:52:27stuff in my school community because
  9619. 4:52:28there's no publicly accessible API.
  9620. 4:52:30We've kind of figured out a way to
  9621. 4:52:32automate it without using browser. I'm
  9622. 4:52:34not really going to dive into that right
  9623. 4:52:35now. But what I wanted to tell you guys
  9624. 4:52:36about that is I tried to basically move
  9625. 4:52:39over this school wins engagement post or
  9626. 4:52:41sorry automation into a remote session.
  9627. 4:52:44So, I copied the exact same prompt that
  9628. 4:52:46was in my regular scheduled task. And
  9629. 4:52:48then I just added this little snippet at
  9630. 4:52:49the end. But what happened is this
  9631. 4:52:51wasn't working because it basically
  9632. 4:52:53said, "Hey, you know, like when you do
  9633. 4:52:54this, it spins up a browser, but there's
  9634. 4:52:56no cookies because all of this is
  9635. 4:52:57running remotely and all I have to look
  9636. 4:52:59at is the GitHub repo. I can't look at
  9637. 4:53:01the local, you know, cookies that we've
  9638. 4:53:03used in the last couple sessions of this
  9639. 4:53:05automation." And so, it doesn't seem
  9640. 4:53:06like this would work because once again,
  9641. 4:53:08it has no access to that stuff. So if I
  9642. 4:53:11wanted to do an automation like this, I
  9643. 4:53:13would have to use um an endpoint that
  9644. 4:53:15takes authentication in the form of like
  9645. 4:53:16actual cookies or a header or you know
  9646. 4:53:19like an API key because every single one
  9647. 4:53:21of these runs is going to be stateless
  9648. 4:53:23and after the run the GitHub clone just
  9649. 4:53:25gets deleted. Now the exception of that
  9650. 4:53:27is if the automation is changing
  9651. 4:53:29something in your codebase or doing a
  9652. 4:53:30review. If it does do that it will
  9653. 4:53:32create a new branch for you or it will
  9654. 4:53:34give you some sort of output and not
  9655. 4:53:35just delete everything that it just did.
  9656. 4:53:37But for an automation like this it would
  9657. 4:53:38just delete it. But hopefully after you
  9658. 4:53:40guys have seen those examples, you now
  9659. 4:53:42have the ability to come in and you know
  9660. 4:53:44make some changes if you need in order
  9661. 4:53:46to make sure that your automations are
  9662. 4:53:48running. And what I mean by that is you
  9663. 4:53:50understand this should be a very
  9664. 4:53:52specific prompt. This is how you change
  9665. 4:53:53the model. You have to have a GitHub
  9666. 4:53:55repo. You can change the settings for
  9667. 4:53:56your cloud environments right here. You
  9668. 4:53:59set the schedule. You add any connectors
  9669. 4:54:00you might need, which would honestly be
  9670. 4:54:02a little easier if you added just like a
  9671. 4:54:04Slack connector. And then you can set
  9672. 4:54:05your permissions here. Now, the other
  9673. 4:54:07thing to be aware of is you do have
  9674. 4:54:09limits. So, if I come over here to my
  9675. 4:54:11settings, you can see if I go to my
  9676. 4:54:12usage, we have our regular session
  9677. 4:54:14limits, our model limits, but for
  9678. 4:54:16additional features, we have daily
  9679. 4:54:17included routine runs. And I haven't run
  9680. 4:54:19any yet on the actual schedule. I've
  9681. 4:54:21just been testing them. Um, but we are
  9682. 4:54:23at zero for 15. So, I could only have 15
  9683. 4:54:26automations running with routines per
  9684. 4:54:29day because I'm on the max $200 a month
  9685. 4:54:31plan. Your limits would be less if
  9686. 4:54:33you're on Pro. I think maybe three or
  9687. 4:54:35maybe five. I'll I have that information
  9688. 4:54:36later on, but just something to keep in
  9689. 4:54:39mind. All right, so let's just dive into
  9690. 4:54:40a little bit more of the details here
  9691. 4:54:42that may answer some questions you guys
  9692. 4:54:43have. I think it's pretty clear at this
  9693. 4:54:45point what it is. Um, I'm going to give
  9694. 4:54:47you guys this entire doc as well as
  9695. 4:54:49anything else I've talked about in my
  9696. 4:54:50free school community. The link for that
  9697. 4:54:51is down in the description. So, some of
  9698. 4:54:53the stuff I may not cover. If you want
  9699. 4:54:55to read more about it, then just go
  9700. 4:54:56ahead and grab that free resource. So,
  9701. 4:54:58we know what it is. I think we know how
  9702. 4:55:00it works, right? Like you define a
  9703. 4:55:01routine, which is a prompt. You connect
  9704. 4:55:03a GitHub repo. You could also trigger it
  9705. 4:55:05by APIs or by a GitHub action and then
  9706. 4:55:08you can connect your connectors and
  9707. 4:55:10basically it acts as you talking to your
  9708. 4:55:12own cloud code. Because of the fact that
  9709. 4:55:14this is working off of a cloned repo,
  9710. 4:55:16it's going to read the cloud.MD file
  9711. 4:55:18automatically every time. So if you have
  9712. 4:55:21a massive project like a Herk 2 project
  9713. 4:55:23for example with tons of context and
  9714. 4:55:24tons of stuff maybe you don't want to
  9715. 4:55:26put that repo into the cloud to be a
  9716. 4:55:29routine run because there's a lot of
  9717. 4:55:32context in that cloudmd and in that
  9718. 4:55:34whole GitHub repo that might not matter
  9719. 4:55:36for this automation. So maybe you're
  9720. 4:55:37better off setting up a specific GitHub
  9721. 4:55:40repo per scheduled routine. But of
  9722. 4:55:42course, cloud.md best practices putting
  9723. 4:55:45in the information that's important
  9724. 4:55:46because this stuff is going to drain
  9725. 4:55:48your cloud code session limits the exact
  9726. 4:55:51same way as it would if you were open up
  9727. 4:55:54in cloud code just talking to it. So
  9728. 4:55:56once again, three trigger types,
  9729. 4:55:57schedule API, which I think is really
  9730. 4:55:59cool. You could have a different
  9731. 4:56:00automation make a post request to some
  9732. 4:56:02sort of routine. And then of course
  9733. 4:56:04GitHub so you can have it automatically
  9734. 4:56:06fire off kind of on a web hook based on
  9735. 4:56:09new PRs, new pushes, new issues, new
  9736. 4:56:11releases, things like that. So how does
  9737. 4:56:13this compare to what already exists? We
  9738. 4:56:15have routines which is the new feature.
  9739. 4:56:16We have desktop scheduled tasks and then
  9740. 4:56:18we have something like just a /loop
  9741. 4:56:20command. So routines run on anthropics
  9742. 4:56:23cloud and these other two run on your
  9743. 4:56:25machine. Do you need the machine on? No,
  9744. 4:56:27for routines that's huge. But for
  9745. 4:56:29desktop scheduled tasks and for loop,
  9746. 4:56:31you need your machine on. Do you need a
  9747. 4:56:32session open? No, that's the same across
  9748. 4:56:34all three. Do they survive across
  9749. 4:56:36restarts? The first two do, but loop
  9750. 4:56:38does not. That has to live within a
  9751. 4:56:40specific session. Local file access, no,
  9752. 4:56:42for the routines because it works off of
  9753. 4:56:44the GitHub repo. And for the next two,
  9754. 4:56:47yes, you have local file access.
  9755. 4:56:48Permission prompts with routines, it's
  9756. 4:56:50fully autonomous. And for these two,
  9757. 4:56:52they are configurable. And then the
  9758. 4:56:53minimum interval routines is 1 hour. And
  9759. 4:56:55these two are both could go every minute
  9760. 4:56:57if you want. Okay, so let's talk about
  9761. 4:56:59the environments. Obviously, your ENV is
  9762. 4:57:01get ignored unless you push it into the
  9763. 4:57:03GitHub repo. You know, ultimately, if
  9764. 4:57:05you push it into a private repo, you're
  9765. 4:57:07probably okay, but you want to be
  9766. 4:57:08really, really, really careful because
  9767. 4:57:10then, you know, there's history there
  9768. 4:57:12and if other people, you know, end up
  9769. 4:57:14collaborating on it, you just don't want
  9770. 4:57:15to do that. So, you want to put your API
  9771. 4:57:17keys in the environment variable like I
  9772. 4:57:19showed you guys earlier. You want to
  9773. 4:57:20look at the network access, whether that
  9774. 4:57:22is full or trusted or none or custom,
  9775. 4:57:24and potentially some setup scripts. So,
  9776. 4:57:26that's not something I showed you guys
  9777. 4:57:27yet. If you're creating a new remote
  9778. 4:57:28task, you can do a setup script, which
  9779. 4:57:31is basically just a script that will run
  9780. 4:57:32when this new session fires up before
  9781. 4:57:34cloud code launches. So if you need to
  9782. 4:57:36install any packages or anything like
  9783. 4:57:37that. Okay, so what's the difference
  9784. 4:57:39between trusted and full? So trusted
  9785. 4:57:42only reaches the known vetted services
  9786. 4:57:44from Enthropic, which I thought I linked
  9787. 4:57:46right here, but I just linked it there.
  9788. 4:57:48This basically shows you all of the
  9789. 4:57:49different domains that are allowed. So
  9790. 4:57:51right here you can see we've got
  9791. 4:57:52enthropic services, we've got version
  9792. 4:57:54control, we've also got some cloud
  9793. 4:57:56platforms like Google, stuff like this
  9794. 4:57:58right here. These are the ones that are
  9795. 4:57:59kind of already verified. So what is the
  9796. 4:58:01risk of going on full? Well, if claude
  9797. 4:58:04reads malicious content during a run,
  9798. 4:58:06then it theoretically could be tricked
  9799. 4:58:08into sending data to an external server
  9800. 4:58:10and with trusted that outbound request
  9801. 4:58:12would get blocked. Now practical risk
  9802. 4:58:14for private repos where you control the
  9803. 4:58:15inputs is very low, but I definitely
  9804. 4:58:18just wanted to at least acknowledge
  9805. 4:58:19that. So connectors, this is different
  9806. 4:58:21than just adding your API key. This is
  9807. 4:58:23more of like the connectors you would
  9808. 4:58:24add to your actual claude chat or like
  9809. 4:58:26claude co-workth into like Slack or
  9810. 4:58:29ClickUp or stuff like that. Here are
  9811. 4:58:31some security details. I'm not going to
  9812. 4:58:32go super deep into this. You could also
  9813. 4:58:34do some more research and download this
  9814. 4:58:35doc. But of course, there are some
  9815. 4:58:37things to be thinking about like your
  9816. 4:58:38API triggers or what's going on with
  9817. 4:58:40your GitHub repos and the branches
  9818. 4:58:42because once again, everything is going
  9819. 4:58:44to be running as you. So if you're not
  9820. 4:58:46testing out these routines before you
  9821. 4:58:47just kind of send them off every hour or
  9822. 4:58:49something, you just have to be thinking
  9823. 4:58:51about what could happen without
  9824. 4:58:52permissions and you know stuff like
  9825. 4:58:53that. Limits and quotas. So it looks
  9826. 4:58:55like on pro you can have five runs a
  9827. 4:58:57day. On max you can have 15 runs a day
  9828. 4:58:59and on team and enterprise you can have
  9829. 4:59:0125 routines a day. If you hit the cap
  9830. 4:59:04the orgs with extra usage enabled can
  9831. 4:59:06exceed it on metered overage. And then
  9832. 4:59:08we have the minimum scheduled interval
  9833. 4:59:10which is one hour. And there are also
  9834. 4:59:12resource limits. So every one of these
  9835. 4:59:14routines in the cloud runs on four
  9836. 4:59:16vCPUs, 16 gigs of RAM, and 30 gigs of
  9837. 4:59:19disk space. So once again, just be
  9838. 4:59:21thinking about are you putting an
  9839. 4:59:22absolutely massive GitHub repo up into
  9840. 4:59:24the cloud right now to run. That could
  9841. 4:59:26just be wasting resources for no reason.
  9842. 4:59:28So what persists versus what gets
  9843. 4:59:30destroyed, the cloud branches gets
  9844. 4:59:31pushed to your GitHub repo and the
  9845. 4:59:34session also stays. So as you saw, if I
  9846. 4:59:36came into here and I looked at all of
  9847. 4:59:38these tasks, I could see all of the past
  9848. 4:59:40runs and I could go look at them to see
  9849. 4:59:41if something's going wrong. but the
  9850. 4:59:43actual cloud environment that gets
  9851. 4:59:44cloned will be destroyed. Basically, the
  9852. 4:59:47rule of thumb here is if something's
  9853. 4:59:48local or if cloud code can't reach it in
  9854. 4:59:51your GitHub repo or via an API, then it
  9855. 4:59:54won't work. We already talked a little
  9856. 4:59:56bit about writing good prompts, but you
  9857. 4:59:57definitely want them to be more
  9858. 4:59:58specific. For example, with my um
  9859. 5:00:01scheduled automation here, this is much
  9860. 5:00:03more specific, right? I have a skill
  9861. 5:00:04that I want to run. I give it the order
  9862. 5:00:06of operations, but something more like
  9863. 5:00:08this YouTube comments one, this is not
  9864. 5:00:10what you'd want to put in there unless
  9865. 5:00:12you were defining a skill to just let it
  9866. 5:00:14run because once again, this is supposed
  9867. 5:00:16to be a oneshot prompt. So, you wanted
  9868. 5:00:17to make sure it gets it right on the
  9869. 5:00:18first try. Okay, so why is this so
  9870. 5:00:20exciting and why does this beat normal
  9871. 5:00:22automation? Because we are actually
  9872. 5:00:24keeping the agentic framework. If you if
  9873. 5:00:27you know when I talk about the WAT
  9874. 5:00:28framework where we have workflows and
  9875. 5:00:30agents and tools, when we actually push
  9876. 5:00:32those automations to the cloud and it's
  9877. 5:00:34just a you know sort of a Python script,
  9878. 5:00:36we're losing the agentic piece. We're
  9879. 5:00:38only sending off really the tools and
  9880. 5:00:40the workflow. But in this case, we're
  9881. 5:00:42keeping the WA and the T all running
  9882. 5:00:44together because the agent is looking at
  9883. 5:00:47the, you know, cloudm. It's looking at
  9884. 5:00:48its scripts and it's figuring out what
  9885. 5:00:50to do. And if it runs in errors midrun,
  9886. 5:00:52it will selforrect. And if you configure
  9887. 5:00:54it the right way, it will be able to
  9888. 5:00:56sort of like leave a memory trail and it
  9889. 5:00:58can leave like, you know, updates even
  9890. 5:01:00though each run is stateless. You can
  9891. 5:01:02still have them kind of continuously get
  9892. 5:01:04better. And real quick, let's speedrun
  9893. 5:01:06through these common questions. Do I
  9894. 5:01:07need to know cron syntax? Nope. You just
  9895. 5:01:09can schedule a natural language. Super
  9896. 5:01:11easy. Can it access my local files?
  9897. 5:01:13Nope. It only gets what's in your GitHub
  9898. 5:01:14repo or your APIs. What model does it
  9899. 5:01:17use? You can choose any of the models as
  9900. 5:01:19you guys saw. Can you watch it work in
  9901. 5:01:20real time? Yes, you can hit run now and
  9902. 5:01:22then you can obviously watch it go right
  9903. 5:01:24there. Same way you would in Claude. You
  9904. 5:01:26can even talk to it after it's done or
  9905. 5:01:28interrupt it and then continue going.
  9906. 5:01:30Can it use my MCP service? Yes, that is
  9907. 5:01:32what the connectors are. Can teammates
  9908. 5:01:35use my routines? Nope. These belong to
  9909. 5:01:37your individual account. You might be
  9910. 5:01:38able to share those if you're on a team
  9911. 5:01:40plan, but I haven't actually yet tested
  9912. 5:01:41that myself. What's the cost? It's just
  9913. 5:01:43your normal subscription usage. So, keep
  9914. 5:01:45that in mind. What happens when a run
  9915. 5:01:47fails? Every one of them will be stored
  9916. 5:01:49in your history. So you can go see why
  9917. 5:01:50they failed. You could maybe even have
  9918. 5:01:52it at the end of every single routine,
  9919. 5:01:54say, "Hey, if this does fail, just shoot
  9920. 5:01:55me a Slack message to let me know."
  9921. 5:01:57Things like that. And can I test a run
  9922. 5:01:59before going live? Yes, in fact, you
  9923. 5:02:00should test it multiple times before it
  9924. 5:02:02goes live. You just go into the routine,
  9925. 5:02:04you hit run now, and then it will pop up
  9926. 5:02:06as running. And then you just watch it,
  9927. 5:02:07you know, watch it go through its order
  9928. 5:02:09of operations, and you can inject, and
  9929. 5:02:10you can help it correct itself so that
  9930. 5:02:13you have confidence that once it shoots
  9931. 5:02:15off the prompt next time, you won't have
  9932. 5:02:17to get in the way at all. But anyways,
  9933. 5:02:18that's going to do it for this one. I
  9934. 5:02:20hope that those tips and some of the
  9935. 5:02:21examples that I showed you were helpful
  9936. 5:02:23and now you can go off and try to
  9937. 5:02:24migrate your scheduled tasks or any
  9938. 5:02:26other automations that you've been
  9939. 5:02:27meaning to build into these web- based
  9940. 5:02:29routines and not have to keep your
  9941. 5:02:31hardware on. Okay, so now that we've
  9942. 5:02:34talked about routines, there are some
  9943. 5:02:36other ways that you can actually go
  9944. 5:02:37ahead and deploy automations, especially
  9945. 5:02:39if they are more code-based, meaning
  9946. 5:02:41they're more deterministic than
  9947. 5:02:42nondeterministic. you only really want
  9948. 5:02:44to go for a routine if you need that
  9949. 5:02:46full agentic loop and you need like a
  9950. 5:02:48legit clawed code. But sometimes you
  9951. 5:02:50don't need clawed code. Sometimes you
  9952. 5:02:51just need something that's really simple
  9953. 5:02:53like a Python script that will execute a
  9954. 5:02:54command or moving data from one platform
  9955. 5:02:56to another on a web hook or something
  9956. 5:02:58like that. So let's talk about other
  9957. 5:03:00ways that you can deploy these sort of
  9958. 5:03:01like clawed agents. All right, so
  9959. 5:03:04remember how we talked about this AI
  9960. 5:03:05systems pyramid a little bit earlier in
  9961. 5:03:07this course. Where'd it go? Up here. And
  9962. 5:03:10now that you understand routines, you
  9963. 5:03:11know that that's basically us, you know,
  9964. 5:03:13opening up Claude and actually sending
  9965. 5:03:15it a prompt here and we get that full
  9966. 5:03:17agentic loop inside of Claude code
  9967. 5:03:19because we're using the harness and
  9968. 5:03:20we're using the model because it can use
  9969. 5:03:22our skills and our files and look
  9970. 5:03:23through everything. So routines are
  9971. 5:03:24insanely powerful and I love them. But
  9972. 5:03:27the thing is you don't always need a
  9973. 5:03:28routine because once again you want to
  9974. 5:03:31have it as simple as possible. And
  9975. 5:03:32routines are basically a mix of the
  9976. 5:03:33chatbot but also the agent because but
  9977. 5:03:36realistically what happens is we have
  9978. 5:03:37this agentic loop where we don't exactly
  9979. 5:03:40know what it's going to do and why. So
  9980. 5:03:43if we can make these routines a little
  9981. 5:03:45bit more deterministic then we probably
  9982. 5:03:47would like to and on top of the fact
  9983. 5:03:49that if you're doing cloud routines you
  9984. 5:03:50have a limited amount of how many can go
  9985. 5:03:52off per day. So it's always nice to try
  9986. 5:03:54to find only use these routines when you
  9987. 5:03:56actually do need them. So, let me talk
  9988. 5:03:58about a real quick example of let's say
  9989. 5:04:00we wanted to do a daily AI briefing.
  9990. 5:04:02What would that look like? Well, we
  9991. 5:04:05probably would have something like this.
  9992. 5:04:06The trigger would be maybe 6 a.m. And
  9993. 5:04:09then from there, what we would do is we
  9994. 5:04:10would do research. So, research on like
  9995. 5:04:13the AI space. Now, maybe we have
  9996. 5:04:14multiple sources of research. Maybe we
  9997. 5:04:16want to do, you know, X and we also want
  9998. 5:04:19to research um just in general like
  9999. 5:04:21Tavly. So, maybe there's two different
  10000. 5:04:22sources, you know, just the web, maybe
  10001. 5:04:24even LinkedIn. And then what we would do
  10002. 5:04:26is we'd maybe consolidate that research
  10003. 5:04:28and we'd send that into an AI model who
  10004. 5:04:30would like write the report, right? So
  10005. 5:04:32this would write the AI briefing and
  10006. 5:04:36then from there what would happen is we
  10007. 5:04:38would want to get that sent to us
  10008. 5:04:39somehow. So send to user. This is
  10009. 5:04:43basically the order of operations that
  10010. 5:04:46we need for this briefing. In the
  10011. 5:04:48morning wake up do the research write
  10012. 5:04:51the brief send a user. So because this
  10013. 5:04:53is such a linear predictable process,
  10014. 5:04:56even though let me just actually um I
  10015. 5:04:59mean this is like the main AI step,
  10016. 5:05:00right? So I'll just call kind of call
  10017. 5:05:02this blue. Even though there's AI inside
  10018. 5:05:04of it, this is still very much a linear
  10019. 5:05:06predictable workflow. So there's no need
  10020. 5:05:10to go for a routine here where we would
  10021. 5:05:12have, you know, an AI agent step and the
  10022. 5:05:15agent would be responsible for doing all
  10023. 5:05:17of the research and the writing and the
  10024. 5:05:20sending. Right? This is what this would
  10025. 5:05:23look like more as an agent because it
  10026. 5:05:26has access to all these tools and it can
  10027. 5:05:27do things in different orders where like
  10028. 5:05:29this would totally work as a morning AI
  10029. 5:05:32briefing, but it's not as efficient and
  10030. 5:05:34we could definitely do it like this,
  10031. 5:05:36right? Like we're not really going to be
  10032. 5:05:37losing quality here. So, this is where
  10033. 5:05:39we might want to do something like this
  10034. 5:05:41and host it on modal or trigger.dev. Two
  10035. 5:05:44tools that I do like to use. So, I'm
  10036. 5:05:46going to show you guys a quick example
  10037. 5:05:47of us building this out and it's going
  10038. 5:05:48to be super simple and we're going to
  10039. 5:05:50build this out in modal. So, real quick
  10040. 5:05:52before we start doing this, if you don't
  10041. 5:05:54have a modal account, go ahead and get
  10042. 5:05:56signed up. modal.com. It's like I think
  10043. 5:05:58you get five free bucks to start with
  10044. 5:06:00and if you put in a credit card, you'll
  10045. 5:06:01get an extra 25. So, it's super super
  10046. 5:06:03cheap because it only actually charges
  10047. 5:06:05you per run and it's pennies. So, you
  10048. 5:06:07can see it's going to be pretty cheap.
  10049. 5:06:09So, go to modal.com. You can sign up
  10050. 5:06:11with the GitHub account that you created
  10051. 5:06:13earlier if you built the websites out.
  10052. 5:06:15And yeah, now we can actually build out
  10053. 5:06:17this automation. So what I'm going to do
  10054. 5:06:18here is I'm just going to start talking
  10055. 5:06:20to our cloud code in a really simple
  10056. 5:06:22way. I am looking to build an automation
  10057. 5:06:25and we're going to ultimately have this
  10058. 5:06:27deployed on modal. So it's going to be a
  10059. 5:06:29Python script. All I want this to do is
  10060. 5:06:31every morning at 6 a.m. Central time, I
  10061. 5:06:34want this to fire. I want it to do
  10062. 5:06:36research for me on the AI space. What
  10063. 5:06:38I'm specifically looking for are any new
  10064. 5:06:41AI news like announcements, any stories.
  10065. 5:06:44So if the, you know, any companies have
  10066. 5:06:46come out with a case study or if there
  10067. 5:06:48was a a big failure or something like
  10068. 5:06:50that or any acquisitions or IPOs, I also
  10069. 5:06:52want to know if there's any new models
  10070. 5:06:54or new tools or anything like that. So
  10071. 5:06:56basically just a concise news briefing
  10072. 5:06:59of what's going on in the AI space. And
  10073. 5:07:01then I just want it to write that up in
  10074. 5:07:02a nice way for me and shoot that over to
  10075. 5:07:05me in ClickUp. So that is what the
  10076. 5:07:07automation is supposed to do. I would
  10077. 5:07:08like to use Opus 4.8 8 as the model that
  10078. 5:07:12actually writes the email for us or the
  10079. 5:07:14the daily brief. So with that
  10080. 5:07:17information, let me know what questions
  10081. 5:07:19you have. Let me know what API keys
  10082. 5:07:21you're going to need for me. And then
  10083. 5:07:22once we build this out, we'll go ahead
  10084. 5:07:24and push that to modal, which I will
  10085. 5:07:25also need your help with because I've
  10086. 5:07:27never used it before. Okay, so that was
  10087. 5:07:28my prompt. If you guys read this, you
  10088. 5:07:30can understand exactly what I'm saying
  10089. 5:07:31here, right? It's not technical at all.
  10090. 5:07:33And now it's going to help us plan out
  10091. 5:07:34this automation and then just actually
  10092. 5:07:36go ahead and build it for us. I think
  10093. 5:07:37the only thing that you guys might not
  10094. 5:07:38have said without knowing is that it's
  10095. 5:07:40going to be a Python script. But Claude
  10096. 5:07:43would have done research on modal and it
  10097. 5:07:44would have made sure that it built you
  10098. 5:07:46the right type of file to send over to
  10099. 5:07:48Modal. So here's what it's saying. It's
  10100. 5:07:50going to need an anthropic API key
  10101. 5:07:52because it's going to obviously need to
  10102. 5:07:53call on Opus. It's going to need my
  10103. 5:07:55ClickUp token so that it can send me um
  10104. 5:07:58you know an actual message in ClickUp.
  10105. 5:07:59And then it's going to need my Tavly key
  10106. 5:08:01which I already have because it's going
  10107. 5:08:03to use Tavi to do the research. And then
  10108. 5:08:04it's going to need the modal account. So
  10109. 5:08:06we'll need to give a modal token to
  10110. 5:08:08authenticate. The first thing is how
  10111. 5:08:10should the script gather the AI news
  10112. 5:08:11each morning? We'll just say tavly plus
  10113. 5:08:13opus. That works fine. How should the
  10114. 5:08:15finished brief show up in ClickUp? I
  10115. 5:08:17would like it to be a DM sent to the
  10116. 5:08:20Nate Herk user in ClickUp. Now this is a
  10117. 5:08:23permissioning thing. So we'll talk about
  10118. 5:08:25that to make sure that we're more
  10119. 5:08:26confident that it's going to be sent to
  10120. 5:08:28only me in ClickUp. But I'll hit next
  10121. 5:08:29for now. And then how long in detail
  10122. 5:08:31should the brief be? I want it to be
  10123. 5:08:33very very scannable. So we'll do this
  10124. 5:08:35one. So, while all of that's happening,
  10125. 5:08:37let's go ahead and start collecting
  10126. 5:08:38these API keys. So, actually, instead of
  10127. 5:08:39using an anthropic API key, let's use
  10128. 5:08:42Open Router. And the reason why is
  10129. 5:08:43because Open Router is way more
  10130. 5:08:44flexible. So, if you haven't got an
  10131. 5:08:46account here, go to open router.ai. And
  10132. 5:08:48what you'll see here is that it has tons
  10133. 5:08:50of different models, right? It has one
  10134. 5:08:52API for all the models, higher
  10135. 5:08:54availability, and it's just really cool.
  10136. 5:08:56Basically, what that means is you can
  10137. 5:08:58have a credit card in here and then you
  10138. 5:09:00don't have to create an account for API
  10139. 5:09:02usage, for anthropic, for Google, for
  10140. 5:09:04OpenAI, for whatever one comes next
  10141. 5:09:06because Open Router has basically all of
  10142. 5:09:08the models. So, it's just nice for me to
  10143. 5:09:10be able to stay organized and watch all
  10144. 5:09:11of my activity in one spot rather than
  10145. 5:09:13managing multiple different dashboards.
  10146. 5:09:15So, when you get in Open Router, you're
  10147. 5:09:17going to go to your credits. You're then
  10148. 5:09:19in here going to go to your API keys,
  10149. 5:09:22and then this is where you're going to
  10150. 5:09:23create a new key. And we're going to
  10151. 5:09:25call this our knowledge work demo. Here
  10152. 5:09:29is where you can have a credit limit as
  10153. 5:09:31far as price. You can have this expire.
  10154. 5:09:33And I'm not going to touch any of that
  10155. 5:09:35right now. I'm just going to go ahead
  10156. 5:09:36and create this API key. And then, of
  10157. 5:09:38course, it's going to give us one that
  10158. 5:09:39we can go ahead and copy. So, I'm going
  10159. 5:09:41to copy this API key. I'm going to go
  10160. 5:09:42into Claude. We're going to open up ourv
  10161. 5:09:45file. And then in here, what I'm going
  10162. 5:09:47to do is I'm going to make this a little
  10163. 5:09:48bigger so you guys can see better. I'm
  10164. 5:09:50basically just going to add manually
  10165. 5:09:52open router. So, I'm just going to do in
  10166. 5:09:54all caps open router_appi
  10167. 5:09:59key equals and I'm going to paste in
  10168. 5:10:01that key. The next thing I'm going to do
  10169. 5:10:02is in my ClickUp, I'm going to get the
  10170. 5:10:04API key. So, I'm going to go into my
  10171. 5:10:06settings and I have to just find
  10172. 5:10:08somewhere right here, ClickUp API. And
  10173. 5:10:10now I can copy this key and paste that
  10174. 5:10:12in. So, pretty much whatever platform
  10175. 5:10:13you need, it's always going to be in
  10176. 5:10:15your settings. and you might have to
  10177. 5:10:16look for developer settings or somewhere
  10178. 5:10:18you'll have to find the API
  10179. 5:10:18documentation or sorry the API key area
  10180. 5:10:22but if your software has API
  10181. 5:10:24documentation then you should be able to
  10182. 5:10:26find your API key in the settings okay
  10183. 5:10:28and this is pretty cool as I was adding
  10184. 5:10:30those keys cloud code was actually
  10185. 5:10:32seeing that and it started testing
  10186. 5:10:34things out so I didn't even tell it by
  10187. 5:10:35the way that I was going to switch from
  10188. 5:10:36enthropic API to open router it just saw
  10189. 5:10:38that and it used it so tavly is working
  10190. 5:10:41open router's working and clickup I just
  10191. 5:10:43added so hopefully it will test that in
  10192. 5:10:44just a check or I might have to prompt
  10193. 5:10:46it to but it looks like right now it's
  10194. 5:10:48building the actual automation. So you
  10195. 5:10:49can see it created this Python file
  10196. 5:10:52which says AI daily brief a modal
  10197. 5:10:54automation every morning central time.
  10198. 5:10:56You gather fresh AI news with Tavi. You
  10199. 5:10:58write a concise scannable brief with
  10200. 5:10:59Opus via open router and then you
  10201. 5:11:01deliver the brief to Nate as a ClickUp
  10202. 5:11:02DM selfdm by default. Okay, so there we
  10203. 5:11:05go. It says the code is written. Before
  10204. 5:11:07we touch modal, let me prove that this
  10205. 5:11:09works and show you the output quality.
  10206. 5:11:11So I can run the research and then Opus
  10207. 5:11:13will write and then we will skip the
  10208. 5:11:15clickup send for now because it hasn't
  10209. 5:11:17seen my token yet. But we'll just
  10210. 5:11:18basically see the output that we will be
  10211. 5:11:20getting inside of our ClickUp when this
  10212. 5:11:23automation is ultimately done. And the
  10213. 5:11:25other thing to think about here is what
  10214. 5:11:27is our risk with this automation? That's
  10215. 5:11:28a really important thing to think about
  10216. 5:11:30is what is your risk? In this case, our
  10217. 5:11:32risk is basically that it spends too
  10218. 5:11:34much money, right? Our risk is that this
  10219. 5:11:35somehow starts firing off a lot or it
  10220. 5:11:37gets somehow stuck in a research loop
  10221. 5:11:39with Tavi and we spend a lot of credits.
  10222. 5:11:41So maybe we could mitigate that risk by
  10223. 5:11:43scoping in those API keys so that they
  10224. 5:11:45can only spend like a dollar a day.
  10225. 5:11:47Another risk is that open router is down
  10226. 5:11:49or tavly is down and in that case what
  10227. 5:11:51do we do? Maybe we route from Tavly to
  10228. 5:11:54like perplexity to do research if Tavi
  10229. 5:11:56is down and maybe if open router is down
  10230. 5:11:58then we would route to Enthropic. So,
  10231. 5:12:00those are some of the other like what if
  10232. 5:12:02edge case scenarios to be thinking about
  10233. 5:12:04and to be protecting against. Anyways,
  10234. 5:12:06here is what the brief would look like.
  10235. 5:12:07This would be our chance to give
  10236. 5:12:08feedback and iterate if we don't like
  10237. 5:12:10how it's how it's formatted. But this
  10238. 5:12:11one looks good. It gathered 30 stories.
  10239. 5:12:13It dduped. It grouped and it's sourced.
  10240. 5:12:15And we have it said it's written in my
  10241. 5:12:17tone of voice as well. So, here is our
  10242. 5:12:19daily brief for Friday, July 10th. Here
  10243. 5:12:21are new models. So, GBD 5.6. Space X
  10244. 5:12:23releases Grock 4.5. We're also going to
  10245. 5:12:25get a clickable link with the actual
  10246. 5:12:27source and an AI dominated H1 venture
  10247. 5:12:30blah blah blah blah blah. Okay, cool. So
  10248. 5:12:32now it's asking for my ClickUp token
  10249. 5:12:34which I have pasted. So I'll say hey go
  10250. 5:12:35ahead and test it out and then we'll set
  10251. 5:12:37up modal. So awesome. So I've given you
  10252. 5:12:39the ClickUp API key. Now one thing I
  10253. 5:12:42noticed is in ClickUp I wasn't able to
  10254. 5:12:44set up like a scoped API key. It seemed
  10255. 5:12:46pretty general. So, I want you to help
  10256. 5:12:48me figure out how do we make sure that
  10257. 5:12:51this automation can only send to my
  10258. 5:12:54ClickUp channel or my personal Nate Herk
  10259. 5:12:57DM. I don't want it to ever be able to
  10260. 5:12:58accidentally send into like the general
  10261. 5:13:00channel or any public channels. It
  10262. 5:13:02should only send to this one specific
  10263. 5:13:04place. How can you prove that to me? And
  10264. 5:13:06in this case, it's going to be pretty
  10265. 5:13:07simple because the Python script is
  10266. 5:13:09going to basically hardcode the endpoint
  10267. 5:13:11to hit. We're not going to give modal
  10268. 5:13:13the ability to change where it gets
  10269. 5:13:15sent. So, we're going to send it to my
  10270. 5:13:17ClickUp DM once and then it will never
  10271. 5:13:19change because that step of the process
  10272. 5:13:21is fully deterministic. This is where if
  10273. 5:13:24we made this step non-deterministic and
  10274. 5:13:26we let the agent choose where to send
  10275. 5:13:27it, that's where you can get
  10276. 5:13:28variability. But because we're writing
  10277. 5:13:30an actual Python script, it's not going
  10278. 5:13:32to change. So, boring is beautiful.
  10279. 5:13:34Predictability is beautiful when it
  10280. 5:13:36comes to self-firing automations. Okay,
  10281. 5:13:39so it hardened up the code. Basically,
  10282. 5:13:41what it did is it made sure that it's
  10283. 5:13:43only able to send to this specific DM,
  10284. 5:13:45which is perfect. It's blocking out all
  10285. 5:13:47these public channels and blocking out
  10286. 5:13:49all the other channel paths. And you can
  10287. 5:13:51see here, this is the test delivery that
  10288. 5:13:53it sent. This is a one-time test
  10289. 5:13:54confirming the automation can post to
  10290. 5:13:56this private DM. If you can read this,
  10291. 5:13:57then delivery works. So, let's go ahead
  10292. 5:13:59and get this pushed to modal. So, after
  10293. 5:14:01all that, it wants us to run these four
  10294. 5:14:03commands in our terminal, which we could
  10295. 5:14:04easily just copy and paste in and it
  10296. 5:14:06would not be difficult at all. But, I
  10297. 5:14:07said, can't you just run all these for
  10298. 5:14:08me? can't you just set everything up?
  10299. 5:14:10And it said, "Yeah, mostly I can. I can
  10300. 5:14:12set it all up, but you're still going to
  10301. 5:14:14have to authenticate in." So, do you
  10302. 5:14:15remember earlier when I was showing you
  10303. 5:14:17how like sometimes it'll give you a link
  10304. 5:14:19and you click on the link and then you
  10305. 5:14:20log in to modal or to claude or to
  10306. 5:14:22notion or whatever it is, and that's how
  10307. 5:14:24it authenticates. That's what it needs
  10308. 5:14:26to do. And it's going to basically kick
  10309. 5:14:27that off. Now, we'll sign into modal and
  10310. 5:14:29then claude code will come back here and
  10311. 5:14:31say, "Okay, cool. I got your modal
  10312. 5:14:32information. I got that modal token or
  10313. 5:14:34cookie. And now I can set everything up
  10314. 5:14:36for you." pretty much the same exact way
  10315. 5:14:37that I use GitHub. You know, when I have
  10316. 5:14:39Cloud Code doing things for me inside of
  10317. 5:14:41GitHub, it can do everything. It can
  10318. 5:14:43push commits, it can create repos, it
  10319. 5:14:44can do everything. But I just needed to
  10320. 5:14:46authenticate once and now Claude Code
  10321. 5:14:49can do everything. So, as you saw, this
  10322. 5:14:51page opened. I just have to authorize
  10323. 5:14:52Cloud Code to use my workspace right
  10324. 5:14:55here. And then it says, "Your client has
  10325. 5:14:56been granted an API token and ready to
  10326. 5:14:58use modal." And now Claude, if we switch
  10327. 5:15:00back in here, is going to be able to
  10328. 5:15:02actually make all that stuff. Okay, look
  10329. 5:15:04at this. In my modal, we can now see
  10330. 5:15:05that we have this AI news brief and it
  10331. 5:15:08just got taken away because Claude is
  10332. 5:15:10right now running a test. So, it tested
  10333. 5:15:12it out and now maybe it found a problem
  10334. 5:15:14or maybe it needs to refresh. But
  10335. 5:15:16anyways, it looks like it's deploying it
  10336. 5:15:18again. So, I'll go back into modal.
  10337. 5:15:19We'll hit a refresh. We see if we get
  10338. 5:15:21anything. This should pop up in a sec.
  10339. 5:15:23But also, what I realized is I got a
  10340. 5:15:24ClickUp message. So, this ClickUp
  10341. 5:15:26message just came in 11:42. And this was
  10342. 5:15:28our daily brief. So we saw the new
  10343. 5:15:29models, we saw new tools, we see Google
  10344. 5:15:32photo ads video remix, we got meta rolls
  10345. 5:15:34out AI room visualization, we got
  10346. 5:15:36funding, we have business adoption, and
  10347. 5:15:38we have some failures and controversies.
  10348. 5:15:40So this is an example output. If we
  10349. 5:15:42wanted to change this, we easily could
  10350. 5:15:43instruct Cloud Code to change up the
  10351. 5:15:45script a little bit, but right now I'm
  10352. 5:15:47happy with that. And it looks like in
  10353. 5:15:48here, we just got our AI news brief
  10354. 5:15:50back. Let's see what Claude is saying.
  10355. 5:15:52It says that it's live. It says that
  10356. 5:15:53this is the app name, and this is the
  10357. 5:15:54link. Every day at 6:00 a.m. Central, it
  10358. 5:15:56will go ahead and write that. And take a
  10359. 5:15:58look at this. So as far as managing it
  10360. 5:16:00later on modal, we can see everything.
  10361. 5:16:02We can see the runs, the logs, and the
  10362. 5:16:03errors. We can trigger it on demand. And
  10363. 5:16:05we can also rotate keys. So what happens
  10364. 5:16:07is remember how our secret keys, our API
  10365. 5:16:11keys live inside of thev file in this
  10366. 5:16:13project. Modal needed to access those
  10367. 5:16:15somehow. And what it does is it stores
  10368. 5:16:17those in modal as secrets right here. AI
  10369. 5:16:20news brief secrets. You can see that
  10370. 5:16:21it's able to run this script and that's
  10371. 5:16:23how it's able to grab different
  10372. 5:16:24environment variables that we need and
  10373. 5:16:27it stores them securely in here. Right
  10374. 5:16:29here, if I click on edit, you can see we
  10375. 5:16:30have the ClickUp token. Here's the
  10376. 5:16:32token. Open router and Tavi. All of
  10377. 5:16:34those tokens are in here. And if we
  10378. 5:16:35needed to change them, we could change
  10379. 5:16:37them. And if we wanted to add more, we
  10380. 5:16:38could add more. So that's where modal
  10381. 5:16:40stores our secrets. Now, as far as the
  10382. 5:16:42app, let's take a look in here. So you
  10383. 5:16:44can see next run is in 18 hours, which
  10384. 5:16:46would be 6:00 a.m. tomorrow morning. But
  10385. 5:16:48we could also hit run now. And when I
  10386. 5:16:49click run now, it schedules the run
  10387. 5:16:51right now. That doesn't mess with any of
  10388. 5:16:52the scheduled ones. But what I wanted to
  10389. 5:16:54show you guys is what it looks like when
  10390. 5:16:56something is actually running and how we
  10391. 5:16:58are able to use modal here for our sort
  10392. 5:17:00of like visibility. And that's really
  10393. 5:17:02really important observability and
  10394. 5:17:04visibility. So right now you can see
  10395. 5:17:05it's running. I'll click into it and we
  10396. 5:17:07can see in the execution that we're
  10397. 5:17:09actually seeing what it's doing in real
  10398. 5:17:11time. So gathering news for Friday, July
  10399. 5:17:1310th, collected 30 unique stories,
  10400. 5:17:15writing brief with Opus 4.8. You can
  10401. 5:17:17look at the execution and you can look
  10402. 5:17:18at the call graph if you really want to
  10403. 5:17:20see like the timing of what's going on,
  10404. 5:17:21which is pretty cool. But there you go.
  10405. 5:17:23This one just finished up and it only
  10406. 5:17:25took about 30.36 seconds. You can see if
  10407. 5:17:28I go to the log, everything here was
  10408. 5:17:30good. It delivered to ClickUp, sent
  10409. 5:17:31brief to ClickUp to a private DM
  10410. 5:17:33channel. If I open up ClickUp, you can
  10411. 5:17:34see we once again just got another one,
  10412. 5:17:36which is obviously very similar to the
  10413. 5:17:37one that it just ran up here. But that's
  10414. 5:17:39just proving that end to end this thing
  10415. 5:17:41worked. And now we have logging
  10416. 5:17:43available inside of Modal. in case
  10417. 5:17:45anything ever fails, we can figure out
  10418. 5:17:47why. We have the ID number for each of
  10419. 5:17:49our executions. So, we can feed it back
  10420. 5:17:50into cloud code later and say, "Hey, so
  10421. 5:17:53these 10 runs were good, but if you look
  10422. 5:17:54at run number 12 or you know, whatever
  10423. 5:17:57number, this errored right here and
  10424. 5:17:59figure out why and figure out what we
  10425. 5:18:01can do to fix this so that this sort of
  10426. 5:18:03error doesn't ever happen again. All
  10427. 5:18:04right, so that is like a modal
  10428. 5:18:06deployment that is cronbased." Cron just
  10429. 5:18:09basically meaning it is on some sort of
  10430. 5:18:11schedule. Now, what happens if we wanted
  10431. 5:18:13to have something that's more web hook
  10432. 5:18:15based? If you guys don't know what a web
  10433. 5:18:16hook is, very simple concept. It's
  10434. 5:18:19basically just think about it like a
  10435. 5:18:20doorork knob. So, right now, what we're
  10436. 5:18:22doing is we are scheduling off these
  10437. 5:18:24automations based on time. So, 6 a.m.
  10438. 5:18:27central, right? But what if we wanted to
  10439. 5:18:29schedule an automation where I don't
  10440. 5:18:31know, a good example would be every
  10441. 5:18:32single time you get a new form
  10442. 5:18:33submission. That would be a web hook
  10443. 5:18:36trigger. Because if you're looking for
  10444. 5:18:37an event, you can do something called
  10445. 5:18:39polling, which is basically just
  10446. 5:18:40constantly checking. It's basically just
  10447. 5:18:42a loop of seeing, hey, is there a form?
  10448. 5:18:45If yes, I will process it. If no, I will
  10449. 5:18:47just wait 5 minutes and pull again or
  10450. 5:18:49check again. And it's just this constant
  10451. 5:18:51loop of polling every 5 minutes or every
  10452. 5:18:5310 minutes or whatever interval you
  10453. 5:18:55decide to pull. But instead of polling,
  10454. 5:18:57what you can do is you can set up a web
  10455. 5:18:59hook, which means basically if you think
  10456. 5:19:01about it like a door, I did I say
  10457. 5:19:03earlier doororknob? I did not mean to
  10458. 5:19:04say doorork knob. I meant to say
  10459. 5:19:05doorbell. If you think about it like a
  10460. 5:19:07door, rather than saying, "Oh, I wonder
  10461. 5:19:09if there's any guests at my door. I'm
  10462. 5:19:10going to go open it every 10 minutes.
  10463. 5:19:12And rather than checking every 10
  10464. 5:19:13minutes, you could instead just say,
  10465. 5:19:14"Oh, okay. I'm going to put this
  10466. 5:19:16doorbell here so that whenever someone
  10467. 5:19:18comes, they ring the doorbell and then I
  10468. 5:19:19know to go open the door." So that's
  10469. 5:19:21basically all a web hook is. It's one
  10470. 5:19:23system sending a request to another
  10471. 5:19:26system that tells it, "Hey, it's your
  10472. 5:19:28turn to do some sort of work." So in the
  10473. 5:19:30case of a form submission, as soon as
  10474. 5:19:32someone fills out a form and hits the
  10475. 5:19:33button submit, that should send an API
  10476. 5:19:36call to our web hook. So, let me show
  10477. 5:19:38you a super super simple example of what
  10478. 5:19:40that could look like. So, I'm going to
  10479. 5:19:41go ahead and do a session handoff here
  10480. 5:19:43because I want it to sort of have the
  10481. 5:19:45context of what we just did with modal,
  10482. 5:19:46but I want to have a fresh context
  10483. 5:19:48window because right now we are at 133.
  10484. 5:19:51So, just a good place to sort of clear
  10485. 5:19:53it out and restart because we're
  10486. 5:19:54starting a new build. If we were still
  10487. 5:19:57editing on this one and improving this
  10488. 5:19:58one, I wouldn't have done this. But
  10489. 5:20:00because we're starting a completely
  10490. 5:20:01different like project, I'm going to go
  10491. 5:20:04ahead and get a fresh session to work
  10492. 5:20:05off of. Okay, so I'm going to copy this.
  10493. 5:20:07I'm going to clear out this context,
  10494. 5:20:09paste in the handoff message, and then
  10495. 5:20:12I'll show you guys what we're about to
  10496. 5:20:14do. Okay, so now I'm going to do a /goal
  10497. 5:20:16just to make this more fun. And here's
  10498. 5:20:17what I'm going to say. All right, so we
  10499. 5:20:19just deployed a Python script to modal
  10500. 5:20:22and that was a cronbased automation. Now
  10501. 5:20:24what I'm trying to do is create a web
  10502. 5:20:26hook based automation. So here's what
  10503. 5:20:28I'm imagining. Create me an HTML
  10504. 5:20:30document. Super super simple. That's a
  10505. 5:20:32form submission. And when the user hits
  10506. 5:20:35submit on that form, it's going to send
  10507. 5:20:37that to our modal web hook. Now, all
  10508. 5:20:40modal is going to do that Python script
  10509. 5:20:43needs to read the form submission and
  10510. 5:20:46then send me the business owner a
  10511. 5:20:48notification saying, "Hey, you know,
  10512. 5:20:50this user submitted a notification. Here
  10513. 5:20:52is what his business does and here's
  10514. 5:20:54what he's looking for." And then it will
  10515. 5:20:56basically just send that to me once
  10516. 5:20:57again in the exact same ClickUp private
  10517. 5:21:00DM that the previous automation that we
  10518. 5:21:02just built did. So you shouldn't really
  10519. 5:21:04need anything new as far as API keys,
  10520. 5:21:06but you do need to create me both of
  10521. 5:21:08these deliverables, both of you know all
  10522. 5:21:10these scripts and then go ahead and just
  10523. 5:21:11do as much as you can here and then stop
  10524. 5:21:14once you've tested and proven that this
  10525. 5:21:16endtoend pipeline works and is deployed
  10526. 5:21:19on modal. Okay, so that is my slash
  10527. 5:21:21goal. I will basically just check in
  10528. 5:21:23with you guys once this is done so I can
  10529. 5:21:25show you what that web hook based
  10530. 5:21:26automation looks like. All right, so
  10531. 5:21:29this just finished up. That was insanely
  10532. 5:21:31quick. If I go to my apps now, you can
  10533. 5:21:33see that we have lead web hook as a
  10534. 5:21:35separate app. You can see that there's
  10535. 5:21:36two different functions. So this was a
  10536. 5:21:38test submit which has zero calls and
  10537. 5:21:39then we have the actual web function. If
  10538. 5:21:41you look at this, you can see this isn't
  10539. 5:21:44triggered on a schedule. If you guys
  10540. 5:21:46remember in the other app, there was a
  10541. 5:21:48timer right here and then there was a
  10542. 5:21:49button to execute now. But the reason
  10543. 5:21:51why that doesn't happen here is because
  10544. 5:21:53when we send data over, it has to accept
  10545. 5:21:55some sort of information, right? Because
  10546. 5:21:57the form submitted data over to this web
  10547. 5:21:59hook. So if I go back into the um cloud
  10548. 5:22:02real quick, you can see that this is the
  10549. 5:22:04form that it built. So if I put in my
  10550. 5:22:06name, if I put in my email, and if I put
  10551. 5:22:09in my business name, which is we'll just
  10552. 5:22:11put in uppit. What does our business do?
  10553. 5:22:13Sells shoes. And we're looking for AI
  10554. 5:22:17implementation. And if I hit submit,
  10555. 5:22:20let's see if this HTML is working
  10556. 5:22:21properly. This should trigger a request
  10557. 5:22:24to modal. So, thanks, your submission
  10558. 5:22:26was received. If I go back in here, we
  10559. 5:22:29see that we just got a submission to
  10560. 5:22:31come through. We got an options and we
  10561. 5:22:33got a post. So, if I click on this one,
  10562. 5:22:35we should see sent lead notification to
  10563. 5:22:37ClickUp. We can go to execution. We can
  10564. 5:22:39see we got all of this. Now, let's make
  10565. 5:22:41sure that it's actually capturing the
  10566. 5:22:43right information. Boom. I go over to my
  10567. 5:22:45ClickUp and we can see new lead Nate. We
  10568. 5:22:47have the contact as nateest.com. Their
  10569. 5:22:50business sells shoes and they're looking
  10570. 5:22:52for AI implementation. Now, one thing I
  10571. 5:22:54want you guys to take note of here, this
  10572. 5:22:57has zero AI involved. It's literally as
  10573. 5:23:00simple as whatever data is submitted in
  10574. 5:23:03here. The modal script or the Python
  10575. 5:23:06script uses a template and basically
  10576. 5:23:09just fills out the information exactly
  10577. 5:23:12as the user typed it. If this was AI, it
  10578. 5:23:14probably would have fixed my typo. I
  10579. 5:23:15didn't even realize that I put two A's
  10580. 5:23:16in there and it probably would have just
  10581. 5:23:18like formatted this a little bit
  10582. 5:23:19different. But that would be a waste.
  10583. 5:23:21Build the simplest solution that you
  10584. 5:23:22actually need for the problem. And in
  10585. 5:23:24this case, the problem was we want form
  10586. 5:23:27submissions to instantly come to our
  10587. 5:23:29ClickUp. And this is getting the job
  10588. 5:23:31done. I don't really need AI here at
  10589. 5:23:33all. All that would do is it would add a
  10590. 5:23:34little bit of risk and it would increase
  10591. 5:23:36our cost. So great example of a
  10592. 5:23:38situation where a simple modal script,
  10593. 5:23:41this took probably four minutes in
  10594. 5:23:43total. And now anytime someone would
  10595. 5:23:45submit a form on our website, we would
  10596. 5:23:47instantly get their submission. All
  10597. 5:23:49right. So now that we understand how to
  10598. 5:23:51deploy stuff, I want to talk about
  10599. 5:23:53another way that you can actually use
  10600. 5:23:55your own cloud stuff. Because what
  10601. 5:23:57happens is as we're building out these
  10602. 5:23:58folders and files and skills and all
  10603. 5:24:01these connections, it's really valuable.
  10604. 5:24:03And I don't know about you guys, but I
  10605. 5:24:04get in this situation where sometimes I
  10606. 5:24:06get anxious about like leaving my house
  10607. 5:24:08or not not leaving my house. That makes
  10608. 5:24:09me sound like I'm a freak. I mean, like
  10609. 5:24:12I get worried about how much work I'll
  10610. 5:24:14be able to do if I'm maybe like on a
  10611. 5:24:16vacation or if I'm away from my PC setup
  10612. 5:24:18cuz I like my monitors, I like my
  10613. 5:24:20standing desk, I like all this, right?
  10614. 5:24:21But what we can do is we can use a thing
  10615. 5:24:23called remote control, which basically
  10616. 5:24:25lets us use our phones to actually
  10617. 5:24:27continue to work on our sessions. And
  10618. 5:24:29what I love about remote control is
  10619. 5:24:30because it's it's so so easy where I can
  10620. 5:24:33go down to the gym and before I do, I'll
  10621. 5:24:34just start a remote control. So, as I'm,
  10622. 5:24:36you know, working out, I can keep
  10623. 5:24:37sending off prompts and I can keep
  10624. 5:24:39building stuff. or if I know I'm going
  10625. 5:24:40to go on a walk or if I know I'm going
  10626. 5:24:41to go to lunch or even if I know that
  10627. 5:24:43I'm going to be away from my home setup
  10628. 5:24:44for a few days, obviously I bring my
  10629. 5:24:46laptop and I'll still have my AIOS on my
  10630. 5:24:48laptop, but I can still start a session
  10631. 5:24:50from my phone and just check in on
  10632. 5:24:51things. So, remote control, super cool
  10633. 5:24:54and it's super easy because all you have
  10634. 5:24:55to do here is you're on a certain
  10635. 5:24:57account, right? So, pretend this is, you
  10636. 5:24:59know, nateis.com
  10637. 5:25:00is my email that I have this account on
  10638. 5:25:02on my phone on the Claude app. I would
  10639. 5:25:04also just need to be signed in
  10640. 5:25:06nateis.com.
  10641. 5:25:07And then let's say you see this session,
  10642. 5:25:08right? This was our agent team debate
  10643. 5:25:10session. All I have to do is come in
  10644. 5:25:12here and do a slash remote control. And
  10645. 5:25:14when I shoot that off, that basically
  10646. 5:25:16just like exposes this session. It is
  10647. 5:25:19local, but it exposes it for my phone to
  10648. 5:25:21be able to control it. So, I'm going to
  10649. 5:25:23open up my phone here and I'm going to
  10650. 5:25:24go into the clawed app on my phone. Now,
  10651. 5:25:26when I'm in here, what I can do is I can
  10652. 5:25:28go to the code section. And now, you can
  10653. 5:25:30see I have an idle session. So, you guys
  10654. 5:25:32probably can't see this too well, but if
  10655. 5:25:34I hold this up to the camera, this is
  10656. 5:25:36our session, right? So you can see here
  10657. 5:25:38it says like the verdict, the stats
  10658. 5:25:40table, the round table. If you look
  10659. 5:25:42really hard, you can actually see that's
  10660. 5:25:43exactly what it says right here. The
  10661. 5:25:45verdict, the stats table. Anyways, let
  10662. 5:25:47me just prove it to you by shooting off
  10663. 5:25:48a prompt. So on my phone, I'm saying,
  10664. 5:25:50"Hi, this is from Nate's phone." And I
  10665. 5:25:55will hit enter. And now you see that
  10666. 5:25:56this is going to come through on our
  10667. 5:25:58laptop right here, or sorry, not laptop,
  10668. 5:26:00on the desktop. And it's processing that
  10669. 5:26:01message. So it saw, hi, this is from
  10670. 5:26:03Nate's phone, blah blah blah. And I'm
  10671. 5:26:05getting all of this response on my phone
  10672. 5:26:07as well. So basically the point is we
  10673. 5:26:09now have two different ways to control
  10674. 5:26:10this session. I can do it from my phone
  10675. 5:26:12and I can also do it from right here. So
  10676. 5:26:15what also is cool is I can come in here
  10677. 5:26:17and I can do a slashclear. So I sent
  10678. 5:26:19slash clear from my phone and what's
  10679. 5:26:21going to happen is it's still able to
  10680. 5:26:22recognize that that was a slash command
  10681. 5:26:24and you can still have all that full
  10682. 5:26:26functionality of what you typically are
  10683. 5:26:28doing when you are driving this from
  10684. 5:26:30your computer. Okay, you know what?
  10685. 5:26:32That's actually really weird, but I'm
  10686. 5:26:34glad that we found this out. So, I'm not
  10687. 5:26:35sure if this is a bug because I have to
  10688. 5:26:36relaunch or, you know, the desktop app
  10689. 5:26:39is always being improved on, but both of
  10690. 5:26:41my slashclear commands came through as
  10691. 5:26:43no content, which is very strange
  10692. 5:26:45because I do this a lot from my VS Code
  10693. 5:26:47terminal and it works. So, that's just
  10694. 5:26:49another quick example of some of the
  10695. 5:26:51tiny tiny little things where the VS
  10696. 5:26:53Code terminal gets you the full
  10697. 5:26:55functionality. And for some reason, that
  10698. 5:26:57didn't work when I did this here, but
  10699. 5:26:58that does work when I'm using the
  10700. 5:27:00terminal. But anyways, that is remote
  10701. 5:27:02control. Like I said, it's super handy
  10702. 5:27:03if you know you're just going to be
  10703. 5:27:04stepping out for a bit, but you still
  10704. 5:27:05want to keep being able to check in on
  10705. 5:27:07something and keep working on something.
  10706. 5:27:08So hopefully you guys are able to find
  10707. 5:27:10some good use cases for that. Okay, so
  10708. 5:27:11that was remote control. Now, token
  10709. 5:27:14management, such a big conversation,
  10710. 5:27:17right? It's always going to be important
  10711. 5:27:19even when we get into the future and
  10712. 5:27:20models are getting cheaper potentially
  10713. 5:27:22and you're able to run them locally, but
  10714. 5:27:24token management is so so important
  10715. 5:27:25because not only from a cost
  10716. 5:27:27perspective, but from a performance
  10717. 5:27:29perspective. We all know about context
  10718. 5:27:30rot and we all know about things like
  10719. 5:27:33confusion or bloating when it comes to
  10720. 5:27:35the context window of your AI agents.
  10721. 5:27:37So, we're going to spend some time here
  10722. 5:27:39talking about tokens, what they really
  10723. 5:27:41are, how they work, how Claude works
  10724. 5:27:43with them, and how you can actually use
  10725. 5:27:45these little tricks and use these things
  10726. 5:27:46and keep them in mind to maximize your
  10727. 5:27:49sessions and your tokens. In the past
  10728. 5:27:51week or so, so many people have been
  10729. 5:27:52complaining about hitting their claude
  10730. 5:27:54code limit insanely fast. claims like
  10731. 5:27:56one prompt that is about 1% of the limit
  10732. 5:27:58is now around 10%. You could go through
  10733. 5:28:00X and find tons and tons of threads
  10734. 5:28:02about this topic. Even on a $200 per
  10735. 5:28:04month plan, people are reaching the
  10736. 5:28:06session limit way too fast. And then we
  10737. 5:28:08got this post from an anthropic employee
  10738. 5:28:10that basically said that they are
  10739. 5:28:11working on a little change with peak
  10740. 5:28:13hours and off peak hours. But even after
  10741. 5:28:15that, some people were saying they were
  10742. 5:28:17still hitting it really quick even
  10743. 5:28:18during off- peak hours. So anyways, I've
  10744. 5:28:20been playing around a ton, trying
  10745. 5:28:21different things, doing research, and I
  10746. 5:28:23have 18 token management hacks for you
  10747. 5:28:25guys that I've organized from tier one
  10748. 5:28:27all the way up to tier three, so they
  10749. 5:28:28get more advanced as we go. I'm very
  10750. 5:28:30confident that by the end of this video,
  10751. 5:28:31you will feel like your Claude code
  10752. 5:28:33usage has doubled, tripled, maybe even
  10753. 5:28:355xed. So, let's not waste any time and
  10754. 5:28:37just get straight into the video. So, as
  10755. 5:28:39I've been optimizing my own token
  10756. 5:28:40management, I think that what's really
  10757. 5:28:42important to realize first is how tokens
  10758. 5:28:45actually work. Because once you realize
  10759. 5:28:46how Claude uses tokens, it makes it very
  10760. 5:28:49clear how you should actually reverse
  10761. 5:28:51engineer the way that you work in order
  10762. 5:28:52to use less tokens. So a token is the
  10763. 5:28:55smallest unit of text that an AI model
  10764. 5:28:57reads and charges you for. It's roughly
  10765. 5:28:59one token is one word, but that's not
  10766. 5:29:01explicitly true. Kind of just a good
  10767. 5:29:03baseline. So every time that you send a
  10768. 5:29:04message, Claude rereads the entire
  10769. 5:29:06conversation from the beginning. And all
  10770. 5:29:08of those are tokens that it's charging
  10771. 5:29:10you for. So, message one, it will read
  10772. 5:29:12it, then it will read its reply, and
  10773. 5:29:13then message two, and then the reply all
  10774. 5:29:15the way up to your latest prompt. And it
  10775. 5:29:17does that every single time. And I think
  10776. 5:29:19that alone is a huge light bulb moment
  10777. 5:29:21for a lot of people. This means as
  10778. 5:29:23you're having a conversation with
  10779. 5:29:24Claude, your cost is compounding, not
  10780. 5:29:26just adding, it's exponentially growing.
  10781. 5:29:29Meaning, message one might cost 500
  10782. 5:29:30tokens, message 30 costs 15,000 because
  10783. 5:29:33it's rereading everything before it. One
  10784. 5:29:36developer actually tracked a 100 plus
  10785. 5:29:38message chat and found that 98.5% of all
  10786. 5:29:41the tokens were just spent rereading the
  10787. 5:29:43old chat history in the session. Like
  10788. 5:29:45that's a huge waste. Now yes, the
  10789. 5:29:46argument has to be made that well it
  10790. 5:29:48needs the context and it needs to
  10791. 5:29:50understand what we're doing. But still
  10792. 5:29:5198.5% is crazy. So take a quick look at
  10793. 5:29:54this graphic here. Along the x-axis we
  10794. 5:29:56have message number and as it increases
  10795. 5:29:58you can see that we have our per message
  10796. 5:30:00cost and our cumulative tokens
  10797. 5:30:02increasing. But it's not linear. It's
  10798. 5:30:04basically each message is rereading all
  10799. 5:30:06of the past ones and it has to count
  10800. 5:30:08that in. So message one could be 500,
  10801. 5:30:10message 30 could be 15,500 which is 31
  10802. 5:30:13times more. And then after 30 messages
  10803. 5:30:14you might already be at almost a quarter
  10804. 5:30:16million cumulative tokens. Now on top of
  10805. 5:30:18all of your own messages, Claude will
  10806. 5:30:20also reload your cloud.MD, your MCP
  10807. 5:30:23servers, your system prompts, your
  10808. 5:30:24skills, your files on every single turn.
  10809. 5:30:26And this is invisible overhead, but it
  10810. 5:30:28is constantly dripping into your context
  10811. 5:30:30and your tokens. And a really important
  10812. 5:30:32thing to realize is that bloated context
  10813. 5:30:33doesn't just cost you more money, but it
  10814. 5:30:35also produces worse output. So you're
  10815. 5:30:37paying more and you're getting less.
  10816. 5:30:38There's this phenomenon called loss in
  10817. 5:30:40the middle, which basically says that
  10818. 5:30:42models are paying the most attention in
  10819. 5:30:44the beginning of your session and kind
  10820. 5:30:45of at the end. So all that stuff in the
  10821. 5:30:47middle of your session, kind of in this
  10822. 5:30:48dip is getting ignored. All right, so
  10823. 5:30:51now that we kind of understand a little
  10824. 5:30:52bit more about how cloud code works and
  10825. 5:30:53how tokens work, let's move into the
  10826. 5:30:55hacks. We're going to start here with
  10827. 5:30:56tier one hacks. These are the ones that
  10828. 5:30:58are going to be super easy to implement
  10829. 5:31:00and everyone should be able to
  10830. 5:31:01understand. So, we've got nine of these.
  10831. 5:31:03Number one is to start fresh
  10832. 5:31:05conversations. Use slashclear between
  10833. 5:31:08unrelated tasks. Don't carry context
  10834. 5:31:10about topic A into a conversation about
  10835. 5:31:12topic B. So, every single message in a
  10836. 5:31:14long chat is exponentially more
  10837. 5:31:16expensive than the same message in a
  10838. 5:31:17fresh chat. So, this one habit is the
  10839. 5:31:20number one thing that extends your
  10840. 5:31:21session life. And it's pretty obvious
  10841. 5:31:23based on what we just talked about. So,
  10842. 5:31:25that's why this was number one. Okay,
  10843. 5:31:27number two is to disconnect MCP servers.
  10844. 5:31:30Every single connected MCP server loads
  10845. 5:31:32all of its tool definitions into your
  10846. 5:31:34context on every message. This is
  10847. 5:31:36another source of completely invisible
  10848. 5:31:38tokens that might just be eating up and
  10849. 5:31:39eating away. So, one server alone might
  10850. 5:31:42be something like 18,000 tokens per
  10851. 5:31:44message. So, run MCP at the start of
  10852. 5:31:47each session and disconnect the ones
  10853. 5:31:48that you don't need. And better yet, if
  10854. 5:31:50you're able to find CLIs for something,
  10855. 5:31:52so for example, rather than having the
  10856. 5:31:53Google Workspace or Google Calendar MCP
  10857. 5:31:56server, which eats a lot of tokens, just
  10858. 5:31:58use the Google Workspace CLI. It's
  10859. 5:32:00faster, it's cheaper, and I think the
  10860. 5:32:02future is moving towards having our
  10861. 5:32:04agents use CLIs rather than MCPs. All
  10862. 5:32:07right, number three, batch prompts into
  10863. 5:32:09one message. Three separate messages
  10864. 5:32:12cost three times what one combined
  10865. 5:32:13message costs because of the way the
  10866. 5:32:15tokens work, right? Instead of summarize
  10867. 5:32:18this as one message and then now extract
  10868. 5:32:20the issues, now suggest a fix, send it
  10869. 5:32:22all in one prompt. If clog gets
  10870. 5:32:24something slightly wrong, edit your
  10871. 5:32:25original message and regenerate instead
  10872. 5:32:27of sending a full follow-up correction.
  10873. 5:32:29Follow-ups stack onto history
  10874. 5:32:31permanently while edits replace the bad
  10875. 5:32:33exchange entirely. Now, I will say there
  10876. 5:32:35is an argument to be made here that
  10877. 5:32:37potentially doing it this way where
  10878. 5:32:39you're doing task one, task two, then
  10879. 5:32:41task three might actually be better
  10880. 5:32:43output quality. I think it depends on
  10881. 5:32:45the actual use case. Basically, the idea
  10882. 5:32:47would be if you can give AI one specific
  10883. 5:32:49task at a time, it's going to do better
  10884. 5:32:51because it's more specialized and it's
  10885. 5:32:52more focused. But this is definitely
  10886. 5:32:54something that you should be aware of.
  10887. 5:32:55Okay, number four is to use plan mode
  10888. 5:32:57before any real task. This lets Claude
  10889. 5:32:59map out the approach, ask you the right
  10890. 5:33:01questions, and it prevents the single
  10891. 5:33:03biggest source of token waste, which is
  10892. 5:33:04just having Claude go down the wrong
  10893. 5:33:06path, writing code, and then basically
  10894. 5:33:08everything that it just did, you have to
  10895. 5:33:10basically like scrap and redo. It's just
  10896. 5:33:11a huge waste of time and tokens. So, you
  10897. 5:33:13can add something like this to your
  10898. 5:33:14cloudmd. Do not make any changes until
  10899. 5:33:16you have 95% confidence in what you need
  10900. 5:33:18to build. Ask me follow-up questions
  10901. 5:33:20until you reach that confidence level.
  10902. 5:33:22This is something that I'm putting into
  10903. 5:33:23all of my cloudmds when I am having it
  10904. 5:33:26help me build things. Number five, we
  10905. 5:33:28have run/context and /cost. /context
  10906. 5:33:31shows you exactly what's eating your
  10907. 5:33:32tokens right now. So, your conversation
  10908. 5:33:34history, your MCP overhead, loaded
  10909. 5:33:36files, stuff like that. And /cost shows
  10910. 5:33:39you your actual token usage and
  10911. 5:33:41estimated spend for that current
  10912. 5:33:42session. Most people have no idea where
  10913. 5:33:44their tokens are going. And these two
  10914. 5:33:46commands make the invisible visible
  10915. 5:33:48because if you don't actually know that
  10916. 5:33:50you're bleeding because of MCPS, then
  10917. 5:33:51how would you be able to fix that? So,
  10918. 5:33:53when you run /context, this is what it
  10919. 5:33:55will look like. It'll basically give you
  10920. 5:33:56a screenshot of how many tokens you're
  10921. 5:33:59at, what is the cap, and it will
  10922. 5:34:01estimate based on the different
  10923. 5:34:02categories. And what I did here is this
  10924. 5:34:04was ran in a completely fresh session,
  10925. 5:34:06no chats. So, what that tells me is,
  10926. 5:34:08okay, before I even talk to Claude, I'm
  10927. 5:34:10already down 51,000 tokens because of
  10928. 5:34:13things like the system prompt, the
  10929. 5:34:14system tools, my custom agents, my
  10930. 5:34:16skills, memory files, and here I've
  10931. 5:34:19actually cleared out all the MCPS, so
  10932. 5:34:20there wasn't anything in there, but
  10933. 5:34:22those can, like I said, completely blow
  10934. 5:34:24up your tokens right from the get- go.
  10935. 5:34:26Okay, number six is to set up a status
  10936. 5:34:28line. This kind of goes handinhand with
  10937. 5:34:30having more visibility. You only
  10938. 5:34:32actually see this in your terminal,
  10939. 5:34:33though, so you will have to do it there.
  10940. 5:34:34Um, and it basically lets you see what's
  10941. 5:34:37going on. So, right here, you can see in
  10942. 5:34:38my terminal, I've got this set up so
  10943. 5:34:39that I can see the model I'm using. I
  10944. 5:34:41can see a visual kind of progress bar of
  10945. 5:34:44my usage. And then I can see uh 5% of my
  10946. 5:34:47whole 1 million context window. And I
  10947. 5:34:50can see 52,000 tokens out of a,000,000,
  10948. 5:34:53which is a million. And just to clarify,
  10949. 5:34:54this isn't my session, like my 5 hour
  10950. 5:34:56session. This is basically just
  10951. 5:34:58indicating that I'm 5% of the way or 52K
  10952. 5:35:01out of a,000K. So all you have to do is
  10953. 5:35:03include code in the terminal do /st
  10954. 5:35:05status line and explain that you want to
  10955. 5:35:07replicate this setup. Number seven is
  10956. 5:35:09just super simple but keep your
  10957. 5:35:11dashboard open. Same thing with
  10958. 5:35:12visibility. You might run into issues
  10959. 5:35:14with your limit and just get hit out of
  10960. 5:35:16nowhere. But if you have it pulled up
  10961. 5:35:18next to you or you have it ready so that
  10962. 5:35:19you can switch into that tab and you
  10963. 5:35:20know check every 20 40 minutes then
  10964. 5:35:23you're going to be able to pace yourself
  10965. 5:35:24a little bit better. You could even set
  10966. 5:35:26up a automation to basically check in on
  10967. 5:35:28it every 30 minutes and send you like a
  10968. 5:35:30text or a Slack message and say, "Hey,
  10969. 5:35:32by the way, you're getting near your
  10970. 5:35:35usage." All right, so number eight, we
  10971. 5:35:37have be smart with pasting. Before you
  10972. 5:35:39drop a document or a file or something
  10973. 5:35:41large, just ask yourself, does Claude
  10974. 5:35:44need to read this whole thing? Sometimes
  10975. 5:35:45it does. Sometimes it needs that full
  10976. 5:35:46context, but sometimes it just needs one
  10977. 5:35:48section or one page. So if the bug is in
  10978. 5:35:51one function, then paste just that
  10979. 5:35:52function. or if it just needs the
  10980. 5:35:54context of one little paragraph, just
  10981. 5:35:55paste that. Claude needs to be precise
  10982. 5:35:57about what it reads, but you also need
  10983. 5:35:58to be precise about what you feed it.
  10984. 5:36:00And number nine, our last tier one hack
  10985. 5:36:02is to actually watch Claude code work.
  10986. 5:36:05Don't just fire off a prompt and walk
  10987. 5:36:06away or switch tabs. Watch what Claude
  10988. 5:36:08is doing, especially on longer tasks.
  10989. 5:36:10And this is because if you actually sit
  10990. 5:36:12and watch it, sometimes you'll realize
  10991. 5:36:13it's going down the wrong path.
  10992. 5:36:14Sometimes it gets stuck in its own
  10993. 5:36:16loops, rereads the same files, things
  10994. 5:36:18like that. So, if it's doing that, you
  10995. 5:36:20might as well just stop it right there.
  10996. 5:36:22Kind of the same idea as plan mode. Why
  10997. 5:36:24would you let it go down the wrong path,
  10998. 5:36:25waste all your tokens, and then just
  10999. 5:36:27have to scrap it all in a bad loop? 80%
  11000. 5:36:29of the tokens are being used, producing
  11001. 5:36:32zero value. So, if you're able to just
  11002. 5:36:34watch your session run until you know
  11003. 5:36:36it's going down the right path, it could
  11004. 5:36:37save you thousands of tokens. All right,
  11005. 5:36:39let's kick it up a little bit. Let's
  11006. 5:36:40move into our tier 2 hacks. And for
  11007. 5:36:42these ones, we have five of them. So,
  11008. 5:36:44number one is to keep your claw.md file
  11009. 5:36:47lean. Place it in your project route,
  11010. 5:36:49whether that is globally or in in local
  11011. 5:36:51project. Claude auto reads it at the
  11012. 5:36:53start of every single chat as system
  11013. 5:36:55context. So keep it under 200 lines.
  11014. 5:36:58Include things like your text stack,
  11015. 5:36:59your coding conventions, your build
  11016. 5:37:00commands, the 95% confidence rule, only
  11017. 5:37:03the most important things. And you need
  11018. 5:37:05to treat this like an index route to
  11019. 5:37:07where more data lives. And it's a
  11020. 5:37:09complete mindset shift. This file
  11021. 5:37:10basically just tells Cloud Code where is
  11022. 5:37:12everything that it needs and what to do
  11023. 5:37:14every single time. So it can point to
  11024. 5:37:16files that are huge, but that way it
  11025. 5:37:17just says, "Okay, I don't need this
  11026. 5:37:18right now, but if I do need this, I know
  11027. 5:37:20exactly where to look." And because it
  11028. 5:37:22knows exactly where to look, it's not
  11029. 5:37:23going to waste time or tokens searching
  11030. 5:37:25through and reading other files. It's
  11031. 5:37:26just able to grab it right there by the
  11032. 5:37:28file name. And the reason I say this is
  11033. 5:37:29a mindset shift because you should be
  11034. 5:37:31doing this with other things, not just
  11035. 5:37:32your cloudmd, with your skills or with
  11036. 5:37:34your um, you know, master reference
  11037. 5:37:36guide sheets. I saw someone talking
  11038. 5:37:38about how they created an index that's
  11039. 5:37:39super super lean and it shows cloud code
  11040. 5:37:42exactly where to go in the cloud code
  11041. 5:37:44documentation. So if it needs help with
  11042. 5:37:46something related to cloud code, it
  11043. 5:37:47doesn't have to search through the whole
  11044. 5:37:48database. It can just say, "Okay, here's
  11045. 5:37:50my index file. I know exactly which URL
  11046. 5:37:52to look up at." Super simple. You want
  11047. 5:37:54to keep this lean and trim it all the
  11048. 5:37:55time. It's always a work in progress
  11049. 5:37:57because every single chat, not just like
  11050. 5:37:59your session, every single message,
  11051. 5:38:00CloudMD gets read. So if your CloudMD
  11052. 5:38:03file is a thousand lines, every single
  11053. 5:38:05time you shoot off a message, even if
  11054. 5:38:07you just say hi, the whole thing's going
  11055. 5:38:09to get read. Okay. Number two here is to
  11056. 5:38:11be surgical with file references. Don't
  11057. 5:38:13just say something like here's my whole
  11058. 5:38:14repo, go find the bug. Say something
  11059. 5:38:16more like check the verify user function
  11060. 5:38:18inside the off.js file. Or you can also
  11061. 5:38:22use at file name to point at specific
  11062. 5:38:24files instead of once again letting
  11063. 5:38:26claude explore freely. The whole idea of
  11064. 5:38:28being specific and routing. All right.
  11065. 5:38:30So number three, I'm saying to compact
  11066. 5:38:32at around 60% capacity. Autocompact
  11067. 5:38:35triggers at like 95% by which point your
  11068. 5:38:37context is already pretty degraded. So
  11069. 5:38:39run /context to check your capacity
  11070. 5:38:41percentage or you should have the status
  11071. 5:38:42line set up and at about 60% just run
  11072. 5:38:45the slash compact with specific
  11073. 5:38:47instructions on what it should actually
  11074. 5:38:48be preserving. After three to four
  11075. 5:38:50compacts in a row the quality does start
  11076. 5:38:52to degrade. So at that point once you've
  11077. 5:38:54done three or four just get a session
  11078. 5:38:56summary/clear
  11079. 5:38:58give the session summary back and then
  11080. 5:38:59keep going. All right so number four
  11081. 5:39:01short breaks are actually costing you.
  11082. 5:39:04Cloud code uses prompt chaining to avoid
  11083. 5:39:06reprocessing unchanged context, but the
  11084. 5:39:08cache has a fiveminute timeout. So if
  11085. 5:39:10you step away and you come back and it's
  11086. 5:39:12been longer than 5 minutes, your next
  11087. 5:39:14message reprocesses everything from
  11088. 5:39:15scratch at full cost. And that is why
  11089. 5:39:18some people feel like their usage just
  11090. 5:39:19randomly spikes if they might have, you
  11091. 5:39:21know, stepped away and came back. So if
  11092. 5:39:23you're going to do that, just consider
  11093. 5:39:24doing a /compact or a sl before you step
  11094. 5:39:27away. All right, number five, command
  11095. 5:39:29output bloat. When Claude runs shell
  11096. 5:39:32commands, the full output enters your
  11097. 5:39:33context window. So if you have a command
  11098. 5:39:36that it comes back with 200 commits or
  11099. 5:39:38you know just tons and tons of data,
  11100. 5:39:40then all of that is tokens that gets
  11101. 5:39:43sent to your model. So really the
  11102. 5:39:45takeaway here is to be intentional about
  11103. 5:39:46what you let Claude run. If you know in
  11104. 5:39:48a certain project that it doesn't need
  11105. 5:39:50to use certain commands, then you can go
  11106. 5:39:51ahead and in that project deny those
  11107. 5:39:54permissions. And this is another one
  11108. 5:39:56that seems like it's invisible because
  11109. 5:39:57when it runs like a bash or, you know,
  11110. 5:39:59certain commands, it basically just has
  11111. 5:40:01like one line and you don't actually see
  11112. 5:40:03all the tokens that it has, you know,
  11113. 5:40:05sent there. All right, so I'm sitting
  11114. 5:40:07here editing this video and there's just
  11115. 5:40:09one more thing that I wanted to get off
  11116. 5:40:10my chest and it's basically about
  11117. 5:40:13hitting your limit. And you know, the
  11118. 5:40:15goal of this video and your goal should
  11119. 5:40:16be to optimize so that you don't hit
  11120. 5:40:18your limit. But I don't think that you
  11121. 5:40:20should associate hitting your limit with
  11122. 5:40:21like it shouldn't be a negative
  11123. 5:40:23connotation because ultimately if you're
  11124. 5:40:25doing a lot of these hacks and you are
  11125. 5:40:28not just like being wasteful with tokens
  11126. 5:40:31then hitting your limit is actually a
  11127. 5:40:32good thing if you think about it because
  11128. 5:40:33it means that you are using this tool so
  11129. 5:40:36much and I think that's what you want to
  11130. 5:40:37be. I think you want to be a power user
  11131. 5:40:40of this tool to the point where it's
  11132. 5:40:41like got to wait again and you know
  11133. 5:40:44waiting sucks but people that are using
  11134. 5:40:47it so much are going to be so much more
  11135. 5:40:49productive and so much farther ahead
  11136. 5:40:51than people who are never hitting their
  11137. 5:40:53limits you know not make not getting
  11138. 5:40:55their their money's worth and not truly
  11139. 5:40:59getting the leverage that you are now
  11140. 5:41:00getting. So anyways, quick little raw
  11141. 5:41:02rant there, but I think it's an
  11142. 5:41:04important mindset shift to have. You
  11143. 5:41:05know, just something to think about. All
  11144. 5:41:07right, so we're moving on to tier three
  11145. 5:41:09now. I hope you guys feel like you
  11146. 5:41:11already have a lot of things that you
  11147. 5:41:12want to implement and these ones are
  11148. 5:41:14getting a little crazier as well. So
  11149. 5:41:15we've got four of these here and I've
  11150. 5:41:16got a few bonus ones also, but number
  11151. 5:41:18one is to pick the right model. So
  11152. 5:41:20sonnet for your default most coding
  11153. 5:41:22work, haiku for sub aents, formatting,
  11154. 5:41:24simple tasks, opus for deep
  11155. 5:41:26architectural planning, and only when
  11156. 5:41:27sonnet wasn't enough. Try to keep this
  11157. 5:41:29under 20% of usage or unless you just
  11158. 5:41:31really really need it for that project.
  11159. 5:41:33Now, a little tip here is when you have
  11160. 5:41:34a huge code base and you want to do
  11161. 5:41:36certain things like maybe a review, then
  11162. 5:41:38try bringing in codecs. There is an
  11163. 5:41:40official plugin now and I made a video
  11164. 5:41:41about this. I'll tag that right up here.
  11165. 5:41:43But you could basically have, you know,
  11166. 5:41:44Opus and Sonnet working together to
  11167. 5:41:46build you, you know, a project or a
  11168. 5:41:48codebase and then you could just bring
  11169. 5:41:49in codeex to actually review everything
  11170. 5:41:50and that way you're saving yourself on
  11171. 5:41:53the clawed tokens. The next one, number
  11172. 5:41:55two here, is the cost of sub agents.
  11173. 5:41:58Agent workflows use roughly seven to 10
  11174. 5:42:00times more tokens than a standard single
  11175. 5:42:01agent session. Now, why is that? Because
  11176. 5:42:04they wake up with their own full context
  11177. 5:42:06and it's a separate instance. So, they
  11178. 5:42:08basically have to reload everything when
  11179. 5:42:10you start up the new session. All of
  11180. 5:42:12those files, all of the system tools,
  11181. 5:42:14like everything like that. Now, what you
  11182. 5:42:15can do though, which is helpful, is to
  11183. 5:42:17delegate to sub agents for one-off
  11184. 5:42:18tasks, especially if you want that
  11185. 5:42:20one-off task to use Haiku. So maybe you
  11186. 5:42:22need to process a lot of information or
  11187. 5:42:24maybe you need to do a ton of research
  11188. 5:42:25and get just like a summary back. Now
  11189. 5:42:27yes, tokens are still tokens no matter
  11190. 5:42:29what at the end of the day, but if you
  11191. 5:42:31can make 80% of your tokens a cheaper
  11192. 5:42:33model rather than 80% of your tokens an
  11193. 5:42:35expensive model, then you're going to be
  11194. 5:42:37saving money. And then of course agent
  11195. 5:42:39teams are cool. Um sometimes I really do
  11196. 5:42:41actually like them and it helps me get
  11197. 5:42:43more higher quality outputs, but they're
  11198. 5:42:46very very expensive. So try to use them
  11199. 5:42:48very sparingly. All right, so number
  11200. 5:42:50three is to understand peak hours. So we
  11201. 5:42:53just talked about at the beginning how
  11202. 5:42:54they've adjusted how fast your 5 hour
  11203. 5:42:56session window drains based on demand
  11204. 5:42:58during the peak hours, which are 8:00
  11205. 5:43:00a.m. to 2:00 p.m. Eastern time on
  11206. 5:43:02weekdays. But off peak, this is when
  11207. 5:43:05your usage is kind of either normal or
  11208. 5:43:07it lasts a little longer. And these are
  11209. 5:43:09afternoons, evenings, weekends. So, if
  11210. 5:43:11you actually think about this
  11211. 5:43:12strategically, maybe you want to make
  11212. 5:43:14sure that you're running big refactors
  11213. 5:43:16or multi- aent sessions or big projects
  11214. 5:43:18during off- peak hours only. Otherwise,
  11215. 5:43:20you're going to, you know, drain right
  11216. 5:43:22through that peak session. And on top of
  11217. 5:43:24this, we'll call this a little hack 3.5,
  11218. 5:43:27which is the one I kind of alluded to
  11219. 5:43:28earlier when I said, hey, just keep open
  11220. 5:43:30your clot account so you can see your
  11221. 5:43:31usage at all times. If you're near a
  11222. 5:43:33reset and you have room left in your
  11223. 5:43:35allocation, then go heavy. Try to hit
  11224. 5:43:36that usage limit before it resets. Get
  11225. 5:43:39your money's worth. Let your agents go
  11226. 5:43:40loose at that point. And on the other
  11227. 5:43:42side, if you're getting near your limit,
  11228. 5:43:44but you still have lots of time, then
  11229. 5:43:46step away. This is your time to take a
  11230. 5:43:48break, take a walk, make some lunch,
  11231. 5:43:50come back with a full budget instead of
  11232. 5:43:52burning the last 5% on something small
  11233. 5:43:54and getting stuck mid task and having to
  11234. 5:43:56just kind of, you know, lose that flow
  11235. 5:43:58state that you might have been in. Okay.
  11236. 5:44:00Number four, your systems constitution,
  11237. 5:44:03which is claw.md. This should contain
  11238. 5:44:05stable decisions, architecture rules,
  11239. 5:44:07and progress summaries. Think of it like
  11240. 5:44:09the source of truth that makes every
  11241. 5:44:10prompt shorter and shorter. Save
  11242. 5:44:12decisions, not conversations. Every
  11243. 5:44:14architectural call that you store there
  11244. 5:44:16is a paragraph that you never have to
  11245. 5:44:17type again. So, this builds on top of
  11246. 5:44:19the way that you were thinking about it
  11247. 5:44:20back in tier 1. You can add rules in
  11248. 5:44:23there that basically tell it, "Hey, I
  11249. 5:44:24want you to help me make sure I'm being
  11250. 5:44:26smart about tokens. Use sub agents for
  11251. 5:44:28any exploration or research. If a task
  11252. 5:44:30needs three plus files or multi-file
  11253. 5:44:32analysis, spawn a sub aent and only
  11254. 5:44:34return summarized insights. Spawn that
  11255. 5:44:36sub aent in Haiku. And here's a little
  11256. 5:44:38prompt that I have at the bottom of
  11257. 5:44:39mycloud.mmd. And I will say before I
  11258. 5:44:42read this out, you have to be careful
  11259. 5:44:43because when you make a file like this,
  11260. 5:44:46um, kind of self-learning or
  11261. 5:44:47self-evolving, you have to check on it
  11262. 5:44:49frequently because you don't want it to
  11263. 5:44:50accidentally get too bloated. But here I
  11264. 5:44:52said applied learning. When something
  11265. 5:44:54fails repeatedly, when Nate has to
  11266. 5:44:56reexplain, or when a workaround is found
  11267. 5:44:57for a platform tool or limitation, add a
  11268. 5:45:00oneline bullet here. Keep each bullet
  11269. 5:45:02under 15 words. No explanations. Only
  11270. 5:45:04add things that will save time in future
  11271. 5:45:05sessions. And then it's got some
  11272. 5:45:06bullets. Now, I'm not saying this is the
  11273. 5:45:08most optimal prompt, but I think this
  11274. 5:45:10sort of system of having your Claudetm
  11275. 5:45:13MD actually learn and continuously think
  11276. 5:45:15about how it can save you time and
  11277. 5:45:17tokens is a good idea to play with. All
  11278. 5:45:19right, so I know that we just went
  11279. 5:45:20through a ton of stuff. This whole slide
  11280. 5:45:22deck will be available for download for
  11281. 5:45:24free in my free school community. The
  11282. 5:45:26link for that will be down in the
  11283. 5:45:27description. But right now, what you
  11284. 5:45:28should go do are these things. Go
  11285. 5:45:30run/context, see what it looks like. Go
  11286. 5:45:33to some of your active sessions.
  11287. 5:45:34Run/cost status line. Make sure it's
  11288. 5:45:36showing your model, your context
  11289. 5:45:38percentage, and your token count. Make
  11290. 5:45:39sure you pull up your clog usage
  11291. 5:45:41dashboard so you can see your remaining
  11292. 5:45:42allocation and what time it resets.
  11293. 5:45:45Disconnect unused MCP servers. Start
  11294. 5:45:47complex tasks in plan mode. Use/clear
  11295. 5:45:50when you're switching to an unrelated
  11296. 5:45:51task. Manually compact at 60% context.
  11297. 5:45:55Batch your multi-step instructions into
  11298. 5:45:57single messages. And schedule heavy
  11299. 5:45:59sessions for off- peak hours. and really
  11300. 5:46:01just be mindful about the actual timing.
  11301. 5:46:03So, I wanted to kind of leave you guys
  11302. 5:46:04with one maybe two messages. The first
  11303. 5:46:06thing is just the idea that there is a
  11304. 5:46:09balance between quality and cost. And
  11305. 5:46:12so, that's kind of a game that you have
  11306. 5:46:13to play a little bit. And sometimes you
  11307. 5:46:14do have to go for the higher quality,
  11308. 5:46:15which ultimately is going to cost you
  11309. 5:46:16more money. And that's just the way it
  11310. 5:46:18works. But the other thing is just to
  11311. 5:46:19keep it simple and think about what we
  11312. 5:46:22talked about at the beginning of this
  11313. 5:46:23video, how tokens actually work, how
  11314. 5:46:25Claude Code actually charges you. Most
  11315. 5:46:27people don't need a bigger plan. they
  11316. 5:46:28need to stop resending their entire
  11317. 5:46:30conversation history 30 times when you
  11318. 5:46:32could just send it, you know, five
  11319. 5:46:33times. It's not a limits problem. It's a
  11320. 5:46:35context hygiene problem. So, look at
  11321. 5:46:37this. On this day, I saved 91 million
  11322. 5:46:39tokens because of cache read. And in the
  11323. 5:46:41past week, I've saved over 300 million
  11324. 5:46:43tokens because of it. Now, don't freak
  11325. 5:46:44out. This isn't anything that you have
  11326. 5:46:46to go change. This is happening
  11327. 5:46:47automatically if you are using Claude
  11328. 5:46:49Code or Claude. And I know that the
  11329. 5:46:50concept of prompt caching might seem a
  11330. 5:46:52little bit overwhelming, but today I'm
  11331. 5:46:53going to make it as simple as possible
  11332. 5:46:54and only really tell you what you need
  11333. 5:46:56to know in order to make sure that you
  11334. 5:46:57are saving your session limits and
  11335. 5:46:59saving tokens. I'll also give you guys
  11336. 5:47:00this entire token dashboard for free so
  11337. 5:47:02you can actually start tracking your
  11338. 5:47:03tokens a little bit better. Anyways, so
  11339. 5:47:04let's talk about prompt caching, why
  11340. 5:47:06your sessions burn out, and how to stop
  11341. 5:47:08it. So what does caching actually cost
  11342. 5:47:10you? Well, cached tokens only cost you
  11343. 5:47:1210% of normal input. So all the tokens
  11344. 5:47:15that are getting cached are saving you a
  11345. 5:47:16ton of money. So, if we go back to this
  11346. 5:47:18example, on this day when I had 91
  11347. 5:47:20million tokens cached, that costed me
  11348. 5:47:23only as if I was processing about 9
  11349. 5:47:25million of those tokens. The cache
  11350. 5:47:26window on a cloud subscription is an
  11351. 5:47:28hour. Meaning, if you're working with
  11352. 5:47:30cloud code and you don't touch it for an
  11353. 5:47:31hour and then you send another message,
  11354. 5:47:33everything in that session gets
  11355. 5:47:35uncashed. So, if you leave a session
  11356. 5:47:37sitting for an hour or longer, then
  11357. 5:47:39you're going to pay more for it. And if
  11358. 5:47:40you're using Claude via API or sub
  11359. 5:47:42agents, then the TTL or the time to live
  11360. 5:47:44is only 5 minutes. You can change that,
  11361. 5:47:46but it's just a little bit more
  11362. 5:47:47expensive. You can bump it up to an hour
  11363. 5:47:48if you want. But for claude code inside
  11364. 5:47:50of your terminal or your extension,
  11365. 5:47:51whatever it is, that's an hour. And now
  11366. 5:47:53here's a quote from Thoric from
  11367. 5:47:54Enthropic. He said that we actually run
  11368. 5:47:56alerts on our prompt cache hit rate and
  11369. 5:47:58declare SUVs if they're too low. So
  11370. 5:48:00basically them saying, "We take this
  11371. 5:48:01stuff really, really seriously and if we
  11372. 5:48:03see that the hit rate isn't very high
  11373. 5:48:05for users cloud code caching, then we do
  11374. 5:48:08something about it immediately." And
  11375. 5:48:09that's very nice of them. But also, of
  11376. 5:48:11course, it benefits themselves because
  11377. 5:48:13with a high cash hit rate, cloud code
  11378. 5:48:15feels faster. Their serving cost is
  11379. 5:48:17lower. Subscription limits feel more
  11380. 5:48:19generous, you know, because you're using
  11381. 5:48:20less. And long coding sessions stay
  11382. 5:48:23practical. And then if you have low cash
  11383. 5:48:25hit rate, this is what happens. And
  11384. 5:48:26obviously, it's just a lose-lose for
  11385. 5:48:28everybody. And that's why I said like
  11386. 5:48:30prompt caching can get very, very
  11387. 5:48:32complex. And if you want to check out
  11388. 5:48:34more, then I'll link this article right
  11389. 5:48:35here, which Thor really goes into some
  11390. 5:48:38depth here. But if you read this, at
  11391. 5:48:39least when I did, I was like, "Okay,
  11392. 5:48:40this is a little bit overwhelming." I
  11393. 5:48:42have a feeling I don't actually need to
  11394. 5:48:43know all of this, but I do need to know
  11395. 5:48:45at least a little bit, at least, you
  11396. 5:48:46know, the 8020 of prompt caching so that
  11397. 5:48:48I can get the most out of my session
  11398. 5:48:50limits. And that's what I'm going to
  11399. 5:48:51break down today. So, let's take a look
  11400. 5:48:53at an example of how this actually
  11401. 5:48:55grows. So, by default, when you shoot
  11402. 5:48:58off a message to Claude, there's going
  11403. 5:49:00to be some information that needs to be
  11404. 5:49:01cached right away. And actually, let me
  11405. 5:49:02just switch back to one of Thor's
  11406. 5:49:04graphics real quick. You can see here
  11407. 5:49:05that we have the base system
  11408. 5:49:07instructions get globally cached. We
  11409. 5:49:09have tools like read, write, bash, grap,
  11410. 5:49:11glob globally cached. We have per memory
  11411. 5:49:13or sorry per project things like
  11412. 5:49:15cloud.mmd in memory and that gets cached
  11413. 5:49:17per project. We've got session state and
  11414. 5:49:19then we have user messages which grow
  11415. 5:49:21each turn. So now that we take this into
  11416. 5:49:25context and we flip back over here, this
  11417. 5:49:26is what it looks like. This is an
  11418. 5:49:28example where we have four turns. So on
  11419. 5:49:30turn one there's no cache. Basically
  11420. 5:49:31we're matching on a prefix. So don't
  11421. 5:49:33really have to worry about what that
  11422. 5:49:35means, but I might mention that later.
  11423. 5:49:37So anyways, on turn one, there's
  11424. 5:49:39nothing, right? We're opening up a fresh
  11425. 5:49:40session. We load in the system prompt,
  11426. 5:49:42the project context, and we shoot off
  11427. 5:49:44our first message. And all of this is
  11428. 5:49:46kind of in this like brown highlight
  11429. 5:49:48border, which means that this is new,
  11430. 5:49:50and it has to be fully processed, and
  11431. 5:49:52it's being written to the cache here. So
  11432. 5:49:55before I continue down this graphic in
  11433. 5:49:57this dashboard, you can see that we have
  11434. 5:49:59the difference between cache create and
  11435. 5:50:01cache read. So on these days you can see
  11436. 5:50:03what are my input tokens, my output
  11437. 5:50:05tokens and my cash create. And then over
  11438. 5:50:07here you can see my daily cash reads.
  11439. 5:50:08And just a quick explanation a cash
  11440. 5:50:10create is writing something into cache
  11441. 5:50:13for the first time. It's a one-time cost
  11442. 5:50:15and it pays off the next turn unless of
  11443. 5:50:17course everything gets uncashed. And the
  11444. 5:50:18cash read is tokens that claude reused
  11445. 5:50:20from a cache like your claw.mmd or some
  11446. 5:50:23of the files or some of the global
  11447. 5:50:24system instructions. And these are the
  11448. 5:50:26things that are 10 times cheaper than
  11449. 5:50:28fresh input. So anyways, on turn two,
  11450. 5:50:31given that we're within that 1 hour TTL
  11451. 5:50:33window, everything here is already in
  11452. 5:50:36context. So it's cached and then all
  11453. 5:50:37that Claude actually has to process for
  11454. 5:50:39the first time is reply one and message
  11455. 5:50:42two and it caches that. So then down
  11456. 5:50:44here in turn three, all of that's cached
  11457. 5:50:46and we are bumping up a reply and a
  11458. 5:50:48message and those are the things that
  11459. 5:50:49only get processed each time. But if we
  11460. 5:50:51waited an hour and then we sent another
  11461. 5:50:53message or if we change the system
  11462. 5:50:55prompt then everything from the very
  11463. 5:50:57beginning has to get fully reached. So
  11464. 5:51:00imagine if you were on message like you
  11465. 5:51:02know 16 and you're way way way over here
  11466. 5:51:04on the right and you change the system
  11467. 5:51:05prompt or you wait an hour then
  11468. 5:51:07everything getting reached is going to
  11469. 5:51:10be a pretty expensive move that you just
  11470. 5:51:11made. So anyways once again we have the
  11471. 5:51:13system layer, the project layer and the
  11472. 5:51:15conversation layer. The system layer has
  11473. 5:51:16instructions, tool definitions, output
  11474. 5:51:18style, and here's where it might break.
  11475. 5:51:21The project level or the project layer
  11476. 5:51:23has cloudmd, memory, and rules, and then
  11477. 5:51:25here's when that might break. And then
  11478. 5:51:27we have, of course, the conversation,
  11479. 5:51:28which is just like the replies and the
  11480. 5:51:30messages, which gets reached every time,
  11481. 5:51:32but that's how it should be. So, here's
  11482. 5:51:34where there's been some confusion among
  11483. 5:51:36the community. So, how long does the
  11484. 5:51:39cache snapshot live, which is kind of
  11485. 5:51:41called the TTL, the time to live. So on
  11486. 5:51:43your cloud subscription, you have an
  11487. 5:51:46hour by default because it uses your
  11488. 5:51:47subscription. But if you go over that
  11489. 5:51:49weekly limit and you are now playing in
  11490. 5:51:51your extra usage territory where you are
  11491. 5:51:53paying per token API, then by default
  11492. 5:51:56that will be 5 minutes, which is very
  11493. 5:51:58dangerous. If you're managing multiple
  11494. 5:52:00sessions and you're constantly reaching
  11495. 5:52:01everything because five minutes is
  11496. 5:52:03passing, you got to be careful about
  11497. 5:52:05that. And people were kind of
  11498. 5:52:06suspicious. I don't know if you remember
  11499. 5:52:07like a month or so ago when everyone was
  11500. 5:52:09complaining about their Clawude uh
  11501. 5:52:10subscriptions how quick they were eating
  11502. 5:52:12it up. People thought maybe that they
  11503. 5:52:14switched the cash TTL from an hour to 5
  11504. 5:52:17minutes without like saying anything to
  11505. 5:52:18anybody. It turns out they didn't. So it
  11506. 5:52:21is an hour but that's just like you know
  11507. 5:52:23there was a lot of confusion around that
  11508. 5:52:24and I get why because honestly it's not
  11509. 5:52:26super clear. Like if you're on an API,
  11510. 5:52:28you have 5 minutes by default, but you
  11511. 5:52:30can increase the cost and you can do an
  11512. 5:52:33hour and then your sub agents on any
  11513. 5:52:34plan are going to be 5 minutes. And for
  11514. 5:52:36some reason, all of this is documented
  11515. 5:52:37about cloud code and the API, which are
  11516. 5:52:39two very different things. But the
  11517. 5:52:41claw.ai like on the web, we don't know
  11518. 5:52:44exactly how that works. At least I
  11519. 5:52:45haven't found documentation on that
  11520. 5:52:47exact. I'm assuming it's the same as
  11521. 5:52:49your subscription, but I don't know 100%
  11522. 5:52:51for for fact. Anyways, three habits that
  11523. 5:52:54cover 95% of people. Don't pause too
  11524. 5:52:56long. So if you've gone over an hour on
  11525. 5:52:59a session, just hand it off to a new
  11526. 5:53:01session. Obviously, start fresh when you
  11527. 5:53:03switch tasks. So do a slash compact,
  11528. 5:53:05which will break the cache, or do a
  11529. 5:53:07slash clear. Or you can also use my
  11530. 5:53:08session handoff skill, which I will
  11531. 5:53:10include as well for free. So both the
  11532. 5:53:13token dashboard, GitHub repo, and the
  11533. 5:53:14skill will be in my free school
  11534. 5:53:16community. The link for that down in the
  11535. 5:53:17description. But basically what that
  11536. 5:53:18means is, let's say right here, I've got
  11537. 5:53:20this project which helps me build this
  11538. 5:53:21HTML file you guys are looking at. It's
  11539. 5:53:23got 205,000 tokens in here. And if I
  11540. 5:53:25come in here and just do a session
  11541. 5:53:26handoff, this basically summarizes
  11542. 5:53:28everything we've done, all the important
  11543. 5:53:30files that we've built, all of the open
  11544. 5:53:31decisions, exactly where to pick back
  11545. 5:53:33up. And then I basically am able to just
  11546. 5:53:35copy that summary, do a slash clear, and
  11547. 5:53:38then keep going. And it feels like I
  11548. 5:53:39haven't actually lost anything. So that
  11549. 5:53:41has been basically my replacement for
  11550. 5:53:42doing /compact. I've just enjoyed doing
  11551. 5:53:44this better. And sometimes the compact
  11552. 5:53:46takes a long time. This typically
  11553. 5:53:47doesn't take anywhere over a minute.
  11554. 5:53:49There you go. So that is my session
  11555. 5:53:51handoff. I do a /copy and then I just go
  11556. 5:53:53ahead and clear that. Paste it in, hit
  11557. 5:53:55enter, and now I'm basically right back
  11558. 5:53:56where I was. And then this last one is
  11559. 5:53:58for if you're using Claude chat
  11560. 5:54:00specifically. If you're going to be
  11561. 5:54:01pasting big documents in there, you're
  11562. 5:54:03probably better off doing a project
  11563. 5:54:04because like I said, I don't know
  11564. 5:54:05exactly how the caching works in Cloud
  11565. 5:54:07Chat. But we do have some confidence in
  11566. 5:54:10saying that projects, those files are
  11567. 5:54:13cached a little bit differently and
  11568. 5:54:14probably more optimized for storing a
  11569. 5:54:16bunch of documents compared to just
  11570. 5:54:17dropping them into your cloud chat. So
  11571. 5:54:19keep it alive, keep it focused, and
  11572. 5:54:21start fresh when you switch. Now,
  11573. 5:54:23there's a few other things that were a
  11574. 5:54:24little bit confusing to me as far as
  11575. 5:54:26like what breaks the cache. So the first
  11576. 5:54:28one is if you switch the model. So you
  11577. 5:54:31know, if you're in here and you're
  11578. 5:54:32talking to Claude, hello, hello, hello.
  11579. 5:54:34And then you go in here and you do a
  11580. 5:54:36/model and you actually switch the
  11581. 5:54:37model, that's going to reach everything.
  11582. 5:54:39Because if you remember earlier, I said
  11583. 5:54:40it's prefix matching, which I'm not
  11584. 5:54:42going to dive into right now. But if you
  11585. 5:54:44switch the model, then you are switching
  11586. 5:54:46essentially the prefix and it can't
  11587. 5:54:47match on that same cache. So if you
  11588. 5:54:49switch the model, you are reaching
  11589. 5:54:51everything. Now I do want to apologize
  11590. 5:54:53for something here because if you do
  11591. 5:54:54model opus plan, which is something that
  11592. 5:54:57I've shown before in like token hacks
  11593. 5:54:59videos, this basically means it uses
  11594. 5:55:01opus for plan mode and then it switches
  11595. 5:55:03to sonnet for the execution. But if you
  11596. 5:55:06do that, just keep in mind that's
  11597. 5:55:07actually going to break the cache
  11598. 5:55:08because you're switching model halfway
  11599. 5:55:10through. So right here you can see each
  11600. 5:55:12model has its own cache. Switching with
  11601. 5:55:13model means the next request reads the
  11602. 5:55:15entire conversation history with no
  11603. 5:55:17cache hits even though the context is
  11604. 5:55:18identical. The opus plan model setting
  11605. 5:55:20resolves to opus during plan mode and
  11606. 5:55:22sonnet during execution. So each plan
  11607. 5:55:24toggle is a model switch and starts a
  11608. 5:55:26fresh cache. So it's very interesting
  11609. 5:55:28because typically the point of that is
  11610. 5:55:30to save your session limit and I think
  11611. 5:55:31ultimately long run it does but it is
  11612. 5:55:33important to understand that doing that
  11613. 5:55:34does reset the cache. Now what you can
  11614. 5:55:37do is you can edit your cloud. MD and
  11615. 5:55:40you can do that mid session because the
  11616. 5:55:41edit actually doesn't apply until you
  11617. 5:55:43restart that session. So the cache stays
  11618. 5:55:45safe. And then of course the cloud.AI
  11619. 5:55:47projects caching. It's not exactly
  11620. 5:55:48documented but pretty confident that it
  11621. 5:55:51does help to drop docs in projects
  11622. 5:55:52rather than in the chat. But anyways
  11623. 5:55:54this token dashboard like I said is very
  11624. 5:55:56helpful to just be able to understand
  11625. 5:55:59get a little bit more visibility into
  11626. 5:56:00your tokens. This does track your tokens
  11627. 5:56:03on a local device. So, if you switch
  11628. 5:56:05over to a laptop, then your dashboard is
  11629. 5:56:07going to look different than on your
  11630. 5:56:09main like PC or whatever you use, but
  11631. 5:56:11it's very, very simple. It is a GitHub
  11632. 5:56:12repo. You will go to my free school
  11633. 5:56:13community. The link is in the
  11634. 5:56:14description. You'll click on classroom.
  11635. 5:56:16You'll click on all YouTube resources,
  11636. 5:56:17and then you'll be able to find it right
  11637. 5:56:19in there. And once you get that GitHub
  11638. 5:56:20repo, all you have to do is give the
  11639. 5:56:21link to cloud code and say, "Hey, this
  11640. 5:56:23is a token dashboard. Set this up on a
  11641. 5:56:25local host." Boom. You've got it open.
  11642. 5:56:27And it will pull in all of your past
  11643. 5:56:29sessions. So, it's not like you're going
  11644. 5:56:30to start fresh. As soon as you uh, you
  11645. 5:56:33know, link in this repo, it will read
  11646. 5:56:35your past files and it will pull in your
  11647. 5:56:36tokens. And then, of course, I will also
  11648. 5:56:38include that session handoff skill that
  11649. 5:56:40I just mentioned to you guys. So, I know
  11650. 5:56:41this one was super quick. Hopefully,
  11651. 5:56:42this one was helpful, though. Um, it's
  11652. 5:56:44just important. Like I said, when I hear
  11653. 5:56:47about stuff like this, I love to
  11654. 5:56:48understand it to the point where I know
  11655. 5:56:49how to use it and I know what's going on
  11656. 5:56:51under the hood. But truthfully, if I
  11657. 5:56:53looked at some of these other articles,
  11658. 5:56:55like how in-depth they go and how much
  11659. 5:56:57nuance there is, most of the stuff right
  11660. 5:56:59now, I just don't need to know because
  11661. 5:57:01I'm not using the the API in this way
  11662. 5:57:03super heavily. So, the reason I wanted
  11663. 5:57:04to throw that out there is because it's
  11664. 5:57:06important to stay updated and follow
  11665. 5:57:07things, but just understand what do you
  11666. 5:57:09really need to know at its core. Okay.
  11667. 5:57:13So, we've covered a lot in this course
  11668. 5:57:14and I hope that you guys are kind of
  11669. 5:57:16proud of how far you've come since the
  11670. 5:57:18beginning where maybe you didn't even
  11671. 5:57:19know what cloud code was up at the
  11672. 5:57:21front. We've covered a lot of
  11673. 5:57:22fundamentals. We've gone over a lot of
  11674. 5:57:24different kind of skills and different
  11675. 5:57:26things that you need to be aware of. And
  11676. 5:57:27now we're really getting into the part
  11677. 5:57:28where it's time to build your AI
  11678. 5:57:30operating system. You've already kind of
  11679. 5:57:32been building up your context and your
  11680. 5:57:33second brain and your knowledge, but now
  11681. 5:57:35you need to have an operating system
  11682. 5:57:36where you actually are able to leverage
  11683. 5:57:39all of that knowledge and become 10
  11684. 5:57:41times more productive. And all of this
  11685. 5:57:42is built on basically the four C's of
  11686. 5:57:45building an AIOS as I like to call them.
  11687. 5:57:47We have kind of these two, which is way
  11688. 5:57:49more about the second brain element,
  11689. 5:57:51context and connections. And then we
  11690. 5:57:52have the capabilities and cadence. This
  11691. 5:57:54is basically like the skills, the
  11692. 5:57:56automations, the agents, and the
  11693. 5:57:57routines and the deployments that
  11694. 5:57:59actually make this thing work while you
  11695. 5:58:00sleep. So, we've already spent multiple
  11696. 5:58:02hours together in this course. So, I'm
  11697. 5:58:03going to send you guys over to a
  11698. 5:58:04different one. It's still completely
  11699. 5:58:05free, and that is in my free school
  11700. 5:58:07community. So, once you guys join this,
  11701. 5:58:08or if you already have to grab all the
  11702. 5:58:10skills and stuff, you're going to go to
  11703. 5:58:11the classroom, and you're going to do
  11704. 5:58:12the build your own AIOS course. It's a
  11705. 5:58:152-hour course. It's going to walk you
  11706. 5:58:17through the different mindsets around
  11707. 5:58:19the AIOS and how you go from where you
  11708. 5:58:20are right now to where you want to get
  11709. 5:58:22to, which is probably something similar
  11710. 5:58:24to me. But mine is still a work in
  11711. 5:58:26progress. Every day, every week, every
  11712. 5:58:27month, I'm adding so much stuff and I'm
  11713. 5:58:29building it out. And this will never be
  11714. 5:58:30a finished product. It's just going to
  11715. 5:58:31be the way that I always work. And from
  11716. 5:58:34there, if you guys enjoyed this course
  11717. 5:58:36and you want to learn more and you want
  11718. 5:58:37to connect with people who are building
  11719. 5:58:39businesses or, you know, trying to get
  11720. 5:58:40AI roles in companies, then definitely
  11721. 5:58:42consider checking out our plus
  11722. 5:58:44community. But anyways, that is going to
  11723. 5:58:46do it for today. So, if you guys
  11724. 5:58:48enjoyed, if you learned something new,
  11725. 5:58:49please give it a like. It helps me out a
  11726. 5:58:50ton. And I really, really appreciate you
  11727. 5:58:51guys making it to the end of this course
  11728. 5:58:53with me. And I hope to see you guys
  11729. 5:58:54around in my communities or in future
  11730. 5:58:56videos. Thanks so much, guys. Take care.

About this transcript

This page contains the full transcript of Claude Code for Non-Coders (6 Hour Course) by Nate Herk | AI Automation, generated from the public captions YouTube serves with the video. The transcript has 85,931 words across 11,730 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 translate the transcript into 100+ languages.

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, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.