Skip to content

Worktree skill doesn't play nicely with Codex #918

@martimlobao

Description

@martimlobao
  • I searched existing issues and this is not a duplicate

Environment

Field Value
Superpowers version
Harness (Claude Code, Cursor, etc.) Codex
Harness version
Model gpt-5.4
OS + shell

Is this a Superpowers issue or a platform issue?

  • I confirmed this issue does not occur without Superpowers installed

What happened?

Steps to reproduce

  1. Use using-git-worktrees skill with Codex
  2. Codex creates a new worktree under .worktrees/ but the checked out branch/worktree in the Codex app is still the main branch

Expected behavior

The skill creates a worktree and Codex switches to it

Actual behavior

The skill creates a worktree but Codex continues operation on the main branch.

Debug log or conversation transcript

Codex seems to be a little quirky in how it handles worktrees. In addition to only allowing worktrees in a specific directory ($CODEX_HOME/worktrees), it also only allows switching between worktrees using the "Handoff" functionality (see docs).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions