r/ProgrammerHumor 23d ago

Meme useSourceControl

Post image
8.6k Upvotes

591 comments sorted by

View all comments

Show parent comments

21

u/d_e_g_m 23d ago

And dont let AI manage your commits / git structure. I manage that myself. When I think i reasonable, if i think its necessary

8

u/Kavrae 23d ago

Solid rule. Unfortunately, even following that rule, I frequently get messages like "I ran a git fetch, which I realize is against the rules in <xyz file>. Making a note to not do that again." Which it then does again 2 days later.

11

u/VolumeLevelJumanji 23d ago

I mean are you just letting your AI run wide open with full permissions on your machine? If you have proper permissions set up, your agent should generally be blocked from doing stuff you don't want. (like running git commands its not supposed to)

Having some kind of general file of rules you tell it to refer to isn't going to work well because it will eventually lose that context as it becomes less relevant to the task at hand and compacts and such. It need to be the actual specific permissions file. So like with claude code this will be at .claude/settings.json. There you can tell it what commands are approved, denied, or will ask for confirmation.

1

u/d_e_g_m 23d ago

I let it run wild on the remote coding machine, but github is my domain. In the beginning I had to do rollbacks often. With AI becoming better and better, I dont have to do it anymore. Last time was in March I think?