Repository navigation
Description
The Gap
GOVERNANCE.md "Hub-Hosted Tooling" and AGENTS.md "Fleet Bootstrap" require a session to run hub tooling from a hub checkout of its own, fetched immediately before it is read, and never from a checkout another task is using. Neither says where that checkout lives, or who removes it when the task ends.
The repo-worktree skill's "Listing and Cleanup" covers task worktrees and temporary standalone clones of the repository being worked on. It does not mention the private hub checkout. pr_review.py cleanup removes a merged task's worktree and branch, but does not reach the hub checkout. cleanup --sweep --checkout <hub-clone> treats the clone as a base clone and never deletes it. On a clean clone at main it reports keep base-not-on-develop <hub-clone> is on main and lists nothing to remove.
So every session that follows the rule leaves a full hub clone behind, with nothing in the procedure or the tooling to remove it, and the maintainer ends up removing them by hand.
How It Showed Up
A downstream session drove a feature PR to develop. It cloned the hub to ~/repos/worktrees/ProjectTemplate-<slug> and ran local_review.py, pr_review.py attest, status, wait, comment and cleanup from it. cleanup then removed the task worktree and branch as designed, and the hub clone stayed.
A second problem made the delete harder. Running the tools as cd <hub-clone> && python3 scripts/pr_review.py … in the agent's persistent shell made the clone the session's working directory. Claude Code's built-in safety check then refused rm -rf <hub-clone> as removing the working directory, which only a person can approve. Running the tool in a subshell, (cd <hub-clone> && python3 scripts/pr_review.py …), leaves the session's directory alone and avoids this. No carried text says to use a subshell, and every command example is written python3 scripts/<tool>.py, which makes a bare cd the natural reading.
What Needs Deciding
- Where a private hub checkout lives. Candidates:
- the session's own scratchpad or temporary directory, which goes away with the session and needs no cleanup step; or
- the flat
~/repos/worktrees/ProjectTemplate-<slug>layout, which stays visible beside the task worktrees, at the price of an explicit removal step.
- Who removes it, and when. Either the rule names removal as the last step of a task that created one, beside
repo-worktree's post-merge cleanup, orpr_review.py cleanup(or--sweep) learns to recognize and remove a session-private hub clone that is clean and idle. - How to invoke the hub tools without moving the session's working directory. Either a subshell form in the examples, or tools that accept being run by absolute path from any directory, with that stated.
Acceptance
- A session that follows the carried rules and skills ends with no hub checkout left on disk and no step left for the maintainer.
GOVERNANCE.md"Hub-Hosted Tooling" and therepo-worktreeskill (or whichever skill owns it) state the location and the removal, and the command examples do not move the session's working directory.
Reported from a downstream HomeAutomation-Config session.
Activity
ptr727 commentedon Oct 23, 2026
Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391, item 3: the prose and documentation backlog frozen by #1311 in September is closed rather than worked one issue at a time, keeping open only the issues where a document states something the shipped code or workflow does not do. This issue was read as wording, structure, restatement, or a gap in guidance rather than a falsified claim. Reopen with the sentence and the behavior it misstates if that reading is wrong.
Open the Attended Session on Cloning a Private Hub Checkout (#3648)