Claude Corner
Tempted to Restart Claude From Scratch to Try Another Fix? Run /branch Instead.
By Steven Sorensen ยท 2 Dec 2026

At a glance
- One built in command copies the conversation so far into a new session and switches you into it.
- The original stays unchanged on disk and in the session picker, so you can return to it.
- Session grants carry over, but a separate forked process starts without them.
Your session finally holds the whole problem, and you want to try a different fix. Correcting course muddies that history, and starting fresh throws it away. Claude Code can keep both.
Why it matters
Anthropic's sessions guide says branching copies the conversation so far and switches you into it, leaving the original intact, so you can try a different approach without losing your path. The commands reference adds that you return to the original with /resume. The checkpointing guide draws the line with rewind: summarizing keeps you in the same session, while /branch preserves the original session intact.
How to try a second approach without losing the first
We have not run these steps in a live session.
- Run
/branchwith a name, such as/branch try-streaming-approach. The sessions guide says a branch without a name is named after the first prompt in the conversation. - Note the two session IDs the confirmation prints: the new branch you are in and the original.
- Work in the branch. The guide says history is copied up to the point you ran
/branch, and "Allow for this session" grants still apply because the branch runs in the same process. - Go back with
/resumeand the original's name or ID. The guide says the original is unchanged on disk and stays in the session picker. - To branch from your shell instead, combine
--continueor--resumewith--fork-session. The CLI reference says the flag creates a new session ID instead of reusing the original.
# We have not run this script end to end on every platform.
# Inside a session: copy the conversation and switch into the copy.
/branch try-streaming-approach
# Inside the session: return to the original by name or ID.
/resume original-session-name
# From your shell: fork the most recent session into a new ID.
claude --continue --fork-session
Gotchas
- A forked process asks again. The guide says a separate process started with
--fork-sessionstarts without your session grants, so you approve those calls again. - Background work follows you. Background subagents and background Bash commands keep running after
/branch, and the guide says their output appears in the new branch, not in the original session. - Remote Control follows you too. A connected phone or browser follows you into the branch and keeps receiving messages there.
- Two terminals on one session is not a branch. The guide warns that resuming one session in two terminals or two
claude -pruns at once writes both to one transcript, and messages from one can go missing. Add--fork-sessionto each command to keep both conversations. - It branches the transcript. The guide says
/branchcopies the transcript and switches the running process to write to it. For your code, the checkpointing guide points to version control such as Git. Committing before a second approach edits the same files is our habit, not a documented step.
Our September 28 rewind Corner named /branch as the way to compare two approaches without losing the first.
Sources:
- Manage sessions, Claude Code docs
- Commands, Claude Code docs
- Checkpointing, Claude Code docs
- CLI reference, Claude Code docs
- Claude Code Rewind Beats Corrections but Misses Bash and Subagent Edits, AI Dev Pulse
Recommended AI prompt
Copy this paragraph into ChatGPT, Claude, Gemini, Grok, or whatever AI you use.
I use Claude Code and sometimes want to try a second approach partway through a long session without losing the first. Using only Anthropic's Claude Code docs on sessions, the /branch command, checkpointing and the fork session flag, ask whether I run background tasks or Remote Control and whether I resume sessions from more than one terminal. Then give me a short checklist for naming a branch, returning to the original with /resume, and deciding when to branch and when to rewind.