When iterating with coding agents, there's a common workflow pain: you want to see exactly what the agent changed without losing your current state. The solution? Stash your changes before each agent run, then diff them after.

This workflow is now built directly into Cursor with a new feature: press ⌘K twice to instantly compare any two versions or changesets. No more manual git stashing or copy-pasting code into separate files.

Under the hood, this likely hooks into Cursor's version control layer to create lightweight snapshots during agent sessions. Makes debugging agent behavior way more transparent - you can see if it's making logical edits or just thrashing around.

Practical use case: when an agent refactors your code but breaks something subtle, you can now pinpoint exactly which change caused the regression without reconstructing the diff manually.