Read-only mounts beat prompts: enforcing that parallel coding agents don't edit reference repos

Consistent_Piano4250 · reddit · 2026-12-02

When several coding agents share a project, a real failure mode is an agent editing a repo it was only meant to read (a library checkout, an old version for comparison, a shared config repo).

The author's fix is enforcing at the mount level instead of the prompt: in open-source SpaceApp, folders are invisible until registered, and reference repos can be added via workspace add <path> --read-only. A prompt saying "don't touch this" is a request; a read-only mount is not.

Limitation: containers aren't a sandbox against hostile workloads — this guards against mistakes, not malice. The author asks how others enforce read-only and whether agents have written where they shouldn't.

Original post →

More from coding & agent

coding & agent channel →