Skip to content

Feature request: make git worktree isolation optional #583

Closed as not planned

Description

@mieubrisse

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:

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

  1. dnshio commented on Mar 1, 2026

    @dnshio

    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.

  2. added
    enhancement
    claude-code
    on Mar 4, 2026
  3. obra commented on Mar 10, 2026

    @obra
    Owner

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claude-codeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions