Every answer, in your terminal.
Everything your agent can ask Prism, you can ask too. Start with prism start, then try prism refs, prism blast, prism review or prism receipts.
YouWhat is in this repo?
Prismgraph mode: map
## src/billing/totals.ts · callers: credit-note.ts, invoice.ts
## src/lib/money.ts · callers: invoice.ts, totals.ts
## src/billing/totals.ts · callers: credit-note.ts, invoice.ts
## src/lib/money.ts · callers: invoice.ts, totals.ts
AgentBilling lives in src/billing. Money helpers are in src/lib/money.ts.
$ prism startInstalling for your agent…Prism 2.0.0 installed for your agent.Indexed 12 files in 0.1 s.# Prism repo map## src/billing/totals.ts computeTotals (src/billing/totals.ts:4) callers: src/billing/credit-note.ts, src/billing/invoice.ts callees: src/lib/money.tsTry: prism prepare "<task>", or ask your agent; it calls prepare_change first.
Set up
prism startConnect the agents on this machine and index the repo.prism installPoint an agent at the local Prism server.prism upgradePoint those agents at the version you just installed.prism uninstallRemove that connection. Add --purge to delete local data.
Diagnose
prism doctorCheck the repo, the index, and each connected agent.prism strengthSet how much the hooks do: full, lite, or off.prism statsTimings and outcomes from the local event log.prism indexBuild or refresh the repository index.prism graphDaemon status, a map, or an export of the graph.prism data pruneShow old local data. Add --yes to delete it.prism completionsPrint a bash, zsh, or fish completion script.
Understand a repository
prism overviewWhat this repository is: stack and landmarks.prism explainWhat a file or folder is for.prism exploreUsages, ownership, and similar code.prism packagesEvery package in the workspace.prism findings listUnused exports, duplicates, and wrappers.prism agents-md generateA living AGENTS.md. It is not written into the repo.
Assess a change
prism prepareThe files to open, and the house style for a task.prism blastWhat breaks if this file or symbol changes.prism reviewFindings for the change, then a Receipt.prism safe-deleteWhether a file or symbol can be removed.prism renameEvery edit site a rename would touch.prism test-impactTests the change can reach.prism receiptsReceipts saved for this repository.prism lens listReview lenses, shared by every repository.
Inspect structure
prism depsThe dependency graph and its most connected files.prism cyclesImport and re-export cycles.prism symbolWhere a name is declared.prism refsWho references a symbol.prism routeHow one file reaches another.
Memory
prism habit listRoutines saved for any agent to run.prism rememberSave a note for this repository.prism memoriesList the notes saved here.prism forgetRemove a note by id or by text.
prism --help lists every command, and prism <command> --help shows its options.
Who calls this?
prism refs lists every reference to a symbol.
YouWhere do we call getUser?
Prismgraph mode: neighbors · direction: in
getUser function · src/users/api.ts
← src/pages/checkout.ts references · measured
← src/users/profile.ts references · measured
getUser function · src/users/api.ts
← src/pages/checkout.ts references · measured
← src/users/profile.ts references · measured
AgentgetUser is called in two places: checkout.ts and profile.ts. Both pass a user id.
$ prism refs getUser2 referencesPATH KIND OFFSETsrc/pages/checkout.ts call 232src/users/profile.ts call 117
A map of your repo
prism graph map prints the most connected files with their symbols, callers and callees.
$ prism graph map --budget 400# Prism repo map## src/billing/totals.ts computeTotals (src/billing/totals.ts:4) callers: src/billing/credit-note.ts, src/billing/invoice.ts callees: src/lib/money.ts## src/lib/money.ts formatMoney (src/lib/money.ts:1) callers: src/billing/invoice.ts, src/billing/totals.ts
Check your setup
prism doctor checks the repo, the index, each connected agent and the strength.
$ prism doctorok Git repository foundok Install 2.0.0 for your agentsok Index freshok Strength full (default); change with `prism strength`
Try it in your repo.
Install Prism, then connect every agent on this machine. Open the agent again.
$npm install -g @prismapp/cli && prism install all