Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
dafc6a6
Add Parallel Agents docs and update AI overview and agent panel
macraig Apr 9, 2026
acb5a33
Tweak parallel agents docs based on feedback
macraig Apr 9, 2026
249a4e7
Tiny edits
katie-z-geer Apr 10, 2026
038b59c
Update parallel agents docs for accuracy
macraig Apr 15, 2026
2ed667b
New UI updates and some tweaking
macraig Apr 16, 2026
85b77a2
Merge remote-tracking branch 'origin/main' into docs/parallel-agents
macraig Apr 17, 2026
aa8513f
further tweaks
macraig Apr 17, 2026
a7ba97d
fix ToggleArchive naming error
macraig Apr 17, 2026
36b63c6
Merge remote-tracking branch 'origin/main' into docs/parallel-agents
macraig Apr 20, 2026
44548f3
update to reflect latest UI changes
macraig Apr 20, 2026
4e302ff
Merge branch 'main' into docs/parallel-agents
maxbrunsfeld Apr 20, 2026
01f7c2a
Rephrase description of archiving, update archive action
maxbrunsfeld Apr 20, 2026
23101c6
small tweak
macraig Apr 20, 2026
90de4fb
update multi-project workspace section
macraig Apr 20, 2026
5f7599f
more tweaks
macraig Apr 21, 2026
391d2f1
Merge remote-tracking branch 'origin/main' into docs/parallel-agents
macraig Apr 21, 2026
4957f5a
Add hooks
macraig Apr 21, 2026
5c145f9
Merge branch 'main' into docs/parallel-agents
macraig Apr 21, 2026
aaeb941
Merge remote-tracking branch 'origin/main' into docs/parallel-agents
macraig Apr 21, 2026
21af262
Merge remote-tracking branch 'origin/docs/parallel-agents' into docs/…
macraig Apr 21, 2026
50e351a
Tweak wording for projects and folders
macraig Apr 21, 2026
f3dcbed
Update docs/src/tasks.md
macraig Apr 21, 2026
91d76a1
Clarify worktrees are part of the same project
macraig Apr 21, 2026
ea5cba7
Merge remote-tracking branch 'origin/docs/parallel-agents' into docs/…
macraig Apr 21, 2026
05deb86
Merge remote-tracking branch 'origin/main' into docs/parallel-agents
macraig Apr 21, 2026
cf6718e
Apply suggestions from code review
macraig Apr 22, 2026
8c85923
Update agent-panel.md
macraig Apr 22, 2026
6cbcbd6
Merge branch 'main' into docs/parallel-agents
macraig Apr 22, 2026
5e29bc5
Merge branch 'main' into docs/parallel-agents
macraig Apr 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [Tools](./ai/tools.md)
- [Tool Permissions](./ai/tool-permissions.md)
- [External Agents](./ai/external-agents.md)
- [Parallel Agents](./ai/parallel-agents.md)
- [Inline Assistant](./ai/inline-assistant.md)
- [Edit Prediction](./ai/edit-prediction.md)
- [Rules](./ai/rules.md)
Expand Down
12 changes: 2 additions & 10 deletions docs/src/ai/agent-panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ By default, the Agent Panel uses Zed's first-party agent.

To choose another agent, go to the plus button in the top-right of the Agent Panel and pick one of the [external agents](./external-agents.md) installed out of the box.

