All articles
Tonis Tiganik--6 min read

Claude Code Multi-Agent Swarm in tmux: Run 10+ Parallel Agents With ClawTab

Run 10+ Claude Code agents in parallel tmux panes - each with its own prompt, auto-yes policy, secrets, and remote phone monitoring. How ClawTab multi-agent orchestration compares to Claude Code Agent Teams for background automation and scheduled swarms.

Claude Code Multi-Agent Swarm in tmux: Run 10+ Parallel Agents With ClawTab

Why Run Multiple Claude Code Agents in Parallel?

A single Claude Code agent handles one task at a time. That's fine for interactive work - you type a prompt, watch it think, review the result. But some jobs are inherently parallel. You need to migrate 12 microservices to a new API. You want to generate tests across four packages simultaneously. You're reviewing PRs across three repos before standup.

This article focuses on the 10+ agent end of the spectrum - the swarm. If you are looking for the everyday 4-8 Claude Code parallel agents pattern with git worktrees and tmux panes, the sibling guide covers that case in detail.

Running these sequentially means waiting hours for work that could finish in minutes. Each agent spends most of its time on I/O - reading files, calling APIs, writing output - not burning CPU. Your machine can easily handle 6, 8, or 10 agents at once.

Claude Code now has experimental Agent Teams (swarm mode) that coordinates multiple instances with a team lead pattern, each working in isolated git worktrees. Agent Teams is powerful for interactive, task-decomposed work where one lead agent delegates subtasks. But it requires an active terminal session and doesn't support scheduled runs, remote monitoring, or per-agent auto-yes.

ClawTab takes a different approach to multi-agent orchestration. Instead of a lead/worker hierarchy, each agent runs independently in its own tmux pane with its own schedule, secrets, and auto-yes policy. You monitor all of them from your phone, get push notifications when any agent needs attention, and control them remotely. This makes ClawTab better suited for background automation - migration swarms, scheduled reviews, and overnight jobs - while Agent Teams excels at interactive, coordinated coding sessions.

How Does tmux Pane Splitting Work in ClawTab?

ClawTab runs every agent job inside a tmux session. When you create a job targeting a specific tmux window, ClawTab launches a new pane in that window. When a second job targets the same window, ClawTab doesn't create a new window - it splits the existing one into a new pane.

This happens automatically. You don't configure pane layouts or manage tmux sessions yourself. ClawTab handles the split, assigns each pane its own run ID and monitoring task, and starts polling for output.

Under the hood, each pane gets:

  • Its own run_id - a unique identifier for the job execution, used to track history and logs
  • A dedicated monitoring task - a Tokio async task that polls the pane's terminal buffer every 2 seconds for new output
  • A fast exit poller - a separate poller running every 200ms that detects when the agent process exits, so completions are caught nearly instantly
  • Independent auto-yes state - each pane can have auto-yes enabled or disabled independently

Jobs run concurrently via Tokio's async runtime with unbounded spawning. There's no hard limit on concurrent panes from ClawTab's side - the constraint is your machine's memory and the Claude API rate limits on your account.

Setting Up a Swarm of Agents

There are two ways to launch a swarm: manually from the UI, or with scheduled jobs that fire simultaneously.

Manual launch:

  1. Open ClawTab from your menu bar
  2. Create multiple jobs targeting the same tmux window, each with a different prompt or project path
  3. Click "Run Now" on each one - ClawTab splits a new pane for each job automatically

Scheduled swarm with cron:

  1. Create multiple Claude or Folder jobs with the same cron expression (e.g., 0 9 * * 1-5)
  2. Point them at the same tmux window but different project directories or prompts
  3. When the cron fires, all jobs launch simultaneously into adjacent panes

You can also use centralized workflow configs to define swarm configurations per project. Each job can have its own prompt file, secrets, and schedule - but they all launch in the same tmux session when triggered together.

# Example: three agents targeting the same tmux window
# Job 1 - migrate auth service
job_type: claude
tmux_window: swarm
path: ~/workspace/auth-service
prompt: migrate-to-v3.txt

# Job 2 - migrate billing service
job_type: claude
tmux_window: swarm
path: ~/workspace/billing-service
prompt: migrate-to-v3.txt

# Job 3 - migrate notification service
job_type: claude
tmux_window: swarm
path: ~/workspace/notification-service
prompt: migrate-to-v3.txt

All three agents run in separate panes within the "swarm" tmux window. Each has its own working directory, its own Claude Code session, and its own output stream.

How Do I Monitor Multiple Agents From My Phone?

Monitoring a swarm from your desk means squinting at tiny tmux panes. Monitoring from your phone with ClawTab Remote is actually easier - each agent appears as a separate job in your jobs list, with its own status, log stream, and notification cards.

When any agent in the swarm asks a question, you get a push notification identifying which pane and which project. Tap it to see the full context and respond. The other agents keep working while you answer.

The jobs list on your phone shows all running agents at a glance:

  • Agent status (running, waiting for input, completed, failed)
  • Last output line as a preview
  • Time elapsed since the job started
  • Which panes have auto-yes enabled

You can also stream live logs from any individual agent by tapping into it. The log view shows the full terminal output, scrollable and searchable.

For teams, workspace sharing lets colleagues see and respond to your swarm's agents. Useful when you're running a large migration and want someone else to handle questions while you focus on reviewing the output.

If you prefer asynchronous monitoring, Telegram integration sends batched log output and completion alerts to a Telegram chat. The bot waits for natural pauses in agent output before sending, so you get readable summaries instead of a flood of messages.

ClawTab desktop app showing job logs and run history for a running Claude Code agent
Each agent in the swarm gets its own log stream, run history, and status in the ClawTab dashboard

Auto-Yes Mode for Unattended Swarms

A swarm of 8 agents will generate a lot of permission prompts. Claude Code asks before writing files, running commands, and installing packages. Manually approving each prompt across 8 agents is a full-time job - and defeats the purpose of running them in parallel.

Auto-yes mode solves this. Enable it per-pane, and ClawTab automatically accepts permission prompts for that agent. The detection runs at double polling speed (every 500ms) and picks the most conservative "yes" option available - preferring "Yes, during this session" over a blanket "Yes".

The recommended pattern for swarms:

  • Enable auto-yes on agents doing well-defined, repetitive work (migrations, test generation, formatting)
  • Keep manual approval on agents doing exploratory or high-risk work (architecture changes, production deploys)

You can toggle auto-yes for individual panes from your phone at any time. The auto-yes banner at the top of the jobs list shows exactly which panes are in auto-accept mode, with a disable button for each one.

Practical Swarm Patterns

Here are concrete swarm configurations that work well in production:

Migration swarm. You're upgrading an API version across multiple services. Each agent gets the same migration prompt but a different service directory. They run independently since each service is a separate codebase. Launch 5-10 agents at once, enable auto-yes on all of them, and review the PRs when they finish.

Test generation swarm. Point agents at different packages within a monorepo, each with a prompt to generate unit tests for untested functions. Agents won't conflict because they're writing to different directories. Good candidate for auto-yes since test files are low-risk writes.

Multi-repo code review. Schedule agents across your team's active repos to review open PRs every morning. Each agent runs in its own pane, reads the repo's PRs via GitHub API, and posts review comments. Assign a GITHUB_TOKEN via secrets management so each agent can authenticate.

Refactor + test + lint pipeline. Three agents on the same repo, staggered by a few minutes: one refactors, one generates tests for the changed code, one runs the linter and fixes violations. Use cron offsets (e.g., 0 9, 10 9, 20 9) to sequence them loosely.

PatternAgentsAuto-YesConflict RiskBest For
Migration swarm5-10YesNone (separate repos)API upgrades, dependency bumps
Test generation3-6YesLow (separate dirs)Coverage gaps, new modules
Multi-repo review3-8NoNone (read-only)Morning PR reviews
Staggered pipeline2-3MixedMedium (same repo)Refactor chains

Resource Management and Rate Limits

Running multiple Claude Code agents hits real constraints. Here's what to watch for and how to manage it:

Claude API rate limits. Each agent makes API calls to Anthropic's Claude API. Your account has a requests-per-minute and tokens-per-minute limit. Running 10 agents simultaneously can exhaust your rate limit quickly, causing agents to stall or fail. Start with 3-4 agents and increase based on your plan's limits. The Anthropic rate limits documentation has the current numbers for each tier.

Memory. Each Claude Code process consumes 200-500MB of RAM depending on context size. Ten agents means 2-5GB. Monitor with htop or Activity Monitor and adjust your swarm size accordingly. macOS will start swapping aggressively past 90% memory usage, which slows everything down.

tmux buffer size. Each pane's scrollback buffer grows as the agent produces output. Long-running agents can accumulate large buffers. ClawTab reads the visible terminal content for monitoring, not the full history, so buffer size doesn't affect polling performance - but it does consume memory. Consider setting set-option -g history-limit 5000 in your ~/.tmux.conf to cap it.

File system contention. Agents writing to the same repository at the same time will cause git conflicts. The safest pattern is one agent per repository, or agents that write to non-overlapping directories within a monorepo. If you must have multiple agents on the same repo, use separate branches.

ResourcePer AgentRecommendation
RAM200-500 MBKeep total under 80% of system memory
API rate limitVaries by planStart with 3-4 agents, scale up gradually
tmux buffer~1-5 MBSet history-limit to 5000 lines
CPULow (I/O bound)Not usually the bottleneck

The polling overhead from ClawTab itself is minimal. Each pane adds one async task reading terminal output every 2 seconds, plus the 200ms exit poller. Even with 20 panes, the total polling load is negligible.

Frequently Asked Questions

Create multiple jobs in ClawTab targeting the same tmux window. When you run them, ClawTab automatically splits a new pane for each agent. Each agent gets its own isolated session, monitoring task, and log stream. You can launch them manually with 'Run Now' or schedule them with cron expressions so they all fire simultaneously.

When a job targets a tmux window that already has a running pane, ClawTab splits the window into a new pane instead of creating a new window. Each pane gets its own run ID, a monitoring task that polls every 2 seconds, and a fast exit poller at 200ms. The splitting happens automatically - you just create the jobs and ClawTab handles the layout.

There's no hard limit from ClawTab's side. The practical limit depends on your Claude API rate limits (requests and tokens per minute for your plan tier), available RAM (each agent uses 200-500MB), and file system contention. Most developers run 3-8 agents comfortably. Start with 3-4 and scale up based on your account's rate limits.

Yes. ClawTab Remote shows all running agents in a single jobs list on your phone. Each agent appears with its status, last output preview, and elapsed time. You get push notifications when any agent asks a question or completes. Tap into any agent to stream its live logs. Teammates can also monitor via workspace sharing.

The safest pattern is one agent per repository or one agent per directory within a monorepo. If multiple agents must work on the same repo, have them use separate git branches. For migration swarms across microservices, each agent works on its own service directory so there's no overlap.

Combine ClawTab's cron scheduling with auto-yes mode. Schedule all swarm jobs with the same cron expression so they launch together. Enable auto-yes on agents doing well-defined work like migrations or test generation. Keep manual approval on exploratory agents. Monitor from your phone or via Telegram notifications.

ClawTab runs agents in native tmux panes with full terminal access, unlike sandboxed cloud solutions like Devin. Each agent uses standard Claude Code with no special plugins. ClawTab adds per-pane auto-yes, remote monitoring from your phone, push notifications, and workspace sharing for teams - features that IDE-based tools like Cursor and VS Code Copilot don't offer for parallel agent workflows.

Claude Code Agent Teams uses a lead/worker pattern where one agent coordinates subtasks across isolated git worktrees. It's great for interactive sessions where you decompose a large task in real time. ClawTab runs independent agents, each with its own schedule, secrets, and auto-yes policy, monitored from your phone. ClawTab is better for background automation (overnight jobs, migration swarms, scheduled reviews), while Agent Teams excels at interactive, coordinated coding sessions.

Related Articles

Claude Code Parallel Agents in tmux: Run 8+ Sessions Side by Side
-10 min read

Claude Code Parallel Agents in tmux: Run 8+ Sessions Side by Side

Run 8+ Claude Code parallel agents in tmux panes with git worktrees per session. How worktrees, tmux panes, and Agent Teams compare in 2026, when 5x parallelism is worth 5x tokens, and two copy-paste swarm configs you can run today.

claude-codeparallel-agentstmuxgit-worktreesagent-teamsmulti-agent
Claude Code Agent Teams Alternative: Run Unattended Multi-Agent Swarms With ClawTab
-9 min read

Claude Code Agent Teams Alternative: Run Unattended Multi-Agent Swarms With ClawTab

Claude Code Agent Teams is an experimental team-lead pattern for a single interactive session. It doesn't cover scheduled, unattended, or phone-monitored runs. Here's how ClawTab's flat-tmux model complements Agent Teams - with side-by-side screenshots comparing Nimbalyst (Crystal), Claude Flow (Ruflo), Overstory, ccswarm, and oh-my-claudecode.

claude-codeagent-teamsmulti-agenttmuxcomparisonalternativeorchestration
Claude Code on Your Phone: Remote Control AI Agents From iOS, Android, or Browser
-6 min read

Claude Code on Your Phone: Remote Control AI Agents From iOS, Android, or Browser

Run Claude Code on your Mac and answer agent questions from your phone. Live log streaming, push notifications, permission prompt detection, and multi-viewer support - works with iOS, Android, and any browser via ClawTab Remote. A practical alternative to Claude Code's built-in Remote Control.

remotemobileagents
Claude Code Cron Jobs: Schedule Persistent AI Agents That Survive Reboots
-7 min read

Claude Code Cron Jobs: Schedule Persistent AI Agents That Survive Reboots

Set up Claude Code agents on a cron schedule that keeps running even after a reboot. ClawTab injects Keychain secrets, auto-approves permission prompts, and pushes alerts to your phone — compare with Claude Code /schedule and /loop.

cronautomationscheduling
Claude Code Auto-Yes: Auto-Approve Permission Prompts Per-Pane (Toggle from Your Phone)
-5 min read

Claude Code Auto-Yes: Auto-Approve Permission Prompts Per-Pane (Toggle from Your Phone)

Stop babysitting Claude Code permission prompts. ClawTab's auto-yes accepts them automatically per-pane — safer than --dangerously-skip-permissions, works with any plan, and can be toggled on or off from your phone in one tap.

auto-yesagentsremoteautomation
Search, Filter, and Sort Your Claude Code Jobs in ClawTab
-5 min read

Search, Filter, and Sort Your Claude Code Jobs in ClawTab

Find any running Claude Code agent instantly. Real-time filtering by job name or group, keyboard shortcuts, and three sort modes across all your ClawTab jobs.

searchfiltersortjobsproductivitydashboard