Cmd. /fork
Branch the current conversation into a new thread.
Key takeaways
- Branch the current conversation into a new thread.
- Check the input surface and availability before using the examples below.
Purpose
Branch the current conversation into a new thread.
/forkAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-09-22 · Codex CLI 0.155.1 |
The installed command menu and account or organization settings determine availability.
Examples
/forkWhen to use it
- Fork before trying an alternate implementation path.
- Use
codex forkfrom the shell when you need to fork a saved session rather than the current one.
Choosing related commands
| Command | Difference | Choose It When |
|---|---|---|
/fork | Creates a new branch of the conversation | You need a longer alternate path |
/side | Opens a short ephemeral detour | You need a focused question |
/resume | Reopens saved history | You need to continue previous work |
Effects and persistence
Branches the current conversation into a separate thread for another approach.
/fork clones the current conversation into a new thread with a fresh ID, preserving the original
transcript.
Cautions
- Forked work still needs review, diff inspection, and tests.
- Name or title related sessions so you can identify them later.
Official sources
Complete command list · Verification scope · History for this command