Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

Replace-all edits warn before approval and report a truer replacement count

Edits that use replace_all now warn in the permission dialog that they can change more than one place, and report the real number of replacements

Group of 3 You'll notice Improvements
JSON All of v2.1.327
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Edit ToolArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release

What

When Claude edits a file it can set replace_all, which replaces every match of the old text instead of just one. Edits like this are now handled more carefully:

  • The edit permission dialog, where you approve or reject an edit, now shows "This edit can change more than one place in the file." when an edit replaces every match.
  • A new diff view (the side-by-side view of what an edit removes and adds) warns "The diff may not show all of what this edit changes: its old text can match in other places." This appears when a replace_all edit's old text matches in other places and the diff shown is cut short. The diff is now worked out by reading the file to detect diffs that are only partly drawn.
  • The replacement count is 1 when replace_all is not set. When it is set, Claude Code counts the matches in the original file if it has it. Otherwise it now uses a replacements number reported with the result, where it used to fall back to 1.

Why

A replace-all edit can change text in places the diff doesn't show, so these warnings give you a cue before you approve a broad change. The count fix means replace-all edits that have no original file to count from report the real number of replacements instead of 1.

See this entry in the whole of v2.1.327 →

Feedback