Peter Steinberger Speeds Up Git Worktrees ~80% Using Filesystem Clones
- Source
- x.com
- Date
Creating a git worktree normally means copying every tracked file into a new directory, which gets slow and disk-hungry once a repository is large or an agent needs many worktrees running in parallel. Steinberger's tool replaces that copy step with native filesystem clone operations, the same copy-on-write mechanism behind fast snapshots on APFS, Btrfs, XFS, and ReFS, so new files only take up space once they diverge from the original. The result is roughly an 80% reduction in the time it takes to stand up a new worktree, plus a corresponding cut in disk usage, with the implementation written in Rust and a possible port into Codex under discussion. Coding agents that isolate parallel sessions with worktrees pay this setup cost every time they spin up a new task, so a faster, cheaper worktree path translates directly into less wall-clock time and less wasted disk space for anyone running several agent sessions at once, particularly on filesystems that already support copy-on-write clones.
Next release (or dev channel) does worktrees ~80% faster via apfs/brtfs/xfs/ReFS folder clones. Also saves lots of disk space.
Context
Peter Steinberger, maker of the open-source coding- tool OpenClaw, says an upcoming release will create git worktrees, separate working copies of a repository that let multiple coding sessions run in parallel without stepping on each other, about 80% faster.
He attributes the speedup to cloning at the filesystem level using copy-on-write features built into APFS, Btrfs, XFS and ReFS, instead of copying every file individually, which he says also uses much less disk space. For anyone running many parallel AI coding-agent sessions through worktrees, faster and cheaper worktree creation directly shortens the overhead before each session can start working.
- AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
Checking sign-in…
Loading comments…






