
Creates isolated git worktrees under `.worktrees/<branch>` with the environment setup that `git worktree add` doesn't handle. Copies your `.env` files over, auto-trusts mise and direnv configs when safe (with branch-aware rules so PR review branches don't blindly trust untrusted `.envrc` content), and keeps `.gitignore` tidy. Most useful when reviewing PRs without disturbing your main checkout or running parallel features without branch-switching churn. Integrates with `ce-work` and `ce-code-review` so they can offer worktree creation as an option. The trust logic is thoughtful: base branches get auto-trust after config diffing, feature branches require manual review.
$ npx -y skills add everyinc/compound-engineering-plugin --skill ce-worktree --agent claude-codeInstalls into .claude/skills of the current project.
Ensure the current work happens in an isolated workspace, without disturbing the user's main checkout. Most coding harnesses now create a worktree by default at session start, so the common case is that isolation already exists.
Done when: the caller is working in an isolated tree — existing or newly created — and its path and branch have been reported, or a blocker has been reported instead.
Order of operations: detect existing isolation -> prefer a native worktree tool -> fall back to plain git. Never create a worktree the harness cannot see.
Two modes, set by the caller's need:
Sponsors