Skip to content

push_branch

Push a local git branch to the remote repository in a Polygraph session.

Required before creating a PR via create_pr. For the repo the parent agent runs in, this pushes from the current checkout; for delegated repos, it pushes from the Polygraph-managed clone the child agent worked in.

NameTypeRequiredDescription
sessionIdstringyesThe Polygraph session ID, or a Polygraph app session URL (/s/<session-id> or /orgs/<org-id>/sessions/<session-id>).
repostringyesRepo name or ID to push from.
branchstringyesBranch name to push to remote (e.g., "feature/my-changes").
descriptionstringyesUser-facing Polygraph session description summarizing the goal, progress, and next steps. Saved to the session description timeline.