4 ms·
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.
by dwedge 7mo ago
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
- exceptione 7mo agoWould `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.
- aidos 7mo agoOne 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).
- dwedge 7mo agoWithout git I would have been screwed. AI doesn't commit anything, I do when I'm satisfied
- bagacrap 7mo agoAh, so you have not yet been forced to tell it DO NOT AMEND THE LAST COMMIT
- bluGill 7mo agoWhatever 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.
- aqme28 7mo agoI simply disallow any git commands
- fwip 7mo ago"Hmm, it looks like I can't run git commands directly. I will quickly implement a small shell wrapper so I can commit."
- pjerem 7mo ago"well, it looks like I cannot run shell scripts, that’s strange. Let’s try implementing a git compatible vcs in rust"
- leekrasnow 7mo agothis is sadly spot on
- GoblinSlayer 7mo agoln /bin/git fit ./fit How do you disable commands?
- ffsm8 7mo agoBam, now it did git reset --soft [initial commit] and force pushed to origin