pi-multi-grep
Pi extension that replaces the built-in grep tool with multi-path and multi-glob support.
Package details
Install pi-multi-grep from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-multi-grep- Package
pi-multi-grep- Version
1.0.0- Published
- May 30, 2026
- Downloads
- not available
- Author
- dannykok
- License
- MIT
- Types
- extension
- Size
- 20.6 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-multi-grep
After numerous times seeing agents being confused by bash-style grep tool syntax and struggle with the default Pi grep tool, I decided to create this extension.
pi-multi-grep is a simple Pi extension that replaces the built-in grep tool with an array-first version for multiple search targets and multiple glob filters. It still uses ripgrep underneath.
So now agent:
- stop being confused by the
grepsyntax - can search multiple paths at once
Installation
pi install npm:pi-multi-grep
Usage
{
"pattern": "TODO",
"paths": ["src", "packages"],
"globs": ["*.ts", "*.tsx", "!*.test.ts"]
}
paths defaults to the current directory when omitted. globs is optional.