Branching a session into a copy you can take somewhere else, and going back to an earlier point. Subagents that start from your conversation are on the Subagents page.
Worktrees: create, set up, integrate and clean up isolated checkouts
| Question | OpenCodechecked at 2.0.29 |
|---|---|
| Fork a session | Yes. In the TUI run In 2.0.28 the full-screen |
| Fork or rewind from an earlier point | Yes. |
| What the fork keeps | The fork copies finished history (assistant turns still running are skipped), the session's agent, model, permission rules, metadata, and current instruction state, and opens in the original session's directory and workspace. It gets the title 2.2.2 keeps media in forked and imported sessions. A fork stores copied media as blobs when the parent location has |
| File changes and worktrees | Partly No. The fork shares the same working directory. Files are rewound only by |
| Where a fork came from | |
| Fork from the SDK or API | Yes. To change the model or agent, pass |