Repository navigation
Task copies of a local repository: mount --branch, --uncommitted, rm --unmount - #152
Conversation
…--unmount A git: mount of a repository on this machine can stand in for a second checkout. `--branch NAME` starts git in the copy on a new branch at the mounted commit, so `git push origin NAME` brings its commits back without touching the branches there. `--uncommitted` copies in, once, what the repository's folder has changed since HEAD (changed, staged, new and deleted files, links and modes; not ignored files). `sandfs rm --unmount` unmounts and deletes a workspace in one step. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LAgZE9cvrECwdHFyP41Vd2
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (1)ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e4e6f4c8db
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…pipes Prepare the copy before read-only paths apply (the mount applies them again), check a remote's own branches rather than sandfs's copy's refs, treat files below a file that replaced their folder as deleted, and leave out pipes and devices instead of blocking on a read. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LAgZE9cvrECwdHFyP41Vd2
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c66ebe208b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LAgZE9cvrECwdHFyP41Vd2
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d07692250d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…lones included Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LAgZE9cvrECwdHFyP41Vd2
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 5caf6e1e60
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
Only the lead works in its folder: every new task gets its own copy, read-only tasks included (those skip .agents/setup). How a task gets its copy is the client's preference: the app says worktree; Sonny's --copies worktree|sandfs or /copies sets it, kept in ~/.agent/sonny/settings.json, and /copies refreshes only instructions Sonny wrote. The coordinator role text gains the sandfs loops from lydakis/sandfs#152: in a git repo a frozen copy on agent/NAME whose commits are pushed back, outside git a copy whose changes are checked and copied back; a copy lives as long as its task. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014GXjqTZdBRLJAuNfCfvzXM
Requested by George · project thread
A
git:mount of a repository on this machine can now stand in for a second checkout, which is what an agent harness wants for each task (here, Sonny's per-task worktrees):Changes (CLI only, no core API change)
mount --branch NAME(git sources): writes.git/HEADand.git/refs/heads/NAMEinto the new workspace, so git starts on a new branch at the mounted commit. Before this, a copy started on the branch checked out in the repository, and pushing back to it was refused (branch is currently checked out). The name has to passgit check-ref-format --branch, and a branch the repository already has is refused.mount --uncommitted(local repository atHEAD): copies in, once, what the repository's folder has changed sinceHEAD, asgit diff HEADandgit ls-files --others --exclude-standardlist it: changed, staged, new and deleted files, links and the executable bit, but not ignored files. It handles a folder that replaced a file, and folders that a deletion emptied. Both git commands run with--no-optional-locks, so the repository is only read. In the copy, staged files show as unstaged. It is refused for remote and bare repositories, and for a commit other thanHEAD.rm --unmount: unmounts first if the workspace is mounted, and accepts the mount's directory. A plainrmof a mounted workspace now says to pass--unmount.--read-only. If preparing the workspace fails, the new workspace is removed.Testing
a_task_copy_carries_uncommitted_files_and_pushes_back_on_its_own_branchcovers every kind of uncommitted change, frozen start, push back, each refusal, andrm --unmount.cargo clippy --workspace --all-targets -D warningsandcargo fmt --checkare clean.cargo test -p sandfs-clipasses on Linux FUSE, except the twosandfs shelltests, which need bubblewrap and this container doesn't have it. CI covers them.Generated by Claude Code