Install
Install with PiG
pig install npm:@xaccefy/pi-codeintelInstall with Pi
pi install npm:@xaccefy/pi-codeintelPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.2.9 (README.md). PiG does not review it.
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