I mean a naive implementation of this would just make regular git commits to a special hidden repo and revert them (ignoring changes outside project root). I always assumed that’s how cursor did it. Presumably they have good reasons not to do this, probably related to not accidentally reverting user edits.
By tracking changes made by a command, like you might with git.
And how do you propose they track those changes? Do you want to run your LLM through permanent sudo?