.devcontainer/ provides a Linux development environment matching CI, with vp, Rust, and the GitHub CLI installed and workspace dependencies prepared before you attach. Open the repo in VS Code ("Reopen in Container") or create a GitHub Codespace.
vp run dev(open the printed pairing URL through the forwarded web port; in browser Codespaces, pass the forwarded origin viaT3CODE_DEV_ALLOWED_ORIGINSif rejected).- Linux CI checks: focused
vp test run <files>,vp lint <files>, package typechecks,vp run build:desktop, and the resource-monitor Cargo build and tests.
T3CODE_HOME points at the workspace's gitignored .t3. Named Docker volumes hold the pnpm store and root node_modules so container rebuilds stay fast and off slow host bind mounts. The host sees an empty node_modules; run tooling inside the container.
- Windowed Electron development and mobile native builds (Xcode / Android SDK) are host-only; headless desktop bundles and static checks run in the container.
vp run dev --sharerequires Tailscale, which is not provisioned here.
Codespaces prebuilds bake in onCreateCommand and updateContentCommand automatically. Note that prebuild snapshots exclude named caching volumes, so a prebuild-first workflow may prefer dropping the volume mounts. Outside Codespaces, push a prebuilt image with:
devcontainer build --workspace-folder . --push true --image-name <registry>/t3code-devcontainer:latest