forked from cline/cline
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.enhancementNew feature or requestNew feature or request
Description
Version: v3.23.14
API Provider: anthropic
Model: sonnet-3.5
What happened?
The apply_diff tool does not warn models when only one SEARCH/REPLACE block is used, missing opportunities for batching multiple related changes.
Expected behavior
When only one SEARCH/REPLACE block is detected, the tool should warn models that multiple blocks can be more efficient.
Steps to reproduce
- Use apply_diff with only one SEARCH/REPLACE block - no efficiency warning appears for the model
- Compare with read_file tool which warns models when only one file is read
Additional context
The read_file tool already implements similar efficiency warnings when only one file is read, encouraging models to read multiple files simultaneously for better LLM context efficiency. The apply_diff tool should follow the same pattern.
Metadata
Metadata
Assignees
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.enhancementNew feature or requestNew feature or request
Type
Projects
Status
Triage