pi-shazam

extensionmaintained

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

by · v0.30.1 · published 6d ago

$ pi install npm:pi-shazam
downloads/mo
0
stars
6
last push
1d ago
open issues
2

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

17.5K downloads · last 12 weeks (weekly)

README

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