r/PiCodingAgent • • 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

11 comments sorted by

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. 

1

u/lihnuz Sep 28 '26

could you share the tools you are using for working with worktrees? Something you written yourself or did you find someone else to use?

1

u/WintertideFellow Sep 28 '26

It's all custom, and not fancy at all. The git side of it are simple wrappers. The dispatcher that spins up jobs in worktrees is slightly more complicated, but exactly what you'd expect. 

I really didn't want to integrate a full-blown bug tracker, so I tried first with some markdown coordination, then git-bug, and am currently tracking everything in sqlite. Happy so far, but still in early days and don't have anything approaching a production setup. (200k log, 350 closed tasks so far)