w3cjandClaude Opus 5.5 da68e5d67e feat(cosign): GitHub, CI's artifacts, the app's token, the config, the state and the lock
What devvm-cosign reads and writes, below its run:

- github.go, actions.go: every GitHub call goes through Client: releases
  listed, read one, by its tag, a draft made, an upload streamed from a
  file with the SHA-256 of the bytes it sent, a delete, a publish, the
  tap's contents; and the Actions API's runs of a workflow file, a run's
  artifacts by name and an artifact's zip, which redirects to storage
  that never gets the token. CI's token can only read the repo, so CI
  hands its build over this way, and only the co-signer makes and
  publishes releases.
- Lists are read a page at a time until a page holds only entries the
  caller is done with, newest first as GitHub lists them, so years of
  releases and bases never stop a run; ten pages it isn't done with are
  an error, never a list cut short. Every entry of a page is asked about
  (every), never stopping at the first that isn't done, so a caller that
  counts what it's asked, as init does, sees the whole page.
- TagRef: what a tag names now, so a release is published only while
  its tag names the tag object the rebuild checked; Latest: GitHub's
  latest release, which /releases/latest/download/ serves.
- artifact.go: an artifact downloaded into the co-signer's stage folder,
  capped, checked against GitHub's digest, and unzipped with nothing but
  a flat list of regular files, each named as a manifest names a file,
  stored or deflated, written new (O_EXCL), each no larger than its
  header says, within the artifact's bounds, and hashed as written.
- app.go: the GitHub App's installation token (RS256 JWT), now asking
  for actions: read beside contents: write, on the two repos alone.
- config.go: release_workflow and [base]'s workflow and
  max_snapshot_days; notify, the maintainer's command for a failed run;
  build_dir, the folder the builds' containers write, apart from
  state_dir, which they can't reach, neither in the other; ReadConfig,
  without the keys, for retry and ack; and the key
  files read from systemd's credentials folder ($CREDENTIALS_DIRECTORY)
  by their own names, where systemd's system manager makes them root's,
  mode 0440, with an ACL for the service's user, so there only others'
  bits are refused. A kind with no keys at all, as before the release
  keys are made, is refused by name, pointing at github-setup.md's
  step 1, so the co-signer doesn't start without them.
- state.go: a ledger for each kind: what it signed, the drafts it made,
  what it published, each refusal with how often it was retried, each
  alert with how often it was acked, and the CI runs it signed; releases
  also record the SHA-256 of each file kept for the tap and each tag
  object checked. The state's watermark, the highest release ID GitHub
  showed at init, and the drafts there were then, and the alerts on what
  isn't one of its own: a release someone else published since, by
  <tag>#<ID>, and a tap formula it didn't write. A save is refused when
  it drops or changes an entry or counts one back, and
  writeWhole now syncs the folder after the rename, so a crash can't
  lose the record of a version made before its signature is uploaded.
- lock_unix.go: one run at a time, unchanged.
- forbidigo's exclusions now name their files: the web for github.go and
  app.go, Flock for lock_unix.go, so a second client or lock elsewhere in
  the package still fails the lint.

Tests: the fake GitHub serves workflow runs and artifacts and makes
drafts; TestUnzip (a folder, a path, a parent, a dot file, a link, a file
twice, too many, a size that lies, not a zip, a file already there),
TestFetchArtifact, TestClientReleasesAndRuns, TestReleasesPaged (1,100
settled releases read in two pages), TestLedger, TestStateNeverBackwards
(drafts, publishes, kept files, alerts and refusals counted back),
TestConfigCredentials, TestConfigRefused (the build folder in the state
folder or the reverse). Reverted once each to see the test fail: the
paging's stop (TestReleasesPaged), the credentials folder
(TestConfigCredentials), the lint's scope (an http.Client in another
file fails forbidigo). The folder's fsync was checked with strace on
Fedora: openat of the folder and fsync right after the rename.

The state also counts each manifest's failed builds in a row
(Refusal.Failed, Ledger.failed): the third, maxBuildFailures, refuses it
as a mismatch does, with its cause (Why), and the count alone may go
back, as a lower one only builds more. And it records GitHub's latest
release at init (InitLatest), which a save may never change.
TestStateNeverBackwards covers both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 21:36:37 -07:00
2026-10-24 01:10:51 -06:00
2026-11-24 14:35:10 -07:00
2026-11-24 14:35:10 -07:00
2026-11-20 20:34:12 -07:00
2026-11-20 17:51:16 -07:00

devvm

One VM for every project

An isolated sandbox with your project's toolchain, ready for you or a coding agent to start coding.

Install · Read the docs · Staying safe

Install

On macOS, install devvm with Homebrew, which also installs Lima:

brew trust --formula devvmhq/tap/devvm
brew install devvmhq/tap/devvm

