prismor
CLAUDE.md401 starsChanged 58 days agoApache-2.0View on GitHub
This project is the Prismor security package for AI coding agents. This repo has Prismor hooks enabled. The hook dispatcher at prismor/runtime/cli.py monitors tool calls and blocks dangerous actions in real time. Agent sessions in this repo are screened by the working tree, not the installed release (dogfooding, #495). The committed .claude/settings.json, .codex/hooks.json, .cursor/hooks.json and .github/hooks/prismor.json route every hook through scripts/dev-hook.py in observe mode (scripts/dev-hook.cmd on Windows). The prismor/runtime/cloaking/ subsystem is Prismor's prevention layer for secret leaks. Real secret values…
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
After changing an installer's events or matchers, regenerate with python tests/test_dogfood_configs.py --write.
- Distinctive: line 14
If the working tree stops importing, shell and web tool calls are blocked with a message saying why.
- Very specific: line 26
Run python3 scripts/upgrade_feed.py after pipeline changes to retroactively improve existing advisories.
- Very specific: line 27
Run bash scripts/verify_feed.sh to verify feed signature integrity.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prismor Security — CLAUDE.md
This project is the Prismor security package for AI coding agents.
Prismor Runtime Protection
This repo has Prismor hooks enabled. The hook dispatcher at prismor/runtime/cli.py monitors tool calls and blocks dangerous actions in real time.
Agent sessions in this repo are screened by the working tree, not the installed release (dogfooding, #495). The committed .claude/settings.json, .codex/hooks.json, .cursor/hooks.json and .github/hooks/prismor.json route every hook through scripts/dev-hook.py in observe mode (scripts/dev-hook.cmd on Windows).
- Never run
prismor install-hooks --scope project(orprismor setupat project scope) inside this repo. It rewrites those files with the installed-binary form and silently stops the dogfooding.tests/test_dogfood_configs.pyfails if that happens. - After changing an installer's events or matchers, regenerate with
python tests/test_dogfood_configs.py --write. - Needs a python that can
import yaml(python3/python, orpyon Windows); point elsewhere withPRISMOR_DEV_PYTHON=/path/to/python.PRISMOR_DOGFOOD=0turns the dogfood hooks off. - If the working tree stops importing, shell and web tool calls are blocked with a message saying why; prompts, reads and edits still go through, so the agent can fix it.
- Windows: Claude Code needs Git Bash (its default hook shell); Codex and Copilot use the
.cmdlauncher. Codex resolves agit worktreeto the main checkout, so in a worktree its dogfood hooks are not loaded.
Cloaking (secret prevention)
The prismor/runtime/cloaking/ subsystem is Prismor's prevention layer for secret leaks. Real secret values live under ~/.prismor/secrets/ and are referenced in tool calls as @@SECRET:<name>@@. When editing this subsystem, treat it as security-sensitive code and never print, log, or narrate real secret values — use the placeholder form in all examples and prose. See prismor/runtime/cloaking/README.md for the full design and AGENTS.md for editing guidelines.
Working in This Repo
- The
advisories/directory contains the signed threat feed — do not manually edit it. Use the pipeline scripts. - The
prismor/runtime/directory is the runtime policy engine. Changes topolicies.pyaffect what gets blocked in enforce mode. - The
pipeline/directory contains the NVD fetch/merge/sign automation. The schema atpipeline/schemas/threat-object.schema.jsonis the source of truth for feed structure. - Run
python3 scripts/upgrade_feed.pyafter pipeline changes to retroactively improve existing advisories. - Run
bash scripts/verify_feed.shto verify feed signature integrity. - Public key for signature verification is at
keys/public.pub.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

