betaFeedback

WorksComputer Science

TimeTravelContainer: A Live Forking Sandbox for Stateful Agent Exploration

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×\times environment cloning speedup, 31–72% memory reduction, and 1.7–9.4×\times end-to-end speedup, demonstrating that live forking removes a scaling barrier for agent-driven exploration of stateful tool environments.

Introduction

LLM agents are increasingly capable of driving complex, stateful tools through multi-round interaction. In software engineering, agents open editors and terminals, propose code changes, run tests, and iterate based on feedback [1], [2]. In electronic design automation (EDA), agents drive interactive tool shells to optimize a circuit [3], [4], [5]. Similar patterns arise in robotics simulation, database tuning, scientific computing, and anywhere an agent maintains a long-lived session with an interactive tool.

A key capability for such agents is stateful exploration: the ability to clone a live tool session, try alternative actions in parallel, and roll back to earlier states without losing work. This maps directly to tree search, Monte Carlo rollouts, and speculative execution whose effectiveness depends on the cost of creating and managing alternative execution states. For agents to achieve superhuman turnaround time and quality, the sandbox that hosts the tool session must support instant cloning, cheap branching, and transparent isolation.

Today’s agent harnesses do not support this well. Cloning a tool session currently means either checkpointing the tool’s state to disk and restoring it, or relaunching the tool from scratch on a saved snapshot. Existing agent sandboxes [6], [7] provide isolation but no mechanism for cloning a live session. MicroVM-based platforms [8], [9], [10] support VM snapshots but serialize the full guest memory image to storage, which is impractical when tools maintain tens of gigabytes of resident RAM. Kernel-level approaches [11], [12] achieve faster forking but require custom kernel modules or elevated privileges, making them impractical on shared compute farms, personal laptops, and edge devices where installing a kernel module is either complex and insecure, or may require weeks of IT approval if it is permitted at all. Since the sandbox will be invoked by autorun agents directly, the additional exposure to external malicious attacks from using non-standard kernel modules is also a concern. The lack of live forking support forces agents to either explore sequentially, wasting the parallelism that would accelerate search, or pay a steep latency and memory tax for each clone.

We present TimeTravelContainer (TTC), a rootless Linux container runtime with a live forking primitive. Built on gVisor’s [13] userspace kernel, TTC clones an entire running container, including all processes, threads, memory, filesystem, and internal network state, with copy-on-write (CoW) semantics. Because all OS state is managed in userspace, TTC implements container-level fork without kernel patches, hardware virtualization, or root privileges, and can itself run inside another sandbox. TTC runs natively on Linux, Apple Silicon Macs (via Hypervisor.framework), and Windows (through WSL 2), making it a portable foundation for agent harnesses across platforms—from cloud clusters to personal computers. A fork creates independent clones that share the same causal prefix: tool state that predates the fork point remains shared; only memory pages that a clone actually modifies are allocated. This makes fork cost independent of resident memory size and proportional only to the subsequent divergence.

We evaluate TTC on two agentic EDA flows as representative stateful-tool workloads. EDA is a stress test for live forking: tools maintain tens to hundreds of gigabytes of resident RAM dominated by read-only data structures, run as proprietary binaries that cannot be modified, and execute on shared compute farms where root access is typically unavailable. We integrate TTC into MAGE [4], which drives Cadence Innovus for interactive macro placement, and EvoDRC [5], which uses KLayout for evolutionary design-rule-violation repair. Our contributions are:

  1. A portable live-forking primitive for agent sandboxes. TTC provides in-memory CoW container forking as a rootless, unprivileged runtime that requires no kernel modifications and runs on Linux, macOS, and Windows, addressing a performance gap in current agent infrastructure (Table I).

  1. Integration into two agentic circuit design flows. We show how TTC replaces file-based checkpointing in MAGE/Innovus and tool relaunching in EvoDRC/KLayout, enabling transparent cloning and parallel exploration with no changes to the tools themselves.

  1. Systematic evaluation. On MAGE, TTC achieves 84.1× speedup on environment cloning (86.5 s → 1.03 s) and 31–72% resident memory reduction across concurrent instances. On EvoDRC, TTC delivers 1.8–2.1× end-to-end speedup on the original small benchmarks and 8–9.4× on larger designs, demonstrating that live forking removes a scaling barrier that previously limited the scope of agent-driven exploration.

Preliminary

Stateful Exploration in Agent Workflows

LLM agents increasingly drive stateful, interactive tools across domains. In software engineering, agents open editors, terminals, and debuggers to propose patches, run tests, and iterate on feedback [1], [2]. In electronic design automation (EDA), agents have been applied across the chip design flow: RTL generation and repair [14], [15], [16], verification and testbench construction [17], [18], [19], logic synthesis optimization [20], [21], [22], physical implementation [3], [23], [24], design-rule violation repair [5], [25], and end-to-end ASIC flows [26]. Similar stateful interaction patterns arise in robotics simulation, database administration, scientific computing, and any domain where an agent maintains a long-lived session with an interactive tool.

A common pattern across these domains is stateful exploration: the agent opens an interactive tool session, proposes incremental changes, evaluates feedback, and decides to proceed, backtrack, or clone into parallel alternatives. The effectiveness of this exploration is bounded by the cost of managing alternative execution states. When backtracking requires a file-based checkpoint and relaunching the tool from scratch, the agent either explores fewer alternatives or pays a large wall-clock and memory penalty. This bottleneck

motivates a general-purpose live forking primitive for agent sandboxes.

Agent Sandboxes and Live Forking

Agent harnesses execute tool calls inside sandboxed environments for isolation and reproducibility. Most sandboxes prioritize security, i.e. preventing the agent from escaping the host, instead of execution flexibility such as cloning and restoring live states. Docker [6] and OCI containers provide filesystem and process isolation but no mechanism for cloning a running container. SWE-agent [1] and OpenHands [2] wrap agent sessions in Docker; forking requires stopping, committing, and relaunching, which discards in-memory state. E2B [7] provides cloud sandboxes with filesystem snapshots that serialize state to disk without capturing live process memory.

Virtualization approaches. A growing body of work targets execution-state flexibility. AgentENV [8], CubeSandbox [9], and forkd [10] build on microVM virtualization (KVM/Firecracker) and support snapshotting or forking virtual machines. However, their fork primitives serialize the full guest memory image to storage: the VM state must be written out and read back to create a clone. Stateful tools routinely maintain gigabytes to tens of gigabytes of resident RAM which is dominated by read-only data (loaded models, parsed databases, cached indices) that need not be copied at all. This makes disk-based VM snapshots impractical for the sub-second cloning that interactive agent exploration requires.

Kernel-level approaches. Recent OS research addresses live forking directly. TClone [11] injects a kernel module into Linux to enable cross-container copy-on-write (CoW) page-table sharing and extends CRIU [27] to reconstruct process trees across namespaces without serializing memory to disk, achieving 3.4× lower fork latency than stock CRIU. DeltaBox [12] proposes an incremental checkpoint abstraction and accelerates rollback by forking from a frozen template process. Fork-Explore-Commit [28] introduces a FUSE-based CoW filesystem that gives each agent clone an isolated workspace, though it operates at the filesystem level and does not fork live process state. These kernel-module or kernel-patching approaches achieve fast forking but require deploying a custom kernel or privileged module, limiting applicability on shared compute clusters, managed cloud environments, personal computers, and mobile or edge devices where agents increasingly run.

Unix fork() and its limitations. The fork() system call [29] creates a child process sharing the parent’s address space via CoW, making it nearly instantaneous regardless of memory size. However, fork() cannot directly clone a complex application environment: it duplicates only the calling thread, leaving all other threads terminated in the child; it does not preserve process IDs, parent–child relationships,

PlatformLive fork supportIn-mem CoWUnmodified kernelUnprivileged
Docker [6]✗✗✓✗
SWE-agent [1]✗✗✓✗
OpenHands [2]✗✗✓✗
E2B [7]✗✗✓✓
AgentENV [8]✓✗✗✗
CubeSandbox [9]✓✗✗✗
forkd [10]✓✗✗✗
TClone [11]✓✓✗✗
DeltaBox [12]✓✓✗✗
FEC [28]✓*✗✓✓
gVisor [13]✗✗✓✓
TTC (ours)✓✓✓✓

Table 1. Comparison of agent execution environments.

or session/group membership; and it does not replicate open file descriptors pointing to container-local resources such as internal sockets or pseudo-terminals. A multi-threaded tool with background threads, IPC channels, and a multi-process architecture will crash or deadlock if merely injected with a fork() call.

CRIU (Checkpoint/Restore in Userspace) [27] solves the multi-process reconstruction problem by capturing the full state of a process tree, including threads, PIDs, file descriptors, signal handlers, and namespace membership. However, it does so by serializing the entire memory image to disk. Restoration requires elevated privileges (CAP_CHECKPOINT_RESTORE or CAP_SYS_ADMIN), and the restored copy materializes every page independently, including the large read-only regions that could have been shared, with no CoW sharing with the original.

