Reference docMembers

Claude Code Superpowers worktree detect and defer design

Worktree Rototill: Detect-and-Defer is a Superpowers draft spec for making its worktree skills step aside when a harness has native worktree support. Claude Code, Codex App, Gemini CLI and Cursor manage worktrees themselves, while Superpowers used its own .worktrees paths and git commands.

What it does

It names three failure modes: duplication of EnterWorktree on Claude Code, conflict from creating worktrees inside a managed Codex App worktree, and phantom state where each side cannot see the other's worktrees. It subsumes the earlier Codex App compatibility ticket.

How to use it

Read it before changing worktree handling: detect native support, defer to it, and keep the manual path for harnesses without one.

Requirements and limits

Codex CLI, OpenCode and standalone Copilot still rely on the Superpowers worktree path.

More in Reference docs and the Claude Code library.

What it covers

  • Problem
  • Goals
  • Non-Goals
  • Design Principles
  • Detect state, not platform
  • Declarative intent, prescriptive fallback
  • Provenance-based ownership
  • Design
  • 1. using-git-worktrees SKILL.md Rewrite
  • 2. finishing-a-development-branch SKILL.md Rewrite

The full text is in the members library

Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.

Source and license

Source: https://github.com/obra/superpowers/blob/main/docs/superpowers/specs/2026-04-06-worktree-rototill-design.md

Author: obra, Superpowers skills. License: MIT.

Related entries