Skip to content
Edith

Guide

How to Run Multiple Claude Code Agents on Mac

Isolate each agent in its own worktree, then keep track of all of them without juggling terminal tabs.

Updated by

The short answer

Give every agent its own git worktree so their edits never collide, then start one Claude Code session per worktree. Claude Code does the first part for you with claude --worktree <name>. The hard part is keeping track: which agent is waiting for an answer, which one finished, and which one is quietly burning your limit. That is what a board like Edith's run multiple Claude Code agents extension, Agents, is for.

Step 1: one worktree per agent

Built into Claude Code

Start Claude in its own worktree

Pass --worktree, or -w, with a name. Claude Code creates the worktree under .claude/worktrees/<name> at the repository root, on a new branch called worktree-<name>, and starts the session inside it. Run the same command with a different name in a second terminal for a second agent.

Terminal
claude --worktree feature-authclaude --worktree fix-flaky-tests

When you exit, Claude removes a clean worktree and its branch, or asks first if you named the session, and asks whether to keep a worktree that has changes or new commits. A .worktreeinclude file at the project root copies ignored files such as .env into each new worktree. Add .claude/worktrees/ to your .gitignore. The details are in Anthropic's worktrees documentation.

You can also manage worktrees with git directly, which is useful when you want one on an existing branch or outside the repository:

Terminal
git worktree add ../project-feature-a -b feature-acd ../project-feature-a && claudegit worktree listgit worktree remove ../project-feature-a

Step 2: watch them with agent view

Built into Claude Code

Open claude agents

claude agents opens agent view, a research preview that lists your background sessions grouped by state: needs input, working, ready for review and completed. Run /bg in a session to send it there. You can peek at a session, attach to it, or type a new task at the bottom to start another.

Where the built-in tools fall short

  • Claude Code only. Agent view shows Claude Code sessions. A Codex or Gemini agent working on the same repository is invisible to it.
  • One machine per view. Agent view lists the Claude Code background sessions on this Mac. The Claude desktop app can run sessions over SSH and in the cloud, but agents you start by hand in a terminal on another machine do not show up next to your local ones.
  • Tabs, not layouts. Watching four agents means four terminal tabs or a tmux layout you maintain by hand.
  • No queued messages for one session. Claude Code has scheduled tasks and /loop for recurring work, but there is no way to queue a follow-up for one specific running session from a script or another machine, to be typed in when it finishes its turn.

The Edith way: Agents

Agents is a board of every coding agent running on your Mac and on the machines you added in Edith's Machines extension. It groups them as blocked, working, done or idle, puts blocked agents first, and lets you open any of them to read its terminal and reply. It runs agents in Herdr, a terminal workspace that keeps each agent alive in its own pane so you can leave and come back. Edith offers a one-click Herdr install the first time.

  1. 1

    Install Agents and Herdr

    Open Library in Edith's sidebar, find Agents and press Install. Open the Agents page and press Install Herdr if it asks. Machines you add over SSH need their own copy of Herdr.

  2. 2

    Start agents side by side

    Press New agent and choose the agent, the machine and the space. Claude Code, Codex, OpenCode, Cursor Agent, Pi, Gemini and Amp are all options. Each one opens in its own pane.

  3. 3

    Arrange the panes

    Open Layout on a tab and pick an arrangement under Arrange, or use Even out, Rotate and Zoom under Adjust. Save keeps your own split as a named layout, and Gather all tabs brings every open tab into one.

  4. 4

    Answer the blocked ones

    Blocked agents come first on the board, and Edith notifies you when one is waiting on a question or a permission prompt. Open it from the board to answer, or use Allow once and Deny once Claude Code's hooks are connected in the Agents settings.

  5. 5

    Queue the next instruction

    Choose Send message… from an agent's menu, write the instruction and set When to send to When done, and Edith types it in the next time that agent finishes a turn. Later and At time schedule it instead.

From the terminal

Every step above is also a command, useful in scripts or for one agent to manage the others:

Terminal
ed agents lsed agents layout apply grided agents send w1:p2 "run the tests and fix failures" --when-finisheded agents modelsed agents attach w1:p2

ls lists every pane with its id and state, models lists the models, effort levels and fast mode each agent offers, and attach connects your current terminal to a live pane.

Review what the agents wrote

Parallel agents produce parallel branches. Edith's pull request review workspace opens each worktree of a project as its own review session, so you can read the changes from three agents in three tabs without checking anything out by hand. Choose a project, pick a worktree, and the list shows which checkouts have uncommitted changes.

For plain shells next to your agents, Edith's terminal with broadcast input opens tabs with ⌘T and can type one command into every tab at once, which is handy for pulling the same branch in several worktrees.

Clean up afterwards

Worktrees pile up. Edith's disk cleaner for developers finds linked worktrees you have not touched in a while and moves them to the Trash. It skips worktrees with uncommitted changes, and the branch and its commits stay in the repository. In Cleaner, choose where to search, include your code folder, and review the Git worktrees category before moving anything to the Trash. From the terminal:

Terminal
ed cleaner worktrees --root ~/code --older-than 1w

To leave agents running after you close the laptop, see run coding agents overnight.

Common questions

How many agents can I run at once?

There is no fixed number in Edith. The practical limits are your plan's rate limits, memory for each agent's tools and builds, and how many reviews you can keep up with.

Do I need agent view if I use Edith?

No, but they work fine together. Agent view is good for Claude Code background sessions on one Mac. The Agents board adds other agents and other machines.

One app. Every tool your Mac is missing.

Pay once · No account · 30-day refund · macOS 14+ on Apple silicon