Find every caller. See what a change touches.

Ask where a function is used, or what depends on a file. Prism answers from its map of your code: every caller, the files and tests a change reaches, and a risk band.

Your agent
YouWhere do we call getUser?
Prismgraphmode: neighbors · direction: in
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.
~/northwind
$ prism refs getUser2 referencesPATH KIND OFFSETsrc/pages/checkout.ts call 232src/users/profile.ts call 117

“Where do we call getUser?” uses graph in neighbors mode. In the terminal: prism refs.

Every caller

graph mode neighbors, direction in, lists who uses a function. Each edge says how it was found: measured, heuristic or inferred.

What a change touches

blast_radius lists the files and tests a change reaches, with a risk band: low, mid or high.

Tests to run

test_impact lists the tests that reach a change, with a ready command.

What depends on a file

“What depends on totals.ts?” Prism counts the files that depend on it and the tests that reach it.

Your agent
YouWhat depends on totals.ts?
Prismblast_radius
Risk 40/100 Moderate Impact
Affected files 5 · Tests likely affected 2
Agent5 files depend on it and 2 tests reach it. I’ll keep the signature the same.
~/northwind
$ prism blast src/billing/totals.tsBlast radius: src/billing/totals.tsRisk 40/100 Moderate ImpactAffected files 5Tests likely affected 2Breaking-change hints 0FILE DEPTH WHYsrc/billing/invoice.ts 1 imports src/billing/totals.tssrc/billing/credit-note.ts 1 imports src/billing/totals.tssrc/pages/checkout.ts 2 imports src/billing/invoice.tssrc/pages/account.ts 2 imports src/billing/invoice.tssrc/cli/report.ts 2 imports src/billing/credit-note.ts

Run the right tests

“Which tests cover totals.ts?” Prism lists them, nearest first.

Your agent
YouWhich tests cover totals.ts?
Prismtest_impact
2 test files reach src/billing/totals.ts
test/totals.test.ts · test/invoice.test.ts
AgentRunning both now.
~/northwind
$ prism test-impact src/billing/totals.ts2 test files reach src/billing/totals.tsTEST DEPTHtest/totals.test.ts 1test/invoice.test.ts 2

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