If you've ever been mid-session with Copilot and thought "I want to try a completely different approach, but I don't want to lose everything I've built up here" — the new /fork command is exactly what you've been waiting for.
Shipped in the February 2026 release of VS Code, /fork lets you branch a chat session into a new, fully independent thread — complete with the full conversation history — so you can explore an alternative direction without touching the original.
The problem it solves
Until now, exploring multiple design options or implementation strategies with Copilot meant one of two things:
- Start a new session — losing all the context you've already established.
- Stay in the same session — making your conversation messy and hard to track.
Neither is great. Especially for larger tasks where the agent has already built up a useful mental model of your codebase, intent, and constraints.
How to use /fork
There are two ways to trigger a fork:
Option 1: Fork the entire session
Type /fork in the chat input. This creates a new session that inherits the complete conversation history up to that point. The two sessions then become fully independent — changes in the fork have no effect on the original, and vice versa.
When to use this: You're happy with where the conversation is, but you want to take the agent in a new direction without committing.
Option 2: Fork from a specific checkpoint
Use the fork button that appears inline at a specific message in the conversation history. This creates a new session with only the history up to that point — effectively rewinding to an earlier state and branching from there.
When to use this: You went down a path that didn't pan out, and you want to branch from an earlier moment where things were still on track.
A practical example
Say you're building a UI component and you've iterated a few times with Copilot to get the layout right. Now you want to explore two different styling directions — one bold and high-contrast, one minimal and neutral — without committing to either.
- At the point where the layout is settled, type
/fork. - In the original session, continue with the bold styling direction.
- In the forked session, instruct the agent to explore the minimal approach.
You now have two parallel threads, each with the full context of the layout decisions, heading in different directions. Compare the results, pick your favorite, or cherry-pick ideas from both.
The forked session inherits:
- The full conversation history (or history up to the chosen checkpoint)
- Any context the agent has built up about your codebase and intent
The forked session does not inherit:
- File changes made in the original session after the fork point
- Any subsequent conversation from the original session (it's a snapshot, not a live link)
Tips for getting the most out of /fork
- Fork early, not late. The more context the agent has at fork time, the more useful both branches will be. Don't wait until the session is unwieldy.
- Name your sessions. If you're running multiple forks, give each session a clear label in the title so you can navigate between them easily.
- Combine with
/compact. For very long sessions, run/compactbefore forking to trim noise and keep only the relevant context — so the fork starts clean and focused. - Use checkpoint forks to recover. If a session went sideways several messages ago, don't start fresh. Fork from the last good checkpoint and pick up from there.