Tool: Replica v0.2.0. Status: SOURCE-REVIEWED / NOT EXECUTED. Cost: no model calls, paid API, Vercel or Kit usage. Optional local test only.
Why try it
Coding agents often need separate, fully installed Git workspaces. Replica creates copy-on-write clones of a prepared base on macOS APFS. This lab checks the claim you can actually observe: edits in one disposable workspace do not affect the original or a second workspace, and the tool can list/remove copies. It does not establish operating-system security isolation, faster agent inference, or a production throughput result.
Prerequisites and safety
- macOS on an APFS filesystem, working git command, shell, and Replica v0.2.0 obtained through its maintainer or compiled with a local Rust toolchain. Verify the release and build instructions independently; do not run arbitrary `curl | sh`. |
|---|
- Use only a new temporary folder, no secrets, no work repository, no model credentials. Stay on one APFS volume; do not run
sudo, mount a home directory, change existing configuration or create any paid service. - If the Mac is not APFS, stop; the
clonefilemethod is not supported. The reported 100 ms is the maintainer's own November benchmark on a specific machine, not a promised result.
Procedure
First inspect the tool you downloaded:
replica help
replica help quickstartMake a disposable repository. The commands below are for a scratch shell; they modify no external repository:
WORK="$(mktemp -d)"
mkdir -p "$WORK/source"
cd "$WORK/source"
git init
printf 'source-only\n' > fixture.txt
git add fixture.txt
git -c user.name=Demo -c [email protected] commit -m "synthetic fixture"
export REPLICA_ROOT="$WORK/replica"Build a local base, then inspect warnings. If the installed CLI's base build setup argument differs from the v0.2.0 README, consult replica help base; do not force it:
replica base build --repo "$WORK/source" --setup "true"
replica base check
replica base statusSpawn two independent workspaces; time their creation with the shell rather than assuming the README's benchmark transfers to your machine:
time A="$(replica new --ttl 20m --name agent-a)"
time B="$(replica new --ttl 20m --name agent-b)"
printf 'agent-a-only\n' >> "$A/fixture.txt"
printf 'A: '; tail -n 1 "$A/fixture.txt"
printf 'B: '; tail -n 1 "$B/fixture.txt"
printf 'Original: '; tail -n 1 "$WORK/source/fixture.txt"
replica listExpected (not verified here): A ends with agent-a-only; B and Original both end with source-only. The source and each workspace should have their own .git state. Time and paths depend on your host and CLI version. Use git -C "$A" status --short and the corresponding command for B to compare dirty working trees.
For a fairer latency comparison, measure a plain git clone "$WORK/source" "$WORK/control" under similar load; note that this tiny fixture is not a substitute for a large installed project.
Cleanup
Run replica list, copy the IDs for only these two workspaces, then replace ID_FOR_A and ID_FOR_B below. Do not copy the literal placeholders into a command:
cd "$WORK"
replica rm ID_FOR_A
replica rm ID_FOR_B
replica listAfter confirming both are gone, remove the synthetic root with rm -rf "$WORK" only if the displayed $WORK path is the temporary folder created above. Do not erase unrelated paths or the main repository.
Scoring and expected results
| Measure | 1 point if observed | 0 if absent / unknown |
|---|---|---|
| CLI and base | replica help, base build/status report no blocking error | Could not build or verify |
| Copy isolation | B remains unchanged after writing A | B changed or not checked |
| Original preservation | Original fixture and Git working tree remain unchanged | Source changed or not checked |
| Lifecycle | Both named copies are listed and can be removed by ID | Cleanup unclear/failed |
| Timing audit | Replica and baseline wall times recorded with hardware and fixture size | Timing only asserted from docs |
Total 0–5, with actual measurements entered by the reader. A score of 5 is a local functional smoke test, not a security certification.
Troubleshooting and limitations
replicanot found: install the maintainer's v0.2.0 build, inspectreplica helpand your PATH. Do not silently substitute a different tool named Replica.- Clone fails across volumes: ensure
WORK,REPLICA_ROOTand all copies share an APFS volume. Replica explicitly rejects cross-volume clone operations. - Build outputs use absolute paths:
replica base checkshould identify path-dependent environments such as Python venvs; our synthetic fixture deliberately avoids them. - Unexpected errors or disk use: stop and inspect
replica listand the project's disk-safety guidance before removing only test-created copies. - Parallel agents with credentials or unsafe scripts need their own process/container/VM isolation; APFS copy-on-write alone does not protect the host.
- No experiments were run in this edition's publication automation, no local file outside this article was touched, and timings above are illustrative/maintainer-reported only.
Sources: source README, v0.2.0 release, Apache-2.0 LICENSE, maintainer benchmark note.