Skip to content

Start work on a branch

Give each piece of work its own branch and session, so several Claudes can work on one repository without getting in each other’s way.

The repository needs to be in the sidebar: open a session in it once. See Your first session.

  1. Hover the repository’s name in the sidebar and click +.

    The + button next to the storefront repository heading, highlightedThe + button next to the storefront repository heading, highlighted
  2. In Open branch, type a Branch name:

    • A new name creates a new branch.
    • The name of a branch that already exists, on your machine or on origin, opens that branch as it is.
    The Open branch dialog with gift-cards typed as the branch name and main as the base branchThe Open branch dialog with gift-cards typed as the branch name and main as the base branch
  3. A new branch starts from the repository’s default branch. To start from another one, click Base branch and pick it from the list. You can type to search it.

    The Base branch list open, with main marked default and the other branches belowThe Base branch list open, with main marked default and the other branches below
  4. Click Open branch. A new session opens on the branch and Claude starts by itself. Tell it what to do.

    The new gift-cards session at the bottom of the storefront list, with Claude Code ready in its terminalThe new gift-cards session at the bottom of the storefront list, with Claude Code ready in its terminal
  • Each branch session works in its own git worktree, so changes in one never show up in another. The branch icon next to a session’s name marks these.
  • If the repository has a setup step, such as installing dependencies, its output shows in the dialog while it runs, then the session opens. See Repository buttons and setup.
  • To start from a task or a Jira issue, press ⌘K, pick it and press ⌘↵. See Find anything.