Skip to content

feat: add glob tool#102

Merged
JackChen-me merged 1 commit intoJackChen-me:mainfrom
ibrahimkzmv:feat.add-glob-tool
Apr 12, 2026
Merged

feat: add glob tool#102
JackChen-me merged 1 commit intoJackChen-me:mainfrom
ibrahimkzmv:feat.add-glob-tool

Conversation

@ibrahimkzmv
Copy link
Copy Markdown
Contributor

@ibrahimkzmv ibrahimkzmv commented Apr 12, 2026

What

Introduce a new glob tool that returns file paths matching a given glob pattern, without reading file contents.

Why

grep tool is designed for regex-based content search, which makes it inefficient for simple file listing use cases. Workarounds like using ".*" require reading entire file contents and are limited by maxResults, making them slow and impractical.

By adding a dedicated glob tool, we enable efficient file enumeration (e.g., listing all .ts files) without overloading grepTool with responsibilities outside its intended purpose.
Closes: #92

Checklist

  • npm run lint passes
  • npm test passes
  • Added/updated tests for changed behavior
  • No new runtime dependencies (or justified in the PR description)

@JackChen-me JackChen-me merged commit 9b04fbf into JackChen-me:main Apr 12, 2026
3 checks passed
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.

[Feature] add glob tool

2 participants