Skip to content

Commit 5376e3f

Browse files
committed
Update code_search docs with -g, --no-ignore
1 parent 212c10c commit 5376e3f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.agents/file-explorer/code-searcher.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ const paramsSchema = {
2323
},
2424
flags: {
2525
type: 'string' as const,
26-
description:
27-
'Optional ripgrep flags to customize the search (e.g., "-i" for case-insensitive, "-t ts -t js" for TypeScript and JavaScript files only, "-A 3" for 3 lines after match, "-B 2" for 2 lines before match, "--type-not py" to exclude Python files)',
26+
description: `Optional ripgrep flags to customize the search (e.g., "-i" for case-insensitive, "-g *.ts -g *.js" for TypeScript and JavaScript files only, "-g !*.test.ts" to exclude Typescript test files, "-A 3" for 3 lines after match, "-B 2" for 2 lines before match, --no-ignore to include files in ignored by .gitignore).`,
2827
},
2928
cwd: {
3029
type: 'string' as const,

.agents/types/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface AddMessageParams {
5959
export interface CodeSearchParams {
6060
/** The pattern to search for. */
6161
pattern: string
62-
/** Optional ripgrep flags to customize the search (e.g., "-i" for case-insensitive, "-t ts" for TypeScript files only, "-A 3" for 3 lines after match, "-B 2" for 2 lines before match, "--type-not test" to exclude test files). */
62+
/** Optional ripgrep flags to customize the search (e.g., "-i" for case-insensitive, "-g *.ts -g *.js" for TypeScript and JavaScript files only, "-g !*.test.ts" to exclude Typescript test files, "-A 3" for 3 lines after match, "-B 2" for 2 lines before match, --no-ignore to include files in ignored by .gitignore).
6363
flags?: string
6464
/** Optional working directory to search within, relative to the project root. Defaults to searching the entire project. */
6565
cwd?: string

common/src/tools/params/tool/code-search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const codeSearchParams = {
1717
.string()
1818
.optional()
1919
.describe(
20-
`Optional ripgrep flags to customize the search (e.g., "-i" for case-insensitive, "-t ts -t js" for TypeScript and JavaScript files only, "-A 3" for 3 lines after match, "-B 2" for 2 lines before match, "--type-not py" to exclude Python files).`,
20+
`Optional ripgrep flags to customize the search (e.g., "-i" for case-insensitive, "-g *.ts -g *.js" for TypeScript and JavaScript files only, "-g !*.test.ts" to exclude Typescript test files, "-A 3" for 3 lines after match, "-B 2" for 2 lines before match, --no-ignore to include files in ignored by .gitignore).`,
2121
),
2222
cwd: z
2323
.string()

0 commit comments

Comments
 (0)