@xaccefy/pi-codeintel
AST-based TypeScript/JavaScript code intelligence indexer and query tool for Pi Agent
Package details
Install @xaccefy/pi-codeintel from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@xaccefy/pi-codeintel- Package
@xaccefy/pi-codeintel- Version
0.2.9- Published
- Jul 10, 2026
- Downloads
- 2,953/mo · 1,051/wk
- Author
- xaccefy
- License
- MIT
- Types
- extension
- Size
- 50.6 KB
- Dependencies
- 2 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-codeintel
AST-based TypeScript/JavaScript indexer for Pi Agent: symbols, imports, call graph, architecture summary. Tools include promptSnippet / promptGuidelines so the model knows when to use them (e.g. “analyze the codebase” → CodebaseGetArchitecture).
Install
pi install npm:@xaccefy/pi-codeintel
Tools
| Tool | Use |
|---|---|
CodebaseIndex |
Build/refresh SQLite index (.pi/codebase.db) |
CodebaseFindSymbol |
Search symbols by name/kind |
CodebaseGetDefinition |
Declaration + source snippet |
CodebaseFindReferences |
Callers/references |
CodebaseGetCallGraph |
Inbound/outbound call tree (depth default 3) |
CodebaseTraceCallPath |
Paths leading to a target (optional sourceSymbol) |
CodebaseGetArchitecture |
Layout, hotspots, top imports |
Most query tools auto-index on first use (throttled). Call CodebaseIndex explicitly for a full/forced refresh.
Development
bun test packages/pi-codeintel
bun run typecheck