Skip to content
← All guides

Run several AI agents at once without babysitting terminal windows

Use Claude Code’s agent view and background sessions, Git worktrees and notifications to run agents in parallel on a Mac, and where each approach stops.

5 min read

Give every agent its own Git worktree so they cannot overwrite each other, run them in the background, and let something tell you when one needs you. In Claude Code, claude agents opens one screen for all your background sessions and shows what is running, what needs input and what is done. For other agents, use a worktree per task plus a notification hook, or a Mac app built for parallel agents.

Step 1: isolate each task

Two agents in one checkout will collide. Create a worktree and branch for each:

git worktree add ../myapp-fix-login -b fix-login
git worktree add ../myapp-add-export -b add-export

Start one agent in each folder. Claude Code can do this for you. Its agent view docs say that before editing files, a background session moves into an isolated git worktree under .claude/worktrees/, with exceptions such as a session you moved to the background with /bg, a directory that is not a git repository, and a session already in a linked worktree. You can turn this off with "worktree": {"bgIsolation": "none"}. Outside a git repository nothing isolates sessions, so do not run parallel sessions on the same files.

Step 2: run them in the background

Claude Code, from the agent view docs (a research preview, so keys may change):

claude agents                          # one screen for all background sessions
claude --bg "investigate the flaky test"
claude --bg --name "flaky-test-fix" "investigate the flaky test"

/bg inside a session, or the left arrow on an empty prompt, moves it to the background. Status shows Working, Needs input, Idle, Completed, Failed or Stopped. Space opens a peek panel where you can reply, but a permission prompt needs you to attach with the right arrow. Useful commands: claude attach <id|name>, claude logs <id|name>, claude stop <id> and claude agents --json --all for a script. Each session uses your subscription quota on its own.

Codex and Cursor: the pages we read describe no background session list. Run each in its own terminal tab or window per worktree, and use their hooks or notification settings so you only look when needed. Codex can run notify on a finished turn, and Cursor’s stop hook runs when the agent loop ends. Notifications guide

Step 3: decide what needs your approval

Parallel agents ask more often. Narrow what they can do first so the prompts that remain matter: allow safe commands, deny the dangerous ones and turn on each agent’s sandbox. Stop rm -rf and force pushes

Options at a glance

ApproachWorks forIsolationNotices you
claude agentsClaude CodeWorktree per sessionNotification hook, agent_needs_input
Worktree plus tabsAny agentWorktree you createYour own hooks
ConductorClaude Code, Codex, Cursor per its pageIsolated workspace per agentAt-a-glance view
tmux or a terminal multiplexerAny agentNone by itselfNo

Conductor’s page says it is a Mac app for running parallel agents, with an isolated workspace for each, and lets you review changes and merge them. It does not state a price. Conductor, fetched November 25, 2026. Other Mac apps watch agents you started yourself. Compare them

Step 4: review before you merge

Each worktree is a branch. Review the diff, run tests, then merge one at a time. Remove finished worktrees with git worktree remove ../myapp-fix-login.

Where Excellent fits

Excellent for Mac does not start or schedule agents. Its free scan reads logs from Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code, so you can review what several agents did after a run. It does not show helper agents, because their logs are folded into the main session. With Pro, a live check can pause or ask before risky actions, and Stop, Continue and End in the menu bar pause or end an agent with protection on (Cursor and Grok Build: pause only). Pro is US-only for now. Run the free scan · Agent coverage

Checklist

  • One worktree and branch per agent.
  • Background sessions started with claude --bg or a tab per worktree.
  • Notification hooks set so you only look when asked.
  • Sandboxes on and risky commands denied.
  • Each branch reviewed and merged one at a time.

Checked against vendor documentation on November 25, 2026. Claude Code agent view · Codex advanced config · Cursor hooks · Git worktree

Related guides

View all