Command reference Β· Antigravity CLI
/fork
Clones the current conversation thread into a parallel session. Alias: /branch.
/fork belongs to the Conversations category and has the alias /branch. The command clones your entire conversation history up to the current point into a new, independent session: the CLI assigns a new session ID, duplicates both the agent thread's state and the conversation history so far, and immediately switches the terminal to this new, parallel branch.
This lets you pursue different approaches independently without losing the original thread β use /resume to return to the starting session at any time.
Important: /fork duplicates only the conversation thread, not your local Git checkout. If you also want to isolate file changes during parallel experiments, you additionally need separate Git branches or have to stash in between β otherwise both sessions work on the same working directory and overwrite each other.
π THE SAME TASK (βBRANCH SESSION (FORK/BRANCH)β) ON OTHER PLATFORMS
β WHEN TO USE IT?
Test alternative approaches in parallel
Enter /fork before trying out two different architecture ideas for the same task independently
Safeguard a risky change before branching
Use /fork to try out an experimental change while the original thread stays untouched
β WHEN NOT TO?
Just jumping back within the same thread
/fork creates a completely new parallel thread with its own session ID, but doesn't change the existing thread.
Better: Use /rewind to jump back to an earlier point within the same thread
SOURCES
- Antigravity CLI docs: command reference β antigravity.google
- Antigravity CLI docs: Best Practices β antigravity.google
MORE COMMANDS Β· Antigravity CLI