gVisor and TTC. gVisor [13] reimplements the Linux kernel interface entirely in userspace as a sandboxed process (the “Sentry”), intercepting application system calls without kernel modifications or hardware virtualization. Because the Sentry manages all OS state including page tables, file descriptors, PIDs, and sockets in its own address space, it can present to the guest processes a complete Linux kernel while implementing its own layers of abstraction for security purposes. We found the abstraction power of gVisor to extend beyond sandbox security needs, and can serve as a general memory and OS resources virtualization layer. TimeTravelContainer (TTC) extends gVisor with exactly the primitives agents need: a container-level fork that clones the complete environment (processes, threads, filesystem, network, memory) with CoW semantics, without requiring kernel patches, KVM, or elevated privileges. The technical details are elaborated in Section III. Table I compares TTC against existing platforms.

TimeTravelContainer

Figure 1 shows the architecture of TimeTravelContainer (TTC). A sandbox family groups all clones of one container into Git-like branches. The branches share a single platform instance (the daemon) and page pool but each owns an independent kernel object graph with its own process tree, file descriptors, virtual filesystem, and network stack. The following subsections describe how TTC realizes live forking, copy-on-write resource sharing, lifecycle management, cross-platform portability, and cross-node scaling.

Figure 1. TTC architecture. All branches share one userspace platform and a common page pool. Each branch maintains an independent kernel (processes, VFS, network). Pages marked S are shared via CoW; pages marked P have diverged and are branch-private. Operations shown: fork (instantaneous in-memory clone), pause (CPU release, memory resident), dehydrate (private pages to disk), and remote fork (cross-node clone with on-demand page fetch).

A Userspace Kernel as Portable Foundation

An agent harness must run in diverse environments: shared compute clusters, managed clouds, personal laptops, and even inside other sandboxes. Requiring kernel modules, hardware virtualization, or root privileges, as prior work does [11], [12], [8], limits deployment to environments where such modifications are permitted.

TTC adopts gVisor’s userspace kernel [13] as its foundation. The gVisor’s userspace kernel (called Sentry) is a single unprivileged process that intercepts every system call and page fault from guest applications and simulates the full Linux kernel interface: process management, virtual memory, filesystems, networking, and signals. Every guest process, whether a multi-threaded application server, a database, or an EDA tool, sees a complete, unmodified Linux environment.

Because all OS state lives inside the Sentry’s address space rather than in host kernel data structures, TTC can implement container-level fork, pause, dehydration, and migration as operations on its own in-process data, without any kernel cooperation. These operations are invisible to the guest application and require no co-design with it: the tool runs its unmodified binary and is unaware that its environment has been forked or migrated.

Copy-on-Write Memory for Parallel Exploration

Parallel exploration means running multiple copies of the same tool. Naively, each copy materializes its own full memory image. A single interactive session may use gigabytes to tens of gigabytes of resident memory. Running four parallel branches would multiply this proportionally, quickly exhausting node capacity.

In practice, most of that memory does not change across branches: parsed data structures, loaded libraries, cached indices, and tool state that predates the fork point are all read-only. TTC exploits this by transparently sharing identical pages across branches.

At fork time, TTC marks every memory page in the source branch as copy-on-write: logically writable, but mapped read-only in hardware. When a branch first writes to a shared page, the hardware MMU generates a page fault. TTC intercepts the fault, allocates a fresh 4 KiB page, copies the original content, and remaps the new page as writable. Subsequent reads and writes to that page are handled entirely by the hardware MMU with no TTC involvement. The CoW retirement cost is thus a one-time event per diverged page, and the steady-state memory overhead is proportional only to the pages that actually differ between branches, not to the total resident size.

Copy-on-Write Filesystem for Data Isolation

Stateful tool sessions often involve substantial on-disk data: design files, model weights, database snapshots, intermediate results, and configuration. Agents and tools read and write these files, and concurrent branches must not interfere with each other.

In software engineering agent harnesses such as SWE-agent [1] and OpenHands [2], file isolation is typically achieved via git worktree, which duplicates the entire working tree. This approach has two limitations for general stateful tools: it duplicates all files regardless of whether they will be modified, consuming substantial storage; and its strength lies in ASCII text files tracked by Git, while many workloads predominantly use binary files or large artifacts that are not Git-friendly.

TTC instead presents each branch with a virtual CoW file tree. Every file operation is intercepted at the userspace kernel level, where the Sentry already owns the entire filesystem interface that guest processes interact with. Unmodified files are shared across branches by reference. When a branch first writes to a file, TTC creates a branch-local copy (using host filesystem reflinks where available, or whole-file copy otherwise) and redirects subsequent accesses to the local copy. This requires no FUSE module or kernel filesystem driver, because TTC already mediates all guest I/O.

Resource Management for Idle Branches

Container branches frequently become idle. A subagent may finish its exploration, wait for LLM inference, or simply serve as a clean rollback point that the main agent preserves in case subsequent attempts fail. These idle branches still consume CPU time and memory if left running.

TTC provides two graduated mechanisms for releasing resources:

Pause stops all threads in the branch and releases CPU, but keeps the branch’s memory resident. Resume is instantaneous: the threads restart exactly where they stopped with no reloading. This is suitable for short idle periods such as waiting for LLM inference.

Dehydrate goes further: it writes the branch’s private pages to persistent storage and releases the corresponding physical memory, allowing a branch to become completely cold. Two design decisions make dehydration practical:

First, rehydration is instant from the tool’s perspective. When a dehydrated branch is resumed, TTC starts its processes immediately before all memory pages have been loaded from disk. Pages that the process accesses are fetched on demand with priority; all remaining pages are loaded asynchronously in the background. The tool resumes execution on the first instruction after dehydration without waiting for a bulk restore.

Second, dehydration preserves CoW relationships. Only pages that are private to the dehydrated branch, i.e. pages that have already diverged from other live branches, are saved. Shared pages remain in the page pool, referenced by the live branches that still need them. When the branch is later rehydrated, it re-establishes CoW references to the shared pages rather than materializing independent copies. A dehydrate–rehydrate cycle therefore does not inflate memory usage.

Cross-Platform Portability

Agent harnesses run in increasingly diverse settings: cloud clusters, on-premises servers, developer laptops, and edge devices. A live-forking primitive tied to a single OS or architecture limits adoption.

TTC achieves cross-platform portability through its userspace kernel design. On Linux hosts (kernel ≥3.17\ge3.17), TTC intercepts system calls via seccomp, without requiring hardware virtualization or nested virtualization at all. In environments where hardware virtualization is supported, an optional KVM backend is also available for lower syscall latency. On Apple Silicon Macs (macOS 15.0+), TTC uses a native Hypervisor.framework backend: it runs itself as the guest-facing kernel inside the hypervisor, providing a full Linux environment without booting a Linux VM. On Windows, TTC runs through WSL 2. In all cases, the same container images, fork semantics, and CLI interface are fully supported.

TTC is an extensible platform in which users can add their own abstractions of physical hardware and define their forking semantics. As built-in examples, TTC supports in-container Vulkan and OpenGL graphics acceleration and CUDA GPGPU on Linux, which allows booting a forkable, graphics-accelerated Android [30] or running GPU-accelerated inference (e.g., llama.cpp with Vulkan and CUDA backends) inside a forkable container. This extensibility lets TTC adapt to workloads that require specialized hardware, from EDA tools using compute accelerators to agents driving graphical applications.

The special focus on portability enables TTC to serve as a foundation for agent harnesses that must run across platforms: on shared EDA compute farms where root access is unavailable, on a researcher’s MacBook during development, or on edge devices collecting agent trajectories for continuous training data.

Cross-Node Forking for Cluster-Scale Exploration

Stateful tools are resource-intensive, and production workloads typically run on clusters of compute nodes. When parallel exploration exceeds the memory or CPU capacity of a single node, branches must spill to other nodes.

TTC supports remote fork: a branch on one node can be forked to create a new branch on a different physical node, or an existing branch can be migrated between nodes, all without interrupting the running processes. The target node starts the new branch immediately with an initially empty memory image and fetches pages on demand: each 1 MiB memory chunk is retrieved from the source node or from shared storage (e.g., NFS or Lustre).

The filesystem layer follows the same pattern. File objects from the shared base image are accessible through the shared storage mount. Branch-local file modifications are transferred lazily alongside memory chunks. This design means that the wall-clock cost of a remote fork is dominated by the pages the target actually touches, not by the total resident size of the source branch.

Experimental Results

We evaluate TTC on two agentic electronic design automation (EDA) flows as representative stateful-tool workloads. EDA tools are a demanding test case for live forking: they maintain tens to hundreds of gigabytes of resident RAM, run as proprietary binaries that cannot be instrumented, and operate on shared compute farms where root access is unavailable. We use MAGE [4], where an LLM agent drives Cadence Innovus for interactive macro placement; and EvoDRC [5], where an evolutionary agent drives KLayout for DRC violation repair. These two flows represent different integration patterns: checkpoint/restore replacement (MAGE) and tool-relaunch elimination (EvoDRC).

Experimental setup. All experiments run on servers with dual Intel Xeon Platinum 8270 processors (2.70 GHz, 52 physical cores) and 755 GiB RAM per node, running Rocky Linux 8.9 with kernel 6.1.62. Each tool operation used 8 worker threads, with aggregate concurrency capped at 52 threads per node. We used MAGE revision 27c3ed72 with Cadence Innovus 23.37-s090_1, and EvoDRC revision 69a138b3 with KLayout 0.30.12. All experiments replay fixed tool workloads without invoking an LLM, so reported times exclude LLM inference latency.

Benchmarks

Table II summarizes the designs used in our experiments. The MAGE benchmarks (Ariane133 and BlackParrot) are large-scale designs from the MAGE flow. The EvoDRC benchmarks comprise seven small blocks (Block1–7) from the DAC’26 DRC benchmark suite [31] and three larger designs (AES, Ibex, JPEG) that we adapted from ResizerAgent [32].

FlowDesignTech.CellsNets
MAGEAriane133Nangate45118 594172 525
MAGEBlackParrotNangate45719 4011 354 154
DAC26 DRCBlock1ASAP7143120
DAC26 DRCBlock2ASAP76243
DAC26 DRCBlock3ASAP77662
DAC26 DRCBlock4ASAP710781
DAC26 DRCBlock5ASAP74728
DAC26 DRCBlock6ASAP7155101
DAC26 DRCBlock7ASAP7574410
ResizerAgentAESASAP731 16318 612
ResizerAgentIbexASAP732 70523 029
ResizerAgentJPEGASAP775 80361 925

Table II. Benchmark designs.

MAGE: Cloning Speedup

We compare two ways to create an independently usable copy of a prepared Innovus session. In the conventional MAGE workflow, the agent saves an Innovus checkpoint to disk, launches a new Innovus process, and restores the checkpoint; both saving and loading are I/O-bound and scale with the on-disk image size. With TTC, the agent instead forks the running container, preserving the initialized Innovus process and sharing its memory via copy-on-write. Both paths complete after an equivalent readiness query succeeds; we measure the total time from initiating the clone to readiness. These results isolate the cloning primitive and do not include the MAGE agent’s end-to-end runtime, which is currently dominated by Innovus routing.

Table III reports the results. On Ariane133, TTC reduces cloning latency from 86.5 s to 1.03 s, an 84.1×\times speedup. On the larger BlackParrot design (719 K cells), checkpoint/restore takes 185.7 s; TTC fork completes in 3.0 s, a 61.8×\times speedup. TTC’s fork cost is dominated by metadata serialization and is largely independent of resident memory size. After forking, each child independently performs connectivity checks, DRC runs, and three edit-and-timing-report cycles to verify correct isolated operation and to measure memory divergence under realistic workloads (Table IV).

DesignSave (s)Load (s)Total (s)TTC fork (s)Speed-up
Ariane13311.475.186.51.0384.1×84.1 \times
BlackParrot22.3163.4185.73.0161.8×61.8 \times

Table III. MAGE/Innovus: cloning latency comparison.

BranchesDivergence stepCkptTTCSaved
Ariane133 (single instance: 5.0 GB)
2Ready9.15.837%
Conn. + DRC9.66.533%
3× edit+rpt9.96.831%
6Ready25.17.570%
Conn. + DRC27.712.356%
3× edit+rpt27.912.256%
BlackParrot (single instance: 8.8 GB)
2Ready17.110.638%
Conn. + DRC19.014.424%
3× edit+rpt20.515.524%
6Ready50.114.072%
Conn. + DRC59.736.140%
3× edit+rpt62.440.934%

Table IV. MAGE/Innovus: total resident memory (GB) across concurrent branches. “Saved” is the fraction of memory eliminated by CoW sharing.

MAGE: Memory Reduction

Table IV reports the total resident memory when running multiple concurrent Innovus branches. In the checkpoint/restore baseline, each branch materializes an independent memory image, so total memory scales linearly with the number of branches. With TTC, branches share read-only pages via copy-on-write: only pages that a branch actually modifies are duplicated.

With 2 branches on Ariane133, TTC reduces memory by 37% immediately after forking (“Ready”). After the branches diverge through connectivity checks, DRC runs, and edit–timing-report cycles, TTC still saves 31% because most of the memory (netlist graph, libraries, and technology data) remains shared. With 6 branches the savings are more pronounced: 70% at fork time, and 56% after divergence. The same trend holds on the larger BlackParrot design, where 6 branches would require 62.4 GB under checkpoint/restore

but only 40.9 GB under TTC after full divergence, a 34% reduction.

These results confirm that CoW sharing is effective for EDA workloads: the bulk of resident memory consists of read-only data structures (the netlist, libraries, and routing databases that predate the fork point), and only the incremental modifications made by each branch consume additional memory.

EvoDRC: End-to-End Tool Call Speedup

In the conventional EvoDRC path, each candidate evaluation prepares a Python layout context and launches a fresh KLayout process for DRC checking. With TTC, we prepare the context and a persistent KLayout process once, then fork this environment for each candidate evaluation. Each child inherits the fully initialized state while its modifications remain isolated from the parent; candidate rendering and layout loading remain part of the per-child evaluation. We verified that geometry, DRC reports, and repair verdicts match between the two paths.

Table V reports end-to-end runtime under two settings: a single evolutionary call (one generation of mutations) and 10 consecutive calls (a full repair campaign).

DesignOrig. (s)TTC (s)Speedup ×Orig. (s)TTC (s)Speedup ×
Block118.310.01.81851041.8
Block213.57.11.9136721.9
Block314.67.71.9168802.1
Block416.99.11.9169921.8
Block513.16.62.0135682.0
Block618.910.61.81911121.7
Block764.427.62.36523102.1
AES1 31841.331.913 8231 7258.0
Ibex3 08829.8103.530 8793 1799.7
JPEG8 52749.3173.085 2739 0329.4

Table V. EvoDRC/KLayout: end-to-end tool-call runtime comparison. Single call and 10 calls.

On the small blocks (Block1–7), TTC delivers 1.8–2.3×\times speedup per call. These blocks have modest KLayout startup cost, so the absolute time saved per fork is small, but the relative improvement is consistent. With 10 calls the speedups are similar (1.8–2.1×\times), confirming that the per-round savings compound linearly.

The advantage becomes dramatic on larger designs. On AES (31 K cells), TTC achieves 31.9×\times speedup on a single call and 8.0×\times over 10 calls. On Ibex and JPEG, the single-call speedups reach 103×\times and 173×\times, respectively. These designs have large layout databases that make KLayout relaunching extremely expensive; TTC’s live fork bypasses this cost entirely. The 10-call speedups (9.7×\times and 9.4×\times) are lower in ratio because they include the one-time initialization costs in the beginning of sessions to demonstrate end-to-end speed-up, but the absolute time savings remain substantial: JPEG drops from 23.7 hours to 2.5 hours.

These results demonstrate that TTC removes a scaling barrier in agent-driven exploration. On small designs where the tool’s startup cost is modest, TTC provides a steady ∼2×\sim2\times improvement. The savings are significant for larger designs, turning what would be multi-day runs into sub-hour experiments and making iterative agent exploration practical on these cases for the first time.

Discussion

The MAGE and EvoDRC results demonstrate complementary aspects of TTC’s value.

Cloning cost. MAGE shows that TTC reduces per-clone latency by 61–84× compared to Innovus checkpoint/restore. This speedup is the building block for any agent strategy that branches: tree search, Monte Carlo rollouts, or speculative exploration. Although MAGE’s current end-to-end runtime is dominated by Innovus routing (minutes per route), the cloning speedup becomes decisive as agents move toward finer-grained exploration with shorter per-branch work.

Memory efficiency. CoW sharing reduces resident memory by 30–70% depending on the degree of divergence. This directly translates to higher branch parallelism on a fixed memory budget: on Ariane133 with 6 branches, checkpoint/restore requires 25–28 GB while TTC fits in 7.5–12.2 GB, allowing either more branches or room for other workloads on the same node.

End-to-end impact. EvoDRC shows that when per-branch work is short relative to tool startup cost, TTC’s live fork delivers transformative end-to-end speedups. On larger designs where KLayout loading dominates, TTC achieves 31–173× single-call speedup. TTC enables short per-branch exploration on a heavy tool state at scale, which falls well in the advantage of LLM agents that prefer rapid trials with immediate feedback.

Generalizability beyond EDA. While our evaluation uses EDA tools, the properties that make live forking effective here: large read-mostly memory footprints, expensive tool initialization, and the need for isolated parallel exploration, are shared by many stateful agent workloads. Database agents that explore query plans or schema migrations on multi-gigabyte databases face the same clone-or-relaunch dilemma. Robotics simulation agents that evaluate action sequences in physics engines would benefit from forking a simulator mid-episode rather than replaying from the initial state. Software engineering agents already use file-level isolation (git worktree), but forking the entire environment with running servers, databases, and build caches, would enable richer exploration. TTC’s CoW fork is tool-agnostic: it operates below the application layer, requires no instrumentation or co-design with the guest tool, and its benefits scale with the fraction of memory that remains shared across branches. Moreover, TTC’s cross-platform portability (Linux, macOS, Windows) and rootless deployment mean that these benefits are accessible on personal computers and edge devices, opening the possibility of collecting branched agent trajectories across diverse real-world tasks for training continuously improving agentic models.

