-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
using-git-worktrees paths are incompatible with claude --worktree resume #1009
Copy link
Copy link
Open
Description
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
cdinto the worktree directory and runclaude --continue - Sessions are not stored under the main project's
.claude/directory
Steps to Reproduce
- In a session, ask Claude to create a worktree using
using-git-worktrees - Skill creates worktree at
.worktrees/feature-xor~/.config/superpowers/worktrees/<project>/feature-x - Exit Claude Code
- From project root, run
claude -w feature-x - 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels