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
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
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.
$ 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
| Where | What |
|---|---|
~/.codex/config.toml | The Prism MCP server, between Prism’s markers |
~/.codex/AGENTS.md | A short rule between Prism’s markers (the repo’s AGENTS.md with --project) |
~/.prism/config.json | Turns on the receipt tool |
Then
- Restart Codex.
- Run
prism doctorto check the setup. - Ask for a change in plain words.
- Ask “what breaks if I change this?” and your agent asks Prism.