# One workspace, three ways to run code

Why Lobby runs file edits, tests and full Linux workloads at different levels of isolation while keeping the same workspace.

_2026-11-27_

In a November test on Lobby dev, we paused a Linux VM with a process running in the background. Resuming from that checkpoint took 306 ms, and the process still had the same PID. We then tested a different recovery path: restoring a VM onto another AWS host from S3. That took 12.1 seconds and preserved both the workspace files and the running process.

- **1–8 ms** pooled script execution. Measured inside Code Mode isolates, with zero recorded queue time.
- **306 ms** full Linux VM resume. One warm RAM resume with a background process still alive.
- **12.1 s** cross-host VM restore. One restore from S3 with workspace files and the running process intact.

## Which runtime runs what

Most agent commands need much less than a full Linux VM. An agent can use a short JavaScript or TypeScript script to search for a function and edit its callers. In our dev test those scripts took 1–8 ms inside a pooled WebAssembly isolate, with zero recorded time in its queue.

If the agent runs a shell command next, it can use a Linux sandbox. If its test starts Postgres in Docker, it can use a hardware-backed VM. Each step uses the same execution interface and reads the same workspace. Working files sit on local NVMe, and another host can fetch missing content from S3 as it reads.

## What survived a restore

The two restore timings measure different operations. The warm resume used saved memory on the same host. The cross-host restore had to retrieve state from S3. In both cases we checked for the existing background process after recovery. Each timing is one observation, and the amount of saved state can change the result.

A separate fork test checked what the copied VM could access. The proxy rejected the parent credential when the child tried to use it. The child’s own grant worked.

## Why we put the runtimes on one pool

We moved the sandboxes and VMs onto the same dev pool. The estimated monthly EC2 node run-rate fell from $2,725 to $1,447. Then we filled one eight-vCPU node with a replay workload. It admitted 78 sandboxes without execution errors, but the median command took 16.6 seconds at that density, up from 6.6 seconds with 20. We would schedule fewer onto a node when someone is waiting on the next command.

---

Canonical URL: https://www.abloatai.com/blog/one-workspace-three-ways-to-run-code

Also machine-readable on this domain: /llms.txt, /llms-full.txt, /openapi.json, /sitemap.xml, /robots.txt
