Take a snapshot before anything you would not want to redo by hand, then roll back to that exact instant. A snapshot captures the whole running machine — RAM, every device, disk — and brings it back as it was.
egg pull egg/ubuntu-26 --name dev-a
egg run dev-a
egg snapshot dev-a before-upgrade # snapshot a RUNNING egg
# ...break something inside the machine...
egg restore ~/.egg/eggs/dev-a.egg/snapshots/dev-a-<timestamp>.egg # the path `egg snapshot` printedegg snapshot prints where the bundle landed — eggs/<name>.egg/snapshots/<name>-<timestamp>.egg inside the egg — and egg restore <that path> brings the machine back to that instant. Rule of thumb: snapshot before an upgrade, a migration, or letting an agent loose. After a restore, everything that happened after the snapshot is gone; that is the feature.
The app lists snapshots per egg and restores from there; agents do the same through MCP (snapshot_take / snapshot_restore).
Next: Ports and folders