Undo.io is a commercial product (some free versions I think). It creates very low-level (machine code) recording file of a process that allows it to reliably replay forward and back in time and up and down in the stack, with sophisticated searching functionality.
The recording file could be integrated with cursor’s AI - possibly assisted through cursor.com working with undo.io team.
Have little code AI knowledge. Nevertheless, I do assume the information in an Undo.io recording file could assist in AI inferences, suggestions and explanations.