main for production and non-prod for experimentation. Production keeps running on main untouched, while on non-prod you can rewrite instructions, swap models, and test new prompts with no impact on live traffic.
Creating a branch
- Select the GitHub icon at the top of the agent view to open the Git menu.
- Select Branches, then Create Branch.
- Pick the source branch the new branch should be created from, and give it a name (for example,
non-prod).
Switching branches
The Branch Manager lists every branch and marks the one you are currently on. Select any branch to switch the agent view to it; the branch name shown at the top of the agent updates to match.
Promoting a branch
When you are happy with what is on your lower branch, promote it.- Open the Git menu and select Promote Branch.
- Set From and To, for example from
non-prodtomain. - Choose how to promote: open a pull request or merge directly.
- Give the promotion a title and an optional description of what changed, then select Create Pull Request (or merge).

Sync is bi-directional. Whatever you change in Git and whatever you change in Studio stay in sync, in both directions.
Commit history and restore
Select Commits in the Git menu to see the full history for the agent. Every commit is tracked with its hash, author, and timestamp, and any commit can be restored with a single click using Restore.