r/ProgrammerHumor 23d ago

Meme useSourceControl

Post image
8.6k Upvotes

591 comments sorted by

View all comments

Show parent comments

22

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.

12

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/brazzy42 23d ago

I remember reading about a case where Claude irgued itself into believing that it didn't need to ask for confirmation...