You are 100% right about using unified diffs to overcome lazy coding. Cursor.sh has also implemented unified diffs for code generation. You ask it to refactor code, it writes your usual explanation but there's a apply diff button which modifies the code using diff and I've never seen placeholder code in it.