pi-diet-ripgrep
Minimal Pi extension exposing ripgrep as a first-class exact-search tool.
Package details
Install pi-diet-ripgrep from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-diet-ripgrep- Package
pi-diet-ripgrep- Version
0.1.3- Published
- Jun 20, 2026
- Downloads
- not available
- Author
- probabilityengineer
- License
- MIT
- Types
- extension
- Size
- 13.4 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-diet-ripgrep
One of my diet context engineering and workflow extensions. Add pi-diet-LSP, pi-diet-Ripgrep, pi-repo-move and others from npm.
A minimal Pi extension that exposes ripgrep as a first-class exact-search tool.
Files
index.ts— extension entrypointspec.md— design specscripts/estimate_prompt_footprint.py— rough prompt-cost estimator
Installation
After the package is published to npm:
pi install npm:pi-diet-ripgrep
For a pinned GitHub install:
pi install git:github.com/ProbabilityEngineer/pi-diet-ripgrep@v0.1.0
For local development:
pi -e /path/to/pi-diet-ripgrep/index.ts
Or symlink/copy into an auto-discovered extension location:
mkdir -p ~/.pi/agent/extensions/pi-diet-ripgrep
ln -sf /path/to/pi-diet-ripgrep/index.ts ~/.pi/agent/extensions/pi-diet-ripgrep/index.ts
Publishing
First publish manually once:
npm publish --access public
Then configure npm Trusted Publishing from the CLI:
npm trust github pi-diet-ripgrep \
--repo ProbabilityEngineer/pi-diet-ripgrep \
--file npm-publish.yml \
--allow-publish
npm will open/print a browser authentication flow for 2FA approval. The workflow file name is npm-publish.yml because npm expects the file name inside .github/workflows/, not the full path.
After trusted publishing is configured, publish future versions by bumping package.json and pushing a matching version tag:
npm version patch --no-git-tag-version
git commit -am "Release v0.1.1"
git tag v0.1.1
git push && git push origin v0.1.1
Tool
rg is intended for exact text and regex search only.