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.
free sign-in, no card required
Practise it as an interviewer asks it
What is tool calling, and what actually happens when a model 'calls a tool'?How does a coding agent work? Walk through what happens between 'fix this failing test' and the pull request.Design the tool definitions an agent sees for an order-management API.Find the right code in a two-million-line monorepo without flooding the context.Design the harness for an internal coding agent that fixes failing tests across your company's repositories.Search-and-replace blocks, unified diffs or whole-file rewrites: choose an edit format.