On Linux, install it with the install script, which also works on macOS and asks before it installs Lima, QEMU or access to /dev/kvm:

curl -fsSL https://github.com/devvmhq/devvm/releases/latest/download/install.sh | bash

Then run devvm doctor, which checks what devvm needs on your machine and says how to get anything that's missing.

Each release is signed with devvm's minisign key, RWSjzFsn7ETaijKJ2y7F4DtZobXmyv+LmdclJwZP/KmAkLUwOCzWF/2b, and Checking the install script shows how to check the script with it before you run it.

  • Requirements: macOS 13 or newer, or Linux, on arm64 or x86_64, with Lima 2.2 or newer (Lima's requirements).
  • Tested on Apple silicon Macs and on Linux on arm64 and x86_64, but not yet on Intel Macs.
  • Installing has the full list of requirements and the install script's options, and Upgrading and uninstalling covers what comes later.

Trying the release candidate

devvm 0.2.0-rc.1 is out to try before 0.2.0, and its release notes list what changes for your VMs when you upgrade. With Homebrew, install devvm-rc, the formula for prereleases, after uninstalling devvm if Homebrew installed it:

brew uninstall devvm
brew trust --formula devvmhq/tap/devvm-rc
brew install devvmhq/tap/devvm-rc

Without Homebrew, run the release candidate's own install script:

curl -fsSL https://github.com/devvmhq/devvm/releases/download/v0.2.0-rc.1/install.sh | bash

When the install script installed the devvm you have, devvm upgrade --to 0.2.0-rc.1 installs it too. Trying a prerelease covers moving on to the release and going back.

Quick start

cd ~/some-project
devvm
  1. Go to your project. Open a terminal and cd into any project folder.
  2. Run devvm. It shows what this folder's new VM gets, with the toolchains your project's files call for. Confirm to make the VM, or customize it to choose its toolchains, coding agents, layers, network tier and size.
  3. Start your agent. devvm opens a shell in the VM, at the same path as on your machine, and its prompt starts with (devvm), so run claude there.
  • Running devvm in the folder again opens the same VM.
  • Your first VM has the rest.

Note

The first run starts with a few questions that set devvm's defaults for every new VM and its base image: the size and coding agents new VMs get, and the base image's optional extras. It builds the base image once, in a few minutes. Later VMs start in seconds.

Tip

Claude Code needs your Claude login before its first start, which devvm agent login claude makes from the VM and keeps on your machine (Claude Code's login).

What's supported

  • Toolchains: devvm detects them from the project's files, so a folder with package.json gets node, and the toolchains page lists them all.
  • Coding agents: Claude Code, Codex, opencode, pi and Cursor CLI 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).
  • Layers: the built-in docker, nix and desktop layers, and your own from devvm layer new (layers).
  • Backend: devvm runs its VMs on Lima (backends).

Why use devvm?

  • Isolated: each project folder gets a VM of its own, which mounts only the project folder, at the same path as on your machine (what a VM can reach).
  • Network tiers: new VMs get the allowlist tier by default, so they reach only the hosts you allow (network tiers).
  • Secrets stay home: on every tier, your secrets, such as your GitHub token and Claude Code token, stay on your machine.
  • Agents in the sandbox: you start the agent in the VM's shell, so you never install it on your machine.
  • Ready in seconds: every VM is a copy of a base image, and toolchains are shared read-only between VMs (images).
  • No sandbox closes every gap: a few habits close most of what devvm can't close on its own, so read Staying safe before you trust a VM with a project.

Working on a clone

By default, the VM mounts your project folder, so the VM and your editor share the same files. With devvm --clone, the VM gets a clone of the repo of its own, so nothing in it can touch your working tree or .git, and its work reaches your repo only when you fetch it:

devvm --clone                 # make the VM with its own clone, and open a shell in it
git fetch devvm               # later, on this machine, fetch the VM's work as devvm/<branch>
git log -p main..devvm/main   # review it before you merge it

Working on a clone has the details.

Docs

The docs are at devvm.dev, and their source is in docs/.

  • Getting started: installing devvm, your first VM and the commands you use most.
  • Using devvm: images and tools, clones, links between VMs, ports and size, coding agents, SSH and editors, and troubleshooting.
  • Staying safe: the habits that keep you safe, network tiers, .git protection and attack vectors.
  • Backends: Lima, which runs the VMs, and what it gives them.
  • Compared to other tools: how devvm differs from Docker Sandboxes and other sandboxes.
  • CLI reference: every command, with its arguments and flags.
  • How it works: how devvm does what it does, for checking a claim or reviewing its security.
  • Contributing: building, testing and writing docs.

Security and contributing

License

MIT

S
Description
One VM for every project. An isolated sandbox with your project’s toolchain, ready for you or a coding agent to start coding
Readme MIT
25 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 95.3%
Shell 3.4%
JavaScript 1.3%