YouTube2Text

Anthropic Just Released A New System For Using Claude Code — Transcript

by AI LABS · 3,516 words · 485 segments · language en · Watch on YouTube

Full transcript

  1. 0:00There's a huge problem with using AI
  2. 0:01agents. Whenever you give them a task,
  3. 0:03they write a lot of code and then call
  4. 0:05the task done. But when you actually use
  5. 0:07what they built, you find they've missed
  6. 0:08a lot of the things you asked for.
  7. 0:10That's why the most important thing you
  8. 0:12need to do is check whether the agents
  9. 0:14actually did what they say they did.
  10. 0:16There are a lot of ways to do that and
  11. 0:17Anthropic Claude code team has shared
  12. 0:19their own. With their setup, they put
  13. 0:21out more than twice as many changes as
  14. 0:23before and the share of changes they had
  15. 0:25to undo dropped by over 40%. They shared
  16. 0:28the ideas their system is built on and
  17. 0:30we turned that system into a workflow
  18. 0:32you can follow to get the same quality
  19. 0:34of output. If this is your first time,
  20. 0:36we're a software company and this is our
  21. 0:38channel AI Labs. And in this video,
  22. 0:40we're going to go through each step of
  23. 0:42their process and why it matters and
  24. 0:44show you the prompts we used so you can
  25. 0:45build it for yourself. As the models get
  26. 0:48better, reviewing what your agent builds
  27. 0:50matters even more than it ever did
  28. 0:52before. They've gotten so good that you
  29. 0:53can just give them a whole list of
  30. 0:55features and let them work on their own
  31. 0:57for hours. When you come back, every
  32. 0:59feature is built without you watching
  33. 1:00any of it. The Claude Code team sees
  34. 1:02that as a problem because more features
  35. 1:04being built faster also means there's
  36. 1:07way more to review. Across Anthropic,
  37. 1:09the number of changes to review every
  38. 1:11day went from about 2500 to over 30,000
  39. 1:15in just 4 months. But even though the
  40. 1:17agents are good enough, you still need
  41. 1:19to check that things are working right.
  42. 1:21And with the amount of code they're
  43. 1:22writing each day, the chance of a
  44. 1:24mistake slipping through gets higher,
  45. 1:26too. So, with this much to review in so
  46. 1:28little time, you need a way to make
  47. 1:29reviewing easier. Review is really
  48. 1:31important because if a mistake gets to
  49. 1:33your app's real users without a check,
  50. 1:35it becomes a much bigger problem. The
  51. 1:37team says that instead of saving time,
  52. 1:39you end up spending twice as much time
  53. 1:41as you would on the review itself, first
  54. 1:43checking the changes and then fixing the
  55. 1:45bugs that slip through. If you rush the
  56. 1:46checks, you just push that time to later
  57. 1:48when the fix costs more. So review is a
  58. 1:51step you can't skip and the real
  59. 1:53question is who does it? To answer that
  60. 1:55the team first changed the question they
  61. 1:57ask when they review. Instead of asking
  62. 1:59whether someone read the code they
  63. 2:01started asking what could go wrong with
  64. 2:02a change and how to catch it. That puts
  65. 2:04the focus on how the thing you're
  66. 2:06building should work. The Claude Code
  67. 2:08team also changed when the checks run.
  68. 2:10Now they happen while Claude is building
  69. 2:12instead of waiting until the end. You
  70. 2:14can already see this when you build with
  71. 2:15cloud code because it goes through some
  72. 2:17steps to check that your app is working
  73. 2:19before it tells you the task is done. So
  74. 2:21by the time you look at a change, it's
  75. 2:23already been checked and fixed at least
  76. 2:25once. With that in place, you can spend
  77. 2:27your time on the parts that are most
  78. 2:29likely to break, and the rest of the
  79. 2:30team's process is about how to do
  80. 2:32exactly that. But before we move
  81. 2:34forward, it would be great if you
  82. 2:35subscribe to the channel and hit the
  83. 2:37hype button. This small gesture of
  84. 2:39support goes a long way for us. Now, the
  85. 2:41checks Claude runs while it's building
  86. 2:43are much smaller. You need deeper checks
  87. 2:45to see that the app doesn't only work
  88. 2:46the way you'd expect, but it also holds
  89. 2:48up when people use it in different ways.
  90. 2:50That's why deeper checks are the first
  91. 2:52step in the Claude code team's own
  92. 2:54process. Before a change goes anywhere,
  93. 2:56they ask Claude to run something that
  94. 2:58proves it works and to show them the
  95. 3:00result instead of just saying it's done.
  96. 3:02That can be the app's tests or a
  97. 3:04screenshot compared with the design.
  98. 3:05Boris Churnney, who is the creator of
  99. 3:07Claude Code, says that the best way to
  100. 3:10get Claude to work well is to give it
  101. 3:12away to prove it did the work right. And
  102. 3:14the team's advice is to give your agent
  103. 3:16a list of checks it can run. Each of
  104. 3:18those checks is called an eval, and it
  105. 3:20is a fixed test that tells you whether
  106. 3:22the work is done. It has to be strict
  107. 3:24enough that bad work fails it. We've
  108. 3:26shown many ways to give Claude evals in
  109. 3:28our earlier videos. Claude Codes team
  110. 3:30mentions their own way to set up these
  111. 3:32checks, and we turned that into a skill.
  112. 3:34In the demo app we were testing on, we
  113. 3:36had a specs folder with all the features
  114. 3:38in it. Each feature had its own folder
  115. 3:40named after the feature itself. And
  116. 3:42inside each folder, we had an RD.md file
  117. 3:45that listed the requirements for that
  118. 3:47feature. You can ask Claude to create a
  119. 3:49skill that turns each feature into an
  120. 3:51eval file. This is the file that has the
  121. 3:54actual method the agent will use to
  122. 3:56check its work. If the feature has a
  123. 3:58design, it should first make it as a
  124. 4:00simple web page called a mockup instead
  125. 4:02of building straight on the app. Then it
  126. 4:04saves that page as the design the app
  127. 4:06gets checked against. Claude can keep
  128. 4:08working on the real app until it matches
  129. 4:10that page and we can quickly see how the
  130. 4:12feature will look without wasting too
  131. 4:14many tokens. You should also tell it
  132. 4:16that once it has written the evals, it
  133. 4:18needs to get them reviewed by you and
  134. 4:20without that review, it shouldn't build
  135. 4:22anything. Then ask it to create a hook
  136. 4:24that makes sure agent doesn't mark the
  137. 4:26task as done until the evals have
  138. 4:28passed. Claude then creates the skill
  139. 4:30for you. It writes the skill in
  140. 4:31your.claude folder and creates a
  141. 4:33template next to it that gives all the
  142. 4:35eval files the same structure. So for
  143. 4:37each new feature, it starts by running
  144. 4:39the skill. It opens the folder for that
  145. 4:42feature and writes the requirements
  146. 4:43document along with the eval file. Then
  147. 4:46it uses the hook to check whether the
  148. 4:48requirements are set up properly. It
  149. 4:49goes back and forth several times
  150. 4:51checking whether the evals are written
  151. 4:53properly and it creates a mockup that
  152. 4:55you can look at. After it has finished
  153. 4:57everything and checked the evals, it
  154. 4:58changes the features status from draft
  155. 5:00to in review. Then it tells you every
  156. 5:02decision it made on its own and opens
  157. 5:04the files for you to check. You can
  158. 5:06check how the design looks on there. It
  159. 5:08also shows every other screen the app
  160. 5:10can be in along with the same design on
  161. 5:12mobile. So you can check the smaller
  162. 5:14screen layout as well. You need to
  163. 5:15review both the eval and the mockups. If
  164. 5:19you have any changes at this point, you
  165. 5:21can make them by asking Claude. If you
  166. 5:23don't, you can just approve them and it
  167. 5:24will mark the feature as reviewed and
  168. 5:26ready for building. Now, this skill
  169. 5:28along with all others that we'll be
  170. 5:29showing here are all available in AIBS
  171. 5:32Pro, which is our community. So, if you
  172. 5:34found value in what we do and want to
  173. 5:37support the channel, this is the best
  174. 5:38way to do it. The links in the
  175. 5:40description. Even after Claude builds
  176. 5:42the feature based on the evals, you
  177. 5:44still need to review it. And the agent
  178. 5:46that reviews it shouldn't be the same
  179. 5:47one that built it because that agent
  180. 5:49made every decision in the change and
  181. 5:51ends up agreeing with itself. So the
  182. 5:53Claude code team's second check is a
  183. 5:55separate reviewer agent. The reviewer
  184. 5:57checks every change before a person
  185. 5:59looks at it. Since the team started
  186. 6:01doing this, far more of their changes
  187. 6:03get a review that catches something
  188. 6:04real. That review agent is only
  189. 6:06available on the team and enterprise
  190. 6:08plans for now, but a lighter version
  191. 6:10already comes with clawed code as the
  192. 6:12code review command. When you run it, a
  193. 6:14separate agent reads everything that
  194. 6:16changed and reports back the mistakes
  195. 6:18that would break your app. You can also
  196. 6:20choose how deep it checks with an effort
  197. 6:22level. At low effort, it only reports
  198. 6:24what it's most sure about. And the
  199. 6:25higher levels check more of your app. to
  200. 6:27tell that command what matters in your
  201. 6:29app. Anthropic's article on this says to
  202. 6:31write your rules in a file called
  203. 6:33review.md. By default, this file isn't
  204. 6:36read unless you ask claude to do so. So,
  205. 6:38if you want the code review command on
  206. 6:40your computer to follow your rules, they
  207. 6:42need to be part of your claude.md. But
  208. 6:44instead of adding them directly to that
  209. 6:46file, it's better to put them in another
  210. 6:48file. Then you need to link that file
  211. 6:50inside claw.md. This way, whenever you
  212. 6:53open a new session, the review.md is
  213. 6:55also loaded along with the claw.md file.
  214. 6:58This file should have what counts as a
  215. 7:00real failure in the app and how serious
  216. 7:02each problem is. It should also say what
  217. 7:04to ignore and how to report the review
  218. 7:06along with all the ways you want the app
  219. 7:07tested. You can ask Claude to create
  220. 7:09this file for you, and you'll end up
  221. 7:11with a review.md file in your project's
  222. 7:13main folder. Every review you run on
  223. 7:15your app starts from it, and since it's
  224. 7:17linked from your claude.md, the code
  225. 7:19review command reads it, too. With the
  226. 7:21review rules written down, the next step
  227. 7:23is a loop that builds the feature and
  228. 7:25reviews it. You can ask Claude to create
  229. 7:27a review loop skill that builds a
  230. 7:29feature and then checks it with its
  231. 7:31eval. It uses sub aents with fresh
  232. 7:34context windows. This way, they don't
  233. 7:36have the same context as the main agent.
  234. 7:38So, they don't just agree with what the
  235. 7:39main agent did. It should keep looping
  236. 7:41until all the evals have passed. From
  237. 7:43that prompt, Claude makes the skill
  238. 7:45along with three agents and the main
  239. 7:47agent runs them. The main agent acts as
  240. 7:49the orchestrator which runs the loop and
  241. 7:51starts each agent in its own context
  242. 7:53window. The first agent is the builder
  243. 7:56which builds the feature from the
  244. 7:57requirements document that the right
  245. 7:59eval skill wrote. After the builder is
  246. 8:01done, the verifier starts and checks the
  247. 8:04app against the evals from that same
  248. 8:06skill. It checks whether everything the
  249. 8:08eval cover has been built and marks each
  250. 8:10eval as passed or failed. Then the
  251. 8:12reviewer goes through the app to find
  252. 8:14anything the eval missed and it uses the
  253. 8:16rules in your review.md. To use the
  254. 8:19skill, you run the review loop command
  255. 8:21and then name the feature you want to
  256. 8:22build. It starts by writing a state.md
  257. 8:25file that keeps track of the loop. This
  258. 8:27file shows which round the loop is on
  259. 8:29and what's still failing. After that,
  260. 8:31the first round starts and the builder
  261. 8:33builds the feature. While the builder
  262. 8:34works, the hook from the right eval
  263. 8:36skill stops the main agent from calling
  264. 8:38the feature done too early. Then the
  265. 8:40verifier and the reviewer start and the
  266. 8:42loop keeps fixing issues in rounds. When
  267. 8:45it hits a decision it can't make on its
  268. 8:47own, it shows you a progress report and
  269. 8:49asks you. The loop only stops when all
  270. 8:51the eval pass and the review doesn't
  271. 8:53find anything new. But before we move
  272. 8:54on, let's have a word by our sponsor,
  273. 8:56Unstoppable Code. You probably switch
  274. 8:59between different coding agents,
  275. 9:01terminals, and desktop apps all the
  276. 9:03time, feeling frustrated by all the
  277. 9:05juggling and context switching.
  278. 9:06Unstoppable is an agentic IDE that lets
  279. 9:09you orchestrate a team of coding agents
  280. 9:11by running cloud code, codecs, and
  281. 9:13cursor all in the same desktop app. One
  282. 9:16thing that sets Unstoppable apart is
  283. 9:18their multi- aent workflows, which chain
  284. 9:20together prompts and scripts to automate
  285. 9:22your entire dev life cycle. We built a
  286. 9:24code reviewer that iterates with both
  287. 9:26Claude and Codeex until the PR gets a
  288. 9:29passing grade and another scheduled task
  289. 9:31for fixing bug reports automatically.
  290. 9:33The terminal, the browser, and the diffs
  291. 9:35all sit in the same window, so you can
  292. 9:37see everything at a glance and switch
  293. 9:39between agents seamlessly. The best part
  294. 9:42is that with their free plan, you can
  295. 9:43run codecs and open models without
  296. 9:45paying a thing or plug in the
  297. 9:47subscriptions you already have. Download
  298. 9:48the desktop app and start building at
  299. 9:51unstoppable.ai.
  300. 9:52Full link in the description. But fixing
  301. 9:55each issue doesn't stop it from coming
  302. 9:57back because Claude doesn't remember
  303. 9:58mistakes from earlier sessions. So, it
  304. 10:00makes the same mistake on the next
  305. 10:02feature and you have to fix it all over
  306. 10:03again. That's why when the Claude code
  307. 10:05team's reviewer keeps finding the same
  308. 10:07mistake, they change the instructions
  309. 10:09Claude reads and Claude stops making it.
  310. 10:11We do the same with the review.md file
  311. 10:14from earlier. At the bottom of it,
  312. 10:15there's a section for rules learned over
  313. 10:18time. When a review misses a bug that
  314. 10:20shows up later, a new rule goes into
  315. 10:22that section. It also adds a rule when
  316. 10:24the review keeps flagging something that
  317. 10:26turns out not to be a real problem. That
  318. 10:28way, the next review doesn't make the
  319. 10:30same mistake again. The review loop
  320. 10:32keeps track of this for you. When the
  321. 10:33same problem comes up in a later round,
  322. 10:35the loop matches it to the earlier one.
  323. 10:37At the end, it suggests a oneline rule
  324. 10:39for that part and only adds it if you
  325. 10:41approve. But a careful review on every
  326. 10:44change costs time and usage. So, the
  327. 10:46Clawed Code team's rule is that a change
  328. 10:48needs to get checked harder when a
  329. 10:50mistake in that feature could do more
  330. 10:52damage. And they don't choose on their
  331. 10:53own if a feature needs a full review or
  332. 10:55a quick one. They have an agent that
  333. 10:57sorts every change for them, which they
  334. 10:59call a classifier. You can sort your own
  335. 11:01changes as well, and all it takes is one
  336. 11:03question, which is, "What happens to a
  337. 11:05customer if a feature breaks?" A mistake
  338. 11:06that only makes something look wrong is
  339. 11:08low risk. If it stops a feature from
  340. 11:10working, but nobody loses anything.
  341. 11:12That's medium because you can still fix
  342. 11:14it later. But some mistakes can make a
  343. 11:16customer lose money or get locked out,
  344. 11:18and some can show them another person's
  345. 11:20data. You can't take those back once
  346. 11:22they happen. So, those changes are high
  347. 11:24risk. You can also turn that question
  348. 11:26into a skill that rates each feature on
  349. 11:28this scale for you. Before you build a
  350. 11:30feature, you need to run the skill to
  351. 11:32check whether it's low, medium, or high.
  352. 11:34Then when you use the right eval skill,
  353. 11:36you pass it that rating too. So a
  354. 11:38high-risk feature gets stricter evals
  355. 11:40than a low-risk one. But even on the
  356. 11:42changes that do need the full review,
  357. 11:44there's one more problem. The builder
  358. 11:45and the reviewer agents don't know when
  359. 11:47to stop, so they can keep going back and
  360. 11:49forth trying to find and fix issues. The
  361. 11:51Claude Code team once had a change that
  362. 11:53went back and forth more than 50 times
  363. 11:55like this. The agents kept going until
  364. 11:57someone manually stopped the loop. When
  365. 11:59the team looked at what the reviewer
  366. 12:01kept reporting, about 59% of it had been
  367. 12:04there since the very first round. So,
  368. 12:06the reviewer was mostly finding the old
  369. 12:08problems again and again. And on your
  370. 12:10plan, every one of those rounds uses up
  371. 12:12your limits. People's main complaint
  372. 12:14about Anthropic's article was that it
  373. 12:16only works if you have unlimited tokens.
  374. 12:18So, the team added three rules. And the
  375. 12:20first one is that after three rounds,
  376. 12:21the reviewer stops listing more problems
  377. 12:24and tells the builder to rethink how
  378. 12:26it's building the feature. If the
  379. 12:27feature is still failing after three
  380. 12:29rounds of fixes, more work in the same
  381. 12:31way wouldn't get it there. The second is
  382. 12:33that after the first round, the reviewer
  383. 12:35only checks what the last fixes changed
  384. 12:37and doesn't report anything it has
  385. 12:39already reported. That stops it from
  386. 12:41checking the whole feature again and
  387. 12:43finding the old problems one at a time.
  388. 12:45And the third is that when the reviewer
  389. 12:46finds a problem, it says what kind of
  390. 12:48problem it is. That way, the builder
  391. 12:50fixes that kind of problem everywhere it
  392. 12:52shows up and not only in the one spot
  393. 12:54the reviewer found. With those three
  394. 12:56rules in place, more of their changes
  395. 12:58past review on the very first try. Our
  396. 13:00review loop works the same way, but each
  397. 13:02of our rounds does more work. It builds
  398. 13:04the feature and checks every eval in the
  399. 13:07browser and then it reviews the code.
  400. 13:08That's why we set it to stop after five
  401. 13:10rounds instead of three. The loop can
  402. 13:12also stop before it gets to five when
  403. 13:14the same problem is still there after
  404. 13:16two rounds of fixes. But even when the
  405. 13:19loop finishes and every eval passes,
  406. 13:21some mistakes will still get through. So
  407. 13:23you need two more things which are a way
  408. 13:25to find those mistakes and a way to undo
  409. 13:27them fast. The Claude Code team can undo
  410. 13:30almost anything they release in minutes
  411. 13:32and that's what lets them read less. To
  412. 13:34find the mistakes, they use the product
  413. 13:35themselves every day, so they often spot
  414. 13:38a problem before their customers do. You
  415. 13:40can do the same by using every new
  416. 13:42feature yourself the way a customer
  417. 13:44would. But you already know how the
  418. 13:45feature works, so you'll miss some
  419. 13:47things. To catch those, you can send a
  420. 13:49fresh agent that never saw the app being
  421. 13:51built to use the live app like a
  422. 13:53firsttime customer. To set up that fresh
  423. 13:55agent, you can ask Claude to create a
  424. 13:57skill that shows you the app from a new
  425. 13:59user's point of view. It should use sub
  426. 14:01agents that are blocked from reading the
  427. 14:03app's code, so they don't know what the
  428. 14:04app is about. They should go through the
  429. 14:06app the way a firsttime user would and
  430. 14:08find every place where someone might get
  431. 14:10stuck. From this prompt, Claude creates
  432. 14:12a firsttime user skill and the agent
  433. 14:14that the skill sends to use the app. It
  434. 14:16also gives the test a temporary
  435. 14:18database, so it doesn't touch your real
  436. 14:20data, and it creates a hook that stops
  437. 14:22the agent from reading the app's code.
  438. 14:24The agent would normally get around that
  439. 14:26block with terminal commands. So, the
  440. 14:28hook stops it from reading the code that
  441. 14:30way, too. To run the test, you just use
  442. 14:32the skills command and tell it which
  443. 14:34feature you want it to check. Based on
  444. 14:36your prompt, it opens the app and starts
  445. 14:38an agent that knows nothing about how
  446. 14:40the app was built and then it waits for
  447. 14:41that agent to finish. When the agent is
  448. 14:43done, the skill reports everything the
  449. 14:45agent found and suggests fixes you can
  450. 14:47apply to make your app better. Finding
  451. 14:49the mistakes is one half and the other
  452. 14:51half is undoing the changes that caused
  453. 14:53them. For that, you can use git, which
  454. 14:55basically saves every version of your
  455. 14:57app. With git, each feature gets its own
  456. 14:59copy of the project, which is called a
  457. 15:01branch. If any feature in your app
  458. 15:03causes issues later on, you can just
  459. 15:05undo it from git. To find and undo the
  460. 15:07change that broke something, you can ask
  461. 15:09Claude to create a skill called fix a
  462. 15:11bug. Basically, when a feature isn't
  463. 15:13working the way you need it to, you give
  464. 15:15this skill the problem and it finds the
  465. 15:17cause and how to fix it. It tries to
  466. 15:19make the bug happen again by going
  467. 15:21through the same steps and then checks
  468. 15:23whether its guess about the cause was
  469. 15:24right. After that, it reports the
  470. 15:26problem and fixes it. For this skill to
  471. 15:28work, you also need to tell Claude in
  472. 15:30your claude.md to use git and make its
  473. 15:33own branch for each feature. It should
  474. 15:35also save every version that works. That
  475. 15:37way, when a feature isn't working as
  476. 15:39expected, Claude can go back through the
  477. 15:41saved versions to find the change that
  478. 15:43caused it and roll back to an earlier
  479. 15:45version. That brings us to the end of
  480. 15:46this video. If you'd like to support the
  481. 15:48channel and help us keep making videos
  482. 15:50like this, you can do so by using the
  483. 15:52super thanks button below. As always,
  484. 15:54thank you for watching and I'll see you
  485. 15:56in the next one.

About this transcript

This page contains the full transcript of Anthropic Just Released A New System For Using Claude Code by AI LABS, generated from the public captions YouTube serves with the video. The transcript has 3,516 words across 485 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.