← Blog
DEVELOPMENT

/fork: branch a session from the current context

New in v0.40.0 ⋅ /fork. Fork new sessions from current context. The original stays intact.

Team Command Code
1 min read
Jun 22, 2026

New in v0.40.0 ⋅ /fork

Fork new sessions from current context. The original stays intact. /resume returns you to the original. Try different directions without breaking your sessions.

Try Command Code

The best coding agent for open models, in your terminal or on your desktop.

1npm i -g command-code

Desktop App · Docs · X · Discord

Share this article