prismor AGENTS.md

prismor AGENTS.md is an instructions file for Codex, OpenCode from PrismorSec/prismor. It costs 4,307 tokens per session, scanned C, original, Apache-2.0.

Repository guidance for coding agents working on Prismor, a security package that protects AI coding sessions and helps keep secrets out of model context, transcripts, and requests.

In plain words
What is it for?
Use it when modifying Prismor's security advisories, runtime utility, cloaking layer, or related agent instructions.
Why use it?
It gives agents a clear order of priorities and files to read before changing code, reducing the risk of weakening security or creating conflicting guidance.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/prismorsec/prismor/agents-md
Clone the repo
git clone --depth 1 https://github.com/PrismorSec/prismor

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 prismor AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/prismorsec/prismor/agents-md.svg)](https://agentmods.dev/instructions/prismorsec/prismor/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/prismorsec/prismor/agents-md"><img src="https://agentmods.dev/badge/instructions/prismorsec/prismor/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,307 This file is loaded in full into every session.
When invoked 4,307 The same file — it is already loaded in full.
Security scan C 3 findings. Scan, not verified.
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 $0.04307 $0.04307
Opus 5 $0.02153 $0.02153
Sonnet 5 $0.00861 $0.00861
Haiku 4.5 $0.00431 $0.00431

Measured 4d ago against content hash e6b732ffe12b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

prismor AGENTS.md scanned grade C with 3 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 4d 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.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- add examples that normalize `curl ... | bash`, destructive shell commands, or secret exfiltration

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

prismor check "rm -rf /" # pre-check a command

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- add examples that normalize `curl ... | bash`, destructive shell commands, or secret exfiltration
AGENTS.md · 325 lines

How it starts

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

AGENTS.md

This file is the canonical guidance for coding agents working in the Prismor repository.

Prismor is a security package for AI coding agents. It has three connected surfaces:

If you are an agent operating in this repository, your job is not only to write or modify code. Your job is to preserve the security posture of the agent session itself, the Prismor package, and any downstream project that consumes it.

Primary Objectives

When working in this repo, optimize for these goals in order:

  1. Keep the agent session safe.
  2. Keep the Prismor security content correct and current.
  3. Keep the feed, skills, and Prismor utility aligned with each other.
  4. Avoid introducing unsafe instructions, insecure examples, or contradictory guidance.

Start Here

Before doing substantial work, read these files in this order:

  1. SKILL.md — the agent-facing decision tree for using prismor safely
  2. README.md — product overview and capabilities

If the task involves runtime monitoring, local hook installation, or session telemetry, also read:

  1. prismor/runtime/ — start with cli.py and policy_engine.py

If the task involves secret handling, leak prevention, or the @@SECRET:name@@ placeholder convention, also read:

  1. prismor/runtime/cloaking/README.md

How To Work In This Repo

1. Treat security guidance as product logic

In this repo, markdown is not just documentation. The feed schema, the skills, and the instructions are part of the product.

That means:

  • avoid casual edits to security language
  • avoid contradictory examples across files
  • keep naming aligned across feed types, skills, and Prismor findings
  • prefer precise, enforceable instructions over vague security advice

Read the full file on GitHub · 325 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. 4d ago First seen · 325 lines · 4,307 tokens per session scan C e6b732ffe12b

Subscribe to this mod's changes

prismor AGENTS.md is an instructions file published in the GitHub repository PrismorSec/prismor (336 stars, last pushed 4d ago), licensed Apache-2.0. It adds 4,307 tokens to every session, about $0.0215 per session on Opus 5. A static security scan graded it C with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.