Every list of the coding agents now derives from internal/agents'
registry, one Def each, and Cursor's CLI (cursor-agent) is a fifth
agent.
The registry:
- each agent's login command, login formats and capture on its Def;
one message for every agent where each had its own
- the agents' table, the README's list and the docs' history lists are
generated from the registry (cli.DocBlocks, TestDocBlocks); scripts
and Go tests take their lists from it too
- each agent's own code lives in a file named for it; the structure
test lets only an agent's own files choose by its name, following
constants named after an agent
- a VM remade by clone on/off keeps no agent's login files
(agents.LoginFiles from every Def.Logins; Claude Code's .claude.json
stays, as it is also history)
Cursor's CLI:
- `devvm --agents cursor`, `devvm agent login cursor`, history import
and export of ~/.cursor/chats
- the proxy captures its login at a GET endpoint, guards a shared host
by path, and puts the login in only where the CLI sends it, bound to
the CLI's 57 methods
- account changes and the agent store are refused in a VM; Cursor's
headers and trailers are scanned for tokens
- e2e: Cursor's CLI in the network section, its poll behind the fake
company proxy
Docs: the agents' pages lead with commands, with a How it works page
for the agents.
Co-authored-by: JB <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Compared section: devvm beside Docker Sandboxes, OpenShell,
microsandbox, smolvm, Claude Code's sandbox, Codex CLI, nono and
Codespaces, in two tables, with what devvm doesn't do, sources and a
last-checked date; a page on Docker Sandboxes side by side. Every
competitor claim links to that tool's own docs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each toolchain is one image.ToolDef in image.SharedTools, which also
holds its guest environment, its PATH folders and its version files. They
leave base's devvm-tools.sh for /etc/devvm/toolchains.sh, which every
launch writes, so base.sh changes and every image rebuilds once. The
structure test's names rule fails on a toolchain's name as a literal
outside internal/image, TestToolchainsComplete checks the toolchains
page, and Contributing gains Adding a toolchain.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds pi (earendil-works/pi) as a shared coding agent beside Claude
Code, Codex and opencode: --agents pi, devvm tools add pi, the new-VM
picker and devvm setup offer it. Its network policy allows pi.dev; base
sets PI_SKIP_VERSION_CHECK=1 and PI_TELEMETRY=0 and installs fd-find,
so base and every image on it build again once. The agent store mounts
and copies pi's settings, with keys redacted as JSON.
pi's auth.json is a new login kind: its API keys for Anthropic, OpenAI
and OpenRouter become per-VM placeholders the proxy fills in (devvm
agent login pi --api-key --provider PROVIDER), and everything else is
withheld by default, unless config.toml's [pass-keys] lists the
provider. pi's own account logins aren't supported, and pi has no musl
build, so a musl VM refuses it (image.ToolDef.GlibcOnly). Its sessions
go into devvm history export and import.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds `dotnet`, the .NET SDK, as a fifth shared toolchain next to node,
python, rust and go. `--tools dotnet`, `devvm tools add dotnet` and the
picker offer it, and a folder with `*.sln`, `*.slnx`, `*.csproj`,
`*.fsproj` or `global.json` at its top level suggests it in the new VM's
summary, the way `package.json` suggests node.
Refs #2. Thanks to @jsskeen-utah for the detailed request.
Co-authored-by: Claude Opus 5.5 <[email protected]>
CI's e2e workflow installs Lima 2.3.0, its tarball's checksum taken from the release's SHA256SUMS, checked against the sha256 Lima's release notes publish. scripts/bump.sh e2e-lima moves that pin the same way. devvm's doctor, install.sh, the README and the Lima page ask for Lima 2.2 or newer, compared by major and minor.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
README.md, SECURITY.md and How it works' install page show the minisign
public key, and the install page links to Checking the install script:
download install.sh, SHA256SUMS and its signature, check the signature
with the key (minisign -Vm SHA256SUMS -P KEY), the script against the
sums (shasum -a 256 -c --ignore-missing), then run it. A key from the
docs, not the release, catches a release replaced whole.
TestDocsShowTheKey checks that every key in README.md, SECURITY.md and
docs/content is minisign.pub's, and that the three pages show it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first run starts with a line saying its questions set devvm's
defaults for every new VM and its base image (first_run_defaults), then
asks new VMs' size and agents and base's features (build's
Choice.Choose, before the summary rather than at the build), then shows
the summary, now headed as this folder's new VM, and asks to customize
it. A base whose features are chosen asks nothing, as before.
new_vm_customize no longer carries its own [y/N], which Ask prints:
TestEveryMessageRenders fails on any message with [y/N] or [Y/n], as
the prompts own them.
Docs: first-vm.md's walkthrough and flowchart, commands.md's questions
table in the first run's order, customizing.md's features question,
images.md's summary and the README.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude Code logs in from inside a VM, so this machine never needs it, and
devvm keeps one Claude Code login on the host for every VM with Claude
Code: the subscription's OAuth login, or a Claude Code token from claude
setup-token. The newest replaces the other. The VM holds placeholders
alone, so claude /login in a VM no longer leaves real tokens there.
- Capture: every VM's proxy captures at platform.claude.com and
console.anthropic.com /v1/oauth/token (agentlogin.Endpoints), only for
a VM whose image has Claude Code (netpolicy.Capturer). setup-token's
code grant (expires_in, agentlogin.SetupToken) gives the claude secret
(agentlogin.ClaudeToken, secrets.Token's checks) and the VM the
secret's placeholder. Any other code grant goes in the store's
.claude/.credentials.json (a File of kind agentlogin.ClaudeOAuth:
claudeAiOauth accessToken, refreshToken, expiresAt ms, scopes); the
VM's reply holds sk-ant-oat01-devvm-proxy-managed-oauth-<salt> and a
managed refresh token, and the VM's own refresh is answered from the
store. Refused: a new login without user:inference (Console), any
login or refresh with org:create_api_key, an access token that isn't
sk-ant-oat01- shaped.
- One login: saving the claude secret (captured or devvm secret set
claude) removes the OAuth login, and an OAuth capture deletes the saved
token, both under the claude logins folder's lock
(agentlogin.LockFolder); a token that can't be deleted is a warning.
CLAUDE_CODE_OAUTH_TOKEN in devvm's environment wins, as in Claude Code
(secrets.ClaudeOf(store).Login). A launch gives the VM either
CLAUDE_CODE_OAUTH_TOKEN or ~/.claude/.credentials.json (placeholder,
managed refresh token, expiry 2099), never both. Both bindings
(claude, claude-oauth) go into Authorization for api.anthropic.com
while either login exists, and Store.Get gives each the login devvm
keeps now, so a running VM survives the switch.
- Refresh: the host refreshes the OAuth login when due, JSON to
platform.claude.com with Claude Code's client ID and the login's
scopes, through the company proxy (proxy.RouteOf), under the file's
lock; claude_refresh_failed says to log in again.
- devvm agent login claude [--setup-token]: claude auth login --claudeai
or claude setup-token in the VM without CLAUDE_CODE_OAUTH_TOKEN, the
code pasted back on this terminal (no forward); the VM is set up again
once the store has a new login of the kind asked for
(secrets.ClaudeOf(store).Sums); claude_env_token_wins when the
environment's token wins. --device-code, --api-key and --stdin are
usage errors with claude, --setup-token without it.
- Confirmed in Claude Code 2.1.317's linux-arm64 bundle (sha256 checked):
TOKEN_URL platform.claude.com/v1/oauth/token, client ID
9d1c250a-e61b-44d9-88ed-5944d1962f5e, the JSON code and refresh
bodies, setup-token's expires_in 31536000 and user:inference scope,
the claudeAiOauth fields, the anthropic-beta oauth-2025-04-20 header
Claude Code sends itself, claude auth login's pasted code#state on
stdin. The real claude auth login logged in in e2e against the fake.
- Messages: agent_login_claude_paste, claude_login_saved,
claude_setup_token_saved, claude_env_token_wins,
agent_login_claude_flag, agent_login_setup_token_alone,
claude_refresh_failed, claude_no_login; no_claude_token,
claude_token_invalid, claude_token_howto and not_setup_token point at
devvm agent login claude.
- Tests: TestClaudeCapture, TestClaudeSetupToken, TestClaudeOAuthGet,
TestCaptureRefuses' Claude cases (agentlogin); TestOneClaudeLogin,
TestClaudeBindings, TestClaudeOAuthVMCopy (secrets); TestCapturer's
Claude cases (netpolicy); agent_login.txtar's Claude section;
network.txtar's bindings.
- e2e (network): the fake company proxy fakes Claude's token endpoint
and Anthropic's API too; setup-token's request makes the claude secret;
devvm agent login claude runs the real claude auth login, the store
keeps the login, the claude secret goes, the VM holds placeholders and
no token, the API gets the store's token for the VM's placeholder; a
due login makes the host refresh through the company proxy (which
fails there, as the host doesn't trust the run's CA).
- Docs: Claude Code login (using/coding-agents.md), first VM, the home
page, README, commands, settings, safety/network.md, internals
network.md, the design note's risk that this path is unofficial,
Contributing's e2e, the proxy README; the CLI reference.
Security review (security-audit skill, an independent read):
- Fixed: a login granting org:create_api_key would let a VM make an API
key through the binding and get it unread: refused, on refresh too.
- Fixed: a refresh could install a Console login when the store had
none: the scope check applies to every new login.
- Fixed: any VM, without Claude Code, could replace the login or delete
the token with a refresh grant: only a VM with Claude Code captures.
- Fixed: two captures at once could leave neither login: one lock.
- Fixed: a saved token that couldn't be deleted gave the VM a 502 for a
saved login: a warning instead.
- Fixed: captured and refreshed access tokens are shape-checked.
- Accepted, documented: the bound login reaches every api.anthropic.com
path its scopes allow (profile, sessions); any VM with Claude Code can
replace the login; a token Claude Code mints in a VM for another use
(install-github-app) becomes devvm's login.
- Unconfirmed: whether another Anthropic host also answers
/v1/oauth/token (it would pass unguarded).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every VM gets its agents' settings and logins from devvm's own store,
never from the agents' files in the home folder: settings in
~/.config/devvm/agents/<agent>/, logins in
~/.local/share/devvm/logins/<agent>/ (folders 700, files 600, each
agent's logins folder kept out of Time Machine), each laid out as in a
home folder. The store's settings folders are mounted read-only and
linked into the VM's home; its files and logins are copied in, with
network policy as placeholders the proxy fills from the store.
devvm agent import [AGENT...] [--force] copies the home folder's agent
settings and logins into the store once: only agentDirs, agentFiles and
secrets.LoginRel's paths, never history; .claude.json reduced to its
settings, account state and MCP servers; read through each agent's
folder as an os.Root, so no link out of it is followed (a link to a file
inside becomes a copy, any other is left out with a warning, and so is
a login file that's a link); Claude Code's plugin records renamed to the
store's folders. It asks before replacing what the store has (refused
without a terminal, naming --force), replaces in place, keeping the
mounted folders, and prunes what the home folder no longer has.
- paths: Dirs.AgentSettings, Dirs.AgentLogins
- secrets: LoginRel, LoginFile(Dirs, kind), SaveLogin, HasLogin,
Store.ExcludeFromBackup; Logins, VMLogin, ClaudeCopy, MCPSecrets and
the proxy's Get read the store
- vm: agentStore, agentMounts/homeSkips/Inventory.Mounts take Dirs,
syncer.stageAgents, AgentImport; the guest's links file holds each
folder's home path and its mount's (host_home is gone)
- structure: callers takes methods (pkg.Type.Name);
Dirs.AgentSettings only in vm/agents.go, Dirs.AgentLogins only in
secrets/secrets.go
- messages: agent_import_none, agent_import_nothing,
agent_import_replace, nothing_imported, agent_settings_imported,
agent_login_imported, agent_import_link_left_out,
agent_login_read_failed, agent_import_failed; the login refresh
messages point at devvm agent import
- tests: agentimport_test.go, testdata/script/agent.txtar, sync and
network scripts through the store, e2e project and network sections
- docs: coding agents (devvm's agent store, importing from this
machine), README, getting started, safety, internals, contributing
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A bare-metal x86_64 Fedora 43 host (SELinux enforcing) passes the gate and
tests/e2e.sh --from --slots 3, which covers the amd64 pins of base, the
layers and features, the shared tools' linux-x64 lock entries, --from's
conversion over 9p, and network policy through devvm _qemu. The release was
checked by hand there: scripts/release.sh --head with a test minisign key,
then install.sh --yes from its linux-amd64 archive in a throwaway HOME
(signature checked, Lima's latest release installed into that HOME, no
sudo), devvm --version and devvm doctor passing, the binary static.
The README, install.md and CHANGELOG name the tested platforms;
testing.md's x86_64 section says what the Linux runs cover and how to check
a release build's install; limits.md gets an Intel Macs section.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
devvm runs every VM on Lima, so the command line has no backend choice:
- --backend is gone from devvm, build, rebuild, images, images rm, gc,
space, doctor and setup (addBackendFlag, addBackendFilterFlag, setup's
own, checkFlagValue's case, its completion); a removed flag now fails
as an unknown flag (exit 2).
- devvm setup no longer asks for or saves a default backend; config.toml
and settings.json have no backend key (settings.KeyBackend, Values and
Defaults' Backend, checkBackend, Value.With, Source.File, FromFlag).
- Tables lose BACKEND: ls, images (both tables), space (both tables);
doctor's FEATURE table is FEATURE and SUPPORT for Lima. space's images
row is freed by images rm.
- --json keeps every backend field (ls, images, tool records, space,
doctor's backend, backend_source "built-in" and every backend's
features).
- The registry keeps Lookup, For and Default: For(d, vm) gives a VM its
recorded backend and a new VM NewVMs, else Default; tests set NewVMs.
vm.Env's lookups lose the flag parameter, found.flagIgnored and
Options.Backend.
- Messages removed: backend_unknown, backend_unknown_default,
default_backend, backend_help, doctor_backend_from,
backend_flag_ignored; backend_unknown_vm stays (a VM's recorded
backend), linked to backends#a-vms-backend.
- Docs: Backends' choosing section becomes "A VM's backend"; settings,
setup, images, gc, space, doctor, commands and install pages lose
--backend and BACKEND; Contributing gains "How a backend plugs in".
- Tests: unit tests for For, settings, setup, doctor's table, the
tables; CLI scripts check --backend as an unknown flag on devvm,
build, restart, images, gc, space, doctor and setup, and a config.toml
backend key as unknown; e2e's table checks lose the column.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lima is devvm's only backend. The backend architecture stays (Backend,
Caps, Features, Review/Require, the registry, backendtest.Fake), so
another backend is an addition.
State from a smolvm VM reads as an unknown backend (backend_unknown_vm,
gc_orphans_unknown); nothing migrates it. The image keys of
layers/docker.sh, layers/nix.sh and features/desktop.sh change, so images
rebuild once.
Lima's port forwarder moves off smolvm's files first: newForwarderCmd and
forwarderMain from internal/cli/smolvmports.go to limaports.go, and
assets/container/ports.sh to assets/guest/ports.sh (sent by the forwarder
at run time, so no image key changes).
Removed:
- internal/backend/smolvm (4,070 lines with tests), _smolvm-ports, its
registry entry, registry.Experimental and backend_experimental.
- The decider: backend.Decider/UsesDecider, Confinement.Decider and
DeciderToken, internal/proxy/decider.go and its test, the proxy's
-decider, -decider-to and -decider-token-file, netpolicy's
KeyDeciderPort, KeyDeciderToken and deciderToken, the decider port in
vm's forwarding and UsedPorts.
- backend.AgentStarter/AgentUnchosen, vm's checkAgentStart and
agent_unchosen_stop.
- vmssh/key.go (EnsureKey, Public, HostKey, ServicesArgs, Capped).
- paths.Smolvm/SmolvmImage and space's smolvm folders; paths.VM's
Record, Key, KnownHosts and ProxyURL; project.Detect, which nothing
called (a test helper now).
- ubuntu.ContainerRepo/ContainerDigest/ContainerRef/ContainerOrigin and
bump.sh's ubuntu_image, with its part of bump.txtar.
- assets/smolvm/ and assets/container/; the no-init-system branches of
layers/docker.sh, layers/nix.sh and guest/sync.sh, and the notes in
features/desktop.sh and guest/ca.sh.
- Messages: smolvm_* (14), vm_no_ssh, vm_no_sshd, ports_no_ssh,
creating_from_image, packing_image, pack_failed, backend_experimental,
agent_unchosen_stop; descriptions naming smolvm reworded.
- Tests: smolvm.txtar, the smolvm stub, registry, decider, netpolicy and
sshagent cases; gc_backend, gc_skipped, gc_orphans and space test a
failing or hanging Lima listing instead (the limactl stub's list-fails
and list-hangs); the --backend smolvm examples; e2e's --backend smolvm
and its section (about 1,130 lines), the smol_* helpers and the
link section's backend switch.
- Coverage: internal/backend/smolvm's lines in both baselines.
- Docs: backends/smolvm.md, internals/smolvm.md, design.md's smolvm
notes (Ports on Lima now holds the forwarder's description), the
backends table's smolvm column, every page naming smolvm, the README,
the home page's backends art, and AGENTS.md's smolvm rows and gotchas
(and the Docker bind-mount gotcha, which nothing refers to).
Kept: the docker layer, on Lima; --from's local Docker; --backend, the
BACKEND column and setup's backend choice, which the next commit removes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
devvm is about VMs, and Docker's containers aren't VMs: Lima is the
default backend and smolvm stays experimental. The backend architecture
(Backend, Caps, Require, the registry, backendtest.Fake) stays, so
another backend is an addition.
Removed:
- internal/backend/docker, its registry entry and Names/Experimental's
docker half; devvm _docker-connect and _docker-ports
(internal/cli/dockerssh.go); assets/docker/unpack.sh.
- Test-build overrides DEVVM_DOCKER_KIND, DEVVM_DOCKER_PROC_SYS,
DEVVM_LINUX_BUILD_URL/_SHA256, the registry.linuxURL/linuxSHA256
ldflags vars and the CLI tests' Linux-build archive (linux_release).
- Interfaces only Docker implemented, with their callers:
backend.ProxySocket/ProxySocketOf (the proxy's -listen-unix),
DiskUser (ls's and size's disk-over warning, size's disk_used and
--json disk_used_gib), Reporter (doctor), LeftoverLister and Leftover
(gc --orphans' volumes, networks, containers and images),
DockerLayerVM and VMSpec.DockerLayer, SSHTarget.ProxyCommand and
vmssh.SSH.Proxy, vmssh.SSH.SessionArgs, CacheEntry.Name.
- The docker layer's runtime on a backend that makes VMs for it:
vm/dockerlayer.go, KeyDockerLayer, chooseNet's refusal (chooseNet
returns a bool now), the refusals at start and devvm network on, ls's
"(sysbox)" and --json docker_layer, size_disk_default_unused.
- The proxy's relay mode (relay.go, -relay, -relay-to, -listen-unix).
- paths.Dirs.Docker and paths.VM.Lifeline.
- assets/guest/tools.sh's linked-folder branch; services.sh's
DEVVM_LOOP, DEVVM_DOCKERD and DEVVM_SSHD=inetd.
- Messages: every docker_* the backend used, docker_layer_runtime,
net_docker_layer, net_off_docker_layer, committing_image,
pulling_image, unpacking_tools, disk_over, size_disk_default_unused,
gc_orphan_volume/_network/_container/_image, docker_connect_failed;
gc_orphan_elsewhere reworded.
- Tests: docker.txtar, the docker stub's engine (its --from half
stays), the ssh stub's login-shell branch; e2e's --backend docker,
--engine, the docker host VM and Docker Desktop runs.
- Release: one GoReleaser pass, no Linux-build pin in the macOS builds,
no Linux devvm in the Homebrew formula's libexec. Linux builds stay.
- Docs: backends/docker.md and internals/docker.md, design.md's Docker
notes, the Docker column of the feature table, and every page's
mentions of the Docker backend, Docker Desktop as one, and Sysbox.
Kept: the docker layer in Lima VMs, devcontainer docker-in-docker,
--from with images only a local Docker has, Docker Hub references.
State written by a Docker VM before this reads as an unknown backend
(backend_unknown_vm).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The picker change's review:
- --tools claude, --layers node, --agents node and the like are refused
with part_other_flag, which names the flag that takes the name, as in
devvm --agents claude; a name no part has keeps unknown_part or its
did-you-mean. checkPartFlag checks the three parts' names together.
TestCheckFlagValue, up.txtar, up_checks.txtar and setup.txtar cover it.
- image.ToolName is back, with its TestValuePatterns row: ToolFile and
ParseToolFile check a tool's name with it.
- internals/design.md's Docker layer checks name parts_flags_ignored for
--layers docker on a VM that exists, as e2e checks, in place of a
message that's gone.
- The home page and the README give the Claude Code token before
claude's first start, the home page's list says which rows it shows
checked, and the FAQ says the agents' config comes from your machine.
The README says the first run asks for new VMs' size and agents before
the list.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
devvm takes no IMAGE word any more than any other: in a terminal a new VM's
toolchains, coding agents and layers are checked in one picker, under three
headings, before the network-policy question; --tools, --agents and
--layers (each an exact list, or none) skip it, and a part left out takes
its default: the detected toolchains, devvm setup's agents, no layers (a
devcontainer.json's features still count). Without a terminal, or with
--no-input, the VM gets the defaults and new_vm_gets says so in one line.
devvm setup --agents (and its first-run question) chooses new VMs' agents.
devvm tools in a terminal opens the same picker for the VM, its layers
fixed, and turns the changes into tools add and rm.
An image is base and layers only: tools are the VM's tool_names state key.
build, rebuild and images rm refuse a shared tool (tool_not_layer), and
devvm build builds no tool images. devvm ls gains a TOOLS column and
--json tools. gc's --tools is --tool-images, so --tools has one meaning.
Gone: image.Reserved, checkWord's image half (devvm WORD is no_command or
no_command_like, did-you-mean over commands, msg.Closest), the lacks path
in internal/vm/existing.go, and the messages vm_lacks_tools,
vm_lacks_layer, layer_is_command, layer_name_command, no_image_for,
no_command_or_image*, tools_not_images, tools_not_images_rm, detected,
vm_is_now (vm_tools_now), secret_with_image (secret_with_claude).
New: ui.Pick takes headed sections with fixed rows, ui.CanPick,
vm.PickPart/PickRow/AgentsChoice/CheckPart (internal/vm/parts.go),
state.KeyToolNames, state.ReadAgents/WriteAgents, paths.Dirs.Agents,
project.DetectFiles. Image keys are unchanged in form: images never held
tools; docker.sh's and nix.sh's comments changed, so those layers rebuild.
Docs: the home page's quick start steps, diagram (sandbox.svg), cards and
FAQ; README; getting started; using (images' What a new VM gets, coding
agents' Running an agent, settings' agents); internals; contributing;
the cli skill; AGENTS.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
using/links.md covers devvm link, link add, link rm, link publish and
link unpublish: names and NAME.devvm.internal, TARGET's three forms and
an ambiguous folder name, --as and one name per target, ports below
1024, IPv4 and TCP only, a link joining the two VMs' trust, the network
policy rule, listing with APPLIES's reasons, devvm link --json and
devvm link publish --json, what a running client gets when links change
(/etc/hosts at once, NO_PROXY at the next start, dockerd and nix-daemon
restarted under network policy, Lima's new host keys pinned again),
stopped and removed targets, a program holding a link's port, the
docker layer's containers needing --network host, and the link log.
Every link message's and command's doc link points at the new page;
commands.md keeps the commands' rows and a pointer, and its JSON table
lists both link shapes. safety/network.md gains Links between VMs, and
attack-vectors.md says how one VM reaches another. internals/ports.md
gains Links between VMs (the addresses, the link session, each
connection, changes); network.md says links are the other way out and
that devvm _links writes the event log too; security.md and backends.md
follow; design.md's Lima and smolvm port notes name the link session as
the only remote forward. using/_index.md, limits.md and the README list
links. The CLI reference is regenerated for the new doc links.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The home page's quick start and Install devvm, and Installing's Installing devvm, show the install command in Hextra's tabs, from a new install shortcode: macOS with Homebrew, Linux with the install script. The macOS tab is selected in the HTML; a small partial selects the Linux tab for Linux visitors as the page loads. custom.css styles the tabs in the site's palette. README says which command is for which system, and Contributing describes the shortcode.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Your first VM and the README said the first run asks both questions; the
network policy question comes for every new VM in a terminal, and only the
extras are asked once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Your first VM, Everyday commands' VMs, the README, Toolchains and
Coding agents' Supported agents lead with the commands and a line on what
each does, then link to the page with the details. Your first VM goes
from 1147 to 552 words; every fact cut from it is on the page it links.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
net_about's two choices are indented under the question and their text
aligned, as the prompt's approved shape has them; README.md and
safety/network.md show it the same way.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
README: the landing page's pitch and what a VM gets, install, a first VM
with the network policy prompt and the build lines, working on a clone,
staying safe, and links to every docs section on devvm.dev.
Landing page: network policy on by default, --clone in its own bullet,
agents' secrets instead of API keys.
SECURITY.md: Verifying a release in full sentences with a link to the
signature's page, secrets in What counts, VMs without network policy
spelled out in Out of scope.
assets/oci/README.md, internal/proxy/README.md: a light docs-voice pass;
container image, a secret, the decider token.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sections move verbatim; new pages open with a one-sentence placeholder.
Moved pages: safety/clone.md -> using/clone.md; safety/security.md ->
internals/security.md.
New pages: using/ports-size.md, using/settings.md,
using/troubleshooting.md, internals/overview.md, internals/install.md,
internals/images.md, internals/ports.md (placeholder only),
internals/network.md, internals/git-protection.md,
internals/backends.md, internals/lima.md, internals/smolvm.md,
internals/docker.md.
Moved sections:
- getting-started/install.md: the install script's steps, the Docker
Linux-build fetch, the signature paragraph, doctor --fixes and its
keys, "devvm is one binary", removing old versions -> internals/install.md
- getting-started/commands.md: An existing VM, Stopping a VM, Deleting a
VM -> internals/overview.md; Size and ports -> using/ports-size.md;
Environment -> using/settings.md
- using/images.md: Ubuntu's cloud image, Versions, Building tools,
Building, Caching (Rebuilding, Outdated VMs) -> internals/images.md;
Ports, Size, Disk use -> using/ports-size.md; Where state lives ->
using/settings.md; Build logs and interrupts -> using/troubleshooting.md
- using/from.md: How it's converted (The image is untrusted), Digests ->
internals/images.md
- using/coding-agents.md: MCP servers, Keys in settings files ->
internals/network.md
- safety/network.md: the start-up list, The proxy, The self-check, How
the proxy puts them in, Agents' logins and settings, devvm _proxy ->
internals/network.md
- safety/git-protection.md: What's locked, On each launch, What a lock
can't stop -> internals/git-protection.md
- safety/attack-vectors.md: Staying safe -> safety/_index.md (The
habits), with a copy of the security model's reach table
- backends/_index.md: Features, Missing and unreviewed features, VM names
-> internals/backends.md
- backends/lima.md: A Lima home of its own, Confinement, Clones and
overlays, Ports -> internals/lima.md
- backends/smolvm.md: Its machines through No init system ->
internals/smolvm.md
- backends/docker.md: What's devvm's in Docker, Building images, What
devvm sets on a VM, Network policy, No init system, ssh for editors,
Ports, SSH agent forwarding, Shared tools -> internals/docker.md
Titles and weights follow the target tree; How it works is weight 95,
after the CLI reference. Index pages list the new pages. Links, message
doc links (internal/msg/docs.go), the home page, README.md, SECURITY.md,
internal/proxy/README.md and AGENTS.md point at the new places.
Contributing and AGENTS.md say what goes on user pages, How it works and
Contributing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A new VM gets network policy unless it's turned off. In a terminal devvm
shows the tradeoff and asks yes by default ([Y/n]); without a terminal
it's on. A VM that can't have network policy gets no question, only a
warning, and is made without it: on a backend without egress-proxy (or
with it unreviewed), and a Docker VM made for the docker layer, whether
named or from a devcontainer.json's docker-in-docker. An explicit
--network-policy on such a VM is still refused (net_docker_layer, or
backend_lacks from Require). Existing VMs keep their state's choice.
- netpolicy.Proxy.Choose: no terminal gives on; in a terminal net_about,
then Confirm (yes by default). Proxy's Ask field and netpolicy.UI's Ask
removed (unused); vm.UI asks Ask itself.
- vm.creation.chooseNet: --no-network-policy first; the docker layer
warns (net_off_docker_layer) or refuses --network-policy; a backend
Registry.Allowed doesn't let egress-proxy through warns
(net_off_backend); otherwise Choose.
- Messages: new net_off_docker_layer, net_off_backend (with doc links);
net_about rewritten as the two-line tradeoff with a doc link
(safety/network#turning-it-on-or-off); net_ask is "Turn it on?" (no
fields); devcontainer_docker_net removed (no caller).
- --network-policy's help: secrets, default on, asked in a terminal; CLI
reference regenerated.
- Tests: TestChoose (flags, terminal yes/no, no terminal on, what's said);
TestChooseNet replaces TestChooseNetDockerLayer (docker layer named and
from the file, no egress-proxy, unreviewed egress-proxy, flags, with and
without a terminal); TestUpWithoutEgressProxy (backend_lacks for
--network-policy, the warning and net=off by default).
network.txtar: --no-network-policy for the off VM, and a VM made without
a flag or terminal gets net=on. docker.txtar: another machine's engine
(backend_lacks, then the warning and net=off), and the sysbox VM's
warning. e2e's docker sysbox check expects the warning.
- Docs: first-vm, commands, safety/network (the prompt, the VMs that
can't have it), security, attack-vectors, devcontainer, backends index
and docker, design notes, README.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The site's base URL, the doc links devvm prints, the README, CONTRIBUTING,
SECURITY and the home page recording point at https://devvm.dev; the local
server is at http://localhost:1313/.
lint runs lint:code (golangci-lint, shellcheck) and lint:docs (markdownlint,
Vale, lychee, TestDocLinks). CI skips changes only to docs/ and Markdown
files, except the generated CLI reference; the Docs workflow lints and
builds the site on pull requests touching the docs and deploys from main.
mise-action goes to v5.2.4.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The docs move into a folder per sidebar section, in the order a new user
needs them: getting-started (install, first-vm, commands), using (images,
customizing, from, devcontainer, coding-agents, ssh, limits), safety
(attack-vectors, network, clone, git-protection, security), backends
(backends.md as the section's _index.md, lima, smolvm, docker), internals
(design), cli, and contributing (contributing.md as its _index.md,
testing, maintaining). Each section has an _index.md listing its pages,
and the docs index is grouped the same way. Commands is now Everyday
commands, SSH is SSH and editors.
New pages:
- safety/attack-vectors.md: Staying safe first (seven habits), then
common attacks sorted into Blocked, Kept inside the VM, Narrowed, not
closed, and Left to you.
- getting-started/first-vm.md: making a VM, the first run, what's in it,
coding agents, coming back to it.
Links to Staying safe from the home page, README, security, install,
coding agents and clone. Every relative link, the home page's, the
README's, SECURITY.md's, CONTRIBUTING.md's, AGENTS.md's, the proxy and
oci READMEs', release.sh's hints and the recording's URL use the new
paths. internal/msg/docs.go names pages by path (using/images#...), and
checkDoc takes a section's _index.md for its folder (backends#...).
contributing/_index.md describes the sections and how links name them.
Also carries the docs edits made alongside the forwarder work in the
tree (backends, images, limits, security, design, commands and the
generated devvm ports page), whose code isn't in this commit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The home page is Hextra's hextra-home layout: "One VM for every folder",
the devvm command and its output, what it does (isolated, ready in
seconds, made for coding agents, each linking its page) and how to
install. The README's first line and the site's description say the
same.
The site is dark only, with a palette from the JustBlack VS Code theme:
a black background and one lime accent, #7fff00, as Hextra's primary
color. Instrument Sans for text and Martian Mono for code come from
Google Fonts; Departure Mono (v1.500, OFL, its license beside it) is
self-hosted for the navbar logo and the home page's headings, badge and
buttons. The logo is the site's title in a box with a box-drawing lock
on its corner, in CSS; the navbar is 30px taller for it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
install.sh picks this host's archive (devvm-<version>-<os>-<arch>.tar.gz:
darwin or linux, arm64 or amd64; Apple silicon's under Rosetta, from
sysctl hw.optional.arm64), checks SHA256SUMS's minisign signature (an
empty key still skips it, with a warning; no minisign prints the command
to check by hand), then the archive's checksum, and installs the binary
with its data files in <prefix>/lib/devvm/<version>, linked from
<prefix>/bin/devvm. Older versions go, except one a running process
names in its arguments (a VM's proxy, QEMU's guestfwd on Linux): it's
kept until a later install. Then it offers devvm doctor --fixes' fixes,
asking first (Homebrew's Lima or Lima's checked release tarball, QEMU,
the kvm group), and runs devvm doctor. Downloads are HTTPS only. Its text
isn't messages: it runs before devvm is there.
release.sh --head now needs install.sh too.
Tests: testdata/script/install.txtar sources install.sh (host and archive
names, Rosetta, version choice and validation, HTTPS-only fetch, run_fix
as words, install and links, reinstall, an older version in use kept
(and the real ps), signature good, bad, missing, no minisign, a bad
checksum, no archive for this host, Lima's tarball for the host and
arch and a bad checksum, the PATH hint, the fixes with --yes, the kvm
re-login, no yes, Lima's release once allowed, nothing missing, main's
options, and the tests' devvm binary installed and finding its files);
release_head.txtar: a HEAD without install.sh is refused.
docs: install.md (Homebrew and the install script, upgrading,
uninstalling), maintaining.md (trying install.sh on a --head build),
README.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- backend.Backend gains Problems(ctx) []Problem (Key, Fix, Msg): all
that a backend needs and the host lacks. Check is the first of them,
so every command that needs the backend stops at the first one.
- Lima's Problems (check.go): host OS, arm64/amd64 (arch), macOS 13+
(macos, via sysctl kern.osproductversion: platform.MacOSVersion),
Lima missing/broken/older than 2.0 (lima; brew install/reinstall/
upgrade lima when Homebrew is there), on Linux qemu-system-<arch> and
qemu-img (qemu; apt-get, dnf, pacman or zypper's command), /dev/kvm
missing (kvm) or not openable (kvm-access; sudo usermod -aG kvm
USER), Lima's global configs (lima-config). DEVVM_KVM swaps /dev/kvm
for tests.
- devvm doctor [--backend NAME] [--fixes]: a features table (FEATURE,
one column per backend: native, emulated, unreviewed, none; Support
gains String), Docker found or not, then doctor_ok or each problem
(the last one fails). --fixes prints KEY<tab>FIX<tab>MESSAGE lines
and succeeds either way.
- Messages: lima_missing_fix, lima_broken_fix, lima_old_fix,
qemu_missing_fix, lima_arch_unsupported, macos_old, no_kvm,
kvm_access, docker_found, docker_missing, doctor_ok, doctor_failed;
kvm and ok are initialisms in the generator.
- Tests: TestProblems (23 cases), TestWriteFeatures, TestWriteFixes,
TestMacOSVersion, Support's String in TestSupport; doctor.txtar;
the script sandbox sets DEVVM_KVM; e2e images checks doctor.
- Converted: cli.bats preflight (arm64 and x86_64), doctor (macOS
without Lima, Linux without QEMU, x86_64 Linux, limactl that doesn't
run), the doctor half of "all there", doctor's half of the Lima
global configs case.
- Docs: new install.md (requirements, checking them, --fixes keys),
lima.md requirements, backends.md, commands.md, contributing.md,
README; CLI reference regenerated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A new VM can get network policy: --network-policy, else a question in a
terminal (no by default), else off. devvm makes its CA, writes the VM's
secret bindings, starts the VM's proxy (devvm _proxy, its password in a
file) and starts the VM confined to it, then runs the self-check before
the setup and the shell: a VM that isn't held to its proxy is stopped.
Tokens stay on the host; the hidden devvm secret get reads them for the
proxy, from the Keychain or a file. e2e gets a network section.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
devvm [IMAGE] in a folder creates its VM: the folder checked (its path,
unsafe folders, a folder made again), its size and ports, the image
named or detected and built, cloned with only the folder mounted, its
state, .git hooks and config locked (macOS), started, then the backend's
shell in place of devvm. Network policy isn't there yet, so a VM is
created only with --no-network-policy; an existing VM is refused for
now. Ctrl+C before the first shell deletes the VM and unlocks .git.
Global flags: --backend, --network-policy/--no-network-policy, --cpus,
--memory, --disk, --ports; up's own --unsafe-folder, --no-git-protect.
tests/e2e.sh gains a project section, with Lima's Exec quoting checked
on a real VM. New docs: commands, security model, .git protection.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hugo site in docs/ with the Hextra theme as a pinned Hugo module, a
home page and the contributing page, which takes over building, tools,
tests and stubs from the README and adds writing docs. Vale styles for
the writing rules, markdownlint, Vale and lychee --offline in mise run
lint, and a Pages workflow.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Run testdata/script/*.txtar against a freshly built devvm, with HOME,
the XDG folders, the Lima home and the stub state in a sandbox under
/tmp, and testdata/stubs first on PATH. Add the stub_calls command,
uname and sw_vers stubs driven by env vars, scripts for the root
command and the sandbox, and README sections on writing CLI tests.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pin the dev tools in mise.toml and mise.lock. Add the fmt, lint, test,
vuln, docs and e2e tasks, the golangci-lint v2 config with the
dependency allowlist and print/exit bans, and a CI workflow running
lint and test on macOS and Linux. Tighten test file permissions for gosec.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Cobra root command with no subcommands yet, a paths package that finds
devvm's files next to its binary (following links), Go pinned with mise,
the README, the license, and the security-audit skill.
Co-Authored-By: Claude Opus 5.5 <[email protected]>