One idea would be to have a wrench script that saves the editor contents to a file with the same name and an incrementing number in the end. Then it would be easy to create ”checkpoints” while experimenting.