GPTMap

/worktree

The slash command to start or continue a conversation in a new Git worktree — experimental in 0.154, on by default in 0.156, a managed tool group in 0.162.

Codex commandsopenaicodexclituislash-commandworktreegit

Specs

Verified:

Kind
Slash command + `--worktree` launch flag
Syntax
/worktree; or `codex --worktree` at launch
First seen
0.154.0 (2026-09-09, experimental)
Stability
Default-on since 0.156 (experimental landing in 0.154)

The official description of /worktree is "start or continue a conversation in a new worktree". Three-step trail: it landed experimentally in 0.154.0 (2026-09-09), with `--worktree` or in-session `/worktree` creating isolated checkouts for new sessions or forks; worktree support flipped to default-on in 0.156.0 (09-22, #45276); 0.162.0 (10-08) upgraded it to a managed tool group for creating and listing Git worktrees from trusted local projects (#50148).

Timeline

  1. 0.154.0: experimental worktree lands — --worktree / /worktree create isolated checkouts for new sessions or forks, browsable and resumable
  2. 0.156.0: worktree support flips to default-on (#45276)
  3. 0.162.0: upgraded to a managed Git worktree tool group — create and list from trusted local projects (when the worktree feature is on, #50148)

Key features

  • Creates an isolated Git worktree checkout for a session
  • Works for new sessions and forks alike
  • Created worktrees can be browsed and resumed

Use cases

For parallel tasks you don't want bleeding into the main working tree — each task gets its own isolated checkout.

Install

`/worktree` in the TUI, or `codex --worktree` at launch.

Caveats

The 0.162 tool-group form is gated behind the worktree feature — on older configs enable the feature before expecting the tool group.

Added

Updated

Verified

Related entries