THE AGENT SIGNAL LAB

Try Replica: inspect copy-on-write agent workspace isolation

Create a throwaway local Git repository, build a Replica base without dependencies or models, spawn two workspaces and verify edits stay in their own copies; test cleanup and record the observed setup latency.

20–30 minutes (optional on macOS/APFS)Hands-on guideChecked 19 November 2026
Download the Markdown guide

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 `curlsh`.
  • 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 clonefile method 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:

sh
replica help
replica help quickstart

Make a disposable repository. The commands below are for a scratch shell; they modify no external repository:

sh
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:

sh
replica base build --repo "$WORK/source" --setup "true"
replica base check
replica base status

Spawn two independent workspaces; time their creation with the shell rather than assuming the README's benchmark transfers to your machine:

sh
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 list

Expected (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:

sh
cd "$WORK"
replica rm ID_FOR_A
replica rm ID_FOR_B
replica list

After 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

Measure1 point if observed0 if absent / unknown
CLI and basereplica help, base build/status report no blocking errorCould not build or verify
Copy isolationB remains unchanged after writing AB changed or not checked
Original preservationOriginal fixture and Git working tree remain unchangedSource changed or not checked
LifecycleBoth named copies are listed and can be removed by IDCleanup unclear/failed
Timing auditReplica and baseline wall times recorded with hardware and fixture sizeTiming 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

  • replica not found: install the maintainer's v0.2.0 build, inspect replica help and your PATH. Do not silently substitute a different tool named Replica.
  • Clone fails across volumes: ensure WORK, REPLICA_ROOT and all copies share an APFS volume. Replica explicitly rejects cross-volume clone operations.
  • Build outputs use absolute paths: replica base check should identify path-dependent environments such as Python venvs; our synthetic fixture deliberately avoids them.
  • Unexpected errors or disk use: stop and inspect replica list and 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.

Get Agent Signal in your inbox

A short daily briefing on AI models, coding agents and research, with a link to the full report and one practical experiment.

Subscribe free →

Confirm your email to subscribe. Unsubscribe at any time.