Conclusion

We presented TimeTravelContainer (TTC), a rootless, unprivileged container runtime that live-forks running tool sessions with copy-on-write semantics. TTC requires no kernel modifications, hardware virtualization, or root privileges, runs on all major platforms, making it a portable foundation for agent harnesses across platforms.

Evaluated on two agentic EDA flows as representative stateful-tool workloads, TTC achieves 84.1× cloning speedup over Innovus checkpoint/restore, 31–72% memory reduction across concurrent branches, and up to 9.4× end-to-end speedup, demonstrating that live forking removes a fundamental scaling barrier for agent-driven exploration.

Beyond EDA, TTC enables a broader class of agent strategies that combine multi-round interaction with parallel exploration. Any domain where agents drive stateful, long-lived tool sessions: software engineering, database administration, robotics simulation, and scientific computing, can benefit from instant, memory-efficient forking. Because TTC’s forking primitive is tool-agnostic and its deployment is unprivileged, it extends to environments ranging from shared compute clusters to personal computers and edge devices, opening the possibility of collecting branched agent trajectories across diverse real-world tasks for training continuously improving agentic models.

References

  1. [1]J. Yang, C. E. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press, “SWE-agent: Agent-computer interfaces enable automated software engineering,” in Advances in Neural Information Processing Systems (NeurIPS), 2024.arxiv.org/abs/2405.15793
  2. [2]X. Wang, B. Li, Y. Song, F. F. Xu, X. Tang, M. Zhuge, J. Pan, Y. Song, B. Li, J. Singh, H. H. Tran, F. Li, R. Ma, M. Zheng, B. Qian, Y. Shao, N. Muennighoff, Y. Zhang, B. Hui, J. Lin, R. Brennan, H. Peng, H. Ji, and G. Neubig, “OpenHands: An open platform for AI software developers as generalist agents,” arXiv preprint arXiv:2407.16741, 2024.arxiv.org/abs/2407.16741
  3. [3]H. Wu, Z. He, X. Zhang, X. Yao, S. Zheng, H. Zheng, and B. Yu, “ChatEDA: A large language model powered autonomous agent for EDA,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2024, arXiv:2308.10204.DOI
  4. [4]A. B. Kahng, S. Kundu, and B. Pramanik, “MAGE: Human-like macro placement via agentic multimodal reasoning,” arXiv preprint arXiv:2607.18536, 2026.arxiv.org/abs/2607.18536
  5. [5]B.-Y. Wu, C.-T. Ho, H. Yang, B. Khailany, and V. A. Chhabria, “EvoDRC: A self-evolving agentic framework for automated DRC violation repair,” in Asia and South Pacific Design Automation Conference (ASP-DAC), 2027, arXiv:2607.20019.arxiv.org/abs/2607.20019
  6. [6]“Docker: Accelerated container application development,” https://www.docker.com.
  7. [7]“E2B,” https://e2b.dev, 2024.
  8. [8]“AgentENV,” https://github.com/kvCache-ai/AgentENV, 2026.
  9. [9]“CubeSandbox,” https://github.com/TencentCloud/CubeSandbox, 2025.
  10. [10]“forkd,” https://github.com/deepile/forkd, 2025.
  11. [11]Y. Huang, V. Srivatsa, A. Asch, H. T. Patwa, and Y. Zhang, “TClone: Low-latency forking of live GUI environments for computer-use agents,” arXiv preprint arXiv:2605.17320, 2026.arxiv.org/abs/2605.17320
  12. [12]Y. Dong, J. He, S. Liu, Y. Hou, D. Du, X. Xu, S. Xu, B. Yang, Y. Xia, and H. Chen, “DeltaBox: Scaling stateful AI agents with millisecond-level sandbox checkpoint/rollback,” arXiv preprint arXiv:2605.22781, 2026.
  13. [13]Google LLC, “gVisor,” https://gvisor.dev, 2018.
  14. [14]C.-T. Ho, H. Ren, and B. Khailany, “VerilogCoder: Autonomous Verilog coding agents with graph-based planning and AST-based waveform tracing tool,” in AAAI Conference on Artificial Intelligence, 2025, arXiv:2408.08927.arxiv.org/abs/2408.08927
  15. [15]S. Thakur, J. Blocklove, H. Pearce, B. Tan, S. Garg, and R. Karri, “AutoChip: Automating HDL generation using LLM feedback,” arXiv preprint arXiv:2311.04887, 2023.arxiv.org/abs/2311.04887
  16. [16]Y.-D. Tsai, M. Liu, and H. Ren, “RTLFixer: Automatically fixing RTL syntax errors with large language models,” in Design Automation Conference (DAC), 2024, arXiv:2311.16543.arxiv.org/abs/2311.16543
  17. [17]R. Qiu, G. L. Zhang, R. Drechsler, U. Schlichtmann, and B. Li, “AutoBench: Automatic testbench generation and evaluation using LLMs for HDL design,” in Machine Learning for CAD (MLCAD), 2024, arXiv:2407.03891.arxiv.org/abs/2407.03891
  18. [18]———, “CorrectBench: Automatic testbench generation with functional self-correction using LLMs for HDL design,” in Design, Automation and Test in Europe (DATE), 2025, arXiv:2411.08510.arxiv.org/abs/2411.08510
  19. [19]W. Fang, M. Li, M. Li, Z. Yan, S. Liu, H. Zhang, and Z. Xie, “AssertLLM: Generating and evaluating hardware verification assertions from design specifications via multi-LLMs,” in Asia and South Pacific Design Automation Conference (ASP-DAC), 2025, arXiv:2402.00386.arxiv.org/abs/2402.00386
  20. [20]A. Hosny, S. Hashemi, M. Shalan, and S. Reda, “DRiLLS: Deep reinforcement learning for logic synthesis,” in Asia and South Pacific Design Automation Conference (ASP-DAC), 2020.arxiv.org/abs/1911.04021
  21. [21]A. Grosnit, C. Malherbe, R. Tutunov, X. Wan, J. Wang, and H. Bou Ammar, “BOiLS: Bayesian optimisation for logic synthesis,” in Design, Automation and Test in Europe (DATE), 2022, arXiv:2111.06178.arxiv.org/abs/2111.06178
  22. [22]X. Yao, Y. Wang, X. Li, L. Ran, R. Chen, L. Chen, M. Yuan, H. Xu, and B. Yu, “RTLRewriter: Methodologies for large models aided RTL code optimization,” in IEEE/ACM International Conference on Computer-Aided Design (ICCAD), 2024, arXiv:2409.11414.arxiv.org/abs/2409.11414
  23. [23]A. Ghose, A. B. Kahng, S. Kundu, and Z. Wang, “ORFS-agent: Tool-using agents for chip design optimization,” in Machine Learning for CAD (MLCAD), 2025, arXiv:2506.08332.arxiv.org/abs/2506.08332
  24. [24]H. Wu, H. Zheng, Z. He, and B. Yu, “Divergent thoughts toward one goal: LLM-based multi-agent collaboration system for electronic design automation,” arXiv preprint arXiv:2502.10857, 2025.arxiv.org/abs/2502.10857
  25. [25]C.-C. Chang, C.-T. Ho, Y. Li, Y. Chen, and H. Ren, “DRC-Coder: Automated DRC checker code generation using LLM autonomous agent,” in Proc. ACM/IEEE Int. Symp. Physical Design (ISPD), 2025, arXiv:2412.05311.DOI
  26. [26]A. Allam, Y. Mansour, and M. Shalan, “ASIC-agent: An autonomous multi-agent system for ASIC design with benchmark evaluation,” in IEEE International Conference on LLM-Aided Design (ICLAD), 2025, arXiv:2508.15940.DOI
  27. [27]“CRIU: Checkpoint/restore in userspace,” https://criu.org.
  28. [28]C. Wang and Y. Zheng, “Fork, explore, commit: OS primitives for agentic exploration,” in AgenticOS Workshop at ASPLOS, 2026, arXiv:2602.08199.arxiv.org/abs/2602.08199
  29. [29]A. Silberschatz, P. B. Galvin, and G. Gagne, Operating System Concepts, 10th ed. Wiley, 2018.
  30. [30]“ReDroid: Gpu-accelerated Android containers on linux,” https://github.com/remote-android/redroid-doc, 2024.
  31. [31]B.-Y. Wu, C.-T. Ho, H. Yang, C.-C. Chang, A. Akkur, B. Khailany, and V. A. Chhabria, “Toward agentic solution for DRC challenges in digital VLSI design,” in Design Automation Conference (DAC), Special Research Session, 2026.DOI
  32. [32]V. A. Chhabria, A. Dey, A. B. Kahng, I. Savidis, P. Shrestha, and B.-Y. Wu, “ResizerAgent: Agentic strategy selection for timing optimization in OpenROAD resizer,” in Machine Learning for CAD (MLCAD), 2026.

Paper details

vlnc:W_f79ms2pw
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents