How a coding agent's edit tool can forgive wrong indentation without editing the wrong place
A coding agent edits a file by sending the old text and the new text. The tool checks that the old text is in the file, swaps it for the new text and writes the result. If the old text is not found, the edit fails and the model tries again.