npm latest @openai/codex is 0.154.0. After codex features enable worktrees, --worktree / /worktree spins a managed Git worktree from committed HEAD (detached) and binds the session to it, so uncommitted edits, .env, and node_modules stay out of the agent checkout. codex resume --worktree and codex review --worktree are rejected. Aimed at parallel agents that otherwise fight one dirty working tree.

Key Takeaways

  • ✓0.154.0 adds experimental managed Git worktrees after enabling the feature flag.
  • ✓Sessions bind to a detached checkout so dirty files and local deps stay out.
  • ✓resume/review reject --worktree; npm latest confirms 0.154.0.
🧭

Turn your technical choice into a development budget

Compare 40 dev plans & simulate token costs vs $20/mo subscriptions

Action HubReady to adopt this in production?

Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.

Up NextOpenAI Details Pando, Its In-House Git Backend: Median Push Latency Down Nearly 5x, Nearly 1 PB Served Daily, Built With Codex in 10 Weeks
Read Now→