Every Claude Code Workflow Explained (& When to Use Each) — Transcript
Full transcript
- 0:00If you're still using Claude code one
- 0:01conversation at a time, you're using it
- 0:03wrong. And this video is going to change
- 0:06how you work with it. So, at the moment
- 0:08you give it a task, you wait for the
- 0:09result, and then you move on to the next
- 0:11task. Everything's running at one time,
- 0:13but that's not how you'd run a team.
- 0:14You'd run teams in parallel, and you'd
- 0:16bring in specialists when required. And
- 0:18Claude code is built to work exactly
- 0:20like that, too, but most people aren't
- 0:22using it that way. So, in this video,
- 0:23you'll see five ways on how to actually
- 0:25use it, from simple setups to fully
- 0:28hands-off workflows. So, you can stop
- 0:30working in one conversation and start
- 0:32saving some serious time. So, let's get
- 0:34into it. And I'll start off with
- 0:35something that surprised me when I first
- 0:37found out about it. So, every single
- 0:39time you use Claude code, even in a
- 0:41basic conversation, it's already using a
- 0:43version of these patterns that we'll run
- 0:45through behind the scenes. So, it
- 0:47actually has already built-in sub-agents
- 0:49that it uses automatically without you
- 0:51having to tell it to. So, there are
- 0:53actually three built-in sub-agents baked
- 0:55into Claude code. The first one is
- 0:56called explore, and explore is basically
- 0:59a fast cheap scout. So, it runs on
- 1:01Haiku, which is Anthropic's fastest and
- 1:03cheapest model, and all it can do is
- 1:06read your files. So, it can search your
- 1:08files, it can look through folder
- 1:09structures, but it's read-only. It can't
- 1:11change anything. So, when you ask Claude
- 1:13something like, "How does my user
- 1:14authentication work in this project?"
- 1:16then Claude will often spin up an
- 1:17explore agent behind the scenes without
- 1:20you asking to. It will go off, read
- 1:21through your files with its own set of
- 1:23context window, and it will come back
- 1:25with a summary, and your main
- 1:27conversation therefore can stay clean.
- 1:29It doesn't bloat the context. And you
- 1:31actually see this inside the terminal
- 1:32when you run these tasks. You'll see it
- 1:34pop up in the terminal as the explore
- 1:36tool. The second one is similar, it's
- 1:37called plan, but it specifically
- 1:39activates when you're in plan mode. So,
- 1:40if you type {slash} plan or hit shift
- 1:42tab twice to enter plan mode, then
- 1:44Claude is going to use the plan
- 1:46sub-agent to research your code base
- 1:48before it presents you with a strategy.
- 1:49Again, separate context window,
- 1:51read-only. And the third one that
- 1:53they've implemented behind the scenes is
- 1:54general purpose. And this, as it sounds,
- 1:56is quite general purpose, so it's the
- 1:58one that does the heavy lifting. It runs
- 2:00on Sonnet, and it has full tool access.
- 2:02So, it can read and write, and Claude
- 2:04uses it for complex multi-step tasks.
- 2:06So, if you're asking Claude to do
- 2:08something that requires both exploring
- 2:10the codebase and making changes across
- 2:12multiple files, that's when it will
- 2:13often delegate that to a general-purpose
- 2:15sub-agent. And the key thing here is
- 2:17you've not told it to do anything.
- 2:18Claude is deciding when to use these
- 2:20automatically. It's looking at the
- 2:22complexity of your task and routing it
- 2:23to the right sub-agent. And all of those
- 2:25sub-agents run with their own context
- 2:27window, so that your main conversation
- 2:29never gets bloated with all the reading
- 2:31and searching of those files. So, even
- 2:33before we get into the five patterns,
- 2:35just know that Claude Code is already
- 2:36doing some of this work for you. But
- 2:38when you understand the full spectrum of
- 2:40the patterns, you can take control and
- 2:42get so much more out of it. Okay, so
- 2:44with that context, let's start at the
- 2:45beginning with pattern one. And
- 2:47sequential flow is exactly as it sounds.
- 2:49You open a terminal, you start a Claude
- 2:52Code session, and every task you give it
- 2:54builds on one. So, you've got you here.
- 2:56We assign a task. We then move to the
- 2:58next task once task one is finished.
- 3:00Move to the next, move to the next. And
- 3:01our shared context is growing over time.
- 3:04So, it's building on the context that
- 3:06we've been giving it throughout the
- 3:07different tasks. So, it might be
- 3:09something like build me a landing page.
- 3:11Claude then builds it as task one, or a
- 3:13first version of it. You say add a hero
- 3:15image to page one, add a contact form.
- 3:17All of these are different tasks that
- 3:19build on the first task. And the output
- 3:21of task one can feed into task two, and
- 3:24the outputs of task one and two can feed
- 3:25into task three because it's all stored
- 3:27in the context window. And this might
- 3:29seem like you're not using any
- 3:30sub-agents, but remember that Claude has
- 3:32those built-in sub-agents. So, even in
- 3:34this single conversation, Claude might
- 3:36spin up its explore, plan, or
- 3:37general-purpose agents that help by
- 3:39actually offloading some context at the
- 3:41right time to get stuff done faster or
- 3:44more effectively on your behalf. And
- 3:46you'll see these pop up in the terminal,
- 3:47but from your perspective, it's still
- 3:49just one conversation flow between you
- 3:50and Claude. Now, the really important
- 3:52thing understand about sequential flow
- 3:54is that it has a ceiling, and that
- 3:55ceiling is dictated by the context
- 3:57window, and that's shown by the little
- 3:58green bar on the bottom of the terminal.
- 4:00So, the longer you work in that one
- 4:01session, the more the context is going
- 4:03to accumulate, and at that point, Claude
- 4:05starts forgetting things or not being
- 4:07able to find things, which is what we
- 4:09call context rot. So, this is where
- 4:10skills and commands become super
- 4:12valuable because if you've got a
- 4:13well-structured Claude.md and some
- 4:15well-structured skills that are
- 4:17described well, then Claude is able to
- 4:19load in that skill and any reference
- 4:21files at the right time and then offload
- 4:23it at the right time also to not bloat
- 4:24the conversation window. And then using
- 4:26commands like /clear and /compact will
- 4:29help you actually keep the summary of
- 4:31the conversation in the context. But,
- 4:33eventually with this, you're going to
- 4:35hit a wall, and that's when we need to
- 4:36move to pattern two.
- 4:38And pattern two is called the operator,
- 4:40and this time you are acting as an
- 4:42orchestrator. So, instead of running one
- 4:44Claude session, you're going to open up
- 4:45multiple terminal windows. You might
- 4:47have found yourself doing this already
- 4:48to get things done quickly. Each has its
- 4:50own Claude instance. So, you can treat
- 4:52these like separate agents, terminal
- 4:54one, two, three, and four, completely
- 4:56separate agents. They have their own
- 4:57context window, and therefore you can
- 4:59give them specific context for specific
- 5:01task. So, this time, let's say you're
- 5:02building out a SaaS app. You need a new
- 5:04onboarding flow built. You also need
- 5:06your checkout bug fixed, and you want to
- 5:08experiment with a new design for, let's
- 5:11say, your user settings page. All of
- 5:12these tasks that we've mentioned don't
- 5:15depend on each other, and that's one of
- 5:16the reasons why we can actually
- 5:18orchestrate these in completely separate
- 5:20terminals that don't bloat each other's
- 5:21context. Because there's no connection
- 5:23between those terminals, we are purely
- 5:25coordinating. So, you open three
- 5:26terminals like this inside VS Code, and
- 5:29Claude actually has now a built-in flag
- 5:31to do this much easier. So, in the first
- 5:33terminal, you type in Claude -w, which
- 5:36is important, new onboarding flow. The
- 5:38second one, Claude -w, fix checkout bug.
- 5:41And the third one, Claude -w, redesign
- 5:44user settings. And you'll see that in
- 5:46the project folder here, we've now
- 5:48opened up what's called a work tree,
- 5:50where you've got new onboarding flow,
- 5:52fixed checkout bug, and redesign user
- 5:54settings. And now if we go into our dot
- 5:56Claude folder, we've effectively got
- 5:57these different work trees, which is a
- 5:58separate copy of your project with its
- 6:01own branch, and it drops it straight
- 6:03into the Claude code session. Each one
- 6:05in its own isolated workspace, and they
- 6:07can't interfere with each other. So they
- 6:08all have a clean context window, so
- 6:10there's no context rot from other tasks,
- 6:12and us as the operator are the ones
- 6:14coordinating the efforts between these
- 6:16different terminals here. So you're
- 6:17probably at this point checking in on
- 6:19the different terminals, the different
- 6:20tasks going on. You're copying pasting
- 6:22findings from one to another if you
- 6:24needed, and then you're going to have to
- 6:25decide when each one is done, and when
- 6:27you want to merge that back into the
- 6:29main project. But this is a massive
- 6:31upgrade from this sequential flow,
- 6:33because actually we can get multiple
- 6:34things done in parallel as long as
- 6:36they're not dependent on each other. But
- 6:38if they do depend on each other, then
- 6:40this flow isn't going to work for us.
- 6:41And here's the nice touch about closing
- 6:43a work tree session. As soon as we close
- 6:45this window, Claude is going to handle
- 6:47the cleanup for us. So if nothing's
- 6:49changed, it removes that workspace
- 6:51automatically.
- 6:52But if there is work to keep, then it's
- 6:54going to ask you what to do. And you can
- 6:55see as I close these sessions, they
- 6:58disappear from the work trees up here.
- 7:00So the operator pattern is you running
- 7:03multiple Claude sessions in parallel,
- 7:05each with its own isolated workspace,
- 7:07but you're still the one coordinating.
- 7:09So it's perfect for independent tasks
- 7:10where you want maximum control and clean
- 7:12context windows where they will not
- 7:14interfere with each other. Now the
- 7:15operator pattern is great, but as you'll
- 7:17have probably noticed, you can only
- 7:18manage a certain number terminals at any
- 7:21one point. Four to five terminals and
- 7:23you're flicking between those terminals,
- 7:24it becomes really difficult checking in
- 7:26on all of the sessions. So what if the
- 7:28Claude could actually handle the
- 7:29parallel tasks itself? So pattern three
- 7:32then is the split and merge. And this is
- 7:35where it gets really interesting,
- 7:36because the core idea is that within a
- 7:38single Claude code session, one
- 7:40terminal, Claude itself can split work
- 7:42across multiple sub agents that then run
- 7:45in parallel. So, if you're thinking
- 7:46about all four of these terminals, we
- 7:48could effectively spin off multiple sub
- 7:50agents inside each terminal to get more
- 7:52done quicker. And then effectively at
- 7:54the end, it's going to merge all the
- 7:56results back into the main agent so that
- 7:58you can reap the rewards. And if you
- 7:59remember those built-in sub agents I
- 8:01mentioned earlier, explore, plan, and
- 8:03general purpose, those are good examples
- 8:05of that, but you're not limited to just
- 8:07those. You can create your own custom
- 8:08sub agents inside your doc Claude
- 8:10folder. And Claude can spin up multiple
- 8:13of them at the same time. And here is
- 8:15how that works in practice. You give
- 8:17Claude a task, Claude is going to
- 8:19analyze that task and realize that it
- 8:21can be broken down into independent
- 8:22pieces. It will then fan out into
- 8:24multiple sub agents, each one running in
- 8:27its own context with no, and each one
- 8:29focused on a specific piece of work. And
- 8:31then when it's all done, it will merge
- 8:33all those results automatically and give
- 8:35you the final output. So, a lot is
- 8:36happening in the background here that we
- 8:38don't have to manually tell it to do.
- 8:40So, let's say you ask Claude to research
- 8:41five different competitors for a client
- 8:43proposal. Instead of researching them
- 8:45one by one, which could take ages if we
- 8:47ran it in that sequential flow pattern
- 8:49one, Claude can spin up five sub agents,
- 8:51one per competitor, and they all
- 8:53research simultaneously. So, each one is
- 8:55going to come back with their findings,
- 8:57and the main agent is going to
- 8:58synthesize the five findings into one
- 9:01single report. And Boris Cherny even,
- 9:03one of the creators of Claude Claude,
- 9:05has talked about sometimes spinning up
- 9:0615 sub agents at a time to get things
- 9:09done. But actually, the limit on this is
- 9:1110 at one. So, 10 sub agents at once.
- 9:14Claude will actually queue any
- 9:16additional tasks as additional sub
- 9:17agents. But here's the critical
- 9:19limitation here. Sub agents can only
- 9:21report back to the main agent, so they
- 9:23can't actually talk to each other. So,
- 9:25sub agent one and sub agent three have
- 9:27no idea what each other are doing. It's
- 9:29this like hub and spoke methodology
- 9:32where the main agent, or our main
- 9:33instance where we're interacting with
- 9:34Claude, is acting as the hub, and it's
- 9:36receiving information back and forth
- 9:38from that sub-agent. And if you've ever
- 9:40used the framework GSD or get done
- 9:43by Tash, this is like a framework I'd
- 9:45highly recommend for comprehensive
- 9:47projects. It's basically a planning
- 9:48framework that will split your initial
- 9:50project brief into subtasks and execute
- 9:53on those subtasks. So it's designed for
- 9:55big projects, but not in an enterprise
- 9:57fashion. We can look at that agents
- 9:59inside the agents order. They've got
- 10:00quite a few agents in here. And actually
- 10:02what you can do is go into the agents
- 10:04listed and see exactly, like we do with
- 10:07skills, the name, the description. So
- 10:09research is a single gray area decision
- 10:12and returns a structured comparison
- 10:13table with rationale. So we're
- 10:15effectively giving this agent a role to
- 10:17do and a specific set of context that it
- 10:20goes out and performs a certain process.
- 10:22As well as giving that agent a certain
- 10:25set of tools that it actually has access
- 10:27to. Now Claude will read the name of all
- 10:29agents in our dot Claude folder and
- 10:31decide when it's suitable to offload a
- 10:33task to those sub-agents. I mean, it
- 10:35will automatically use it when it thinks
- 10:37the task matches the description. Or you
- 10:39can specifically say, "I want to use the
- 10:41advisor researcher sub-agent in this
- 10:43task." And one of the most powerful
- 10:44applications of this pattern is the
- 10:46builder-validator chain. So you have one
- 10:48sub-agent build something, and then you
- 10:51have another sub-agent actually review
- 10:53it. But what that requires is the
- 10:54sub-agent one to build it first, pass it
- 10:57back to the main agent, pass that to the
- 10:58second sub-agent through here, and then
- 11:00that passes the results back to the main
- 11:02agent. So you can see because they can't
- 11:03communicate with each other, they're
- 11:05actually orchestrating it through this
- 11:06main agent. But you can effectively get
- 11:07a built-in quality check without doing
- 11:09any of the reviewing yourself by using
- 11:11that builder-validator chain. So split
- 11:13and merge is Claude doing the
- 11:15parallelization
- 11:16for you within a single session. So it
- 11:19can fan out work to those sub-agents and
- 11:21merge the results for you. And again,
- 11:23they keep your context window clean. So
- 11:24this is really powerful. So split and
- 11:26merge is awesome, but it has one
- 11:28limitation. Sub-agents can't talk to
- 11:30each other. So everything has to funnel
- 11:32through the main agent, and for some
- 11:34tasks, that is a genuine bottleneck. So,
- 11:36what if your researcher agent needs to
- 11:38check in with your reviewer agent? Or
- 11:40what if you have a front-end developer
- 11:42that needs to coordinate with a back-end
- 11:43developer? And so, this is where the
- 11:45fourth pattern comes in, which is agent
- 11:47teams. An agent team is effectively team
- 11:49of agents, as it sounds, that can share
- 11:51findings, challenge each other, and
- 11:53adapt together. So, the way that they
- 11:54share information is through a shared
- 11:56task list. So, they're no longer
- 11:57interacting with the team lead, which is
- 11:59our main orchestration window. They're
- 12:01interacting with that shared task list.
- 12:03Agent one understands what tasks agent
- 12:05two is doing, and vice versa. They can
- 12:07send messages between the agents. And
- 12:09it's the most advanced coordination
- 12:11pattern. It's the newest addition to
- 12:13Claude Code, and it is genuinely a
- 12:15game-changer for complex projects. But,
- 12:17it should only be used in complex
- 12:19projects because the token usage is
- 12:21extremely high when you've got
- 12:22cross-collaboration between the agents.
- 12:25Now, this is completely still
- 12:26experimental. It shipped with Opus 4.6
- 12:29as a research preview. So, you need to
- 12:31still enable it by adding a flag to your
- 12:33settings.json, which is Claude Code
- 12:35experimental agent teams one. And you
- 12:38need to add that as an environment
- 12:39variable in your settings.json. But,
- 12:41once it's enabled, you just tell Claude
- 12:43in your prompt that you want to use an
- 12:45agent team. So, you must still specify
- 12:47that you want to use an agent team, not
- 12:48like sub-agents where it will choose
- 12:50those automatically. You go in, you
- 12:52describe the task you want, you describe
- 12:54the team structure, or Claude will
- 12:55actually determine the team structure
- 12:57itself, and Claude will then create that
- 12:58team, spawn the teammates, and
- 13:00coordinate the work. And in your
- 13:01terminal, you can actually navigate
- 13:03between the teammates using shift up and
- 13:05shift down. And you can message directly
- 13:07any teammate and bypass this team lead
- 13:09entirely, or you can talk directly to
- 13:11the team lead. Now, as I mentioned, they
- 13:12use significantly more tokens because
- 13:14we've got this back and forth between
- 13:16the shared task list, the team lead,
- 13:18between the agents. And each teammate is
- 13:20its full Claude Code instance with its
- 13:22own context window again. So, it's got a
- 13:24portion of the main context passed in it
- 13:27from that shared task list and the team
- 13:28lead. And they roughly estimate it's
- 13:30going to be four to seven times more
- 13:32tokens than a single session when you're
- 13:35actually using agent teams. And the
- 13:36thing that actually matters here is you
- 13:37don't need agent teams for most of your
- 13:39work. You should actually only reach for
- 13:41them when sub-agents or even a single
- 13:43session couldn't do the job. So say
- 13:45you're trying to build out a complex
- 13:46SaaS application where you have a
- 13:48front-end developer, a back-end
- 13:49developer, and then a testing developer
- 13:51that spins up tests and needs to
- 13:53communicate to agent one and two as they
- 13:55build. That is an example where you
- 13:56would actually want an agent team to
- 13:59save from back and forth between the
- 14:01orchestration layer. But a lot of people
- 14:02in the community are just saying that
- 14:03actually this is just a way to produce
- 14:06large quantities of work very quickly,
- 14:08which isn't necessarily a good thing.
- 14:09You still need the work to be the right
- 14:11work. So it's powerful but expensive, so
- 14:14only reach for this when the task
- 14:15genuinely needs that
- 14:17cross-collaboration. So patterns one
- 14:18through four all have one thing in
- 14:20common. You're there in the terminal,
- 14:22you're either typing, coordinating, or
- 14:24at least watching the task. But what if
- 14:26you didn't need to be there at all? So
- 14:28this brings us on to the last pattern,
- 14:30which is Claude working without you. So
- 14:32this is the dream of autonomous
- 14:34workflows where you don't need to be in
- 14:36the loop. You just set a task, you walk
- 14:38away, and you come back to the results.
- 14:39And this is called headless, and it's
- 14:41where Claude code goes from being a tool
- 14:43you sit with to a team member that's
- 14:45going to go and work independently. This
- 14:47requires you having no conversation back
- 14:49and forth, no terminal window open, and
- 14:52no human in the loop at all. So when
- 14:54we're running this, we're using the dash
- 14:55P flag. So we're saying Claude-P, and
- 14:58we're entering a prompt after the P
- 15:00flag. So we're saying Claude, process
- 15:02this prompt. We don't want any
- 15:03interaction, no approvals. You've got
- 15:06full permissions. Just go, get it done,
- 15:08and return to me the result when you're
- 15:10finished. And that on its own is kind of
- 15:12iterating with that task, Claude-P
- 15:15prompt, and will give us that
- 15:16report.json. But when it gets really
- 15:18groundbreaking, when it gets really
- 15:20powerful, is like when you plug this
- 15:23into other systems. So, if you plug this
- 15:25in to your Windows or your Mac
- 15:27scheduling function, your cron
- 15:28functionality that can say at 7:00 a.m.
- 15:31every day, fire in this command to my
- 15:33terminal, and then Claude goes and
- 15:34iterates and gets the report and sends
- 15:36it back to you, that is when it
- 15:38genuinely becomes a game changer.
- 15:39Because then what we're doing is
- 15:40actually creating workflows that can run
- 15:43on a schedule without your input. So, it
- 15:45could be review yesterday's work and
- 15:47write a summary to a morning report.md.
- 15:50So, when Claude wakes up, it's going to
- 15:51read all the work you did yesterday,
- 15:53analyze them, write the report, and then
- 15:55you just have to go and look at the
- 15:56output before you've even done anything.
- 15:58You didn't open a terminal, you didn't
- 16:00even type a prompt in, it basically just
- 16:02happened. Or say you're actually running
- 16:03content for your business, you could
- 16:05have a script that pulls your latest
- 16:07video transcript, runs it through Claude
- 16:09with specific prompt, gets you back a
- 16:11set of social media posts saved to a
- 16:13file that you can then just schedule
- 16:15automatically. And you can chain these
- 16:16together, you can add skills into the
- 16:18prompt so that invoke specific skills.
- 16:21And this is all completely automated.
- 16:23Now, the big limitation in this is
- 16:25trust. You're not asking for an
- 16:27iterative conversation, you're giving
- 16:29Claude autonomy to do things on your
- 16:31behalf. So, you're not checking each
- 16:33step. So, this works best for tasks
- 16:35where the output is extremely easy to
- 16:37verify. At the moment, you probably
- 16:39don't want to go headless on anything
- 16:41that's hard to undo. But you can
- 16:42actually put guardrails on this as well.
- 16:45If you want it to only read and not
- 16:46write, for example, we can do dash dash
- 16:48allow tools, and then make sure that we
- 16:50add specific things that it can do. And
- 16:51some people in the community have that
- 16:53taken this even further with things like
- 16:55the Ralph loop, which keeps feeding the
- 16:57same prompt back in so that Claude
- 16:59iterates on its own work until it gets
- 17:01it right. And each time it iterates, it
- 17:03understands what has been done in the
- 17:04last cycle. And people have actually
- 17:06been using this to ship entire projects
- 17:08overnight. So, this is brilliant. This
- 17:10is like Claude working without you, you
- 17:11set a task, you walk away, and you come
- 17:13back for the results. But like we said,
- 17:15it's best for batch processing things
- 17:17and anything where the output is really
- 17:19easy to verify. So, there you have it.
- 17:21Five agentic patterns for Claude code.
- 17:23And if you want to go deeper on any of
- 17:24these or on building skills, creating
- 17:26custom sub-agents, how to structure your
- 17:28Claude 3 MD, and actually put these
- 17:30patterns into practice with real
- 17:31projects, then check out the first link
- 17:33to the Agentic Academy in the
- 17:35description below. We've got a full
- 17:36Claude code track where we build this
- 17:38stuff step-by-step. And let me know in
- 17:40the comments which pattern you're
- 17:41looking forward to trying. And if this
- 17:43did save you the time of figuring out
- 17:44this yourself,
- 17:45then I'd really appreciate a like and
- 17:47subscribe. Thanks so much for watching.
About this transcript
This page contains the full transcript of Every Claude Code Workflow Explained (& When to Use Each) by Simon Scrapes, generated from the public captions YouTube serves with the video. The transcript has 3,847 words across 569 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.