Skip to content

Agents App: Support multi-root workspaces with cross-repo change tracking and worktrees #311148

Open

Description

Feature

Support multi-root workspaces (.code-workspace files containing multiple git repositories) in the Agents App, with change tracking and worktree support across all repos in the workspace.

Problem

VS Code supports multi-root workspaces — a .code-workspace file that groups multiple git repositories together. This is how many teams organize related repos by domain:

// backend.code-workspace
{
  "folders": [
    { "path": "./api-service" },
    { "path": "./grpc-service" },
    { "path": "./shared-libs" }
  ]
}
// frontend.code-workspace
{
  "folders": [
    { "path": "./web-app" },
    { "path": "./component-library" },
    { "path": "./design-tokens" }
  ]
}

Each folder in the workspace is its own independent git repo. In VS Code (editor), opening a .code-workspace file discovers all repos, shows them in the SCM Repositories view, and Background Agent sessions offer a repository picker with worktree + diff support.

In the Agents App, this doesn't work:

  1. No multi-root workspace support — There's no way to open a .code-workspace file. You can only open a single folder.

  2. No cross-repo change tracking — Even if you open a parent folder containing multiple repos, the Changes panel doesn't track changes across the child git repos. Changes are invisible unless you switch to VS Code.

  3. No repository picker — When starting a new session, there's no way to select which repo the session should target. The Agents App treats the opened folder as the only context.

  4. No worktree support for child repos — Since the workspace concept doesn't carry over, worktree creation only works if you open a single git repo directly — losing the multi-repo context entirely.

Why this matters

The Agents App is ideal for running parallel sessions across related repos — its lightweight, chat-first UX with multiple sessions side by side is exactly what you want when making coordinated changes. But without workspace support, you're forced to either:

  • Open each repo in a separate Agents App window (losing the ability to see all sessions together)
  • Open a parent folder and lose all git integration (no diffs, no worktrees, no Changes panel)
  • Fall back to VS Code editor for anything involving multiple repos

This affects any team that:

  • Groups related repos into workspaces by domain (backend, frontend, infra, etc.)
  • Makes coordinated changes across services (e.g., API schema change touching 2–3 repos)
  • Uses the Agents App for its parallel session workflow

Concrete scenario

I have a workspace grouping backend services:

// platform.code-workspace
{
  "folders": [
    { "path": "./service-a" },
    { "path": "./service-b" },
    { "path": "./service-c" }
  ]
}

A task like "add a new field to the API schema" requires changes across service-a (data model), service-b (gRPC definition), and service-c (frontend).

What I want in the Agents App:

  1. Open platform.code-workspace
  2. Start Session 1 scoped to service-a → worktree created, Changes panel shows the diff
  3. Start Session 2 scoped to service-b → separate worktree, separate diff
  4. Start Session 3 scoped to service-c → same
  5. See all session changes in one place, merge per-repo

Today none of this works — the Agents App has no concept of a multi-root workspace.

Proposed behavior

  1. Open .code-workspace files — The Agents App should accept workspace files, same as VS Code
  2. Discover all repos in the workspace — Each folder in the workspace that is a git repo should be recognized
  3. Repository picker per session — When starting a new session, show a picker: "Which repo should this session target?" (matching VS Code editor's existing multi-repo agent UX from #290547)
  4. Per-repo worktrees — Create worktrees inside the selected repo, not at the workspace root
  5. Unified Changes panel — Show changes across all active sessions/repos, grouped by repo
  6. Repo label in session list — Each session indicates which repo it targets (as in #291141)

Current workarounds

Workaround Drawback
Open each repo in a separate Agents App window Loses multi-session overview; can't see all work together
Open a parent folder instead of a workspace No git integration — no diffs, no worktrees, no Changes panel
Use VS Code editor instead of Agents App Loses the focused chat-first UX and parallel session workflow

Related issues

  • #309594 — No diffs for non-git folders in Changes panel (agents-app)
  • #309581 — Diff doesn't follow agent into worktrees (agents-app)
  • #311029 — Session scoping issues (agents-app)

Activity

  1. al-k21 commented on Apr 20, 2026

    @al-k21
    Author

    Hi Ladislau Szomoru (@lszomoru), does this issue align with the intended direction for the Agents App? Also, is there currently a recommended approach for working with workspaces that span multiple Git repositories?

  2. devcatalin commented on Jun 25, 2026

    @devcatalin

    This is the only thing that blocks me and my team from using the Agents app.
    We rely on the multi-root workspace support from VSCode and have been using those together with copilot chat sessions heavily.

  3. nick-acosta commented on Aug 19, 2026

    @nick-acosta

    I would like this thank you. My agent agrees.

  4. sandstrom commented on Aug 27, 2026

    @sandstrom

    Would the ability to configure worktree location help? My guess is that it would.

    See this issue #293884 (and please upvote if you agree with it 😄 )

  5. csalvarado commented on Oct 20, 2026

    @csalvarado

    Use case from Windows VS Code 1.142.0: I need one persistent Agents Window project containing two folders from different locations, a game repository and a shared platform repository. I need to choose the primary execution root, attach the second folder as persistent context, retain both across chats, and review changes per repository. The current “attach folder as context” flow is useful for one session, but it is not equivalent to a durable multi-root Workspace/Projects model. Please support opening a .code-workspace, selecting a primary root, and keeping the additional roots available across sessions.

  6. JacobPratherNM commented on Oct 30, 2026

    @JacobPratherNM

    I’d really like to use Agent View more, but without this capability, it’s a pain to move repositories around to give them a shared parent directory.

  7. devtribune commented on Nov 5, 2026

    @devtribune

    Ladislau Szomoru (@lszomoru): Is this being worked upon, or any updates as to when we could expect this feature

  8. added
    feature-request
    on Nov 7, 2026
  9. vs-code-engineering commented on Nov 7, 2026

    @vs-code-engineering
    Contributor

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  10. vs-code-engineering commented on Nov 8, 2026

    @vs-code-engineering
    Contributor

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions