VS Code 1.149 lets coding agents use your Git credentials in containers
Dev Container agent sessions now automatically get your Git config, SSH and GPG agents, so an agent can push, clone private repos and sign commits without a fresh sign-in.
VS Code 1.149, released on 2 December, adds Git credential forwarding for agent sessions running in Dev Containers. Turn on chat.agentHost.devContainer.credentialForwarding.enabled and a container session automatically receives your Git configuration, credentials, and SSH and GPG agents, so an agent can push, access private repositories and sign commits without you signing in again. Sessions with terminal sandboxing turned on only get your Git user name and email, not the credentials.
The same release adds experimental support for running Dev Containers on WSL instead of Docker, via chat.agentHost.devContainer.containerEngine set to wslc (Windows only, needs WSL 2.9.3 or later), and a way to continue a chat started in a Dev Container editor window from the main Agents window instead of starting a fresh one.
Why it matters: running a coding agent inside a container has been a trade-off between isolation and friction, because the agent couldn’t push or sign commits without you handing over credentials manually each time. Automatic forwarding removes that friction, but it also means anyone who turns the setting on is deliberately putting their Git credentials inside the sandbox they built to contain the agent in the first place.
{
"chat.agentHost.devContainer.credentialForwarding.enabled": true,
"chat.agentHost.devContainer.containerEngine": "wslc"
}