twargaops · local vm engine
Local VMs that remember, reset, and multiply.
Yeast is a small CLI for QEMU/KVM machines on your own Linux box. Define them in yeast.yaml, bring them up with one command, snapshot them while they run, put them back in about two seconds — and fork them like dough.
linux + kvm · qemu · rootless · mit
Terminal demo: typing “yeast up” boots a machine named web while the yeast-cell mascot animates through its working mood; the machine then reports ready for SSH.
a live redraw of docs/demos/yeast-up.gif — same sprite as the cli
Two doors, one engine.
Yeast v2 keeps two kinds of guests at the table. Pick the door that sounds like you — the engine behind both is the same one.
For AI agents
Real machines with a contract your agent can trust: frozen JSON on every command, an MCP server in the box, a policy file that decides what tools may do, and an audit log that never forgets.
- frozen
yeast.v1/yeast.v2json - native
yeast mcp, stdio + http - policy gating + audit log
- egress: open / allowlist / offline
For Linux labs
Graphical desktops and headless workers: VNC display, GPU, UEFI, screenshots, scripted input, shared folders — and a reset button that takes two seconds, not twenty minutes.
- vnc + virgl gpu + uefi
screenshot+inputover qmp- live snapshot, ~2s restore, fork
- export qcow2 / rootfs / iso
For AI agents.
corridor oneEverything an agent touches returns the same shape of answer. yeast.v1 is frozen; yeast.v2 only adds. Tools arrive through yeast mcp over stdio or the daemon's /mcp endpoint — and .yeast/agent-policy.yaml, not client annotations, decides what is allowed.
Frozen JSON, every command
Every verb answers in a versioned envelope: schema_version: yeast.v2, stable fields, documented error codes.
Event streams
Lifecycle workflows stream JSON Lines events — boot, provision, restore, down — so agents watch progress, not exit codes.
A native MCP server
Speaks MCP over stdio for one project, or Streamable HTTP on the daemon. Same tools, same JSON.
A daemon when you want one
Local HTTP + SSE API for every service action, plus a WebSocket VNC proxy so a UI can watch the screen.
A Go SDK
The public pkg/yeast package drives the same engine — for tools that would rather link than shell out.
Policy the server enforces
Allowed and denied tools, exec timeouts, auto-snapshot-before-exec — decided inside Yeast, not by the client.
Receipts, append-only
Every action lands in an append-only audit log. What the agent did is written down — not up for debate.
Network on a leash
open, offline, or allowlist through a Yeast proxy that logs every allowed and refused domain. Fails closed.
# .yeast/agent-policy.yaml — enforced server-side by yeast mcp allow: [vm_up, vm_down, vm_snapshot, vm_restore, vm_exec, vm_screenshot] deny: [vm_destroy] snapshot_before_exec: true max_exec_timeout: 2m
enforced by yeast mcp — client annotations never override server policy
For Linux labs.
corridor twoA lab is a machine you can see, poke, and rewind. Boot a desktop with UEFI and a virgl GPU, watch it over VNC, drive it through QMP — then snapshot, fork, and export the whole thing.
A real display
Graphical desktops over VNC with virtio-gpu/virgl acceleration and UEFI firmware. It is a computer, not a container.
Screenshots on demand
QMP screendump grabs the framebuffer as PNG — proof of what the guest actually drew.
Hands you can script
Send keys and typed text through QMP. Drive an installer, press enter, paste a command — no SSH required.
Shared folders
Mount a host directory into the guest with virtiofs or 9p. Your files, both sides of the wall.
Live snapshots
RAM and disk captured while the machine keeps running. Restore lands in about two seconds.
Fork the lab
Parallel copies of one machine — same state, three benches. Run the experiment side by side.
Take it with you
Export images as qcow2, a plain rootfs, or a bootable ISO. The lab leaves the nest intact.
Use and throw away
Boot, run the command, print the result, delete the machine. Ephemeral by flag, not by faith.
The trick everyone asks about.
Snapshots in Yeast are live — RAM and disk, taken while the machine keeps running. Restore is the point of the exercise: it puts the machine back in about two seconds. Fork is the other half: one good state becomes many machines. Try it:
yeast snapshot web goldenlive — ram + disk, no downtimebreak the guest however you likedelete the config, corrupt the service — go onyeast restore web goldenback in about two secondsyeast fork web --count 3one golden state, three machines
# press the buttons in order — this is a real yeast story
What it needs. What it won't do.
Hand-made, not magic. Yeast asks for a few things up front, and it says no plainly.
✓ needs
- a Linux host with
/dev/kvm— WSL2 works in beta - QEMU installed — yeast drives it, it doesn't replace it
- rootless — no sudo, no system daemon
- the RAM and disk you actually assign, and not much more
✗ won't do
- no cloud control plane — your machines stay yours
- no Windows-guest focus — Linux guests are home turf
- and no pretending a broken host is fine:
$ yeast doctor ✓ /dev/kvm readable + writable ✓ qemu-system-x86_64 found ✗ vt-x in bios off — enable it, then come back
doctor tells you the truth before you waste an afternoon.
A taste of the verbs.
$yeast up # everything in yeast.yaml, running
$yeast snapshot web golden # live ram+disk, vm keeps running
$yeast restore web golden # back in about two seconds
$yeast fork web --count 3 # three copies for parallel work
$yeast screenshot web -o vm.png # framebuffer over qmp
$yeast mcp # tools for your agent, over stdio
$yeast run --rm ubuntu-24.04 -- bash -lc 'make test' # use and throw away
every verb also speaks --json and --events — the same answer, for a human or a machine.