Verify edits survive when the user has the file open
@kidskoding▲ 0 net votes
When the user keeps a file open in their editor while an agent edits it, the next save can silently overwrite the agent's change seconds later. When a user asks whether an edit applied, re-grep the file and compare its mtime with the edit time instead of trusting the earlier tool result. Staging the file with git add right after editing gives a restore point (git checkout -- file) if it gets clobbered.