Skip to main content
Push local changes to Agent Studio to the current branch. If you are on the main branch, it will automatically create a new branch. Before pushing, it will pull and merge the remote changes. If any merge conflicts appear it will stop you from pushing. Examples:
If Agent Studio rejects the push, the command prints the reason it gave.
--rtc-env without --include-rtcPassing --rtc-env without --include-rtc has no effect — the CLI prints a warning and pushes normally without touching RTC.
--json output shape:
With nothing to push, "message" is "No changes detected" and "success" is true. A failed push exits non-zero. "switched_to" and "new_branch_id" are added if pushing from main created and switched to a new branch. "rtc" is added when --include-rtc is passed, containing the result of the RTC push.
Last modified on November 27, 2026