Running parallel Claude Code agents with git worktrees

Posted by Chaitanya Shahare on Sun, Dec 6, 2026

We have all experienced this, you are running your Claude code agent on a task and you don’t have anything else to do because you have planned thoroughly before stating the implementation but you don’t what to do next.

You cannot run another agent in parallel because the agents might collide and try to edit the same file at once, so to work around that you have to take responsibility of directing the Claude agent to be confined to one file, but maybe that is not the best approach.

You are still solving the problems, you are not really leveraging the true power of getting shit done with Claude code and running parallel subagents.

You have just moved the work from doing things yourself (coding) to just managing tasks which is way harder and less fun in my opinion.

Also if you have to think about each agent you spawn up you’ll soon get fatigued and default to just using 1 agent at a time, which will just increase the idle time of you not doing anything.

There’s a better way to do this, Git Worktrees is the solution to all of these problems. It will really unlock a lot.

Worktrees in 60 sec

A git worktree is a copy of your entire repo, checked out to just 1 branch.

It’s a separate directory on your system just for that 1 branch, completely isolated from all the other branches.

That’s it, you don’t need to know any more than that to take advantage of this and unlock truly parallel agents.

But what about the commands? I don’t know them, how to use it?

Just ask Claude to use it, to truly become an AI native, 10x engineer, you need to build a relationship of trust with your Claude code. 🧑‍💻

My setup

I use Conductor a product that is built around this exactly philosophy of worktrees.

It lets me

  • Add projects (repos)
  • Create new workspaces (conductor uses 1 worktree for 1 workspace, which is, 1 branch for 1 workspace)
  • Create multiple sessions in 1 workspace
    • Sessions are agents in that workspace. You can use 1 agent to review, 1 to plan and things like that.
  • It also lets me interact with the terminal for each workspace, spawn up dev servers, see and review the code diff, manage all the obvious git and GitHub related actions with just 1 button click.

This way I can manage a lot more work items at once because I don’t have the overhead of manage all these agents in terminal tabs and mentally managing which agent does what and where is this Claude code session running.

Another thing that I love about conductor it has support for Claude, codex, opencode, antigravity so I can use different models for different subtasks.

For example, I can plan and review using opus and the implement using sonnet so that I’m token efficient. Can use openrouter to get other smaller models for monitoring background tasks and things like that.

There are a lot of good alternatives conductor,

  • Cmux, iterm2 - if you just like the terminal Claude code experience
  • T3code, Claude desktop - if you want a gui that can do the same things.

Explore and choose whichever fits best and which feels intuitive to you.

All of these tools are opinionated so choose whatever works for you. But try a few.

Running 3 work tasks, real example from 1 day

Create a new workspace for task 1, in the new session give the agent all the context, slack links, notion docs, PRDs , jira ticket, etc. anything that is relevant.

Ask it to help me understand what the problem is, what are we trying to solve, what are the constraints to solve this problem, what are my options and things like that, and then let it run, we will call this agent 1.

While that is running, I’ll create a new workspace for the next work item and do the same for that as well.

If the first agent is finished, I’ll go and take a look, we need to unblock our agents as fast as possible. Just like a manager unblocking their team.

I’ll go through the agent understand the problem, make the choices and then ask it to plan and also after it is done with the plan trace all the code paths assuming that the plan was implemented and check if we are not introducing any logical bugs, ( I’ve noticed this catches a lot of bugs before even implementing and the plan that comes out is better. ).

While the agent is planning, let’s move on to the third task, create a new workspace and give it the same prompt for starting out and explaining the problem …

You see I’m not letting any of my work tasks get idle. I agree that this is a lot of context switching but with time we get better at it.

Then I go to the second agent to understand the problem, make any decisions and ask it plan.

Then I go back to the first agent, it as completed planning, I’ll go through the plan, check how it will verify when it is done and then either ask it to iterate on the plan or just continue with the implement.

Then I’ll go ahead and understand the third agents problem and make decisions and ask it to plan.

Second agent is ready with the plan, I’ll review, iterate or implement.

Will do the same for the third agents plan.

Now whichever finishes first, I’ll manually verify once, do some sanity checks and the raise a pr, spawn up another agent (session) in conductor to review the code.

Do the same for the rest of the 3, if there are any review comments I need to address I’ll go ahead and do that.

Share for PR review, get them reviewed, approval and then merge.

That’s it. I have 3 work items done with 3 different PRs without any of the agents conflicting, or getting confused by the other agents’ work.

Gotchas and cleanup

Make sure to clean up the worktree after you are done with the work in there or else the dependencies like node modules, python packages will keep taking a lot of disk space.

Conductor does all the automatically once the PR is merged. It archives that clears such files.

You still have to plan for isolated work items, but you have to do it at a more abstracted level and not file level. You are doing the same thing but it’s less tedious.

You can think of it like moving 1 or couple of levels up a pyramid.

When not to do this?

When a task is particularly hard or critical, you should focus and reduce the context switching.

Moving tickets does not necessarily move the needle. It’s not just about completing tickets. It’s about actually taking the project further. And sometimes just 1 line of change can do that but for that 1 line you may need to think and focus.

Conclusion

This is how you unlock working with parallel Claude code agents with git worktrees.

Be curious try finding ways to get even more work possible without sacrificing quality. You will need to think creatively.

As always when it doubt, ask Claude.