I forked a live AI agent three ways, and every copy came up with its web server already running
说明与用途
实验表明,DigitalOcean Managed Agents 允许对微VM进行检查点、分叉和回滚,保留运行中的进程和文件。三个分叉都以相同的服务器PID启动,回滚恢复了被杀死的进程并保持相同PID。
问题
How to preserve and explore an AI agent’s state efficiently in a disposable sandbox environment.
结果
Forking a checkpointed session preserves all running processes and file state, allowing parallel exploration from the same exact state. Rollback restores killed processes with identical PIDs, confirming memory state is retained.
工作流
- 1. Start a session and run a Python HTTP server inside the sandbox.
- 2. Build a single‑file web dashboard with an AI agent (OpenCode, DeepSeek v4 Pro).
- 3. Checkpoint the session (25.2 s).
- 4. Fork the checkpoint three times (15.3 s).
- 5. Verify each fork starts with the same PID 593 and serves the same index.html.
- 6. Give each fork a different design brief and observe the resulting dashboards.
- 7. Kill the server and delete the app directory in the parent session.
- 8. Roll back the parent session to the checkpoint (5.6 s).
- 9. Confirm the killed process restarts with PID 593 and serves the original page.
证据
With the dashboard working, I checkpointed the session and forked it three times from that checkpoint:
fork1: PID 593 | local GET -> 200 | index.html 6695 bytes
rollback call: 5.59s until READY: 6.04s
app dir: index.html
server : PID 593
GET : 200
- 记录日期: 2026-10-15T08:56:00.831Z