32dots HEIDELBERG AI
Session 4 medium

Let Cascade self-correct: Auto-fix

LESSONLesson 4 · ~15 min

🎯Goal. Watch Cascade catch and fix the lint errors it introduces mid-task — without you stepping in.

  1. 1Give Cascade a multi-file task (for example, "add an analytics summary to the panel"). As it edits files, it shows each change — what it edited and the lines added or removed.
  2. 2When an edit introduces lint errors, Cascade flags them (e.g. "5 new lint errors") and, with Auto-fix on, corrects them itself before moving on — so the task ends with clean, working code.
  3. 3Let it run and read its summary. Use Open diff on any edit to see exactly what changed, and only intervene if a fix isn't what you wanted.
Cascade showing an edited file (panel.ts, +18 -0) with a '5 new lint errors' notice and 'Auto-fix on'
Cascade edits a file, notices it introduced 5 new lint errors, and with Auto-fix on clears them itself before finishing the task. Source: https://docs.devin.ai/desktop/cascade/cascade

You'll see. Cascade reporting the lint errors its own edits caused and clearing them automatically before finishing the task.

💳Cost. Auto-fix happens inside the same Cascade task, so it uses your agent quota rather than adding a separate charge.

💡Takeaway. Cascade doesn't just write code and walk away — with Auto-fix on it catches and clears the lint errors it introduces, so a task lands working.