git commands that need it, so it never lands in .git/config and the agent’s own commands never see it.
Clone, work, push
git works; alpine/git is a small one. Pushing to a branch per run, such as agent/run-1, leaves
main for you to merge into after review. A push webhook tells your backend when the branch arrives.
If the agent should push by itself, pass a write token in the environment of the agent’s commands instead, or set it
for the whole sandbox when you create it. Keep the lifetime short, and give the token only the repos the agent needs.