Parallel agents

You can run several agents at the same time: separate chats side by side, subagents working for one chat, spec tasks in parallel, and workflow runs that each work in their own Git worktree so they never touch the files you have open.

Ways to run agents in parallel#

WayWhat runs at onceShares your working files?
Several chatsEach chat is its own agent session, with any agent and modelYes
SubagentsAn agent hands parts of a task to other sessions, even of other agentsYes
Spec tasksRun all Tasks runs the tasks of a wave togetherYes, unless you turn on worktree isolation
Workflow runs for a taskEach run works in its own Git worktree on its own branchNo

IZ Code runs up to 32 agent sessions at once.

Chats and subagents share your checkout; workflow runs each get a worktree
flowchart TD
  subgraph checkout["Your open checkout"]
    C1["Chats"]
    S[Subagents]
  end
  subgraph trees["Separate Git worktrees"]
    W1["izcode/flow/task-a"]
    W2["izcode/flow/task-b"]
  end
  W1 --> R[Review and merge in Source Control]
  W2 --> R

Several chats#

  1. Start another chat Choose New Chat, or New Chat Window to give it its own window. You can also move a chat into the editor area as a tab.
  2. Pick an agent Each chat can use a different agent and model, for example Claude in one and Codex in another, so you can compare answers.
  3. Let them work Chats keep running when you switch between them. The sessions list shows which ones are Running.

Subagents#

An agent can start subagents with sessionSpawnSubAgent to work on parts of a task in parallel, then collect their results. It can also start a separate session with sessionNewSession and send it messages with sessionSendMessage. The Agent Map in the chat header shows every subagent and its status. See Subagents and background tasks.

Spec tasks#

In a spec, Run all Tasks runs tasks in waves. Tasks in the same wave run in parallel, each in its own agent session. Set how many in Settings → Specs → Tasks run in parallel (1 to 8).

To keep these agents away from your checkout, turn on Settings → Specs → Run tasks in their own worktree. The run then works in a Git worktree on the branch izcode/flow/spec-name (named after the spec), and you merge the branch when you are happy. See Specs.

Workflow runs in their own worktree#

When a task's workflow runs, it works in a separate Git worktree, not in the checkout you have open. The run view says Runs in its own worktree on branch …: your open checkout is not changed.

  • The worktree is created outside your project and starts from your current commit. Your untracked files, such as .env, are not copied into it.
  • The run's changes end up as commits on the branch izcode/flow/task-name. Running the task's workflow again continues on the same branch.
  • When the run ends, the worktree is removed. If nothing changed, the branch is removed too. If something went wrong, for example a commit hook refused, the worktree is kept so you can look at it.
  • Tasks, workflows and memory stay in your project's .izcode folder.

Review the branch in Source Control and merge it when you are ready. See Workflows and Tasks.

A folder that is not a Git repository, or has no commit yet, runs live in the folder.

Settings#

SettingValuesDefault
izcode.workflow.taskIsolationworktree, liveworktree
izcode.specs.isolateRunstrue, falsefalse
izcode.specs.maxParallelTasks1–83

izcode.workflow.taskIsolation is read from your user settings only: a project's own settings cannot turn the isolation off. Set it to live to make workflow runs work directly in your checkout.

Last updated: December 1, 2026Was this page helpful?