Manage multiple threads at once with the [Threads Sidebar](./parallel-agents.md#threads-sidebar).
Comment thread
macraig marked this conversation as resolved.
Resolved

### Editing Messages {#editing-messages}

Any message that you send to the model is editable.
Expand Down Expand Up @@ -71,16 +73,6 @@ In long conversations, use the scroll arrow buttons at the bottom of the panel t

When focus is in the message editor, you can also use {#kb agent::ScrollOutputPageUp}, {#kb agent::ScrollOutputPageDown}, {#kb agent::ScrollOutputToTop}, {#kb agent::ScrollOutputToBottom}, {#kb agent::ScrollOutputLineUp}, and {#kb agent::ScrollOutputLineDown} to navigate the thread, or {#kb agent::ScrollOutputToPreviousMessage} and {#kb agent::ScrollOutputToNextMessage} to jump between your prompts.

### Navigating History {#navigating-history}

To quickly navigate through recently updated threads, use the {#kb agent::ToggleNavigationMenu} binding when focused on the panel's editor, or click the menu icon button at the top right of the panel.
Doing that will open a dropdown that shows you your six most recently updated threads.

To view all historical conversations, reach for the `View All` option from within the same menu or via the {#kb agent::OpenHistory} binding.

Thread titles are auto-generated based on the content of the conversation.
But you can also edit them manually by clicking the title and typing, or regenerate them by clicking the "Regenerate Thread Title" button in the ellipsis menu in the top right of the panel.

### Following the Agent {#following-the-agent}

Follow the agent as it reads and edits files by clicking the crosshair icon at the bottom left of the panel.
Expand Down
5 changes: 4 additions & 1 deletion docs/src/ai/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Zed's AI features run inside a native, GPU-accelerated application built in Rust

## Agentic editing

The [Agent Panel](./agent-panel.md) is where you work with AI agents. Agents can read files, edit code, run terminal commands, search the web, and access diagnostics through [built-in tools](./tools.md).
The [Threads Sidebar](./parallel-agents.md#threads-sidebar) is where you organize agent work. Start a thread, give it a task, and the agent reads, edits, and runs code through [built-in tools](./tools.md). You can run multiple threads at once, each using a different agent and working against different projects.
Comment thread
macraig marked this conversation as resolved.
Resolved

The [Agent Panel](./agent-panel.md) is the conversation view for the active thread. Use it to send prompts, review changes, add context, and interact with the agent as it works.

You can extend agents with additional tools through [MCP servers](./mcp.md), control what they can access with [tool permissions](./tool-permissions.md), and shape their behavior with [rules](./rules.md).

Expand All @@ -33,6 +35,7 @@ The default provider is Zeta, Zed's open-source model trained on open data. You
## Getting started

- [Configuration](./configuration.md): Connect to Anthropic, OpenAI, Ollama, Google AI, or other LLM providers.
- [Parallel Agents](./parallel-agents.md): Run multiple threads at once with the Threads Sidebar.
- [External Agents](./external-agents.md): Run Claude Agent, Codex, Aider, or other external agents inside Zed.
- [Subscription](./subscription.md): Zed's hosted models and billing.
- [Privacy and Security](./privacy-and-security.md): How Zed handles data when using AI features.
Expand Down
74 changes: 74 additions & 0 deletions docs/src/ai/parallel-agents.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
title: Parallel Agents - Zed
description: Run multiple agent threads concurrently using the Threads Sidebar, manage them across projects, and isolate work using git worktrees.
---

# Parallel Agents

Parallel Agents lets you run multiple agent threads at once, each working independently with its own agent, context window, and conversation history. The Threads Sidebar is where you start, manage, and switch between them.

Open the Threads Sidebar with {#kb multi_workspace::ToggleWorkspaceSidebar}.

## Threads Sidebar {#threads-sidebar}

The sidebar shows your threads grouped by project. Each project gets its own section with a header. Threads appear below with their title, status indicator, and which agent is running them.

To focus the sidebar without toggling it, use {#kb multi_workspace::FocusWorkspaceSidebar}. To search your threads, press {#kb agents_sidebar::FocusSidebarFilter} while the sidebar is focused.

Comment thread
macraig marked this conversation as resolved.
Resolved
### Switching Threads {#switching-threads}

Click any thread in the sidebar to switch to it. The Agent Panel updates to show that thread's conversation.

For quick switching without opening the sidebar, use the thread switcher: press {#kb agents_sidebar::ToggleThreadSwitcher} to cycle forward through recent threads, or hold `Shift` while pressing that binding to go backward. This works from both the Agent Panel and the Threads Sidebar.

### Archive {#archive}

The archive holds all your threads. Toggle the archive with {#kb agents_sidebar::ToggleArchive} or by clicking the archive icon in the sidebar bottom bar.

To archive a thread, hover over it in the sidebar and click the archive icon that appears. You can also select a thread and press {#kb agent::RemoveSelectedThread}. Running threads cannot be archived until they finish.

To restore an archived thread, open the archive and click the thread you want to bring back. Zed unarchives it, moves it back to the thread list, and opens it in the Agent Panel. If the thread was running in a git worktree that was deleted when archived, Zed restores the worktree automatically.

To permanently delete a thread, open the archive, hover over the thread, and click the trash icon. This removes the thread's conversation history and cleans up any associated worktree data. Deleted threads cannot be recovered.

You can search your archived threads; search will fuzzy match on thread titles.
Comment thread
macraig marked this conversation as resolved.
Resolved

### Importing External Agent Threads {#importing-threads}

When the archive is open, an **Import ACP Threads** button appears in the sidebar bottom bar. Click it to open the import modal, which lists your installed external agents. Select the agents whose threads you want to import and confirm. Zed finds threads from those agents, whether they were started in Zed or in another client, and adds them to your thread archive.
Comment thread
macraig marked this conversation as resolved.
Resolved

## Running Multiple Threads {#running-multiple-threads}

Start a new thread with {#action agent::NewThread}. Each thread runs independently, so you can send a prompt, open a second thread, and give it a different task while the first continues working.

To start a new thread scoped to the currently selected project in the sidebar, use {#action agents_sidebar::NewThreadInGroup}.

Each thread can use a different agent. Click the new thread menu in the Agent Panel toolbar to choose between Zed Agent and any installed [external agents](./external-agents.md). You might run Zed's built-in agent in one thread and an external agent like Claude Code or Codex in another.

## Multiple Projects {#multiple-projects}

The Threads Sidebar can hold multiple projects at once. Each project gets its own group with its own threads and conversation history.

Within a project, you can add multiple folders from a local or remote project. Use {#action workspace::AddFolderToProject} from the command palette, or select **Add Folder to Project** from the project header menu in the sidebar. Agents can then read and write across all of those folders in a single thread.

## Worktree Isolation {#worktree-isolation}

If two threads might edit the same files, start one in a new git worktree to give it an isolated checkout.

In the Agent Panel toolbar, click the worktree selector to choose which worktree you want the agent to run in, or create a new one. You can also cycle between the current worktree and a new worktree with {#kb agent::CycleStartThreadIn}.

To change the default for new threads, set `new_thread_location` in your agent settings to `"local_project"` or `"new_worktree"`.

After the agent finishes, review the diff and merge the changes through your normal git workflow. If the thread was running in a linked worktree and no other active threads use it, archiving the thread saves the worktree's git state and removes it from disk. Restoring the thread from the archive restores the worktree.

> **Note:** Starting a thread in a new worktree requires the project to be in a git repository.
Comment thread
macraig marked this conversation as resolved.
Resolved

## Default Layout {#layout}

From version 0.233.0 onward, the Agent Panel and Threads Sidebar are on the left. The Project Panel, Git Panel, and other panels move to the right, keeping the thread list and conversation next to each other. To rearrange panels, right-click any panel icon.
Comment thread
macraig marked this conversation as resolved.
Resolved

## See Also {#see-also}

- [Agent Panel](./agent-panel.md): Manage individual threads and configure the agent
- [External Agents](./external-agents.md): Use Claude Code, Gemini CLI, and other agents
- [Tools](./tools.md): Built-in tools available in each thread
Loading