prismor: Instructions file for Claude Code

AGENTS.md

prismor AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from PrismorSec/prismor. It costs 4,567 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 Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PreToolUse hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

This is PrismorSec/prismor's own configuration. It tells Claude Code, Codex and OpenCode how to work on prismor 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 prismor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to PrismorSec/prismor. 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/PrismorSec/prismor/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/PrismorSec/prismor

Made for: Claude Code, 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/github.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/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 prismor AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/prismorsec/prismor/agents-md"><img src="https://agentmods.dev/badge/instructions/prismorsec/prismor/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,567 This file is loaded in full into every session.
When invoked 4,567 The same file — it is already loaded in full.
Security scan C 3 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.04567 $0.04567
Opus 5.5 $0.01827 $0.01827
Sonnet 5.5 $0.00913 $0.00913
Haiku 4.5 $0.00457 $0.00457

Measured 4d ago against content hash 3fbf81279953, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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.

- These rules guard *this* install, so a match inside an `ssh`/`docker`/`kubectl` payload is reported but not blocked (`_LOCAL_JURISDICTION_RULE_IDS` + `shell_context.is_remote_payload`). The exemption is about jurisdict

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 · 328 lines

How it starts

The opening of the file, as written. The whole thing — 328 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 · 328 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 Changed · +2 lines · +78 tokens per session 3fbf81279953
  2. 11d ago Changed · +68 tokens per session 3b36403b1552
  3. 1mo ago Changed · +1 lines · +114 tokens per session f5d03570db91
  4. 1mo 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 (448 stars, last pushed today), licensed Apache-2.0. It adds 4,567 tokens to every session, about $0.0183 per session on Opus 5.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.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,786 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens