Install · Codex

Prism for Codex.

This agent gets the MCP server and a short rule in AGENTS.md. Prism only edits the lines between its own markers.

$npm install -g @prismapp/cli
$prism install codex
Your agent
YouCan I delete src/legacy/cart.js?
Prismsafe_delete
Not safe: 1 file still depends on it.
src/pages/checkout.ts imports src/legacy/cart.js
AgentNot yet. I’ll move checkout.ts off cart.js first.
~/northwind
$ prism safe-delete src/legacy/cart.jsSafe delete: src/legacy/cart.jsNot safe — 1 file still depends on it.BLOCKED BY WHYsrc/pages/checkout.ts imports src/legacy/cart.js
By hand

Or add the MCP server yourself.

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

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

toml~/.codex/config.toml
[mcp_servers.prism]
command = "npx"
args = ["-y", "@prismapp/mcp-server@2"]
json~/.prism/config.json
{
  "extraTools": [
    "receipt"
  ]
}
Add to the file if it already has settings.

What install writes

WhereWhat
~/.codex/config.tomlThe Prism MCP server, between Prism’s markers
~/.codex/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 Codex.
  2. Run prism doctor to check the setup.
  3. Ask for a change in plain words.
  4. Ask “what breaks if I change this?” and your agent asks Prism.