Skip to content

Lesson 2 of 8 · 3 min read

Applying Edits

Coding agents must turn an intended change into an exact file modification. Whole-file rewrites always apply but are costly and can disturb unrelated lines; unified diffs are compact but fragile on line numbers; search-and-replace blocks quote exact text and apply reliably when it is unique. Published comparisons (Aider, from 2023) show format choice changes success rates and varies by model. Strict application with precise errors, and small edits, matter as much as the format.

Reviewed By the AIAgentInterviews editorial team
free sign-in, no card required

Practise it as an interviewer asks it

Related lessons