Products
DeckSpaceLive DeckVoice$19 DeckTest$29 Claude Accounts$14 DeckStudioSoon
More
Docs Changelog Pricing Community Download Start free trial →
Home / DeckSpace / Guides / Run multiple Claude Code instances

Run multiple Claude Code instances at once

You have Claude Code running in one terminal and another job waiting. The obvious move is a second terminal window and a second claude. That works. It is the same binary and the same login, and every pane runs against the CLI account you connected, so parallel sessions draw on that one account in parallel. DeckSpace cannot pool or raise a provider allowance, and its own usage total is not your provider's invoice.

The problem is not the second process. It is the shared working directory. Two agents editing one checkout have no view of each other: each reads a file, decides what to change, and writes back over whatever landed in between. More terminals scale that hazard linearly. Isolation fixes it, and isolation means separate checkouts, not separate windows.

What a second terminal gives you, and what it does not

Both sessions run properly. Each is its own process with its own conversation, its own context and its own permission prompts. What is missing is everything between them.

DeckSpace treats the last point as the important one. A swarm builder never works in your project directory: each task gets its own branch and its own git worktree, so a run you do not want is deleted rather than unpicked.

What a pane is

A pane is a terminal. A pane running an agent is the same terminal with an agent CLI as its process. Underneath, each pane is backed by a real pseudo-terminal, running either a plain shell or the agent binary itself.

DeckSpace ships no model and proxies nothing. It resolves the command on your login-shell PATH and spawns it, so your authentication, your config and your subscription come along unchanged. It is your CLI running, on your machine.

The two launch paths differ. Launching into an existing pane types the command into a shell that is already running, so your profile is sourced as usual. Launching into a new pane makes the CLI the pane's own process, which never sources your profile; the missing variables are injected instead.

A toggle in the DeckSpace interface is not a DeckSpace feature. It is a flag lookup against the CLI you picked. Where that CLI publishes no such flag, the toggle is a silent no-op for that pane: nothing tells you the flag was skipped, and the switch stays lit. Read the flag table in the panes and agent CLIs docs, not the switch.

How to open several Claude Code panes at once

Open the workspace wizard from the + button in the left rail. It has four steps, and two of them matter here.

One CLI is chosen for the whole grid; the wizard has no per-pane picker. Panes whose terminal does not register within eight seconds are skipped, and the pane is there and usable, it just never receives the launch. Afterwards you add panes one at a time with the split buttons in a pane header, or from the command palette, whose layout presets are 1, 2, 4, 6, 8 and 12 with Add pane for anything else.

If you typed a first prompt and asked for more than one terminal, DeckSpace runs your CLI once headlessly to split that goal into one subtask per pane. Any failure in that call — a prompt flag the CLI does not accept, missing auth, a non-zero exit — falls back to filling every pane with your original text, with no error and no toast. If you want genuinely distinct work per pane, write the per-pane instructions yourself.

The pane ceiling

A workspace holds up to 16 panes. Sixteen tile four by four, twelve tile four by three. The two split buttons in a pane header, split right for a new column and split down for one stacked below it, both go disabled once the workspace holds 16.

What happens when you ask for a seventeenth depends on which launcher you used. Every manual path tells you what it did. A swarm launch is the exception, and it is covered below.

Closing a pane kills its shell and any agent inside it, which is how you free a slot. Panes belong to a workspace rather than to the app, so switching workspaces swaps the grid and leaves the hidden one running.

Panes in one directory, or a worktree each

Panes in a single folder are the right shape when the work does not overlap on disk: one agent writing a feature, another reading the test output, a shell you drive yourself for git. They share your checkout because you want them to.

The moment two of them need to write, give them separate checkouts. Swarm splits a goal into tasks and, for each one, runs git worktree add with a new branch pointed at HEAD, then points that builder's pane at the new checkout. Discarding a builder runs git worktree remove --force and then deletes the branch. That flag overrides git's own refusal to remove a worktree with modified files, so a discard throws away uncommitted work with no second prompt. Merge goes the other way: it commits the worktree, writes a checkpoint snapshot of your repo, then merges.

Some limits before you plan around it.

What is still yours to do

Overlap warnings are advisory. Before dispatch, DeckSpace counts how many tasks claim each path and logs a line for any path claimed twice. It is a log line: it does not stop the launch, and it compares only what the planner declared, not what the builders go on to edit.

The real collision check happens later. At review time the merge is predicted with git merge-tree --write-tree against your current HEAD, without mutating anything, and the conflicting paths are listed on the task card. Choosing which implementation wins is yours. Nothing merges on its own.

Two things are worth planning around. Panes and their processes die with the app, so reopening a swarm run adopts it rather than restarting it: the plan, the branches and the worktrees come back, and nothing is spawned. And because worktrees live under the temp directory, macOS reaps them after a few days; a task whose worktree is gone loses its Review, PR and Merge buttons.

Run the second one where it cannot collide

Up to 16 real terminal panes in a workspace, each running an agent CLI off your own PATH, and swarm workers on their own git worktrees so a run you do not want is deleted rather than unpicked. $24/mo, or $228/yr. The 7-day free trial requires a card. macOS, Windows and Linux.

Start the 7-day free trial

Common questions

Can I run two Claude Code instances at the same time?

Yes. Each instance is its own process with its own conversation and its own permission prompts. Both run off the same login and the same plan allowance, so the limits that apply to one apply across both. The hazard is not the second process but the shared working directory: two agents editing one checkout write over each other, stage into the same git index, and neither can tell you what the other did. If the second agent needs to write, give it its own checkout.

How many agents can I run at once in DeckSpace?

A workspace holds up to 16 panes, tiling four by four at the maximum. A swarm, which gives every worker its own git worktree, truncates the builder list to 12 before any worktree is created, whatever number you typed. If the grid is already full when a swarm launches, the extra panes are not created; the branches and worktrees still exist and you reopen the panes yourself.

Does DeckSpace use my existing Claude Code login?

Yes. DeckSpace ships no model and proxies nothing. It resolves the command on your login-shell PATH and runs that binary inside a real pseudo-terminal, so your authentication, your config and your subscription apply exactly as they do in your own terminal. If a CLI you know is installed is reported as missing, it is a PATH problem: an app launched from the Dock inherits a minimal PATH, and DeckSpace's workaround is a login-shell probe capped at 1.5 seconds that a slow shell profile can silently outrun.

What stops two agents from editing the same file?

Nothing, while they share a directory. In a swarm each builder gets its own branch and its own git worktree, so the work one builder commits stays off the other branches and off your checkout until you merge. That is a git boundary, not a write boundary: nothing stops an agent writing outside its own worktree, and on macOS the sandbox option re-allows the whole temp directory every worktree lives in. DeckSpace also logs an overlap warning when the planner hands two tasks the same path, but that warning is advisory: it does not stop the launch and it compares only declared ownership, not what the builders actually edit. The enforced check is at review, where the merge is predicted with git merge-tree --write-tree against your HEAD.

What does it cost?

DeckSpace is $24/mo, or $228/yr billed annually. It starts with a 7-day free trial, and the trial requires a card on file; cancel before day 7 and you are not charged. Starting a swarm run needs an active subscription, though opening the swarm room to read a previous run does not.