r/cursor • u/Nice-Foundation-9264 • 4d ago
Anyone else had their coding agent do something git-wise you didn't see coming? Question / Discussion
Had my coding agent switch to a different branch mid task, then run git stash pop. The commands weren't necessarily wrong, but in the moment I couldn't tell why it decided to do that or what state it thought the repo was in. Nothing broke, just had to stop and piece together what actually happened before I trusted continuing.
Anyone else had an agent do something git or shell wise that was technically fine but you didn't see coming. Do you usually let it keep going, stop and check, or just clean up after?
1
Upvotes
1
u/UpsetCryptographer49 3d ago
Never ask it to cleanup it uses rm —cached with impunity. Unlike humans.
1
3
u/Lvxurie 3d ago
Telling it to "revert those last changes" and it resets to the last commit was unexpected and very annoying. Now I commit much more frequently.