How to run multiple Claude Code agents in parallel on a Mac
Short answer
Give every agent its own Claude Code session and its own copy of the repository (a git worktree), then pick how you watch them all. Terminal tabs and tmux are free and manual; Claude Code's agent view (claude agents) lists your background sessions in one terminal screen; a board app like Tendeck puts each session on a card and lights it up when it needs you. Every extra agent spends your plan's usage too.
What “an agent” means here
Each agent is one Claude Code session: its own process, its own conversation, its own permissions prompts. Two sessions don’t share context. So running agents in parallel comes down to two problems:
- Keep their files apart, so one agent doesn’t overwrite the other.
- Know which one needs you, without checking every window.
Every option below solves the first the same way, with git worktrees. They differ on the second.
Option 1: terminal tabs and git worktrees
The no-install way. Open a terminal tab per task and start each session in its own worktree:
claude --worktree checkout-form
In another tab:
claude --worktree payment-rounding
Claude Code creates each worktree under .claude/worktrees/<name>/ on a new branch called worktree-<name>, so the two sessions edit separate copies of the repo. A few details from the worktrees docs:
- Add
.claude/worktrees/to your.gitignore. - A worktree is a fresh checkout: install dependencies in it, and list files like
.envin a.worktreeincludefile to have them copied in. - When you exit, Claude Code removes a clean worktree and asks before removing one that has work in it.
Where it breaks: nothing tells you which tab is waiting on a permission prompt. With four or more tabs you spend your time clicking through them.
Option 2: tmux
Same sessions, one window. Start a tmux session, split it into panes and run claude --worktree <name> in each:
tmux new -s agents
Ctrl-b % splits side by side and Ctrl-b " splits top and bottom.
Where it breaks: panes get small fast, and a session waiting on you looks just like one that’s working. It also survives closing the terminal only as long as the tmux server keeps running.
Option 3: Claude Code’s agent view
Claude Code has its own screen for this. Dispatch work as background sessions and watch them in one list:
claude --bg "Fix the rounding on coupon payments"
claude agents
Agent view groups sessions by state (Needs input, Working, Ready for review, Completed), lets you peek at one, and attaches when you press Enter. A dispatched session moves into its own worktree before it edits files. Sessions run on your machine under a supervisor process, so they keep going after you close the terminal, and they stop when the machine shuts down.
Where it breaks: it’s a research preview, so its keys and screens can change. It’s a terminal screen, and it runs Claude Code sessions only.
Option 4: a board of real terminals (Tendeck)
This is the maker’s view, so weigh it accordingly. Tendeck is a native Mac app that puts each session on a card on one canvas:
- Each card is the real Claude Code terminal, unmodified, or the same session read as a clean conversation with its steps and diffs. One click flips between them.
- A card turns gold when its agent needs you, and you get a notification. You answer permissions and questions right on the card.
- ⌘K sends an order to one agent with
@name, or to all of them with@todos. - Each agent can work in its own worktree, on its own branch. If it has changes, the copy stays after you remove the agent.
- Several accounts side by side, each with its 5-hour and 7-day meters. When one runs out, you move an agent to another account and the conversation carries on.
- Codex on any card, with the same view and terminal.
- The engine can run on your own server with Docker, so agents keep working with the laptop closed.
Where it doesn’t help: it’s Mac only (macOS 14 or later, Apple silicon) and costs $59 once. It doesn’t raise your plan’s limits, and it won’t make two agents editing the same files a good idea.
The four options side by side
| Tabs + worktrees | tmux | Agent view | Tendeck | |
|---|---|---|---|---|
| Install | Nothing | tmux | Nothing | Mac app |
| See who needs you | Check each tab | Check each pane | State groups | Gold card + notification |
| Real terminal | Yes | Yes | Attach to a row | Yes, one click |
| File isolation | --worktree |
--worktree |
Automatic | Per agent, optional |
| Codex too | Another tab | Another pane | No | Yes |
| Price | Free | Free | Free | $59 once |
Habits that work with any setup
- One task per agent, split by ownership. Give agents work that touches different files: one on the web layer, one on the API, one on tests.
- Watch for port clashes. Worktrees isolate files, not running processes. Two agents starting a dev server on port 3000 will collide, so give each its own port.
- Review and merge one at a time. Parallel writing is fast; parallel merging is where conflicts show up.
- Mind the usage. Each session spends your plan. If one account runs dry by midweek, use more than one account or run fewer agents.
Questions people ask
How many Claude Code agents can I run at once?
There's no fixed number. The real limits are your machine (each session is a process with its own terminal) and your plan's usage, because every session spends it. Start with two or three independent tasks and add more once you can keep up with reviewing them.
Do parallel agents share my usage limits?
Yes. Each session draws from the same plan, so running five agents spends roughly five times as fast. Claude Code's docs say so plainly. If you have more than one account, you can spread agents across them; see the guide on multiple accounts.
Can two agents work in the same folder?
They can, but they edit the same files and can overwrite each other. Give each one its own worktree with claude --worktree <name>, or ask Claude to work in a worktree.
What's the difference between subagents, agent teams and parallel sessions?
Subagents are helpers inside one session that report back to it. Agent teams are a lead session that splits work across teammates; they're experimental and off by default. Parallel sessions are separate conversations you start and steer yourself, which is what this guide covers.
Can Claude Code agents talk to each other?
Claude Code has cross-session messaging, so sessions you run can pass findings to each other. In Tendeck, agents on the board can write to each other and start a new agent for a side task, always with your permission, and each message shows as a letter on both cards.