Prism
Prism gives coding agents semantic change intelligence before they edit. It combines repository text search with a typed code graph and returns task-shaped answers: the complete method family, resolved callers, edit-ready source, and every known site a diff missed.
Prism answers questions. It never edits code; the agent makes every change.
Prism 2.0 answers across every repository a change can reach. What’s new since 1.0
It runs locally as one binary and embeds Grove. Agents reach it one of two ways: as an MCP server, or through the prism command in their shell (prism init --interface cli).
Start in one command
brew install provasign/tap/prism
cd your-repo
prism init .
You can also use the installer:
# Pinned to the current release; verifies the checksum and, with cosign or gh, the provenance
curl -fsSL https://raw.githubusercontent.com/provasign/prism/v2.0.0/install.sh | VERSION=v2.0.0 bash
prism init --dry-run . shows the diff of every file it would write, and prism uninstall . later removes exactly what init added.
prism init writes prism.yaml and agent instructions for the agents you pick: Claude Code, Codex, Cursor, Copilot (VS Code), GitHub Copilot CLI, Gemini CLI, OpenCode, Kiro, and Windsurf. It asks which interface to use. CLI (the default) registers no server; agents run prism in their shell. MCP registers a project-local server. To choose without a prompt:
prism init --harness claude,codex --interface cli .
Indexing happens automatically on first use and updates incrementally.
One route for each question
| Question | Route |
|---|---|
| Where is this name or text? | prism search |
| What source does this task need? | prism query |
| What must change with this method? | prism change-impact |
| What does my diff reach? | prism change-impact --diff |
| Who uses this type or field, and how? | prism references --kind |
| What reaches this, and through what path? | prism callers, prism path |
| Which tests should run first? | prism test-plan |
| What are the exact rename edits? | prism rename-plan |
| Which types lack a new interface member? | prism missing-implementations |
| Did this diff miss a required site? | prism verify |
| Did this diff cross a forbidden boundary? | prism arch |
| Did the exported API break since a release? | prism api-diff --base v1.8.0 |
| Can another tool read the graph? | prism export --format scip |
prism search QueryData --scope text --exhaustive --files-only
prism change-impact 'QueryDataHandler.QueryData' --format text
prism verify --base main --format text
Exhaustive search returns a compact inventory of exact files and enclosing symbols. change-impact returns the declaration, override and implementation family, sibling contracts, and resolved callers. verify turns that semantic set into a diff completeness gate.
Current measured result
Prism v1.9.1 against native Claude Code, which 2.0 matches apart from two fixes (2026-11-29; Sonnet 5.5, CLI interface, one run per cell):
| Native | Prism | Prism / native | |
|---|---|---|---|
| Change work, 32 tasks: solved | 31 / 32 | 32 / 32 | |
| Change work: task cost | $0.0924 | $0.0768 | 0.83× |
| Change work: tool calls | 9.5 | 6.8 | 0.72× |
| Bug fixes, 41 issues: solved | 26 / 41 | 25 / 41 | |
| Bug fixes: task cost | $0.0772 | $0.0747 | 0.97× |
Bug fixes are at parity; the one solve difference was ruled a task-level miss. Startup cost per session is 1.03× native.
See the full tables, setup, and limits.
Designed for reliable use
- Deterministic graph operations. The engine solves traversal and returns the same result for the same repository state.
- Explicit completeness. Results state when evidence is closed, project-local, heuristic, stale, or unsupported.
- Edit-ready delivery.
prism queryreturns line-numbered source around named anchors instead of another list of pointers. - Session deduplication. Re-reading an unchanged file through MCP returns a short pointer instead of the content.
- Local operation. Code and indexes stay in the working environment; the default MCP transport is stdio.
- CI gates.
prism cifails a pull request on a missed site or a new architecture violation, with annotations;prism verifyandprism archexit nonzero when their checks fail. - Safe by default. For a repository you mark untrusted (
prism untrust), Prism never runs its build tools. Search and read withhold.env, key and credential files unless asked.
Across repositories
A change in a library reaches the services that use it. Link those repositories and the same commands answer for them:
cd library
prism workspace add ../app # or a git URL, fetched read-only at a commit
prism change-impact Client.Send # the call sites in app first, then this repository's
Each repository keeps its own index; links are followed when a question is asked. lookup, read, search, change-impact, verify and test-plan cover linked repositories, and every answer says which ones it covered and how strongly: resolved by the other repository’s compiler for Go, Java, TypeScript and Python, or name-matched. A link committed in a cloned repository takes effect only after you confirm it on your machine. The multi-repository guide.
Link server: the whole organization
For the services nobody has checked out, each consumer’s CI uploads where it uses other repositories’ symbols to a link server your organization runs. change-impact, verify, test-plan and lookup in the library then list every readable consumer site, each pinned to its commit, and say what they could not cover.
- Storage: AWS S3, Azure Blob Storage, Google Cloud Storage, S3-compatible stores in your data centre (MinIO, Ceph, …), or a local disk. Any number of replicas on shared storage.
- Access: per-token rights. CI tokens upload one repository, and read tokens see a team’s repositories. Expiry and instant revocation.
- Security: TLS and mTLS, an audit log of every request, and rate limits. Only one line per use and signatures are stored.
- Operations: a container image and Helm chart, Prometheus metrics, retention, integrity check, backup and restore.
- Scale: p99 under 25 ms at 1,000 repositories and about a million references.
The link server guide covers architecture, deployment on every platform, credentials, CI setup, the HTTP API, sizing and what was tested.
Language support
Prism indexes Go, TypeScript/TSX, JavaScript/JSX, Python, Java, Rust, C/C++, C#, PHP, Swift, Kotlin, Objective-C, COBOL, and JCL through the embedded Grove engine. Semantic depth depends on the language and on the native toolchain available in the repository. COBOL and JCL have a regression-tested graph; their accuracy is not yet independently scored. prism doctor . reports the full per-language resolution tier and limitations breakdown.