Skip to content

feat: improve agent UX for search_docs tool - #35

Merged
mrsimpson merged 1 commit into
mainfrom
rename-search-parameter
Mar 26, 2026
Merged

mrsimpson merged 1 commit into
mainfrom
rename-search-parameter

Conversation

@mrsimpson

Copy link
Copy Markdown
Collaborator
  • Rename 'keywords' parameter to 'pattern' to signal regex, not keyword list
  • Remove 'fallback_pattern' parameter (no-match hints make it redundant)
  • Change context_lines default from 0 to 2 for useful context on first call
  • Add actionable recovery guidance when search returns no matches
  • Surface warning when invalid regex is auto-escaped to literal string
  • Make truncated message actionable (suggest narrowing pattern)

CAUTION: search_docs parameter renamed from 'keywords' to 'pattern', 'generalized_keywords'/'fallback_pattern' parameter removed entirely

- Rename 'keywords' parameter to 'pattern' to signal regex, not keyword list
- Remove 'fallback_pattern' parameter (no-match hints make it redundant)
- Change context_lines default from 0 to 2 for useful context on first call
- Add actionable recovery guidance when search returns no matches
- Surface warning when invalid regex is auto-escaped to literal string
- Make truncated message actionable (suggest narrowing pattern)

BREAKING CHANGE: search_docs parameter renamed from 'keywords' to 'pattern',
'generalized_keywords'/'fallback_pattern' parameter removed entirely
@mrsimpson
mrsimpson merged commit f77a826 into main Mar 26, 2026
1 check passed
@mrsimpson
mrsimpson deleted the rename-search-parameter branch March 26, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant