VS Code 1.148: Power-User Guide to Keep-Awake Agents and Dev Containers

Last updated: November 29, 2026

VS Code 1.148, released November 25, 2026, focuses on agents that run unattended. Agent Host chat responses start about 30% faster, agents can keep the machine awake, and remote hosts gain worktree cleanup, experimental Dev Containers and sandbox profiles. Password prompts from agent shell commands now appear in chat.

Contents

What’s new in VS Code 1.148

Stable releases arrived weekly in November (1.146 on November 11, 1.147 on November 18). Our VS Code 1.146 guide covered Inbox mode and the harness change; this guide covers 1.148 and summarizes 1.147 for anyone who skipped it. The main changes in 1.148 are (VS Code 1.148 release notes):

  • Faster agent chat. Responses in the Agent Host begin about 30% faster on average than in the previous Stable version. Microsoft says start times are now within about 5% of the old harness.
  • Keep agents going (Preview). A supported Agent Host can prevent idle sleep during active turns, even after you close the window, and releases the hold shortly after work ends.
  • Redesigned Remote Environments editor. It shows each environment’s status, last activity and operating system.
  • Connection troubleshooting. A Troubleshoot page explains failed connections and offers fixes.
  • Remote worktree cleanup. Reclaim disk space from inactive agent worktrees on connected hosts.
  • Dev Containers and sandbox profiles (Experimental). Isolated Ubuntu containers for agent sessions, and named sandbox rule sets per remote host.
  • Fullscreen MCP Apps, browser and editor updates. MCP Apps get a fullscreen button, the integrated browser supports a custom user agent and HTTP Basic sign-in, and an experimental Rust-based WebAssembly diff algorithm is rolling out.

VS Code 1.148 vs 1.147

The table compares the two most recent Stable releases, based on the official notes for 1.148 and 1.147.

Area VS Code 1.147 (Nov 18) VS Code 1.148 (Nov 25)
Headline Send Later, draft requests, model routers Keep-awake agents, faster chat start, remote Dev Containers
Agents window Scheduled requests, saved drafts, Inbox improvements Inbox auto-advance options, redesigned Remote Environments editor
Models Experimental decision model-based model routers No model changes listed
Remote and isolation Share remotes as GitHub Environments; keep sessions across Dev Container rebuilds Remote worktree cleanup, Create Dev Container, sandbox profiles
Browser Browser use (Preview) lets agents control your default browser Custom user agent and HTTP Basic sign-in
Terminal and security Retry with updated permissions inside the sandbox Password and passphrase prompts answered in chat, not sent to the model
Extension authors Skills over MCP Agent Host Protocol 1.1.0; CLI about 40% smaller

For browser control, see our GitHub Copilot browser use guide.

How to turn on the new agent features

Search for each setting in the Settings editor. Preview and experimental features can change (release notes).

  1. Update VS Code. Use Check for Updates and confirm you are on 1.148.0.
  2. Keep the host awake. Set sessions.keepAwakeWhileWorking to whenPluggedIn (default), always (also on battery) or never.
  3. Turn on Inbox mode. Enable sessions.list.inboxEnabled, then choose sessions.list.inboxAutoAdvance: auto, on, off or newSession.
  4. Allow Dev Containers for agents. Enable chat.agentHost.devContainer.environments.enabled, and optionally chat.agentHost.devContainer.handoff.enabled so an agent can move a task into a new container.
  5. Use sandbox profiles. Enable chat.agent.sandbox.profiles.enabled, run Sandbox: Manage Sandbox Profiles, then assign a profile to each remote in the Remote Environments editor.
  6. Clean up worktrees. Run Chat: Open Worktree Cleanup from the Command Palette, or choose Open Worktree Cleanup in the Chat view menu.
  7. Try the faster diff. Set diffEditor.diffAlgorithm to advanced-wasm. Microsoft reports diffs more than 2x faster at the median.

Shell password prompts in chat are on by default in Copilot harness sessions. To turn them off, set chat.agentHost.copilot.shellAuthentication.enabled to false. If you want to switch Copilot off in the editor instead, see how to turn off GitHub Copilot in VS Code.

Remote agents: Dev Containers, sandboxes and cleanup

Remote agent sessions run on another machine, such as an SSH server, a WSL distribution or a dev tunnel, and you connect to them from the Agents window (Remote agent sessions docs). Version 1.148 adds three tools for managing those hosts.

Dev Containers. These are Ubuntu containers with an Agent Host inside, storing files in a Docker volume. You can create one on your own computer or on a connected SSH host, WSL distribution or dev tunnel that has Docker. No configuration file is needed. With handoff enabled, an agent asked to try something in isolation creates the container on the session’s host, continues in a new session there and can report back when done.

Sandbox profiles. Save sandbox settings under a name and assign one per host, such as open network access for a build server only. The assignment is stored on the remote, so every device that connects uses the same profile. Organization sandbox policies still apply, and the remote needs an up-to-date VS Code Server.

Worktree cleanup. The cleanup editor lists worktrees on hosts that support cleanup and labels each row with its host. Disconnected or unsupported hosts are unavailable.

The docs warn that remote connections give access to the host’s sessions, tools and workspace resources, and that with GitHub environments, conversation content is not end-to-end encrypted (docs). The GitHub side of this setup is covered in our GitHub Copilot app guide.

Power-user tips and limitations

  • Pair keep-awake with Send Later. Version 1.147 added experimental scheduled requests in the Agents window. With keep-awake on, a queued task is less likely to stall when the computer idles.
  • Use handoff for risky experiments. Ask the agent to try a risky upgrade “in an isolated environment” so it moves into a Dev Container.
  • Keep secrets out of prompts. Use sudo -A so the password prompt routes to chat; the answer goes only to the program, not the model.
  • Plan for Autopilot. Prompts that nobody can answer, as in Autopilot, are canceled, so use key-based SSH for unattended runs.

Limitations. Keep-awake is in preview, and Dev Containers, sandbox profiles and Inbox navigation are experimental. The Local harness is deprecated and will be removed in February 2027; the Copilot harness is now the default for new sessions and works with existing Copilot plans (VS Code blog). Microsoft says remote BYOK support for SSH, WSL and Dev Containers in the Copilot harness is still in progress. The release notes do not list new pricing or plan changes. For a terminal alternative, our Copilot CLI 1.0.116 guide covers the CLI that shares the same runtime.

Frequently asked questions

What is new in VS Code 1.148?

Version 1.148, released November 25, 2026, starts Agent Host chat responses about 30% faster, lets agents keep the machine awake, and adds remote worktree cleanup, experimental Dev Containers, sandbox profiles and password prompts in chat.

How do I stop my computer from sleeping while a VS Code agent works?

Use the sessions.keepAwakeWhileWorking setting, which is in preview. The default, whenPluggedIn, prevents idle sleep only on mains power; always also covers battery, and never turns the feature off. It works on supported Agent Hosts.

How do I create a Dev Container for an agent session in VS Code?

Enable chat.agentHost.devContainer.environments.enabled. In Remote Environments, open More Actions on a connected host and choose Create Dev Container. The host needs Docker.

Can a VS Code agent type my sudo or SSH password?

No. In Copilot harness sessions, when sudo -A, ssh or git asks for a password, the prompt appears as a question in chat. Your answer goes only to that program and is not sent to the model.

Is the Local harness still available in VS Code 1.148?

Yes, but it is deprecated. Microsoft says the Local harness will be removed in February 2027, and the Copilot harness is now the default for new agent sessions.

Sources

Related answers

Leave a Comment