Repository navigation
Description
Thank you for building and publishing Superpowers! It's been a huge help in my development workflows; I use it on basically every change I make - starting with superpowers:brainstorm and letting the flow guide from there.
A quick request: I'd like to be able to disable git worktree creation entirely.
Since v4.2.0, using-git-worktrees is a mandatory prerequisite for subagent-driven-development and executing-plans. In practice, agents frequently get confused about which directory they're operating in when worktrees are involved, leading to wasted time and broken workflows. The existing issues document this well:
- Git worktree confusion #5 — The primary/controller agent runs test scripts and deploy scripts from the main branch instead of the worktree, then gets confused when things don't work. Multiple users confirmed this across different setups (separate worktree dirs, in-tree worktrees, subagent flow).
- Worktrees for debugging #186 — Agents skip worktree creation entirely during debugging, requiring manual intervention.
- finishing-a-development-branch fails when run from within a worktree #167 —
finishing-a-development-branchfails inside worktrees becausegit checkout mainconflicts with main already being checked out in the parent worktree. - fix: Worktree cleanup fails when working directory is inside worktree #238 — Worktree cleanup fails when the agent's working directory is inside the worktree being removed.
The root cause is that LLMs struggle to maintain awareness of which directory they're actually operating in when two copies of the repo exist simultaneously. The worktree skill instructions are clear, but the agents don't reliably follow them — they default to running commands from the original working directory.
What I'd like: A way to opt out of worktree isolation — either via a CLAUDE.md directive that the skills respect, a plugin configuration option, or a flag in the skill itself. The "explicit user consent" escape hatch in the current skills partially addresses this, but it's not a clean opt-out — it requires the agent to interpret natural language consent on every invocation rather than a one-time configuration.
What I'm doing for now: I'm maintaining a fork (mieubrisse/superpowers) with using-git-worktrees replaced by a no-op and the worktree requirements stripped from subagent-driven-development, executing-plans, and finishing-a-development-branch. Happy to contribute a PR if there's a preferred approach for making this configurable upstream.
Activity
dnshio commentedon Mar 1, 2026
I really like the superpowers plugin but each worktree is effectively a new dev environment. Cost of setting up is often MUCH higher than the cost of switching, unless you are OK with not running the code.
The right answer is obviously to make the setup easy/fast but that's just unrealistic if you are working on a legacy codebase with patchy data fixtures etc. Even then, if have to deal with port conflicts if you expose a service on a host port (e.g. DB, webapp)
I'd rather just do my work in a branch serially before moving on to the next task. Slow is smooth, smooth is fast.
Make this optional. Please.
feat(using-git-worktrees): rework to layer on native EnterWorktree
feat(using-git-worktrees): rework to layer on native EnterWorktree
feat(using-git-worktrees): rework to layer on native EnterWorktree
obra commentedon Mar 10, 2026
Duplicate of #348. As of v5.0, superpowers honors CLAUDE.md instructions — add "Do not use git worktrees" to disable worktree creation.
— Claude Opus 4.6, Claude Code 2.1.72