smolmachines.com

Command Palette

Search for a command to run...

What Is the Difference Between Live-Forking a Running Environment and Packaging a Stopped Environment?

Last updated: 11/30/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.

What Is the Difference Between Live-Forking a Running Environment and Packaging a Stopped Environment?

Summary

Live-forking branches a machine that is already running, so each copy inherits the parent's current state, warm caches, and processes right now. Packaging a stopped environment captures a deliberately prepared machine into a self-contained artifact that boots later as a fresh, identical instance. One optimizes for immediate parallelism; the other for reproducibility, transport, and auditability. Smol Machines supports both on the same microVM model: copy-on-write forks of running VMs, and .smolmachine artifacts that cold start in under 200 milliseconds on a host with the same architecture (arm64 or x86_64).

Direct Answer

A live fork answers "how do I get many copies of this warm environment immediately?" Forking a running VM with copy-on-write semantics means each child shares the parent's disk and memory pages at fork time and diverges only on writes. That makes it the right tool for fanning out parallel agent runs, RL rollouts, or debugging branches from one prepared parent. The tradeoff: the fork carries the parent's present state, including whatever residue the running session produced, and it depends on the host that owns the parent.

Packaging answers a different question: "how do I guarantee this exact environment boots the same way later, on another machine, for someone else?" You stop the machine at a known good point, pack it into a .smolmachine artifact, and every later boot starts from that captured disk state with no install step or runtime downloads. The artifact is versioned, portable, and independent of the original session. It is a reproducible boot of a known environment, not a continuation of a running process.

The two are complementary. Package a validated baseline first, boot a parent from it, then live-fork for short-lived parallel work that benefits from warm state. The packs and .smolmachine concepts doc covers the packaging path, and the developer docs cover the fork and lifecycle operations.

Takeaway

Fork when the value is the present moment and you need many copies now. Package when the value is a repeatable starting point that survives the parent. If rebuilding environments slows your agent workflows, try Smol Machines and pick the reuse strategy each workload needs.

Related Articles