The right context, before the first edit.

When you ask for a change, Prepare adds the files the agent should edit, the tests that cover them, and code already in the repo to reuse. The agent starts in those files.

Your agent
YouAdd VAT to computeTotals in the billing totals
PrismPrism · files for this task:
- src/billing/totals.ts: matches compute, total
3: function computeTotals(lines: Line[])
Tests: test/invoice.test.ts, test/totals.test.ts
Run: npx vitest run test/invoice.test.ts test/totals.test.ts
AgentStarting in totals.ts and running those two tests after.
~/northwind
$ prism prepare "add VAT to invoice totals"Prepare: add VAT to invoice totalsFiles 4Tests 2Reuse 1Truncated noPATH WHYsrc/billing/invoice.ts seed filesrc/billing/totals.ts import distance 1src/checkout/summary.ts import distance 2src/lib/money.ts import distance 2Reuse invoiceTotal src/billing/invoice.ts

Only files it is sure of

Up to three files, each with a reason: the ones your request names, or a clear top pick. When Prism is not sure, it lists none and asks the agent to call prepare_change.

Code to reuse

Helpers that already exist nearby, so your agent doesn’t write a second copy.

Tests and the command

The tests for those files and the exact command to run them.

No repeats

Files already shown in this session are listed as “Same as before”.

Small answers

A Prepare answer fits in 2,000 tokens by default; the automatic one in 1,200.

Ranked by git history

Files that often change in the same commits rank higher.

Notes it hands back

Save a fact once with prism remember. Prepare returns it with the right file.

Your agent
YouRemember that totals are stored in cents
AgentSaved. Prepare will hand it back with src/billing/totals.ts.
~/northwind
$ prism remember "Totals are stored in cents" --path src/billing/totals.tsRemembered 7b3fd5165756: Totals are stored in cents

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