TimeTravelContainer: A Live Forking Sandbox for Stateful Agent Exploration
Zizheng Guo, Yanqing Zhang, Nathaniel Pinckney, Cunxi Yu, Brucek Khailany
Abstract
LLM agents that drive stateful tools (e.g., interactive shells, design environments, simulation engines) frequently need to clone, backtrack, and parallelize live sessions to support exploration. However, cloning a live session today requires serializing the tool's in-memory state to disk or relaunching from scratch, both prohibitively slow for interactive exploration. Existing agent sandboxes based on microVMs or kernel patches either serialize full guest memory to storage or require privileged deployment, limiting use on shared compute farms, personal computers, and other restricted environments. We present TimeTravelContainer (TTC), a rootless container runtime that live-forks an entire running container, including processes, memory, filesystem, and network, with copy-on-write (CoW) semantics. Because the bulk of a tool session's memory is typically read-only after the fork point, clones share it automatically and only diverged pages consume additional memory. TTC requires no kernel modifications, hardware virtualization, or root privileges, and runs on all major platforms including Linux, macOS (Apple Silicon), and Windows (WSL 2), making it deployable as a portable foundation for agent harnesses. We evaluate TTC on two agentic electronic design automation (EDA) flows as representative stateful-tool workloads: MAGE (Innovus) and EvoDRC (KLayout). TTC achieves 84.1 environment cloning speedup, 31--72% memory reduction, and 1.7--9.4 end-to-end speedup, demonstrating that live forking removes a scaling barrier for agent-driven exploration of stateful tool environments.
Create a lesson
Metadata
- Categories
- cs.OS, cs.MA
- Comments
- 8 pages, 1 figure, https://github.com/NVlabs/TimeTravelContainer
Related papers
Ambar: Memory Management for Agentic AI Sandboxes at Scale
Shared title terminologycs.OSYigit Kemal Can, Pratyush Patel, Neha Gholkar et al.
TideSand: Performance-Accurate Sandbox Multiplexing for LLM Agents
Shared title terminologycs.OSShulu Li, Hanchen Li, Xiaokun Chen et al.
StateFork: Branchable Infrastructure for Agent Exploration
Shared title terminologycs.OSJiakai Xu, Tianle Zhou, Georgios Liargkovas et al.
Planarian: Managing Agent State with Statepoints
Shared title terminologycs.OSJinnan Guo, Hao Mark Chen, Kapil Vaswani et al.
Towards Fair Resource Sharing in Agentic LLM Serving
Shared title terminologycs.OSSehyeon Lee, Yuchen Xia, Zhaoyang Hong et al.
KernelArmor: End-to-End Agentic System for Establishing Memory and Thread Safety for CUDA
Shared title terminologycs.OSBodhisatwa Chatterjee, Mohamed Tarek Ibn Zaid, Sana Damani et al.