prism: Instructions file for Codex

AGENTS.md

prism AGENTS.md is an instructions file for Codex, OpenCode from tools-for-agents/prism. It costs 1,427 tokens per session, scanned A, original, MIT.

Repository instructions for Prism, a command-line, web, and MCP tool for inspecting JSON and JSONL data. JSONL is a format with one JSON object per line; Prism can show a data shape, read selected paths, and find matching text.

In plain words
What is it for?
Use it when developing, testing, documenting, or extending Prism's data-inspection commands, web view, or MCP server.
Why use it?
It tells agents how the project works and enforces its Node.js version, tests, command structure, and rule against runtime dependencies.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is tools-for-agents/prism's own configuration. It tells Codex and OpenCode how to work on prism itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything prism configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tools-for-agents/prism. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tools-for-agents/prism/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/tools-for-agents/prism

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prism AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tools-for-agents/prism/agents-md/github.svg)](https://agentmods.dev/instructions/tools-for-agents/prism/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/tools-for-agents/prism/agents-md"><img src="https://agentmods.dev/badge/instructions/tools-for-agents/prism/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prism AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tools-for-agents/prism/agents-md"><img src="https://agentmods.dev/badge/instructions/tools-for-agents/prism/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,427 This file is loaded in full into every session.
When invoked 1,427 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01427 $0.01427
Opus 5.5 $0.00571 $0.00571
Sonnet 5.5 $0.00285 $0.00285
Haiku 4.5 $0.00143 $0.00143

Measured 2mo ago against content hash 77522ed74bcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prism AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — prism

🔻 The agent's data reader. Any JSON/JSONL blob becomes its shape and the slice you asked for, not the whole thing. What scout does for the web and lens does for code, prism does for structured data. CLI + web + MCP. Part of tools-for-agents.

Setup

node --version                                   # 22+ required. Nothing to install.
npm test                                         # = node --test
echo '{"a":{"b":[1,2,3]}}' | node src/cli.js shape -
node src/cli.js read data.json --path 'items[*].id'
node src/cli.js find config.json "timeout"
node src/cli.js serve                             # the web view → http://localhost:7970
npm run mcp                                       # the MCP server, stdio

Zero runtime dependencies, and that is a hard rule. No dependencies in package.json, ever. Node 22+ gives you fetch, a test runner, and everything else this needs. If a feature seems to need a library, the feature is too big — ship the smaller version.

The four verbs

  • shape <src> — the skeleton: keys→types, array lengths, nesting.
  • read <src> --path P — the subtree at path P, token-budgeted.
  • find <src> "<query>" — the paths where a key/value lives (the input to read).
  • diff <a> <b> — the paths that changed between two blobs (added / removed / changed), by structure not by text; node- and hit-bounded, summary counts always complete.

<src> is a file, an http(s) URL, or - (stdin). Paths: data.items[0].name, users[*].id, logs[0:20] (a slice; [:20]/[100:] too, bounds clamp), logs[-1] (negative = from the end; [-20:] = last twenty), $. Formats: JSON/JSONL auto-detect; CSV/TSV from a .csv/.tsv source or --format csv → an array of row objects keyed by the header, with conservative coercion (a number only if it round-trips exactly).

The rules this repo is built on

1. It reads UNTRUSTED data, so every operation is BOUNDED. This is the whole identity of the tool. Input is byte-capped before JSON.parse (all-or-nothing; a 2 GB file is a frozen process). shape is depth- and key-bounded. read is token-budgeted. find is node-bounded. Any new feature that traverses or allocates must carry its own ceiling — grep the DoS lesson the kit already paid for (anvil's 40 GB diff).

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 83 lines · 1,427 tokens per session scan A 77522ed74bcd

Subscribe to this mod's changes

prism AGENTS.md is an instructions file published in the GitHub repository tools-for-agents/prism (0 stars, last pushed 1mo ago), licensed MIT. It adds 1,427 tokens to every session, about $0.0057 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

prism AGENTS.md compared with instructions from other repositories

prism AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prism AGENTS.mdtools-for-agents/prismInstructions file01mo agoMITA1,427Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot