@artale/pi-codebase-map
Semantic-ish codebase search for Pi. TF-IDF indexing, zero dependencies, smarter than grep.
Package details
Install @artale/pi-codebase-map from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@artale/pi-codebase-map- Package
@artale/pi-codebase-map- Version
1.0.0- Published
- Jul 5, 2026
- Downloads
- 93/mo · 11/wk
- Author
- artale
- License
- MIT
- Types
- extension
- Size
- 9.8 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"src/extension.ts"
],
"tools": [],
"commands": [
"index",
"codesearch"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-codebase-map
TF-IDF codebase search for Pi. Smarter than grep, zero dependencies.
Install
pi install npm:@artale/pi-codebase-map
Tools
| Tool | Description |
|---|---|
codebase_index |
Index the current project |
codebase_search |
Search by natural language query |
codebase_status |
Index stats and freshness |
Commands
/index— reindex current project/search <query>— search the codebase
How it works
- Walks project files (respects .gitignore via
git ls-files) - Chunks code by function/class boundaries
- Builds TF-IDF vectors (pure TypeScript, no deps)
- Cosine similarity search on queries
Index stored in .pi-codebase-map/ (add to .gitignore).
License
MIT