Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ These changes are on `main` and go out in the next release.
- A first run no longer fails while a shared tool's newest release lacks a platform's download, such as Node 24.23.0's musl builds, because devvm uses that tool's newest older version with every download again ([details](https://next.devvm.dev/docs/releases/0.2.0/#a-tool-release-without-every-download)).
- With `ubuntu-mirror` set, base's first build now gets each package from your mirror first, as the docs said. Before, apt picked your mirror or Ubuntu's archive at random for each file ([details](https://next.devvm.dev/docs/releases/0.2.0/#your-ubuntu-mirror-first)).

<details><summary>If you use Kiro CLI</summary>

- `--agents kiro` gives a VM Kiro CLI as `kiro-cli`, with your Kiro settings from `devvm agent import`, and you log in once in each VM, because devvm keeps no Kiro login ([Kiro CLI login](https://next.devvm.dev/docs/using/coding-agents/#kiro-cli-login), [details](https://next.devvm.dev/docs/releases/0.2.0/#kiro-cli)).

</details>
<details><summary>If you use opencode</summary>

- `devvm history export` and `devvm history import` now leave out opencode 2.4's machine key and paired machines, its service's password and its terminals' access tokens, which a VM made again still keeps ([details](https://next.devvm.dev/docs/releases/0.2.0/#opencodes-machine-key-in-history-exports)).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ devvm
## What's supported

- **Toolchains:** devvm detects them from the project's files, so a folder with `package.json` gets node, and the [toolchains](https://devvm.dev/docs/using/toolchains/) page lists them all.
- **Coding agents:** <!-- the agents' names, generated from internal/agents by mise run cli-docs -->Claude Code, Codex, opencode, pi and Cursor CLI<!-- end of the agents' names --> run in the VM, with your settings, skills and MCP servers. devvm keeps their settings and logins in a store of its own, and `devvm agent import` copies them in from an agent you already use on your machine ([coding agents](https://devvm.dev/docs/using/coding-agents/)).
- **Coding agents:** <!-- the agents' names, generated from internal/agents by mise run cli-docs -->Claude Code, Codex, opencode, pi, Cursor CLI and Kiro CLI<!-- end of the agents' names --> run in the VM, with your settings, skills and MCP servers. devvm keeps their settings and logins in a store of its own, and `devvm agent import` copies them in from an agent you already use on your machine ([coding agents](https://devvm.dev/docs/using/coding-agents/)).
- **Layers:** the built-in `docker`, `nix` and `desktop` layers, and your own from `devvm layer new` ([layers](https://devvm.dev/docs/using/images/#layers)).
- **Backend:** devvm runs its VMs on [Lima](https://lima-vm.io) ([backends](https://devvm.dev/docs/backends/)).

Expand Down
16 changes: 16 additions & 0 deletions assets/guest/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ if [[ -n $cursor ]]; then
mkdir -p ~/.local/bin
for l in cursor-agent agent; do ln -sfn /opt/devvm/tools/cursor/"$cursor"/cursor-agent ~/.local/bin/"$l"; done
fi
kiro=$(awk '$2 == "kiro" { print $3 }' "$s/tools")
mise reshim 2>/dev/null || true
# A command over ssh runs bash non-interactively, and bash then reads ~/.bashrc instead of BASH_ENV:
# its first line, before the "not interactive: return". Features (oh-my-bash) and users replace ~/.bashrc.
Expand Down Expand Up @@ -350,6 +351,21 @@ if [[ -n $cursor ]]; then
fi
fi

# Kiro CLI's docs list no variable that turns off its updates or its telemetry: its settings do, in
# ~/.kiro/settings/cli.json, which the CLI keeps through its own writes. The updates go off whatever
# the (host-copied) settings say, as the shared copy is read-only; its telemetry goes off unless they
# set it.
if [[ -n $kiro ]]; then
c=~/.kiro/settings/cli.json
mkdir -p ~/.kiro/settings
[[ -s $c ]] || echo '{}' > "$c"
if ! jq -e 'type == "object"' "$c" >/dev/null 2>&1; then
echo "devvm: $c isn't plain JSON, so Kiro CLI could update itself, and report its use, in this VM" >&2
elif ! jq -e '.["app.disableAutoupdates"] == true and has("telemetry.enabled")' "$c" >/dev/null 2>&1; then
jq '.["app.disableAutoupdates"] = true | .["telemetry.enabled"] //= false' "$c" > "$c.devvm" && mv "$c.devvm" "$c"
fi
fi

# Codex has no env-var opt-out: append the off switches unless the (host-copied) config sets them.
if command -v codex >/dev/null; then
mkdir -p ~/.codex && touch ~/.codex/config.toml
Expand Down
15 changes: 15 additions & 0 deletions assets/shared-tools/kiro.policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# kiro: its sign-in (the portal, its token service, Builder ID's OIDC and the social logins' Cognito),
# its service (runtime and management, and the q.* hosts older releases still use) in the two regions
# Kiro runs in. Its updates (prod.download.cli.kiro.dev), its telemetry and the Stripe pages are left
# out: blocking them costs nothing, and the VM turns its updates and its telemetry off. The hosts are
# those of its firewall page: https://kiro.dev/docs/privacy-and-security/firewalls
app.kiro.dev
prod.us-east-1.auth.desktop.kiro.dev
oidc.us-east-1.amazonaws.com
cognito-identity.us-east-1.amazonaws.com
runtime.us-east-1.kiro.dev
runtime.eu-central-1.kiro.dev
management.us-east-1.kiro.dev
management.eu-central-1.kiro.dev
q.us-east-1.amazonaws.com
q.eu-central-1.amazonaws.com
12 changes: 9 additions & 3 deletions assets/shared-tools/mise.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# The shared tools (the docs' images page, "Shared tools"). devvm resolves each, per user, to upstream's newest
# release matching its version here, into ~/.local/share/devvm/mise.lock with each download's checksum
# per platform. A version here is a hold (node = "24"), but for cursor, which publishes neither a
# version list nor checksums: devvm pins its release and each platform's SHA-256 here, and the lock
# takes them as they are.
# per platform. A version here is a hold (node = "24"), but for cursor and kiro, which publish no
# version list devvm can resolve against (cursor has no checksums either): devvm pins their releases and
# each platform's SHA-256 here, and the lock takes them as they are.

# Where each tool that isn't one of mise's own (core:) comes from, named here so that mise's registry
# can't move it to another source: its first choice can change between mise releases (opencode 2
Expand All @@ -13,6 +13,7 @@ codex = "aqua:openai/codex"
opencode = "github:anomalyco/opencode" # its GitHub releases: a musl build of its own, attested
pi = "github:earendil-works/pi" # its GitHub releases: one Bun-built program per platform, glibc only
cursor = "http:cursor" # Cursor's CLI package: its bundled node and programs, glibc only
kiro = "http:kiro" # Kiro CLI's package: one program per platform, glibc only
pnpm = "aqua:pnpm/pnpm"
uv = "aqua:astral-sh/uv"

Expand All @@ -32,6 +33,11 @@ pi = "latest"
# The address and checksums are those of the package Cursor's install script (cursor.com/install) fetches for
# this version; the musl platforms get the same, which their VMs refuse (glibc only).
cursor = { version = "2026.11.17-f532c45", platforms = { linux-x64 = { url = "https://downloads.cursor.com/lab/2026.11.17-f532c45/linux/x64/agent-cli-package.tar.gz", checksum = "sha256:189ed41d8963cd22dcdafbbd62f072cc55ac08374c922dbd04aee525f4018ab6" }, linux-arm64 = { url = "https://downloads.cursor.com/lab/2026.11.17-f532c45/linux/arm64/agent-cli-package.tar.gz", checksum = "sha256:dff929e5e5ace2ced880290095df5938545267d73fd1d84be669be75dbdc1558" } } }
# The address and checksums are those of the packages Kiro CLI's install script (cli.kiro.dev/install) fetches for
# this version, as its release manifest lists them (desktop-release.q.us-east-1.amazonaws.com/latest/manifest.json).
# It has musl builds too, but mise's http backend takes a platform's download by its OS and architecture alone
# (a linux-x64-musl key is ignored), so the musl platforms get the glibc ones, which their VMs refuse (glibc only).
kiro = { version = "3.8.1", platforms = { linux-x64 = { url = "https://prod.download.cli.kiro.dev/stable/3.8.1/kirocli-x86_64-linux.tar.gz", checksum = "sha256:1c7eaf812f8dc2bdb69bc514292a6b2ed6f5b42ccb70d9062fcf8c41df44e2c1" }, linux-arm64 = { url = "https://prod.download.cli.kiro.dev/stable/3.8.1/kirocli-aarch64-linux.tar.gz", checksum = "sha256:5ab151c4733758073b50ff9a5081d4af82cd1d975257c9105fafad463a21d8b3" } } }

[settings]
experimental = true
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/cli/devvm_agent_import.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/content/docs/cli/devvm_agent_save.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions docs/content/docs/contributing/maintaining.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The tools, by group, as `--check` prints them:
| Group | Tools | What they move |
| --- | --- | --- |
| `images` | `docker`, `nix`, `direnv`, `nix-direnv`, `mise`, `git-lfs`, `rustup`, `crane`, `omb`, `eza`, `tealdeer` | the downloads pinned in `assets/`, and devvm's host mise, so `scripts/bump.sh nix direnv nix-direnv` moves the [nix layer](../internals/images.md#the-nix-layer)'s three pins |
| `shared-tools` | `cursor`, only when named | Cursor's CLI in `assets/shared-tools/mise.toml`, the one shared tool pinned for users |
| `shared-tools` | `cursor`, only when named, and `kiro` | Cursor's CLI and Kiro CLI in `assets/shared-tools/mise.toml`, the shared tools pinned for users |
| `e2e` | `e2e-tools`, `e2e-from`, `e2e-curl`, `e2e-ubuntu`, `e2e-lima` | the end-to-end tests' own pins |
| `go` | `go`, `go-minor` only when named, `go-mods`, `deadcode` | Go, its modules and the deadcode task |
| `dev-tools` | `dev-tools` | `mise.toml`'s tools except Go, with their `mise.lock` entries |
Expand All @@ -43,11 +43,12 @@ The tools, by group, as `--check` prints them:
- `release-image` moves `release_image` in `scripts/release.sh`, the container that every release is built in, to the digest of Docker Hub's newest index of `buildpack-deps:trixie-scm`. The digest is the SHA-256 of the index it fetched, which every pull checks the registry's index against, and before it records the digest, it checks that the index has a `linux/amd64` and a `linux/arm64` image, the two that builders run. Every release trusts this image, because its git, awk, tar and gzip write the release's files, so read what changed in it before you commit a bump (docker-library's `repo-info` repository lists each image's packages), and run `scripts/repro-check.sh` after it ([Reproducible releases](#reproducible-releases)).
- `hextra` moves the docs site's theme in `docs/go.mod`, and it reminds you to compare the copies of Hextra's files in `docs/layouts/` with the new release's. `pele` moves pele only when named, because the diagrams need a look on the built site. It runs `npm install` in `docs/` with the exact version and no install scripts, which writes `docs/package.json` and `docs/package-lock.json`, and then draws the diagrams again with `mise run docs:diagrams`. The drawing script's self-check fails that step when the new pele no longer measures and writes its small text, such as edge labels, as the script expects ([diagrams](docs.md#writing-docs)).
- `cursor` moves Cursor's CLI only when named, to the release that Cursor's install script fetches, with each platform's SHA-256 computed from its download, because Cursor publishes no checksums. devvm's login and proxy code was read against the pinned release, so read the new one where that code names it, then run `e2e-tools`.
- `kiro` moves Kiro CLI to the stable release in Kiro's release manifest, which is the one its install script fetches, with each platform's SHA-256 as the manifest lists it, and reminds you to run `e2e-tools`. A major release moves it only when named.
- A hold keeps a pin below a version, and `--check` shows the newest version beside it. Go modules and actions take Dependabot's ignore list in `.github/dependabot.yml`, which keeps pflag below 1.1.0, because pflag 1.1 prints every boolean flag with `[=true|false]` in the help. The other holds are in `bump.sh`'s `holds`, which keeps Node, the one in `mise.toml`, on its major.
- `bump.sh`'s header lists every pin with the tool that moves it, or with `-` and the reason it's left, as `# pin` lines. `TestBumpCoversPins` in `internal/structure` finds the pins in `assets/`, `mise.toml`, both `go.mod` files, the workflows, `tests/e2e-mise.lock`, `tests/e2e`'s consts, `scripts/release.sh`'s container, `docs/hugo.yaml` and `docs/package.json`'s dependencies, without the network, and fails on a pin that no line covers or on a line that covers nothing, so a new pin gets a tool or a reason. The header also says why the pins outside those files are left as they are, such as the Lima that `install.sh` installs, which is the newest release checked against its `SHA256SUMS`, and the Homebrew formula, whose URLs and checksums `release.sh` fills in.
- base's Ubuntu cloud image and its apt packages have nothing to bump: devvm pins the newest image on each machine at its first build of base, and records the newest packages for each key of base at its first build ([Ubuntu's cloud image](../internals/images.md#ubuntus-cloud-image), [base's packages](../internals/images.md#bases-packages)). `docker` moves Docker's packages (`assets/layers/docker.sh`), read from its repository for base's Ubuntu release, and its signing key. Packages added to `assets/layers/base.sh` or `assets/features/` need no pin of their own: they change base's key, whose first build records them.
- `mise` moves base's mise (`assets/layers/base.sh`) and devvm's host mise (`internal/tools/mise.go`) together: the host one writes the lock base's installs from. `TestMisePins` fails when their versions or Linux checksums differ, and base's mise version is in the key of each tool image mise installs, so a bump builds them again.
- The shared tools aren't pinned for users, except Cursor's CLI. Holds go in `assets/shared-tools/mise.toml` (`node = "24"` stays on that major). `testdata/mise.lock` is a fixed lock for the tests.
- The shared tools aren't pinned for users, except Cursor's CLI and Kiro CLI. Holds go in `assets/shared-tools/mise.toml` (`node = "24"` stays on that major). `testdata/mise.lock` is a fixed lock for the tests.
- Their backends are named in `mise.toml`'s `[tool_alias]` table, for every tool that isn't one of mise's own `core:` tools, because mise's registry can move a tool to another backend in any release ([versions](../internals/images.md#versions)). A new shared tool gets its alias there, and `TestToolBackendsNamed` fails when a tool that isn't a `core:` tool has none, or when its alias isn't the backend that `tests/e2e-mise.lock` resolved.
- When opencode's major version changes, or a bump of `e2e-tools` moves opencode to a version that adds migrations, refresh `internal/vm/testdata/opencode-<version>.sql`, the schema of opencode's database that `TestOpencodeCleanSchema` cleans. Print it with `sqlite3 ~/.local/share/opencode/opencode.db .schema` in a VM with that opencode, after `opencode auth list` has made the database, and copy only the schema, never rows. You can also make the file from the release's `packages/core/src/database/schema.gen.ts` in opencode's repo: unwrap its SQL and add the `migration` table's line at the end, and it matches `.schema` line for line. Name the file for the version, and in the test put each new table in its list of tables that devvm empties or keeps, which the test asks for. A table or a column that holds a login also goes into `opencodeLogins` (`internal/vm/agents.go`) and the design note's [opencode's database in history exports](design.md#opencodes-database-in-history-exports).
- `e2e-tools`, `e2e-from`, `e2e-curl` and `e2e-ubuntu` move the end-to-end tests' own pins, which keep their cached images valid between runs. `e2e-tools` resolves `tests/e2e-mise.lock` again, with devvm's pinned host mise, for both architectures' glibc and musl VMs. `e2e-from` moves the digests of `node:24`, `alpine:3` and `ubuntu:26.04` in `tests/e2e/from_test.go` to Docker Hub's. `e2e-curl` moves `curlImage` in `tests/e2e/transparent_test.go`, the curl image that the network checks run in containers, to curlimages/curl's newest release, by its digest. `e2e-ubuntu` moves `e2eUbuntuRelease` in `tests/e2e/sandbox_test.go`, the dated release of Ubuntu's cloud image that e2e pins base to in place of the newest, to the newest Ubuntu lists. Ubuntu removes dated releases after a few months, and e2e's going stops its first builds of base: bump `e2e-ubuntu` before that. Run `e2e-tools` after any change to `assets/shared-tools/mise.toml`, because the end-to-end tests refuse a lock resolved from another one ([end-to-end tests](tests.md#end-to-end-tests)). `mise run test` catches it first: `TestE2ELockPins` checks the lock's first line against `mise.toml` and that it locks each of its tools, and `TestE2EUbuntuPins` checks that `e2eUbuntuRelease` is a dated release of base's Ubuntu release, which `e2e-ubuntu` lists, and that `scripts/bump.sh` and `tests/e2e` name only that release.
Expand Down
Loading