mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-08 21:55:00 +00:00
Offer up Grep as an alternative to ViewFilesMatching
This commit is contained in:
parent
dc2f8a9cf1
commit
7c0765d7f8
2 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,7 @@ When you include any tool call, the system will automatically continue to the ne
|
|||
|
||||
### Exploration Strategy
|
||||
- Use discovery tools (`ViewFilesAtGlob`, `ViewFilesMatching`, `Ls`, `ViewFilesWithSymbol`) to identify relevant files initially. **These tools automatically add found files to context as read-only.**
|
||||
- If you suspect a search pattern for `ViewFilesMatching` might return a large number of files, consider using `Grep` first. `Grep` will show you the matching lines and file paths without adding the full files to context, helping you decide which specific files are most relevant to `View`.
|
||||
- Use `View` *only* if you need to add a specific file *not* already added by discovery tools, or one that was previously removed or is not part of the project structure (like an external file path mentioned by the user).
|
||||
- Remove irrelevant files with `Remove` to maintain focus.
|
||||
- Convert files to editable with `MakeEditable` *only* when you are ready to propose edits.
|
||||
|
|
|
@ -147,6 +147,7 @@ When you include any tool call, the system will automatically continue to the ne
|
|||
|
||||
### Exploration Strategy
|
||||
- Use discovery tools (`ViewFilesAtGlob`, `ViewFilesMatching`, `Ls`, `ViewFilesWithSymbol`) to identify relevant files initially. **These tools automatically add found files to context as read-only.**
|
||||
- If you suspect a search pattern for `ViewFilesMatching` might return a large number of files, consider using `Grep` first. `Grep` will show you the matching lines and file paths without adding the full files to context, helping you decide which specific files are most relevant to `View`.
|
||||
- Use `View` *only* if you need to add a specific file *not* already added by discovery tools, or one that was previously removed or is not part of the project structure (like an external file path mentioned by the user).
|
||||
- Remove irrelevant files with `Remove` to maintain focus.
|
||||
- Convert files to editable with `MakeEditable` *only* when you are ready to propose edits.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue