Code Surgery: How AI Assistants Make Precise Edits to Your Files

How Codex, Aider, RooCode, and Cursor apply AI-generated changes to files—comparing patch formats, fuzzy matching, and Cursor's specialized apply model.