Same session, native IDE
Claude Code integrates with VS Code's Remote family — Remote-SSH, Remote-Containers, Remote-WSL. When VS Code is connected to a remote, Claude Code automatically resolves file paths against that remote, runs terminal commands there, and uses the remote's MCP configuration. The session stays coherent with where the code lives.
The two integration patterns: (a) Remote-SSH — VS Code SSHes into a host, you open a terminal in VS Code which is already on the remote, you run claude there. (b) Dev Containers — Claude Code is installed via postCreateCommand and your ANTHROPIC_API_KEY is forwarded via localEnv so it never lives in the container's source.
WSL2 is a third target: install Claude Code inside the WSL distro, connect VS Code via Remote-WSL, and the same workflow applies. Path translation is automatic.