agentleFS
PrismorSecPrismorSec/prismor/CLAUDE.md

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…

  • In this repository2 other files it gives its agents.

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
  1. Very specific:

    After changing an installer's events or matchers, regenerate with python tests/test_dogfood_configs.py --write.

    line 12
  2. Distinctive:

    If the working tree stops importing, shell and web tool calls are blocked with a message saying why.

    line 14
  3. Very specific:

    Run python3 scripts/upgrade_feed.py after pipeline changes to retroactively improve existing advisories.

    line 26
  4. Very specific:

    Run bash scripts/verify_feed.sh to verify feed signature integrity.

    line 27

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 (or prismor setup at project scope) inside this repo. It rewrites those files with the installed-binary form and silently stops the dogfooding. tests/test_dogfood_configs.py fails 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, or py on Windows); point elsewhere with PRISMOR_DEV_PYTHON=/path/to/python. PRISMOR_DOGFOOD=0 turns 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 .cmd launcher. Codex resolves a git worktree to 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 to policies.py affect what gets blocked in enforce mode.
  • The pipeline/ directory contains the NVD fetch/merge/sign automation. The schema at pipeline/schemas/threat-object.schema.json is the source of truth for feed structure.
  • Run python3 scripts/upgrade_feed.py after pipeline changes to retroactively improve existing advisories.
  • Run bash scripts/verify_feed.sh to verify feed signature integrity.
  • Public key for signature verification is at keys/public.pub.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.