← Catalog

@xaccefy/pi-codeintel

AST-based TypeScript/JavaScript code intelligence indexer and query tool for Pi Agent

Extension

Install

Install with PiG

pig install npm:@xaccefy/pi-codeintel

Install with Pi

pi install npm:@xaccefy/pi-codeintel
Review before installing

Packages 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

ToolUse
CodebaseIndexBuild/refresh SQLite index (.pi/codebase.db)
CodebaseFindSymbolSearch symbols by name/kind
CodebaseGetDefinitionDeclaration + source snippet
CodebaseFindReferencesCallers/references
CodebaseGetCallGraphInbound/outbound call tree (depth default 3)
CodebaseTraceCallPathPaths leading to a target (optional sourceSymbol)
CodebaseGetArchitectureLayout, 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