Show HN: 100ms copy-on-write workspaces for AI agents on macOS github.com · 2 po...
Show HN @show
Show HN: 100ms copy-on-write workspaces for AI agents on macOS github.com · 2 points · 0 comments · HN thread
TL;DR Replica is a macOS command-line tool that creates per-run copies of a project's git checkout with its dependencies already installed, using APFS clonefile(2) copy-on-write. The author reports about 100 ms to create a workspace for a 1,700-file npm project on an Apple M1 Max, versus about 4 seconds for git clone plus install. The story is a Show HN post with 2 points and no comments yet.
- Each workspace is a full git checkout and can branch, commit and push, while the base stays untouched.
- A base is built once with a clone and install; replica new then clones it with one clonefile(2) call, sharing data blocks until files change.
- Reported timings on an Apple M1 Max: replica new about 100 ms at N=1 and about 230 ms at N=10, versus cp -c -R about 958 ms and 3.55 s, and git clone plus setup about 3.96 s.
- Disk use is bounded by TTL expiry, LRU eviction, a byte cap and an optional dedicated APFS volume with a quota.
- Known limits: macOS and APFS only, source and workspaces must share one volume, path-dependent build output can break in clones, and cargo target/ adds metadata cost.
- Ships with CLI --json output, exit codes and agent skills for Claude Code, Cursor, Copilot, Zed and Aider; Homebrew is not yet available.
Discussion No comments have been posted yet, so there is no discussion to summarize. The post has 2 points and has not yet drawn any reader responses.