Repository navigation
Org shell: worktree helper and org.check.extraCommands - #39
Merged
Merged
Conversation
`worktree new|list|prune` gives every PR branch its own worktree under <clones>/.worktrees/<repo>/<branch>, so several sessions can work in one repo while the clone stays on main; prune removes worktrees whose PR merged or closed and fast-forwards main. `org.check.extraCommands` lets a repo add gates `nix flake check` cannot run (repo CLIs, network), such as `clan vars check` in a clan repo; `check` runs them after the flake checks and fails on the first error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andrewthomaslee
enabled auto-merge (squash)
November 15, 2026 02:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is the tooling behind the new ground rules (external-systems/skills
rules/ground-rules.md). home will setorg.check.extraCommands = ["clan vars check"].Evidence
worktree list→ listsorg-shell-worktree-check NONE …andremove-code-agent-image OPEN ….worktreealone prints the usage and exits 2.devenv shell -- check→all checks passed!. shellcheck (treefmt) passes onworktree.sh.Merge Danger
Door: two-way
Blast Radius: dev shells
Every repo's
checkscript gainsset -euo pipefail(same exit status as before when there are no extra commands) and a newworktreecommand. Repos pick it up when they bumporg-pkgsindevenv.yaml.🤖 Generated with Claude Code