YouTube2Text

Deepseek Just Released The Greatest Claude Code Workflow Ever — Transcript

by AI LABS · 3,130 words · 430 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Deep Seek just released a new method
  2. 0:02called the super agent and it fixes the
  3. 0:04biggest problem with working in multiple
  4. 0:06Claude code sessions. The fix most
  5. 0:07people already use is what Deep Seek
  6. 0:09says causes the problem and they tested
  7. 0:12it to prove it. With their setup, their
  8. 0:13slowest tasks finished almost twice as
  9. 0:16fast as without it. So we set it up in
  10. 0:18Claude code ourselves and it built our
  11. 0:20features while only coming to us when it
  12. 0:22needed something. It even found and
  13. 0:24fixed a bug in our app without us
  14. 0:25telling it to. If this is your first
  15. 0:27time, we're a software company and this
  16. 0:29is our channel AI Labs. And in this
  17. 0:31video, we're going to go over what Deep
  18. 0:33Seek did and explain each step in detail
  19. 0:36so that you can also set it up for
  20. 0:37yourself. When we're building with
  21. 0:39Claude code, we usually work in multiple
  22. 0:41sessions, each one working on a
  23. 0:43different task. And to work with them,
  24. 0:44we have to keep switching between them
  25. 0:46to check what each one is doing.
  26. 0:48According to Deep Seek, that switching
  27. 0:50is exactly the problem. They said that a
  28. 0:52person can only keep track of about
  29. 0:54three to five sessions at once. After
  30. 0:56that, you start forgetting which session
  31. 0:58is doing what and you have to spend time
  32. 1:00figuring out what each one was doing.
  33. 1:02And they came up with super agent to fix
  34. 1:04exactly this. Instead of your usual way
  35. 1:06of working with multiple sessions, it
  36. 1:08lets you work with only one agent that
  37. 1:10you give all your tasks to. That way,
  38. 1:12you never have to remember which session
  39. 1:14is doing what. Now, the way they run it
  40. 1:15is as an agent that's always running in
  41. 1:17the cloud, which they can talk to
  42. 1:19through team chats and GitHub. But since
  43. 1:21we use Claude code for all our work, we
  44. 1:23took the same ideas and set them up in
  45. 1:26it. But before we move forward, it would
  46. 1:28be great if you subscribe to the channel
  47. 1:30and hit the like button. This small
  48. 1:31gesture of support goes a long way for
  49. 1:33us. Now, to build [snorts] such a setup
  50. 1:35where one agent handles all your tasks,
  51. 1:38Deep Seek first had to figure out how to
  52. 1:40split the tasks between agents. If every
  53. 1:42task goes through one single session,
  54. 1:44that session knows about every task. But
  55. 1:46it can only work on one task at a time
  56. 1:48and the details of all the tasks get
  57. 1:50mixed up. And if every task gets its own
  58. 1:53session, the tasks get done faster, but
  59. 1:55you're back to switching between them.
  60. 1:56So they split the work between two kinds
  61. 1:59of agents. The first is the router,
  62. 2:01which is basically the session you talk
  63. 2:02to. It's only job is to talk to you and
  64. 2:05hand out the tasks to other agents. The
  65. 2:07second kind is the workers, which are
  66. 2:09the agents that do the tasks, each one
  67. 2:11in its own context window, so the
  68. 2:13details of different tasks don't get
  69. 2:15mixed up. Once a worker finishes, it
  70. 2:17reports back to the router, and the
  71. 2:19router tells you how the task went. This
  72. 2:21might sound familiar, like a lead agent
  73. 2:23handing tasks to its sub-agents, but it
  74. 2:25works differently. A lead agent takes
  75. 2:27one task and breaks it into smaller
  76. 2:29steps for its sub-agents. And DeepSeek
  77. 2:31says that's a lot of work for the lead
  78. 2:33agent. The router agent in this case
  79. 2:35doesn't break a task into steps. It's
  80. 2:37only job is to keep track of what the
  81. 2:39workers are doing and hand them tasks.
  82. 2:42Now, you might think you don't need a
  83. 2:43setup like this and can just tell your
  84. 2:45regular Claude code session to hand
  85. 2:47tasks off to sub-agents. And that's
  86. 2:49exactly what DeepSeek thought, too. They
  87. 2:51ran a single session that could start
  88. 2:53sub-agents against their router and
  89. 2:54workers setup five times each. The
  90. 2:56router and workers setup came out on
  91. 2:58top. Its slowest task took 15.7 minutes,
  92. 3:01while the single session took 29.5
  93. 3:04minutes, almost twice as long. That's
  94. 3:06because the single session kept doing
  95. 3:07the work itself, so every new message
  96. 3:09interrupted it. Even when told to use
  97. 3:12sub-agents, it often didn't use them and
  98. 3:14kept doing the work on its own. But in
  99. 3:16their setup, the router didn't do any of
  100. 3:18the work, so nothing interrupted the
  101. 3:19workers. DeepSeek said that a single
  102. 3:21session is doing two jobs at once, which
  103. 3:24are talking to you and doing the work.
  104. 3:26That's why they split those two jobs.
  105. 3:28So, each agent can focus on their job
  106. 3:29better and perform much better. To set
  107. 3:32[snorts] this up yourself, you need a
  108. 3:33few things ready before you give it any
  109. 3:35tasks. Since the workers never talk to
  110. 3:37you, every job has to be written down
  111. 3:39clearly before the router hands it out,
  112. 3:41so no agent has to stop and ask you
  113. 3:43anything. That's why the first thing we
  114. 3:45set up was tickets. To do that, you can
  115. 3:47make a skill for writing tickets, which
  116. 3:49is kind of the same as the one we showed
  117. 3:51in our previous video. A ticket is
  118. 3:53basically one feature written down in
  119. 3:55full, so an agent can build it without
  120. 3:57asking you anything. The skill saves
  121. 3:59each ticket as its own folder with the
  122. 4:01feature's name and two files inside. The
  123. 4:03first one is rd.md, which says what the
  124. 4:06feature needs to do with all the
  125. 4:07details. The second one is eval.md,
  126. 4:10which is how the agent checks whether
  127. 4:11the work is done right. So, this file
  128. 4:13basically tells the agent if it's
  129. 4:15building the feature the right way. And
  130. 4:17the skill.md file holds all the steps
  131. 4:19the skill has to follow. It first splits
  132. 4:21your request into features, and then it
  133. 4:23asks you questions until nothing is
  134. 4:25unclear, so there's nothing left for the
  135. 4:27agent to ask you or guess. This is one
  136. 4:29of the most important steps because it
  137. 4:31makes each feature clear before any work
  138. 4:33starts. Once that's done, it puts each
  139. 4:35ticket in the tickets folder inside the
  140. 4:37specs folder with a number in front of
  141. 4:39each name, which is the ID of that
  142. 4:41ticket. To use it, you just run the
  143. 4:43skills command in whichever agent you're
  144. 4:45using and tell it what you want to
  145. 4:47build, and it turns what you asked for
  146. 4:49into tickets. In our case, we had a PRD
  147. 4:52file with all the features we'd planned
  148. 4:54for the app, so we asked it to turn
  149. 4:55those features into tickets, and it
  150. 4:57started working. It first asked us a
  151. 4:59bunch of questions, and then went
  152. 5:01through the app to see how the app
  153. 5:02worked. When it was done, it had made
  154. 5:04all the ticket folders. Each folder had
  155. 5:06an rd.md file, and every ticket started
  156. 5:09out as a draft. Inside, the file listed
  157. 5:12everything the feature had to do, the
  158. 5:14parts of the app the feature would
  159. 5:15change, and the parts it shouldn't
  160. 5:17touch. It also listed every choice that
  161. 5:19was made about the feature. Next to it,
  162. 5:21the eval.md file had how the checks
  163. 5:24would be run, along with the checks the
  164. 5:25feature has to pass to count as working.
  165. 5:28It also covered the unusual cases that
  166. 5:30could go wrong, and it ended with what
  167. 5:32done means for that feature, so the
  168. 5:33agent would know exactly when it was
  169. 5:35finished. In our case, it made 19
  170. 5:37tickets, along with a board.md file in
  171. 5:40the tickets folder. That file is
  172. 5:42basically a board that shows where each
  173. 5:44feature is, whether it's still a draft,
  174. 5:46ready to be built, or done. The board
  175. 5:48also has a mode column, and every ticket
  176. 5:50is set to either solo or team. Team
  177. 5:52means the agents working on that ticket
  178. 5:55will talk to each other because they're
  179. 5:56part of an agent team. Team mode uses
  180. 5:58Claude Code's agent teams feature, which
  181. 6:00is an experimental feature of Claude
  182. 6:02Code, and you can turn it on with the
  183. 6:04agent team setting in the settings.json
  184. 6:07file inside the dot Claude folder. And
  185. 6:09if you're using a different agent, you
  186. 6:10can just ask it to use sub-agents for
  187. 6:12team tickets instead. A solo ticket just
  188. 6:15goes to a sub-agent instead. The only
  189. 6:17difference is that sub-agents can't talk
  190. 6:19to each other the way the agents in a
  191. 6:21team can. So, features that don't need
  192. 6:23that kind of back and forth can run in
  193. 6:24solo mode. And the last column is runs,
  194. 6:26which says whether a ticket can run at
  195. 6:28the same time as the other tickets or
  196. 6:30has to wait for another one to finish.
  197. 6:32The tickets marked alongside are the
  198. 6:34ones that can run on their own. The rest
  199. 6:36have the number of the ticket they're
  200. 6:37waiting on along with the reason. So,
  201. 6:39whichever feature you want to build, you
  202. 6:41need to mark that feature as ready. It
  203. 6:43changes the status from draft to ready.
  204. 6:45And from there, it's ready to be picked
  205. 6:47up and built. But before we build these
  206. 6:49tickets, let's first have a word by our
  207. 6:51sponsor, Mobbin. Ask your coding agent
  208. 6:53to build a pricing page and you already
  209. 6:55know what turns up. You get the same
  210. 6:57gradient and the same three cards that
  211. 6:59every other AI app ships. That isn't the
  212. 7:01model being bad at design. It's the
  213. 7:03model working from memory with no idea
  214. 7:05how real products actually solved it.
  215. 7:07Mobbin fixes that. One command connects
  216. 7:09Mobbin to Claude code, and from then on
  217. 7:11the agent can search real screens from
  218. 7:13shipped apps before it builds anything.
  219. 7:15So, we asked it to design a paywall with
  220. 7:17Mobbin switched off, and we got the same
  221. 7:19generic layout you've seen on a hundred
  222. 7:21other AI apps. Then we connected Mobbin
  223. 7:24and ran the exact same prompt. This time
  224. 7:26it pulled actual paywalls from apps
  225. 7:28people use every day, looked at how they
  226. 7:30handle pricing and trust, and built
  227. 7:32something that could pass for a real
  228. 7:34product. The only thing that changed was
  229. 7:36what it had to look at. Stop shipping
  230. 7:38generic screens and get 20% off pro
  231. 7:41annual for your first year at
  232. 7:42mobbin.com/ailabs.
  233. 7:44The link's in the description. Once a
  234. 7:46ticket is marked ready, something has to
  235. 7:48hand it to an agent. And in Deep Seek's
  236. 7:50setup, that's the router. So, to hand
  237. 7:52out the ready tickets, we made an agent
  238. 7:54named router. This agent watches over
  239. 7:56the whole job, hands tasks to the right
  240. 7:58agents, and keeps them working together.
  241. 8:00But its instructions clearly tell it not
  242. 8:02to write anything because its whole job
  243. 8:04is running the other agents. We hold it
  244. 8:06back with instructions instead of taking
  245. 8:08its tools away. That's because teammates
  246. 8:10in Claude code get the same tools as the
  247. 8:13session that started them. So, if the
  248. 8:15router couldn't write, its team couldn't
  249. 8:17either. It uses the Opus model and we've
  250. 8:19set its effort to high because the
  251. 8:20router is the one starting all the other
  252. 8:22agents. Deep Seek does the opposite and
  253. 8:25runs its router on a lighter model
  254. 8:27because they found the router's job is
  255. 8:28simpler than you'd expect. Its
  256. 8:30instructions also have the details of
  257. 8:32every agent we have and what each one
  258. 8:34does. So, it knows who to hand each task
  259. 8:37to. And since the router checks the work
  260. 8:38itself, you don't have to. When a worker
  261. 8:40says it's done, the router opens its
  262. 8:42results and checks them against the
  263. 8:44ticket's eval.md. So, it only comes to
  264. 8:47you when there's a choice to make. And
  265. 8:48if a worker's result needs fixing, the
  266. 8:50router sends the fix back to that same
  267. 8:53worker, which still remembers everything
  268. 8:54about the ticket. It also follows a set
  269. 8:56list of steps where the first thing it
  270. 8:58does is start the watchdog. The watchdog
  271. 9:00is basically another agent we made that
  272. 9:02runs in the background and it uses
  273. 9:04Sonnet with medium effort. We also set
  274. 9:06it to shrink its memory once it reaches
  275. 9:08150,000 tokens, which is way smaller
  276. 9:11than the full context window these
  277. 9:13models have. We did that because it
  278. 9:14doesn't need that much context window
  279. 9:16and we'll be just wasting our limit if
  280. 9:18we gave it the usual million context
  281. 9:20window. The watchdog's whole job is to
  282. 9:22watch the other agents so they don't get
  283. 9:24stuck in loops or go the wrong way. So,
  284. 9:26if an agent is taking too long on a task
  285. 9:29or an agent isn't working right, the
  286. 9:30watchdog catches it and tells the
  287. 9:32router. The router only hears about a
  288. 9:34problem when a worker tells it. So,
  289. 9:36without the watchdog, an agent that goes
  290. 9:38quiet would never get noticed. Every 10
  291. 9:41minutes, the watchdog runs a small
  292. 9:42script that lists any problems it finds.
  293. 9:45So, even if two agents get stuck waiting
  294. 9:47on each other, the watchdog catches it.
  295. 9:49So, the actual work goes to a worker
  296. 9:51agent, which takes one ticket and works
  297. 9:53on it. We set the worker to Sonnet
  298. 9:55instead of Opus because the ticket
  299. 9:57already spells out exactly what to build
  300. 9:59and Sonnet can handle that. That way,
  301. 10:01every sub-agent it starts doesn't eat
  302. 10:03into your usage and you don't hit your
  303. 10:05usage limit too soon. So, with the
  304. 10:07router, the watchdog, and the worker set
  305. 10:09up, we can start building. To do that,
  306. 10:12you just open Claude code with the
  307. 10:13router agent. You do that by typing
  308. 10:15Claude, then the agent flag followed by
  309. 10:18the router's name. You also need to set
  310. 10:20the permission mode to auto so that the
  311. 10:22router doesn't keep asking you for
  312. 10:24permission. When you run this command,
  313. 10:25the Claude code session opens, but it's
  314. 10:27running as the router agent we made. So,
  315. 10:30you just give it the ticket you want to
  316. 10:31start with by typing the ticket number
  317. 10:33in the prompt. And before anything else,
  318. 10:35it starts the watchdog, which runs in
  319. 10:37the background and watches each of the
  320. 10:39other agents. We started with the first
  321. 10:41ticket. Because it was a team ticket,
  322. 10:43the router started three agents, each
  323. 10:45one working on a different part of it.
  324. 10:46From there, the three agents work on
  325. 10:48their own unless they need you to make a
  326. 10:50choice. That's exactly what happened
  327. 10:52when one of our agents needed a choice
  328. 10:54from us. The router came to us with two
  329. 10:56options, and once we picked one, it
  330. 10:58passed our choice onto the agent so it
  331. 11:00could keep working. While they work, the
  332. 11:02agents write their notes on the ticket
  333. 11:04into that ticket's folder. That includes
  334. 11:06the contract, which is the plan the
  335. 11:08whole team agreed on, along with the
  336. 11:10results and the screenshots as proof.
  337. 11:12But each worker agent writes every
  338. 11:14change in its own separate work tree,
  339. 11:16which is basically a second copy of your
  340. 11:18project on its own branch. So, the code
  341. 11:20from every work tree needs to come
  342. 11:22together in one place, and that's where
  343. 11:24an agent called merger comes in. The
  344. 11:26merger does that by combining work from
  345. 11:28different work trees into the main
  346. 11:30branch of your project. So, when the
  347. 11:31team was done, the router started the
  348. 11:33merger. After that, it started an agent
  349. 11:36called checker, which checks the merged
  350. 11:37features. The checker tests those
  351. 11:39features in the browser to make sure
  352. 11:41they work properly. Once the first
  353. 11:43ticket was merged, the next tickets
  354. 11:44could start. The board said tickets
  355. 11:46number two and six were both waiting on
  356. 11:48the first ticket, and both were marked
  357. 11:50ready. So, the router picked those two
  358. 11:52up and gave each one its own worker
  359. 11:54agent. Then both of them started working
  360. 11:56at the same time. Besides that, we also
  361. 11:58have a few other agents that work on
  362. 12:00their own. The first one is the
  363. 12:01reproducer agent, which repeats the
  364. 12:03steps that caused a bug to see it happen
  365. 12:05again. If the fix is small and it can
  366. 12:08figure it out, it fixes it on its own
  367. 12:10branch. And if it can't, it gives you a
  368. 12:11report. There's also a tester agent that
  369. 12:14does the testing. It runs the browser
  370. 12:15tests with agent browser, which is
  371. 12:17Vercel's tool that lets an agent open
  372. 12:20your app in a real browser and click
  373. 12:22through it. The worker is the one that's
  374. 12:23meant to start it, and the tester tells
  375. 12:25the worker if anything is wrong. And
  376. 12:27while the tickets are being built, if
  377. 12:29any issues shows up that makes part of
  378. 12:31the app break, the reproducer agent
  379. 12:33steps in. First, it uses agent browser
  380. 12:35to find what's causing the issue and
  381. 12:37what could fix it. After that, it tests
  382. 12:39the fix in the browser to make sure it
  383. 12:41works, and then it tells the router.
  384. 12:43This [snorts] router and worker setup
  385. 12:45costs more than a single session. Every
  386. 12:47worker has its own context window, so
  387. 12:49running a few of them uses way more
  388. 12:50tokens than a single session would. Deep
  389. 12:53Seek saw the same thing in their test,
  390. 12:54and the extra tokens got them tasks that
  391. 12:57finish faster with fewer slow ones. In
  392. 12:59our run, the router was open for about
  393. 13:01an hour, and in that hour it built three
  394. 13:03tickets. The team ticket ran for 26
  395. 13:05minutes before we stopped it and merged
  396. 13:07it. Then the two solo tickets ran at the
  397. 13:09same time and took 11 and 17 minutes.
  398. 13:12But the main gain shows up in the
  399. 13:13quality of the app that was built and
  400. 13:15the less handling of multiple sessions.
  401. 13:17We didn't have to keep any context of
  402. 13:19what each agent was doing, and router
  403. 13:21was handling everything properly. All we
  404. 13:23had to do was to set features we want
  405. 13:25built to ready, and then leave it to
  406. 13:27work out the rest. There's one part we
  407. 13:28didn't build, which is that Deep Seek's
  408. 13:30version runs in the cloud, so it keeps
  409. 13:33working when your laptop goes to sleep.
  410. 13:35If you want to reach your setup from
  411. 13:36anywhere, you can use remote sessions,
  412. 13:38which let you control the Cloud Code
  413. 13:40Session on your computer from your phone
  414. 13:42or another browser. Or you can use an
  415. 13:44app like Paseo, which is free and open
  416. 13:46source and lets you check on your agents
  417. 13:48from your phone. Now, if you want to use
  418. 13:50the setup which we have created in this
  419. 13:51video, you can get that in AI Labs Pro,
  420. 13:54which is our community. So, if you found
  421. 13:56value in what we do and want to support
  422. 13:59the channel, this is the best way to do
  423. 14:01it. The link's in the description. That
  424. 14:03brings us to the end of this video. If
  425. 14:05you'd like to support the channel and
  426. 14:06help us keep making videos like this,
  427. 14:08you can do so by using the Super Thanks
  428. 14:10button below. As always, thank you for
  429. 14:12watching, and I'll see you in the next
  430. 14:14one.

About this transcript

This page contains the full transcript of Deepseek Just Released The Greatest Claude Code Workflow Ever by AI LABS, generated from the public captions YouTube serves with the video. The transcript has 3,130 words across 430 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

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

Free YouTube transcript tool

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