Learn how session branching in AI coding tools like Codex, ChatGPT, and Pi helps you manage multiple implementation paths without losing context.
By Meng Li
Published: 2026-09-03
URL: https://pythonlibraries.substack.com/p/codex-liras-little-branch-feature
There’s a useful but easy-to-miss feature in the ChatGPT app: Open new branch.
In the ChatGPT app, you usually wouldn’t notice it. Besides the last message, where the action is shown directly, you have to hover over a historical message before the entry appears. On the web version, it’s even more hidden — buried in the ... menu on the right side of a message.
So a lot of people can use it for a long time without noticing it, or without knowing what it’s for.
But the feature is actually very useful, and PI Agent’s implementation is much stronger than Codex’s.
For example, you’ve already been talking with the Agent for a long time. Halfway through, you suddenly think:
Is there another way to implement this? I want to try that direction once.
Normally, you’d just keep chatting. The problem is that the new approach can easily drag the original context off course.
A better way is to do it on the current message:
Open a new branch.
