r/PiCodingAgent • u/lihnuz • Sep 27 '26
Question What's your git workflow?
Hello.
I have spent a while now wrapping my head around agentic development in my spare time for a while now. And have now gotten to the point I need to get my pi agent to start using Git.
So I was wondering what are your workflows with git? what extensions, lines in AGENTS.md or external scripts etc are you using?
And what tools/programs are you using when reviewing pr's?
2
Upvotes
View all comments
1
u/WintertideFellow Sep 27 '26
Worktrees! I completely remove git from their toolset-- call me paranoid, but sending them through prescribed paths keeps everyone well behaved.
They've got a tool to backmerge master into their worktree, a tool to diff against master, and a tool merge into master, which fails on anything but a clean merge. Githooks to pick up the obvious errors like merge markers left in. Otherwise the code writers don't touch git -- anything that would require that is above their pay grade and dealt with by management agents.
And I don't deal with pull requests (yet). QA looks at the code in place and gives a thumbs up or down.