Deepseek Just Released The Greatest Claude Code Workflow Ever — Transcript
Full transcript
- 0:00Deep Seek just released a new method
- 0:02called the super agent and it fixes the
- 0:04biggest problem with working in multiple
- 0:06Claude code sessions. The fix most
- 0:07people already use is what Deep Seek
- 0:09says causes the problem and they tested
- 0:12it to prove it. With their setup, their
- 0:13slowest tasks finished almost twice as
- 0:16fast as without it. So we set it up in
- 0:18Claude code ourselves and it built our
- 0:20features while only coming to us when it
- 0:22needed something. It even found and
- 0:24fixed a bug in our app without us
- 0:25telling it to. If this is your first
- 0:27time, we're a software company and this
- 0:29is our channel AI Labs. And in this
- 0:31video, we're going to go over what Deep
- 0:33Seek did and explain each step in detail
- 0:36so that you can also set it up for
- 0:37yourself. When we're building with
- 0:39Claude code, we usually work in multiple
- 0:41sessions, each one working on a
- 0:43different task. And to work with them,
- 0:44we have to keep switching between them
- 0:46to check what each one is doing.
- 0:48According to Deep Seek, that switching
- 0:50is exactly the problem. They said that a
- 0:52person can only keep track of about
- 0:54three to five sessions at once. After
- 0:56that, you start forgetting which session
- 0:58is doing what and you have to spend time
- 1:00figuring out what each one was doing.
- 1:02And they came up with super agent to fix
- 1:04exactly this. Instead of your usual way
- 1:06of working with multiple sessions, it
- 1:08lets you work with only one agent that
- 1:10you give all your tasks to. That way,
- 1:12you never have to remember which session
- 1:14is doing what. Now, the way they run it
- 1:15is as an agent that's always running in
- 1:17the cloud, which they can talk to
- 1:19through team chats and GitHub. But since
- 1:21we use Claude code for all our work, we
- 1:23took the same ideas and set them up in
- 1:26it. But before we move forward, it would
- 1:28be great if you subscribe to the channel
- 1:30and hit the like button. This small
- 1:31gesture of support goes a long way for
- 1:33us. Now, to build [snorts] such a setup
- 1:35where one agent handles all your tasks,
- 1:38Deep Seek first had to figure out how to
- 1:40split the tasks between agents. If every
- 1:42task goes through one single session,
- 1:44that session knows about every task. But
- 1:46it can only work on one task at a time
- 1:48and the details of all the tasks get
- 1:50mixed up. And if every task gets its own
- 1:53session, the tasks get done faster, but
- 1:55you're back to switching between them.
- 1:56So they split the work between two kinds
- 1:59of agents. The first is the router,
- 2:01which is basically the session you talk
- 2:02to. It's only job is to talk to you and
- 2:05hand out the tasks to other agents. The
- 2:07second kind is the workers, which are
- 2:09the agents that do the tasks, each one
- 2:11in its own context window, so the
- 2:13details of different tasks don't get
- 2:15mixed up. Once a worker finishes, it
- 2:17reports back to the router, and the
- 2:19router tells you how the task went. This
- 2:21might sound familiar, like a lead agent
- 2:23handing tasks to its sub-agents, but it
- 2:25works differently. A lead agent takes
- 2:27one task and breaks it into smaller
- 2:29steps for its sub-agents. And DeepSeek
- 2:31says that's a lot of work for the lead
- 2:33agent. The router agent in this case
- 2:35doesn't break a task into steps. It's
- 2:37only job is to keep track of what the
- 2:39workers are doing and hand them tasks.
- 2:42Now, you might think you don't need a
- 2:43setup like this and can just tell your
- 2:45regular Claude code session to hand
- 2:47tasks off to sub-agents. And that's
- 2:49exactly what DeepSeek thought, too. They
- 2:51ran a single session that could start
- 2:53sub-agents against their router and
- 2:54workers setup five times each. The
- 2:56router and workers setup came out on
- 2:58top. Its slowest task took 15.7 minutes,
- 3:01while the single session took 29.5
- 3:04minutes, almost twice as long. That's
- 3:06because the single session kept doing
- 3:07the work itself, so every new message
- 3:09interrupted it. Even when told to use
- 3:12sub-agents, it often didn't use them and
- 3:14kept doing the work on its own. But in
- 3:16their setup, the router didn't do any of
- 3:18the work, so nothing interrupted the
- 3:19workers. DeepSeek said that a single
- 3:21session is doing two jobs at once, which
- 3:24are talking to you and doing the work.
- 3:26That's why they split those two jobs.
- 3:28So, each agent can focus on their job
- 3:29better and perform much better. To set
- 3:32[snorts] this up yourself, you need a
- 3:33few things ready before you give it any
- 3:35tasks. Since the workers never talk to
- 3:37you, every job has to be written down
- 3:39clearly before the router hands it out,
- 3:41so no agent has to stop and ask you
- 3:43anything. That's why the first thing we
- 3:45set up was tickets. To do that, you can
- 3:47make a skill for writing tickets, which
- 3:49is kind of the same as the one we showed
- 3:51in our previous video. A ticket is
- 3:53basically one feature written down in
- 3:55full, so an agent can build it without
- 3:57asking you anything. The skill saves
- 3:59each ticket as its own folder with the
- 4:01feature's name and two files inside. The
- 4:03first one is rd.md, which says what the
- 4:06feature needs to do with all the
- 4:07details. The second one is eval.md,
- 4:10which is how the agent checks whether
- 4:11the work is done right. So, this file
- 4:13basically tells the agent if it's
- 4:15building the feature the right way. And
- 4:17the skill.md file holds all the steps
- 4:19the skill has to follow. It first splits
- 4:21your request into features, and then it
- 4:23asks you questions until nothing is
- 4:25unclear, so there's nothing left for the
- 4:27agent to ask you or guess. This is one
- 4:29of the most important steps because it
- 4:31makes each feature clear before any work
- 4:33starts. Once that's done, it puts each
- 4:35ticket in the tickets folder inside the
- 4:37specs folder with a number in front of
- 4:39each name, which is the ID of that
- 4:41ticket. To use it, you just run the
- 4:43skills command in whichever agent you're
- 4:45using and tell it what you want to
- 4:47build, and it turns what you asked for
- 4:49into tickets. In our case, we had a PRD
- 4:52file with all the features we'd planned
- 4:54for the app, so we asked it to turn
- 4:55those features into tickets, and it
- 4:57started working. It first asked us a
- 4:59bunch of questions, and then went
- 5:01through the app to see how the app
- 5:02worked. When it was done, it had made
- 5:04all the ticket folders. Each folder had
- 5:06an rd.md file, and every ticket started
- 5:09out as a draft. Inside, the file listed
- 5:12everything the feature had to do, the
- 5:14parts of the app the feature would
- 5:15change, and the parts it shouldn't
- 5:17touch. It also listed every choice that
- 5:19was made about the feature. Next to it,
- 5:21the eval.md file had how the checks
- 5:24would be run, along with the checks the
- 5:25feature has to pass to count as working.
- 5:28It also covered the unusual cases that
- 5:30could go wrong, and it ended with what
- 5:32done means for that feature, so the
- 5:33agent would know exactly when it was
- 5:35finished. In our case, it made 19
- 5:37tickets, along with a board.md file in
- 5:40the tickets folder. That file is
- 5:42basically a board that shows where each
- 5:44feature is, whether it's still a draft,
- 5:46ready to be built, or done. The board
- 5:48also has a mode column, and every ticket
- 5:50is set to either solo or team. Team
- 5:52means the agents working on that ticket
- 5:55will talk to each other because they're
- 5:56part of an agent team. Team mode uses
- 5:58Claude Code's agent teams feature, which
- 6:00is an experimental feature of Claude
- 6:02Code, and you can turn it on with the
- 6:04agent team setting in the settings.json
- 6:07file inside the dot Claude folder. And
- 6:09if you're using a different agent, you
- 6:10can just ask it to use sub-agents for
- 6:12team tickets instead. A solo ticket just
- 6:15goes to a sub-agent instead. The only
- 6:17difference is that sub-agents can't talk
- 6:19to each other the way the agents in a
- 6:21team can. So, features that don't need
- 6:23that kind of back and forth can run in
- 6:24solo mode. And the last column is runs,
- 6:26which says whether a ticket can run at
- 6:28the same time as the other tickets or
- 6:30has to wait for another one to finish.
- 6:32The tickets marked alongside are the
- 6:34ones that can run on their own. The rest
- 6:36have the number of the ticket they're
- 6:37waiting on along with the reason. So,
- 6:39whichever feature you want to build, you
- 6:41need to mark that feature as ready. It
- 6:43changes the status from draft to ready.
- 6:45And from there, it's ready to be picked
- 6:47up and built. But before we build these
- 6:49tickets, let's first have a word by our
- 6:51sponsor, Mobbin. Ask your coding agent
- 6:53to build a pricing page and you already
- 6:55know what turns up. You get the same
- 6:57gradient and the same three cards that
- 6:59every other AI app ships. That isn't the
- 7:01model being bad at design. It's the
- 7:03model working from memory with no idea
- 7:05how real products actually solved it.
- 7:07Mobbin fixes that. One command connects
- 7:09Mobbin to Claude code, and from then on
- 7:11the agent can search real screens from
- 7:13shipped apps before it builds anything.
- 7:15So, we asked it to design a paywall with
- 7:17Mobbin switched off, and we got the same
- 7:19generic layout you've seen on a hundred
- 7:21other AI apps. Then we connected Mobbin
- 7:24and ran the exact same prompt. This time
- 7:26it pulled actual paywalls from apps
- 7:28people use every day, looked at how they
- 7:30handle pricing and trust, and built
- 7:32something that could pass for a real
- 7:34product. The only thing that changed was
- 7:36what it had to look at. Stop shipping
- 7:38generic screens and get 20% off pro
- 7:41annual for your first year at
- 7:42mobbin.com/ailabs.
- 7:44The link's in the description. Once a
- 7:46ticket is marked ready, something has to
- 7:48hand it to an agent. And in Deep Seek's
- 7:50setup, that's the router. So, to hand
- 7:52out the ready tickets, we made an agent
- 7:54named router. This agent watches over
- 7:56the whole job, hands tasks to the right
- 7:58agents, and keeps them working together.
- 8:00But its instructions clearly tell it not
- 8:02to write anything because its whole job
- 8:04is running the other agents. We hold it
- 8:06back with instructions instead of taking
- 8:08its tools away. That's because teammates
- 8:10in Claude code get the same tools as the
- 8:13session that started them. So, if the
- 8:15router couldn't write, its team couldn't
- 8:17either. It uses the Opus model and we've
- 8:19set its effort to high because the
- 8:20router is the one starting all the other
- 8:22agents. Deep Seek does the opposite and
- 8:25runs its router on a lighter model
- 8:27because they found the router's job is
- 8:28simpler than you'd expect. Its
- 8:30instructions also have the details of
- 8:32every agent we have and what each one
- 8:34does. So, it knows who to hand each task
- 8:37to. And since the router checks the work
- 8:38itself, you don't have to. When a worker
- 8:40says it's done, the router opens its
- 8:42results and checks them against the
- 8:44ticket's eval.md. So, it only comes to
- 8:47you when there's a choice to make. And
- 8:48if a worker's result needs fixing, the
- 8:50router sends the fix back to that same
- 8:53worker, which still remembers everything
- 8:54about the ticket. It also follows a set
- 8:56list of steps where the first thing it
- 8:58does is start the watchdog. The watchdog
- 9:00is basically another agent we made that
- 9:02runs in the background and it uses
- 9:04Sonnet with medium effort. We also set
- 9:06it to shrink its memory once it reaches
- 9:08150,000 tokens, which is way smaller
- 9:11than the full context window these
- 9:13models have. We did that because it
- 9:14doesn't need that much context window
- 9:16and we'll be just wasting our limit if
- 9:18we gave it the usual million context
- 9:20window. The watchdog's whole job is to
- 9:22watch the other agents so they don't get
- 9:24stuck in loops or go the wrong way. So,
- 9:26if an agent is taking too long on a task
- 9:29or an agent isn't working right, the
- 9:30watchdog catches it and tells the
- 9:32router. The router only hears about a
- 9:34problem when a worker tells it. So,
- 9:36without the watchdog, an agent that goes
- 9:38quiet would never get noticed. Every 10
- 9:41minutes, the watchdog runs a small
- 9:42script that lists any problems it finds.
- 9:45So, even if two agents get stuck waiting
- 9:47on each other, the watchdog catches it.
- 9:49So, the actual work goes to a worker
- 9:51agent, which takes one ticket and works
- 9:53on it. We set the worker to Sonnet
- 9:55instead of Opus because the ticket
- 9:57already spells out exactly what to build
- 9:59and Sonnet can handle that. That way,
- 10:01every sub-agent it starts doesn't eat
- 10:03into your usage and you don't hit your
- 10:05usage limit too soon. So, with the
- 10:07router, the watchdog, and the worker set
- 10:09up, we can start building. To do that,
- 10:12you just open Claude code with the
- 10:13router agent. You do that by typing
- 10:15Claude, then the agent flag followed by
- 10:18the router's name. You also need to set
- 10:20the permission mode to auto so that the
- 10:22router doesn't keep asking you for
- 10:24permission. When you run this command,
- 10:25the Claude code session opens, but it's
- 10:27running as the router agent we made. So,
- 10:30you just give it the ticket you want to
- 10:31start with by typing the ticket number
- 10:33in the prompt. And before anything else,
- 10:35it starts the watchdog, which runs in
- 10:37the background and watches each of the
- 10:39other agents. We started with the first
- 10:41ticket. Because it was a team ticket,
- 10:43the router started three agents, each
- 10:45one working on a different part of it.
- 10:46From there, the three agents work on
- 10:48their own unless they need you to make a
- 10:50choice. That's exactly what happened
- 10:52when one of our agents needed a choice
- 10:54from us. The router came to us with two
- 10:56options, and once we picked one, it
- 10:58passed our choice onto the agent so it
- 11:00could keep working. While they work, the
- 11:02agents write their notes on the ticket
- 11:04into that ticket's folder. That includes
- 11:06the contract, which is the plan the
- 11:08whole team agreed on, along with the
- 11:10results and the screenshots as proof.
- 11:12But each worker agent writes every
- 11:14change in its own separate work tree,
- 11:16which is basically a second copy of your
- 11:18project on its own branch. So, the code
- 11:20from every work tree needs to come
- 11:22together in one place, and that's where
- 11:24an agent called merger comes in. The
- 11:26merger does that by combining work from
- 11:28different work trees into the main
- 11:30branch of your project. So, when the
- 11:31team was done, the router started the
- 11:33merger. After that, it started an agent
- 11:36called checker, which checks the merged
- 11:37features. The checker tests those
- 11:39features in the browser to make sure
- 11:41they work properly. Once the first
- 11:43ticket was merged, the next tickets
- 11:44could start. The board said tickets
- 11:46number two and six were both waiting on
- 11:48the first ticket, and both were marked
- 11:50ready. So, the router picked those two
- 11:52up and gave each one its own worker
- 11:54agent. Then both of them started working
- 11:56at the same time. Besides that, we also
- 11:58have a few other agents that work on
- 12:00their own. The first one is the
- 12:01reproducer agent, which repeats the
- 12:03steps that caused a bug to see it happen
- 12:05again. If the fix is small and it can
- 12:08figure it out, it fixes it on its own
- 12:10branch. And if it can't, it gives you a
- 12:11report. There's also a tester agent that
- 12:14does the testing. It runs the browser
- 12:15tests with agent browser, which is
- 12:17Vercel's tool that lets an agent open
- 12:20your app in a real browser and click
- 12:22through it. The worker is the one that's
- 12:23meant to start it, and the tester tells
- 12:25the worker if anything is wrong. And
- 12:27while the tickets are being built, if
- 12:29any issues shows up that makes part of
- 12:31the app break, the reproducer agent
- 12:33steps in. First, it uses agent browser
- 12:35to find what's causing the issue and
- 12:37what could fix it. After that, it tests
- 12:39the fix in the browser to make sure it
- 12:41works, and then it tells the router.
- 12:43This [snorts] router and worker setup
- 12:45costs more than a single session. Every
- 12:47worker has its own context window, so
- 12:49running a few of them uses way more
- 12:50tokens than a single session would. Deep
- 12:53Seek saw the same thing in their test,
- 12:54and the extra tokens got them tasks that
- 12:57finish faster with fewer slow ones. In
- 12:59our run, the router was open for about
- 13:01an hour, and in that hour it built three
- 13:03tickets. The team ticket ran for 26
- 13:05minutes before we stopped it and merged
- 13:07it. Then the two solo tickets ran at the
- 13:09same time and took 11 and 17 minutes.
- 13:12But the main gain shows up in the
- 13:13quality of the app that was built and
- 13:15the less handling of multiple sessions.
- 13:17We didn't have to keep any context of
- 13:19what each agent was doing, and router
- 13:21was handling everything properly. All we
- 13:23had to do was to set features we want
- 13:25built to ready, and then leave it to
- 13:27work out the rest. There's one part we
- 13:28didn't build, which is that Deep Seek's
- 13:30version runs in the cloud, so it keeps
- 13:33working when your laptop goes to sleep.
- 13:35If you want to reach your setup from
- 13:36anywhere, you can use remote sessions,
- 13:38which let you control the Cloud Code
- 13:40Session on your computer from your phone
- 13:42or another browser. Or you can use an
- 13:44app like Paseo, which is free and open
- 13:46source and lets you check on your agents
- 13:48from your phone. Now, if you want to use
- 13:50the setup which we have created in this
- 13:51video, you can get that in AI Labs Pro,
- 13:54which is our community. So, if you found
- 13:56value in what we do and want to support
- 13:59the channel, this is the best way to do
- 14:01it. The link's in the description. That
- 14:03brings us to the end of this video. If
- 14:05you'd like to support the channel and
- 14:06help us keep making videos like this,
- 14:08you can do so by using the Super Thanks
- 14:10button below. As always, thank you for
- 14:12watching, and I'll see you in the next
- 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.