← Catalog

pi-shazam

Pi coding agent native codebase awareness toolkit — 7 structural analysis tools. Also supports MCP (Cursor, Claude Desktop, Windsurf, etc.)

Extension

Install

Install with PiG

pig install npm:pi-shazam

Install with Pi

pi install npm:pi-shazam
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": [
    "./dist"
  ]
}

README

Written by the package's publisher, shown as published in version 0.31.0 (README.md). PiG does not review it.

pi-shazam

Codebase awareness toolkit for the Pi coding agent — 7 structural analysis tools powered by tree-sitter and LSP that give your agent deep understanding of any project.

Installation

Two ways to use pi-shazam, depending on your agent:

Native Extension — Pi Coding Agent only

For the Pi coding agent. Installs as a first-class extension — tools appear alongside read/write/bash with no distinction.

pi install npm:pi-shazam

MCP Server — all other AI agents

For Kimi Code, CodeBuddy, Qwen Code, Claude, Codex, Qoder, Trae, and any MCP-compatible client.

{
	"mcpServers": {
		"pi-shazam": {
			"command": "npx",
			"args": ["-y", "-p", "pi-shazam@latest", "pi-shazam-mcp"]
		}
	}
}

Analysis Tools

ToolWhen to useWhat it does
shazam_overviewFirst entry, need project structureProject summary: top files, dependencies, hotspots, entry points, key data structures
shazam_lookupNeed symbol details or concept searchUnified lookup + fuzzy concept search ("how is X implemented")
shazam_impactBefore editing shared or exported modulesBlast radius analysis — every file, symbol, and test affected by a change
shazam_verifyAfter every write or editPost-edit verification: LSP diagnostics with auto-detection of unreliable servers, graph analysis, PASS/WARN/FAIL
shazam_changesAfter edits to see what changedGit change summary with symbol-level detail, risk level, affected callers
shazam_formatWhen shazam_verify reports format errorsAuto-fix formatting (prettier, biome, eslint, ruff, cargo fmt, gofmt)
shazam_rename_symbolBefore renaming any symbolLSP cross-file symbol rename with atomic writes

Slash Commands

Setup and hook installation run automatically on session start. No manual setup commands needed.

CommandWhenPurpose
/shazam-doctorWhen troubleshootingHealth check: LSP status, recent errors, slow calls, tree-sitter grammars, cache integrity

Supported Languages

LanguageTree-sitterLSP
PythonYespyright / pylsp
TypeScriptYestypescript-language-server
JavaScriptYestypescript-language-server
GoYesgopls
RustYesrust-analyzer
DartYesdart language-server
JSONYesvscode-json-language-server
YAML-yaml-language-server

Platform Support

PlatformStatus
LinuxSupported
macOSSupported
WindowsSupported (cmd, PowerShell 5/7, Git Bash)

All tree-sitter grammars ship prebuilt binaries for linux-x64, linux-arm64, darwin-x64, darwin-arm64, win32-x64, and win32-arm64 — no C++ compiler required on any platform.

License

MIT