Creating branches
Start each new change on its own branch, from your default branch or from another branch you’re working on. Base Code names the branch for you.If you see New session in the sidebar, your project uses sessions, so start a session instead.
- The start screen: Select the starting branch next to Create new branch from, then click Create branch, as in making your first change.
- The sidebar: Use it when you’re already working on a branch, as shown below.
- Go to Base Code.
- Click New branch in the sidebar to open the editor.
- Select the starting branch from the drop-down next to Create new branch.
- Describe your change in the AI chat, then click Create.

Starting a branch from the sidebar
Working in sessions
A session is one AI chat that can work on several branches, so a task that grows into a few related changes stays in one conversation. When the AI chat suggests a related change, you can start it on a new branch, keep it on the current branch, or leave it for later. In a project that uses sessions, your sessions are listed in the sidebar where your branches would be. Each session’s branches and their pull requests are listed under Session branches and pull requests in the AI chat. You resolve conflicts and answer review comments on a session’s branches the same way as on any other branch. Opening a pull request from a session works a little differently, so check the sessions steps in Opening a pull request. To start a session:- Go to Base Code.
- Click New session in the sidebar.
- Describe your task in the AI chat and send it.
- Go to Base Code.
- Hover over the session in the sidebar, then click its options icon .
- Click Rename session.
- Enter a Session name, then click Save.
Importing a Claude Code or Codex session
Bring a task you started in Claude Code or Codex into Base Code, with its whole conversation, so the AI picks up where you left off. If you pushed the task’s branch to GitHub, you keep working on that branch in Base Code. Otherwise, Base Code creates a new branch for it. To import a session:- Go to Base Code.
- Click the Add icon in the prompt box on the start screen.
- Click Import from Claude Code or Import from Codex.
-
If you’re importing from Claude Code, choose where your session runs:
- On your computer: The session runs in a folder on your machine.
- In the cloud: The session runs on a remote machine. Click Copy domain and add it to your cloud environment’s allowed list before you continue.
- Click Copy prompt.
- Paste the prompt into your Claude Code or Codex session.
- Answer the agent’s questions. It offers to push your work to GitHub first and asks before it commits anything.
Working from the sidebar
See where each of your branches stands and go straight to the one that needs you. Your branches in the sidebar lists the branches you created, and merged branches move to Merged at the bottom so you can still read their chats. Each branch has a status icon. Hover over it to see its label, with the pull request number when there is one.
While the AI is building, you see Working in place of the icon, or Merging while a merge runs. A dot on the right of a branch means the AI finished there and you haven’t opened it since.
To open a branch:
- Go to Base Code.
- Click the branch under Your branches.
Opening a pull request
After testing your changes, open a pull request so your team can review them on GitHub. Your pull request targets the branch your working branch was created from, and the AI chat writes its title and description from your conversation and committed changes. To open a pull request from the editor:- Open your branch in Base Code.
- Click Create PR in the editor.
-
Finish your pull request in Create pull request:
- If you see New branch in the sidebar: Click each changed file to check its diff, then click Continue in builder. Review and send the prefilled message in the AI chat.
- If you see New session in the sidebar: Review the title and changes the AI drafted, then click Create PR.
If you see New branch in the sidebar, Create pull request shows only changes that are committed and pushed. To leave a file out of the pull request, revert the file before you continue.
Checking a file's diff
After you open your pull request:
- New changes: Changes on your working branch are added to the pull request, and GitHub runs your repository’s configured checks.
- Merging: Merge it on GitHub, or ask the AI chat to merge it for you. The AI chat makes a regular merge commit, and your repository’s rules, such as required reviews and checks, still apply. However you merge, your branch is read-only afterwards.
- After merging in a session: Keep using the same chat for your next change, and Base Code starts a new branch for it.
- Commit authors: Each commit from the AI chat lists you as the author and
base44-builder[bot]as co-author. - Approval link: If the AI chat shares an approval link, approve it if you own the GitHub account or organization that owns the repository, or ask an owner to. Then ask the AI chat to try again.
- Changes saved to a new branch: If your pull request is merged or its branch is deleted while the AI is working, Base Code saves the AI’s later changes to a new branch, and the AI chat shares its name. Open a pull request from that branch on GitHub to keep them.
Resolving branch conflicts
If your pull request has conflicts, the AI chat can resolve them for you. Resolving conflicts merges the pull request’s base branch into your working branch. To resolve conflicts:- Open your branch in Base Code.
- Click Resolve conflicts above the prompt box.
- Review and test the changes the AI makes, especially where both branches changed the same feature.
Answering review comments
Ask the AI chat to address the unresolved review threads on your pull request. It replies to each thread with what it changed. After pushing its changes, it resolves the threads it fixed. Threads the AI doesn’t change, or that need your decision, stay open with a reply explaining why, and the AI chat tells you which ones. To answer review comments:- Open your branch in Base Code.
-
Ask the AI chat to fix the comments on your pull request. For example:
- Review the changes and replies the AI chat reports.
Tracking your work
See where each of your tasks stands, from the changes Base Code is still making to the pull requests that are merged. Your work on the Base Code start screen sorts your tasks into columns:- Base Code is working: The AI is still making changes.
- Needs you: Base Code has a question, or the pull request has conflicts, failed checks, or requested changes.
- Ready for review: The work is finished and nothing is blocking it.
- Done: Merged, answered, and archived tasks.
- Go to Base Code.
- Under Your work, choose what you want to do:
- Open a task: Click it to open its branch.
- Take the next step: Click the action on a task, such as Fix conflicts or Merge.
- Find a task: Search by its title in Search your work.
- Filter your tasks: Use the filters for type, status, and time. For example, filter by Has a question or Failed checks.
- Sort your tasks: Select Last updated or Date created.
- See every pull request: Click See all pull requests to open your repository’s pull requests on GitHub.
Organizing your branches
Keep the branches you’re focused on within reach and bring the ones that need you to the top. You can pin branches, put them in your own groups, and choose how the rest are grouped and sorted.
Pinned and grouped branches
Pinning a branch
Pin a branch to keep it at the top of Your branches, above your groups. To pin or unpin a branch:- Go to Base Code.
- Hover over the branch in the sidebar, then click its options icon .
- Click Pin, or Unpin to unpin it.
Grouping branches
Put related branches together in groups you name yourself. To create a group:- Go to Base Code.
- Click the New group icon next to Your branches.
- Enter a Group name, then click Create group.
- Drag a branch onto the group, or click the branch’s options icon , click Move to group, then select the group.
- Go to Base Code.
- Choose what you want to do:
- Take a branch out of a group: Drag it onto Your branches, or click its options icon , click Move to group, then click Ungrouped.
- Rename or delete a group: Click the group’s options icon , then click Rename group or Delete group. When you delete a group, you can archive its branches along with it.
- Reorder your groups: Drag a group up or down the list.
Sorting branches
Base Code groups and sorts the branches that aren’t pinned or in your own groups, and you can change how it does this to find a branch faster. By default, it groups them by Status and sorts them by Date created, with the newest branch at the top of each group. To group and sort branches:- Go to Base Code.
- Click the Sort branches icon next to Your branches.
- Choose how to group them under Group by:
- Status: Branches that need you first, then open pull requests and drafts.
- Last activity: By when each branch last changed.
- None: One list, with merged branches still at the bottom.
- Choose how to sort them under Sort by:
- Date created: Newest branch first.
- Name: In alphabetical order by branch name.
Archiving a branch
Archive the branches you’re not working on to keep your list short. An archived branch moves to Archived at the bottom of Your branches, out of its pin or group. Archiving only changes your own sidebar, and the branch, its chat, and its GitHub branch stay as they are. To archive a branch:- Go to Base Code.
- Hover over the branch in the sidebar, then click its options icon .
- Click Archive.
Removing a branch
Clear out branches you’re done with. To keep a branch without it crowding your list, archive it instead.Deleting a branch that isn’t merged and that no one else is on removes the branch and its chat from Base Code for good. The branch and its commits stay on GitHub.
- Go to Base Code.
- Hover over the branch in the sidebar, then click its options icon .
- Click Remove branch.
- Click the button that shows for your branch:
- Remove: Shown for a merged branch, or for a branch your teammates are also on. The branch leaves your list, and nothing is deleted. Your teammates keep it and its chat, and you can bring back a branch that isn’t merged by sending a prompt on it again.
- Delete branch: Shown for a branch that isn’t merged and that no one else is on. Deletes the branch and its chat from Base Code.