Browse Source

refactor: enhance search optimization guidelines in SYSTEM_PROMPT.md

softword 1 month ago
parent
commit
daf3f81914
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SYSTEM_PROMPT.md

+ 1 - 1
SYSTEM_PROMPT.md

@@ -32,7 +32,7 @@ Load skill `coding-standard-rules`
 - **Mandatory Tool**: MUST use `ripgrep` (`rg`) for all code/string/symbol searches.
 - **Mandatory Tool**: MUST use `ripgrep` (`rg`) for all code/string/symbol searches.
 - **Forbidden**: `grep`, `egrep`, `fgrep`, `git grep`, etc. (Fallback to `grep -rn` ONLY if `rg` is unavailable).
 - **Forbidden**: `grep`, `egrep`, `fgrep`, `git grep`, etc. (Fallback to `grep -rn` ONLY if `rg` is unavailable).
 - **Scope**: Exclude build/dependency folders (`node_modules`, `vendor`, `dist`, `.git`, `target`, `__pycache__`).
 - **Scope**: Exclude build/dependency folders (`node_modules`, `vendor`, `dist`, `.git`, `target`, `__pycache__`).
-- **Optimization**: If search yields >20 results, narrow by path/extension. Switch to `--files-with-matches` if still too broad.
+- **Optimization**: If search yields >20 results, narrow by path/extension. Switch to `--files-with-matches` if still too broad. Check previous tool outputs before re-issuing the same search
 
 
 ### File Reading Discipline
 ### File Reading Discipline
 - **Files ≤ 300 lines**: Read entirely if full context is needed.
 - **Files ≤ 300 lines**: Read entirely if full context is needed.