claude-code-system-prompts/system-prompts/tool-description-edit-minimal-old_string-guidance.md
2026-06-12 10:12:09 -06:00

506 B

  • Keep old_string minimal — usually 1-3 lines, only enough to be unique in the file. Including excess context wastes tokens and is an error.
  • The edit will FAIL if old_string is not unique in the file. In that case, add the minimum extra context needed for uniqueness, or use replace_all to change every instance.