Blaze

/branch

Copies the current session into a new derived session. The original session stays untouched.

Usage

In the interactive screen, type /branch and press Enter.

/branch

You can pass an argument to set the title of the derived session.

/branch alternate-approach

The argument is optional. If you skip it, the derived session inherits a title based on the original name.

After branching

Blaze automatically switches to the derived session. Any message you send next is saved on the derived side.

On success, Blaze prints a command you can run from another terminal to open the same derived session.

When you create the branch without a name, the session ID is shown:

blaze --resume <session-id>

When you create it with a name, the title (in quotes) is shown:

blaze --resume "alternate-approach"

This is handy when you want to try a different direction in parallel.

When to use it

  • When you want to try a different direction from the same starting point

  • When you want to experiment while keeping the current state intact

Notes

The derived session inherits the same messages as the original, but everything after the branch point is saved independently. To go back to the original session, use /resume.