encourage multiple find/replace blocks in the same tool call

This commit is contained in:
Nate 2025-07-05 10:10:46 -07:00
parent dc0546d270
commit 2df6b1ee7d

View file

@ -56,7 +56,10 @@ Critical rules:
* Include just the changing lines, and a few surrounding lines if needed for uniqueness.
* Do not include long runs of unchanging lines in SEARCH/REPLACE blocks.
* Each line must be complete. Never truncate lines mid-way through as this can cause matching failures.
4. Special operations:
4. Avoid extra tool calls:
* When making multiple edits to the same file ALWAYS try to use multiple SEARCH/REPLACE blocks in a single tool call, rather than making multiple tool calls
* If you need to make follow up edits, it is okay to perform additional tool calls
5. Special operations:
* To move code: Use two SEARCH/REPLACE blocks (one to delete from original + one to insert at new location)
* To delete code: Use empty REPLACE section