.golangci.yml: - forbidigo bans context.Background and context.TODO outside internal/ui and cmd/devvm. - nolintlint requires each //nolint to name its linters and say why, and reports unused ones. - reassign (patterns .*) forbids setting another package's variables, tests included. - revive keeps its default rules and adds function-length (100 statements, 160 lines) and cognitive-complexity (75). Fixes: - Backend.Lifeline takes a ctx: smolvm's machine data-dir lookup runs with the caller's. - The proxy's TLS handshake with a VM uses the request's context, limited to 30 seconds. - OAuth token refreshes run within refreshTimeout (30 seconds). - Tests use t.Context(). - Launch.create is split into plan, newVM.record and undoCreate. - lima's TestStartConfined is split into helpers. - smolvm's Terminal comes from its UI's StdinIsTerminal. - Unused //nolint directives are removed. - Fresh contexts that remain (an in-memory TLS parse, lookups shared by every request, a test cleanup) each carry a nolint saying why. Docs: contributing.md lists which lint rule enforces which convention; AGENTS.md names the linters behind its Go conventions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
devvm
Create an isolated VM in any project folder with everything needed for you or an agent to start coding.
cd ~/some-project
devvm
devvm detects the project's toolchain, creates a VM from a cached image, mounts only the project folder, and opens a shell at the same path. Toolchains and coding agents are shared read-only between VMs, network access goes through an allowlist enforced on the host, and API keys stay on the host.
Quickstart
devvm runs on macOS and Linux, with Lima 2.0 or newer. Install it with Homebrew (brew install w3cj/tap/devvm) or the install script, which offers to install what's missing (Installing). devvm doctor checks what's missing and how to get it.
$ cd ~/some-project
$ devvm --network-policy base
==> building image base (e9f517dddef1)
a few minutes, and Ubuntu's cloud image to download the first time
(details: ~/.local/share/devvm/logs/runs/20261024-090616-83541.log)
==> image base ready
==> creating devvm-some-project-71a99b1076d92c from base
==> starting devvm-some-project-71a99b1076d92c
Then you're in a shell in the VM, in ~/some-project. The first VM builds the base image. Later VMs are copies of it and start in seconds. With --network-policy the VM reaches only an allowlist of hosts, through a proxy on your machine (network policy); without a flag devvm asks.
Docs
w3cj.github.io/devvm, from docs/: commands, the security model. Building, testing and writing docs: Contributing.