← Back to news
VS Code 1.141: Run Multiple Agents Without Losing Control

Photo: Sebastiaan ter Burg / Wikimedia Commons / CC BY 2.0 (https://creativecommons.org/licenses/by/2.0/). Wikimedia Hackathon 2013; illustration, not a VS Code 1.141 screenshot.

24/10/2026

VS Code 1.141: Run Multiple Agents Without Losing Control

VS Code 1.141: productivity moves from prompts to session operations

The useful question about coding agents is no longer simply whether they can write a function. It is whether an engineer can keep several tasks moving without losing track of the workspace, the running commands, the evidence, or the next decision. Visual Studio Code 1.141, released on October 7, brings a practical answer: better operations around agent sessions. The official release page also lists maintenance updates, including security fixes in 1.141.1 and further fixes in 1.141.2.

The interesting changes are not another claim of autonomous engineering. They are session grids, visible background shells, continuity with supported external conversations, and worktree cleanup. Together, these features can reduce the coordination tax around AI-assisted work. This guide explains how to use them in a controlled workflow. The scenarios are recommended engineering patterns, not benchmarks or reports of a hands-on evaluation of this release.

Understand the three objects before opening more agents

VS Code is the editor and supervision interface. An agent harness coordinates a model, its tools, and its execution behavior. A session groups a workspace, code changes, and one or more conversations. These distinctions matter because changing the model does not change the harness, and opening another chat does not necessarily create an isolated checkout.

The Copilot harness uses the Copilot SDK and runs in the Agent Host. The Local harness runs through the extension host and has different lifecycle behavior. Claude and Codex integrations have their own requirements. Cloud is an execution target rather than one universal harness. Choose the configuration deliberately instead of assuming every agent visible in the editor has identical capabilities.

Most importantly, multiple chats within one supported session share its workspace and worktree. They have separate histories, not separate files. For independent implementations, use separate worktree-isolated sessions. For related analysis of one change, shared chats can be useful, provided you explicitly prevent competing writes.

Install, update, and check access without guessing

Download the stable desktop build from the official VS Code download page, selecting the package for your operating system and architecture. Existing installations can use Check for Updates. Teams reproducing this particular workflow should consult the 1.141 release page and prefer an appropriate patched build rather than the initial release. Respect centrally managed update policies instead of bypassing them.

Sign in with the account your organization authorizes for Copilot, then check the harness picker in chat. Select Copilot when you want the shared Agent Host workflow described here. Availability depends on the installed version, account entitlement, organizational policy, and integration. Do not assume the free editor implies unrestricted model access, unlimited requests, or entitlement to every agent.

Start in a disposable repository or a noncritical branch. Confirm that a small session can read a file, propose a bounded change, and run an approved test. Check the documentation for your actual harness before adding Codex, Claude, remote hosts, or custom tools. The sources section provides the official download, release, harness, session-management, and sandbox guides.

Establish a baseline before delegating implementation

Before asking for changes, record the branch, checkout path, current commit, and existing modifications. Run git status --short, git branch --show-current, and git rev-parse HEAD in the intended checkout. These are inspection commands, not substitutes for understanding the repository. Do not let an agent discard a colleague's uncommitted work to obtain a clean baseline.

Next, identify the real build and test entry points from repository documentation and CI configuration. Capture one baseline result for the relevant test area. A failure that already exists must not become evidence that the new patch is harmless; document it separately. Conversely, an agent should not spend an afternoon repairing unrelated infrastructure just because the first test command failed.

Give the task an acceptance contract: intended behavior, allowed files, compatibility constraints, verification commands, and stopping conditions. State who can approve a dependency change, a migration, or a release. The editor helps you supervise execution; it does not decide which business behavior is correct.

Use the session grid as a review board, not a cockpit decoration

The Agents window supports arranging sessions in horizontal and vertical splits. Drag sessions into a grid and resize the panes to compare work without constantly changing tabs. A useful starting layout is one implementation session, one read-only investigation session, and the engineer's own editor and test output. Increase concurrency only when review remains tractable.

For example, let one session locate an API regression while another investigates the existing integration-test fixtures. Keep the implementation in a dedicated worktree. Ask the investigation session for file paths, symbols, and unresolved questions, not a simultaneous patch to those same files. Compare their findings before authorizing edits.

The benefit is reduced navigation and repeated context reconstruction. The danger is mistaking visible activity for progress. A pane that continually emits text can still be pursuing a wrong hypothesis. At each checkpoint, ask what changed, what evidence was produced, and what decision is required from you.

Use case one: repair a regression with a bounded evidence trail

Consider a pagination bug that duplicates a record between pages. Start with a narrow instruction: trace the cursor calculation and sort order, identify the relevant tests, and propose a reproducer without changing production code. Ask the agent to distinguish observed repository behavior from assumptions about the database or API contract.

Review the reproducer yourself. Does it express the customer-visible failure, or merely a convenient internal detail? Approve the test and then allow a minimal patch in the isolated implementation session. A second conversation can inspect boundary conditions such as equal timestamps, empty pages, and backwards navigation without touching the implementation.

Require the agent to report the exact verification command, execution result, and remaining uncertainty. Rerun the relevant checks through the team's normal process before merging. The productivity gain comes from accelerating the search and test scaffolding while keeping the specification and final review human-owned. An eloquent explanation alone is not a regression test.

Use case two: investigate a slow build without blocking everything

Long-running commands are a common source of wasted attention. In Copilot harness sessions, the Background Shells pill lists commands still running, with elapsed time, and lets you inspect available output. This is useful when a build or test job can run while the agent performs another independent step.

For a slow integration suite, authorize one baseline run and ask a separate, read-only investigation to map the fixtures and expensive setup. Keep profiling changes distinct from product changes. When the shell finishes, verify its exit status and logs rather than treating its disappearance from the running list as proof of success.

Check for duplicate test runs, orphaned services, port conflicts, and writes to shared temporary directories. A worktree separates source files, not every external resource. Two sessions can still collide on the same database or container name. Give each task isolated fixtures where feasible, and stop background services through the team's normal cleanup procedure.

Use case three: prepare a dependency upgrade with independent checks

A library upgrade is a good candidate for decomposition. One session can map imports and compatibility risks. Another can prepare a constrained implementation in its own worktree. A third can inspect the migration guide or draft a verification checklist. Keep one integration owner, rather than giving every session authority to edit the lockfile.

Ask for a list of affected interfaces, changed defaults, and tests covering those interfaces. Require explicit approval before broad version bumps, new packages, or generated-file churn. Review the manifest and lockfile together. A successful installation is not evidence that runtime behavior or deployment compatibility remains unchanged.

The grid makes discrepancies easier to spot: an investigator may identify a removed option while the implementation agent overlooks it. Treat that disagreement as a review input. Integrate only after targeted tests, the normal CI suite, and any required security checks pass. Parallel investigation can save attention; parallel, uncoordinated dependency editing usually creates more work.

Use case four: continue terminal work in the editor

The release improves continuity for local external Copilot conversations: new sessions from the CLI or Copilot app can appear without reloading once the first request has been sent. Use the Created In and Created Externally filters to locate them. This can remove the ritual of copying a long terminal conversation into an editor chat.

Codex handoff has important qualifications. The documented workflow supports continuing compatible local conversations from the ChatGPT app or Codex CLI in the Agents window on the same machine. Enable the appropriate Codex integration and consult its requirements. The Codex extension's editor-only sessions are not equivalent to the experimental Agent Host integration.

Only one application can send messages to a handed-off Codex chat at a time. If another application owns it, exit that CLI session or fully quit the relevant app, then use Retry. Before resuming, inspect the checkout and pending changes. Preserved conversation history is useful context, not a guarantee that its description of the files is still current.

Use case five: turn repository exploration into a reusable handoff

On an unfamiliar service, ask a read-only session to map the path from request routing to persistence and tests. Demand concrete file references, configuration entry points, and a list of questions it could not resolve. Do not request a broad architecture essay that cannot be checked against the repository.

Use another conversation for a focused question, such as where authorization is enforced or how a background job is retried. When these conversations share a session, remember that they share the working directory. Keep them nonwriting until one engineer approves an implementation scope.

Convert the verified findings into a small handoff: relevant paths, observed behavior, commands run, and open decisions. Review it before placing it in team documentation. This can reduce repeated onboarding searches and interrupted senior-developer time. It can also spread confident mistakes if you publish an unverified model summary as authoritative architecture.

Clean up worktrees without deleting the evidence you need

Run Chat: Open Worktree Cleanup to inspect inactive session worktrees and their storage use. The cleanup interface lets you filter by inactivity, review sizes, and select what to remove. It also offers configuration for automatic cleanup of sessions with merged pull requests and suggestions when inactive storage accumulates.

According to the release notes, cleanup marks selected sessions as done and deletes their worktrees. Active, running, needs-input, and pinned sessions are protected. A session can later be restored to recreate its worktree. Do not interpret that as a promise that every uncommitted artifact or external process will be recoverable.

Before cleanup, verify that the branch and intended changes are preserved, required logs are attached to the review, and no one still needs local artifacts. Use a retention policy appropriate to the repository. Disk recovery is welcome, but reproducibility and accountability matter more than an aggressively tidy session list.

Put permissions and isolation underneath the interface

VS Code 1.141 documents Copilot Agent Host sandboxing across Windows, macOS, and Linux, subject to platform prerequisites. Enable chat.agent.sandbox.enabled where appropriate, inspect the session's terminal sandboxing control, and read the platform guide. For remote sessions, paths and enforcement refer to the execution host, not necessarily the laptop displaying the editor.

Approvals and sandboxing solve different problems: approval decides whether an action can run; sandboxing restricts resources available to supported operations. The documentation explicitly warns that enabling the sandbox does not block outbound networking by default. Configure network permissions separately and grant only the destinations and paths the task actually needs.

This is not a virtual machine, a separate user account, or a replacement for endpoint security. Locally launched MCP and language servers are relevant to the permission review as well. Avoid production credentials, broad home-directory access, and unrestricted deployment tools. No arrangement of session panes can compensate for an unnecessarily privileged agent.

Handle instructions, secrets, and review as separate trust boundaries

Repository text, issue comments, retrieved pages, and tool responses may contain hostile or simply incorrect instructions. An agent should treat them as evidence to evaluate, not authorization to widen scope. Keep permitted actions in trusted team policy and require a fresh human decision when a task needs a new credential, network destination, or destructive operation.

Before sharing session exports or logs, inspect them for secrets and confidential code. A transcript can contain command arguments, environment details, and sensitive diagnostic output. Session continuity improves convenience; it also makes data-handling rules important across interfaces and providers.

For the final pull request, require a concise intent statement, a reviewable diff, the actual commands executed, and known gaps. Do not count two agents agreeing as independent validation when both used the same incorrect assumption. Human review and independently executed tests remain the release gate, with protected branches enforcing the team's process.

Know the limitations before promising a speedup

These features improve coordination, not model correctness. More sessions can increase token spending, CPU use, disk growth, and review load. Background work can continue beyond an editor window in supported Agent Host workflows while the required application and host remain running; closing a window is not the same as quitting the application. Check lifecycle behavior for the selected harness.

Availability and settings can vary with account policy, feature rollout, platform, and integration. Experimental features should be evaluated separately from stable release capabilities. Shared chats can interfere with each other's edits, and separate worktrees still share external services unless you isolate those too.

Neither the official notes nor this workflow establish a universal productivity percentage. The practical opportunity is narrower and more credible: fewer repeated explanations, less tab switching, clearer visibility into long commands, and less abandoned checkout storage. Measure whether those savings exceed the additional orchestration and review costs on your own repository.

Run a small adoption experiment, then decide

Choose several low-risk tasks representative of your maintenance backlog. Keep scope and acceptance criteria explicit. Compare the normal workflow with a supervised session workflow, tracking elapsed time, engineer attention, rework, review comments, CI failures, and cleanup effort. Record model and harness choices so a changed configuration does not masquerade as a process improvement.

Start with one writer and one investigator. Stop a session when it repeats an unsupported hypothesis, expands scope without permission, or cannot produce verifiable results. Keep the useful artifact even when the proposed patch is rejected: a reproducer, a dependency map, or a precise explanation of an unresolved failure can still save engineering time.

The adoption criterion should be simple: can an engineer understand the state of the work, verify the result, and stop or redirect execution? VS Code's session operations are valuable when they make that control cheaper. Agents can accelerate implementation and investigation; humans remain responsible for intent, integration, and the decision to ship.