Branches
Listing branches
/branchShows all branches in the current repository, with a checkmark next to the active one. Click any branch to switch to it.
Switching branches
Via list
Click a branch name in the /branch list to check it out and restart the session.
Directly
/branch <name>Checks out the branch immediately without showing the list.
How it works
Branch state is persisted per-repo using a .active_branch file:
sessions/<chat_id>/<workspace>/<repo>/.active_branchWhen you switch branches, the bot:
- Runs
git checkout <branch> - Updates the
.active_branchfile - Restarts the Claude session in the new branch
If the branch doesn’t exist locally, git checkout will attempt to create it from the remote (git checkout -b <branch> --track origin/<branch>).