Install · opencode

Prism for opencode.

This agent gets the MCP server, a plugin with Prism’s hooks (session start, before and after an edit, and stop) and a short rule in AGENTS.md.

$npm install -g @prismapp/cli
$prism install opencode
Your agent
YouReview my changes before I open a PR
Prism
guard_sessionreview: true · this session
1 finding
Critical
1. A caller was left unchanged (src/report.ts)
Change: update that caller, then review again.
A caller of the changed function was left unchanged.
Receipt NO-SHIP
AgentOne Critical finding: a caller in src/report.ts was left unchanged. I’ll update it, then review again.
~/northwind
$ prism reviewReview1 findingCritical1. A caller was left unchanged (`src/report.ts`) - This code: one caller still uses the old result - Change: update that callerA caller of the changed function was left unchanged.ReceiptNO-SHIP
By hand

Or add the MCP server yourself.

Paste this into opencode’s MCP config. It starts the published Prism server with npx. By hand you get the MCP tools, not the plugin and rule.

Without hooks, turn on the receipt tool so the agent can ask for a receipt before it says it is done.

json~/.config/opencode/opencode.json
{
  "mcp": {
    "prism": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@prismapp/mcp-server@2"
      ],
      "enabled": true
    }
  }
}
For one repo only, use opencode.json in the repo root.
json~/.prism/config.json
{
  "extraTools": [
    "receipt"
  ]
}
Add to the file if it already has settings.

What install writes

WhereWhat
~/.config/opencode/opencode.jsonThe Prism MCP server
~/.config/opencode/plugins/prism.jsA plugin that runs Prism’s hooks (with --project: .opencode/plugins/prism.js)
~/.config/opencode/AGENTS.mdA short rule between Prism’s markers (the repo’s AGENTS.md with --project)
~/.prism/config.jsonTurns on the receipt tool

Then

  1. Restart opencode.
  2. Run prism doctor to check the setup.
  3. Ask for a change in plain words.
  4. When the session goes idle, the plugin writes the verdict to the agent log; prism receipts shows it too.