prempti: Instructions file for Claude Code

CLAUDE.md

prempti CLAUDE.md is an instructions file for Claude Code from falcosecurity/prempti. It costs 9,444 tokens per session, scanned B, original, Apache-2.0.

A Claude Code instruction file describing Prempti, a user-space policy layer that checks AI coding-agent tool calls against Falco security rules.

In plain words
What is it for?
It guides work on tool-call interception, allow/deny/ask decisions, feedback to agents, and Claude Code integration across Linux, macOS, and Windows.
Why use it?
It gives the agent project architecture and security limits before code changes, including that it is not an operating-system sandbox.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is falcosecurity/prempti's own configuration. It tells Claude Code how to work on prempti 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 prempti configures →

Reuse

Borrowing it

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

Made for: Claude Code.

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 prempti CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/falcosecurity/prempti/claude-md/github.svg)](https://agentmods.dev/instructions/falcosecurity/prempti/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/falcosecurity/prempti/claude-md"><img src="https://agentmods.dev/badge/instructions/falcosecurity/prempti/claude-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 prempti CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/falcosecurity/prempti/claude-md"><img src="https://agentmods.dev/badge/instructions/falcosecurity/prempti/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,444 This file is loaded in full into every session.
When invoked 9,444 The same file — it is already loaded in full.
Security scan B 2 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.09444 $0.09444
Opus 5.5 $0.03778 $0.03778
Sonnet 5.5 $0.01889 $0.01889
Haiku 4.5 $0.00944 $0.00944

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

Security

Grade B, and why

prempti CLAUDE.md scanned grade B with 2 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **No Windows Service**: the installer intentionally does not create a Windows Service. A per-user install cannot register a service without admin, and interception must run under the user's session anyway (it modifies

Makes network callslowCapability

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

Falco does not ship pre-built macOS binaries. `installers/macos/build-falco.sh` clones Falco 0.44.0 and builds with `MINIMAL_BUILD=ON` + `-DBUILD_HTTP_OUTPUT=ON` (no gRPC, no webserver, just curl-based http_output). Sinc
CLAUDE.md · 421 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

Prempti is a policy and visibility layer for AI coding agents. It intercepts tool calls (shell commands, file writes, web requests, etc.) before execution, evaluates them against Falco rules, and produces allow/deny/ask verdicts in real time. It operates entirely in user space with no elevated privileges.

It is not a sandbox or OS-level security boundary: at the hook level it only sees what the agent declares, not the runtime side effects of the resulting commands. It is a cooperative policy layer — the agent receives LLM-friendly feedback on blocked or flagged actions and adapts — meant to complement containment techniques, not replace them.

The project targets Claude Code as its primary integration on Linux, macOS, and Windows, with experimental Codex CLI support (interceptor + plugin path; installer wiring deferred). The wire envelope, broker, and plugin field schema are agent-agnostic by design — adding another agent is a new interceptor crate plus any agent-specific field decoding, not a rewrite.

Architecture

┌──────────────┐     ┌──────────────┐     ┌────────────────────────────┐
│ Coding Agent │───▶│ Interceptor  │───▶│     Falco (nodriver)       │
│              │     │   (hook)     │     │  ┌───────────────────────┐ │
│              │◀───│              │◀───│  │  Plugin (src + extract│ │
│              │     │              │     │  │  + embedded broker)   │ │
└──────────────┘     └──────────────┘     │  └───────────────────────┘ │
                                          │  Rule Engine + Rules       │
                                          └────────────────────────────┘

Pipeline flow

  1. Interception — The coding agent's hook API fires before each tool call. The interceptor captures structured event data and pauses tool execution while awaiting a verdict.
  2. Event delivery — The interceptor sends the event to the plugin's embedded broker via Unix domain socket.
  3. Rule evaluation — The plugin feeds the event to Falco's rule engine via the source plugin API (next_batch). Falco evaluates all loaded rules.
  4. Alert feedback — Matching rules generate alerts. Falco delivers them back to the plugin's embedded broker via http_output (localhost).
  5. Verdict resolution — The broker determines the verdict from rule tags (deny, ask, or the no-match floor allow/defer per default_action) and responds to the interceptor.
  6. Verdict delivery — The interceptor communicates the verdict to the coding agent using the standard hook response format.

Read the full file on GitHub · 421 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 · 421 lines · 9,444 tokens per session scan B 2d617fb89a97

Subscribe to this mod's changes

prempti CLAUDE.md is an instructions file published in the GitHub repository falcosecurity/prempti (232 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 9,444 tokens to every session, about $0.0378 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

prempti CLAUDE.md compared with instructions from other repositories

prempti CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prempti CLAUDE.mdfalcosecurity/premptiInstructions file2321mo agoApache-2.0B9,444Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot