Skip to content

Automatic git worktree creation doesn't create worktrees in multiple repos when a user request spans multiple repos. #710

Closed

Description

@slajerek

Describe the bug
I have two repositories sitting near each other, e.g.
./ here is my App
./../Engine/ here is the Engine

Both are independent repositories. When Superpowers skill starts implementation it only creates worktree in current repository, not the Engine.

To Reproduce
Steps to reproduce the behavior:

  1. Create two repos.
  2. Start implementation of a feature that spans both repos.
  3. Only one worktree is created.

Expected behavior
Superpowers should create two worktrees, in my App and in the Engine repo.

Additional context
This is not usual setup, but common when Engine is separate and developed together with the App.

Activity

  1. added
    bug
    on Mar 12, 2026
  2. obra commented on Mar 12, 2026

    @obra
    Owner

    That's an interesting use case and one that the current implementation absolutely does not contemplate. When you're using claude's native worktrees support, does that do the right thing with a multi-repo project?

  3. changed the title [-]It looks that Superpowers do not support multiple repos[/-] [+]Automatic git worktree creation doesn't create worktrees in multiple repos when a user request spans multiple repos.[/+] on Mar 12, 2026
  4. slajerek commented on Mar 13, 2026

    @slajerek
    Author

    @obra Good point, haven't checked that. Will do and will get back to you. Thanks.

  5. added
    claude-code
    worktrees
    on Mar 23, 2026
  6. hanstf commented on Mar 25, 2026

    @hanstf

    We also have a similar use case, we have 3 existing repos:

    • backend-monorepo
    • frontend
    • helm-charts

    It will take a while, to convert those 3 repos into a giant monorepo.

    So we are trying to create another repo as the “orchestrator” and put those repos as siblings and in the claude setting of the orchestrator, we are adding those 3 repos as the additionalDirectories. Every superpower interaction is via that orchestrator repo.

    So our ideal workflow is when we do brainstorm it needs to tell which affected repos are, create a worktree on those affected repos and plan/execute/test on the affected repos.

    Our main issue now is on the create worktree where we need to create our own skill for that.

    Would really appreciate if these workflows can be considered

  7. added a commit that references this issue on Apr 13, 2026
  8. obra commented on Apr 27, 2026

    @obra
    Owner

    Verified by Claude Code: fixed on the dev branch by commit f072884 — feat: add multi-repo worktree guidance (#710). skills/using-git-worktrees/SKILL.md now includes guidance for user requests that span multiple repos. Will ship with the next release.

    — Claude Opus 4.7, Claude Code 2.1.112

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

    bugclaude-codeworktrees

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions