Skip to content

using-git-worktrees paths are incompatible with claude --worktree resume #1009

@im-zac

Description

@im-zac

Problem

The using-git-worktrees skill creates worktrees in .worktrees/ or ~/.config/superpowers/worktrees/<project>/ by default.

However, claude --worktree <name> (the Claude Code CLI flag) only recognizes worktrees located at .claude/worktrees/<name>/. This means:

  • Worktrees created by the skill cannot be resumed with claude -w <name> after exiting a session
  • The only workaround is to manually cd into the worktree directory and run claude --continue
  • Sessions are not stored under the main project's .claude/ directory

Steps to Reproduce

  1. In a session, ask Claude to create a worktree using using-git-worktrees
  2. Skill creates worktree at .worktrees/feature-x or ~/.config/superpowers/worktrees/<project>/feature-x
  3. Exit Claude Code
  4. From project root, run claude -w feature-x
  5. Claude Code does not find the worktree — it looks in .claude/worktrees/feature-x/

Expected Behavior

Worktrees created by the skill should be resumable via claude -w <name>, or the skill should document this limitation clearly and offer .claude/worktrees/ as a directory option.

Suggested Fix

Add .claude/worktrees/ as a first-class option in the skill's directory selection prompt:

No worktree directory found. Where should I create worktrees?

1. .claude/worktrees/ (compatible with `claude -w` resume)
2. .worktrees/ (project-local, hidden)
3. ~/.config/superpowers/worktrees/<project>/ (global location)

Or, if .claude/worktrees/ already exists, prioritize it over .worktrees/.

Environment

  • Claude Code version: 2.1.88
  • Superpowers version: 5.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions