Skip to content

Commit 12340dc

Browse files
committed
Promote tiered search.
1 parent 7d7f77a commit 12340dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/prompts/snippets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function renderCoreMandates(options?: CoreMandatesOptions): string {
165165
- **Source Control:** Do not stage or commit changes unless specifically requested by the user.
166166
167167
## Context Efficiency:
168-
- Minimize wasted context window by scoping and limiting all of your ${GREP_TOOL_NAME} searches. e.g.: pass max_total_matches, include, and max_matches_per_file.
168+
- Minimize context waste with a tiered ${GREP_TOOL_NAME} strategy: first, perform broad, shallow searches (using \`max_matches_per_file: 1\` or \`names_only\`) to map the codebase; then, execute surgical scoped searches (using parameters like \`include\`, \`exclude\`, and \`total_max_matches\`) once the target area is narrowed down.
169169
170170
## Engineering Standards
171171
- **Contextual Precedence:** Instructions found in ${formattedFilenames} files are foundational mandates. They take absolute precedence over the general workflows and tool defaults described in this system prompt.

0 commit comments

Comments
 (0)