> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 空间

> 空间会将某个任务或项目的所有 Agent 会话、PR、文件和上下文整合到 Agent Command Center 的单一视图中。

空间是你在 [Agent Command Center](/zh/desktop/agent-command-center) 中组织工作的方式。

空间会将与特定任务或项目相关的所有内容整合到一个视图中：Agent 会话、PR、文件和上下文。例如，一个“Onboarding Flow Redesign”空间可能包含一个用于制作 UI 原型的本地 Cascade 会话，以及两个负责处理 API 变更和编写测试的 cloud Devin 会话。

<Note>
  默认情况下，每个会话本身都是一个空间，即使界面中没有将其显示为空间。你无需创建空间即可开始工作；你可以在需要时随时将多个会话归到同一个共享空间中。
</Note>

<div id="what-lives-in-a-space">
  ## 空间 中有哪些内容
</div>

空间 将你处理任务所需的一切集中在一起，让你无需来回切换上下文：

* **Agent 会话** — 为此任务运行的本地 Cascade 会话和云端 [Devin](/zh/desktop/devin) 会话。
* **拉取请求** — 由你或在 空间 中工作的 Agent 创建的 PR。
* **文件** — 与任务相关的文件。
* **上下文** — 空间 中新会话会继承的项目级上下文。

<div id="context-is-shared-across-sessions">
  ## 上下文会在各个会话间共享
</div>

当你在某个 空间 中创建新会话时，它会继承该 空间 已经掌握的所有项目相关信息。这意味着新的 Agent 无需你每次都重新说明项目情况，即可立即开始工作。

<div id="switching-between-spaces">
  ## 在 Spaces 之间切换
</div>

当你返回某个 空间 时，界面会恢复到你离开时的状态，与你离开时完全一致。

在 Spaces 之间切换和在任务之间切换类似——只不过现在每个任务里都有一个 Agent 团队在其中工作。

<video autoPlay controls muted loop playsInline className="w-full aspect-video" src="https://exafunction.github.io/public/images/blog/windsurf-2-0/user-switching-between-spaces.mp4" />

<div id="creating-a-space">
  ## 创建 空间
</div>

创建新 空间 有几种方式：

* **将一个会话拖到另一个会话中。** 在侧边栏中，将任意会话拖到一个现有会话上，即可将它们归为同一个 空间。
* **在分屏窗格中打开新会话。** 按 `Cmd/Ctrl+\` 拆分当前窗格，然后在空白窗格中点击 **New Session**，即可在同一个 空间 中启动新会话。
* **使用 `Cmd/Ctrl+T`。** 这会在当前 空间 中打开一个新会话。

<video autoPlay controls muted loop playsInline className="w-full aspect-video" src="https://exafunction.github.io/public/images/blog/windsurf-2-0/add-session-to-space.mp4" />
