Whenever AI suggests code modifications-whether through Agent mode, Inline Chat-the changes are presented in a clear, contextual diff view, allowing you to review them before applying. This ensures full visibility and control over every modification.

Diff preview format

The preview displays changes using standard diff notation:
  • Added lines are shown in green
  • Removed lines are shown in red
  • Unchanged surrounding code is displayed in a neutral tone, preserving context and helping you understand the scope of the change
This inline diff format enables you to:
  • See exactly what will change
  • Understand why the change is made
  • Assess how it fits into the existing codebase
You can then accept, edit, or reject each change with full confidence. Example:
function validate(user) {

- return user.id !== undefined;

+ return user.id && user.status === 'active'; }

Review mode

After the Agent completes its task, you’ll be prompted to review all changes before they are applied. This gives you a comprehensive overview of the modifications across your codebase.

Per-change controls

In the top-right corner of each change block: Accept or Reject-to approve or discard that specific change.

File-level controls

At the bottom of the file:
  • Reject or Accept-discard or apply all suggested modifications in the current file
  • Navigate between files-move through files with pending changes
5eecdaf48460cde505c26f792344b241914623f7c627339375b8339e1c4c24831b75b38faadcd24bec177c308ebd53043616fad5001efc436de832a8794e99ad3854191ad2f2fa697995bdd00ade9bb63eb91092d88ba7a74fb4c8ed7016461c Pn

Handle multiple-file changes

When changes span multiple files, the affected file names appear above the AI Chat panel. You can:
  • Reject or Accept to discard or apply changes across all listed files
  • Click a file name to jump directly to that file with diffs displayed 24A7804D 0A09 4CB6 A157 3EF75BCB381B Pn
  • Hover over a file name to see Reject or Accept options for that file only 65A030F9 8FF7 4310 AC9B D226941C5A2A Pn
This multi-file navigation makes it easy to manage complex, cross-file refactors while maintaining full control.