Workspace Management between Agent and Editor

The workspace management between the Agent window and the main editor needs lots of improvements.

  1. In the agent window, instead of creating a new workspace by selecting the directories, there should be an option to select the .workspace file to load existing workspaces.

  2. In the agent window, I should be able to add another folder to the workspace that is created in the agent window. Every single time I add a new service, I have to create a new workspace with all the old services + the new one.

  3. There should be an option to rename the workspace in the Agent window.

  4. Agent window should also allow to open the workspace from the .workspace file instead of just selecting the directories.

  5. When I open the Agent Window from the editor, it should automatically create a new workspace if not exist.

Hey, thanks for the detailed feedback on workspace management in the Agents Window, it all makes sense.

A couple things you can do today:

  • To reuse an existing multi-root workspace, first open its .code-workspace file in a regular Editor window, then switch to the Agents Window. It’ll show up there as a target. There’s a similar breakdown in this thread: Cursor Agent Window Cannot Open Workspace Files
  • To bundle multiple folders into one named workspace, use Set Up Workspace in the project picker inside the Agents Window.

Directly loading a .code-workspace from the Agents Window, adding a folder to an existing workspace without recreating it, and renaming a workspace aren’t supported yet. I can’t share an ETA right now, but the request is on our radar.

Let me know if the workaround doesn’t cover your case.

+1 — I’d love these features too.

Especially for multi-repo workspaces in the Agents Window:

  • Rename an existing workspace (not just at creation time)
  • Add or remove repos from a workspace without recreating it from scratch every time a service is added

Right now if my setup changes, I have to rebuild the whole workspace. That feels unnecessarily painful for a workflow I use daily.

Hope this helps bump priority — would make multi-repo work in Agents Window much more practical.