Deep dive · Jump here anytime when you want more on this idea
Give a clear task, review the diff, redirect early
After this, you'll be able to use Claude Code or Cursor's agent mode to make a targeted file change by writing a precise task description and reviewing the diff before accepting.
Before you start
Complete Tab Complete first; this lesson builds on using AI to generate and review code changes.
The idea
Agent IDE tools like Claude Code and Cursor don't just complete lines of code; they read your entire project and make actual file changes based on a task you describe in plain English. Your job in this workflow is three things: write a precise task description, review the diff the agent produces, and redirect it early if it goes wrong.
Here is the before and after: 'Fix the auth bug' is too vague; the agent changes multiple files, introduces a new issue, and you spend an hour tracking it down. 'In auth.ts, the isTokenValid function always returns false because the expiry check compares a string to a number; fix the comparison so it correctly returns true for a valid, non-expired token' gives the agent a file name, a function name, and a specific problem; the diff it produces is one targeted line.
Now try it: pick a single function in a project you are working on and write a task description that names the file, the function, and the exact behavior you want changed. Review every line of the diff before accepting; reading diffs is the core skill of agent IDE use.
Try it (12 min)
Watch out for
Paste this into Claude
I am working in [describe your project: what it is and what language it uses]. I need to make a change to [specific file name and function or section]. Right now it [describe the current behavior: what it does that is wrong or missing, one sentence]. I want it to [describe the desired behavior: what it should do instead, one sentence]. The change should not affect [describe any behavior that must stay the same]. When you are done, explain what you changed and why in one sentence. Do not change any other files without telling me why you need to.
What good looks like
When this breaks
You can now
Read every line of the diff, confirm the change does exactly what you described, and run the affected feature to verify nothing else broke.
Key takeaways
The agent IDE handles the editing; your job is the task description and the diff review. Vague tasks produce large diffs that touch files you didn't intend. Specific tasks produce small, targeted ones.