News for hackers. Stuff that matters.
Re:Shall I implement it? No by dwedge on Friday March 13, 2026 @04:03AM (#47361748)
First time I used Claude I asked it to look at the current repo and just tell me where the database connection string was defined. It added 100 lines of code.

I asked it to undo that and it deleted 1000 lines and 2 files

Re:Shall I implement it? No by exceptione on Friday March 13, 2026 @05:10AM (#47362140)
Would `git reset --hard` have worked to in your case? I guess you want to have each babystep in a git commit, in the end you could do a `git rebase -i` if needed.
Re:Shall I implement it? No by dwedge on Friday March 13, 2026 @06:44AM (#47362689)
Without git I would have been screwed. AI doesn't commit anything, I do when I'm satisfied
Re:Shall I implement it? No by bagacrap on Friday March 13, 2026 @08:20AM (#47363460)
Ah, so you have not yet been forced to tell it DO NOT AMEND THE LAST COMMIT
Re:Shall I implement it? No by bluGill on Friday March 13, 2026 @09:38AM (#47364312)
Whatever settup I have in the office doesn't allow git without me approving the command. Or anything else - I often have to approve a grep because is redirects some output to /dev/null which is a write operation.

this has often saved me.

Re:Shall I implement it? No by aqme28 on Friday March 13, 2026 @09:39AM (#47364322)
I simply disallow any git commands
Re:Shall I implement it? No by fwip on Friday March 13, 2026 @11:09AM (#47365524)
"Hmm, it looks like I can't run git commands directly. I will quickly implement a small shell wrapper so I can commit."
Re:Shall I implement it? No by leekrasnow on Friday March 13, 2026 @11:54AM (#47366138)
this is sadly spot on
Re:Shall I implement it? No by pjerem on Friday March 13, 2026 @11:29AM (#47365789)
"well, it looks like I cannot run shell scripts, that’s strange. Let’s try implementing a git compatible vcs in rust"
Re:Shall I implement it? No by GoblinSlayer on Friday March 13, 2026 @07:59PM (#47371661)

  ln /bin/git fit
  ./fit
How do you disable commands?
Re:Shall I implement it? No by aidos on Friday March 13, 2026 @05:33AM (#47362269)
One annoying thing about that flow is that when you change the world outside the model it breaks its assumptions and it loses its way faster (in my experience).
Re:Shall I implement it? No by windward on Friday March 13, 2026 @06:54AM (#47362746)
And accuses you of being a linter
Re:Shall I implement it? No by girvo on Friday March 13, 2026 @07:06AM (#47362823)
To be fair to the model, I really can act like one sometimes.
Re:Shall I implement it? No by ffsm8 on Friday March 13, 2026 @09:09AM (#47363971)
Bam, now it did git reset --soft [initial commit] and force pushed to origin