Skip to content

Commit ce4c69b

Browse files
committed
feat: removes actual test search tool names from instructions
This grants more freedom to the agent and prevents from unsuccessful tries utilizing non-installed tools (like rg when it's not installed)
1 parent 19ebd10 commit ce4c69b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class KnowledgeError extends Error {
164164
/**
165165
* Default instruction template
166166
*/
167-
export const DEFAULT_TEMPLATE = `Use text search tools (grep, rg, ripgrep) to search for {{keywords}} in {{local_path}}. Try broader terms if needed. Skip: node_modules/, .git/, build/, dist/.`;
167+
export const DEFAULT_TEMPLATE = `Use available text search tools to search for {{keywords}} in {{local_path}}. Try broader terms if needed. Skip: node_modules/, .git/, build/, dist/.`;
168168

169169
/**
170170
* Allowed template variables that can be used in instruction templates

packages/mcp-server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Returns JSON object with:
186186
- generalized_search_terms: Broader terms for context
187187
- path: Local directory path to search in
188188
189-
Use the path and search terms with your text search tools (grep, rg, ripgrep, find).`;
189+
Use the path and search terms with your available text search tools.`;
190190

191191
return {
192192
tools: [

0 commit comments

Comments
 (0)