Falco-powered policy and visibility layer for AI coding agents
Falco-powered policy and visibility layer for AI coding agents
Experimental Preview — This project is under active development and released as an early preview. Interfaces and behavior may change between releases. We welcome your feedback to help shape its future.
Prempti brings Falco to the world of AI coding agents. It gives you guardrails that can deny or ask for confirmation on unwanted behaviors, plus real-time visibility into every tool call your coding agent makes — shell commands, file writes, reads, API calls. Both are driven by Falco rules you can customize to fit your workflow.
By default, Prempti runs in guardrails mode: rules produce verdicts that shape what the agent does. When a tool call is blocked or flagged, the agent receives an LLM-friendly explanation of why and adapts — the policy guides behavior through feedback. If you prefer pure observation without intervention, switch to monitor mode: every tool call proceeds while rules still evaluate and log the activity.
Who is this for? Anyone using a coding agent daily — developers, product managers, designers, vibe coders, and anyone else who wants to see what their agent is doing on their machine and set sensible boundaries for it.
It is a cooperative policy and visibility layer at the tool-call level. It gives you an audit trail of agent activity, and guardrails the agent respects because it sees and understands them.
It is not a sandbox, OS-level security, or a substitute for least-privilege environments or system hardening. It does not contain a determined adversarial agent. Use it alongside containment techniques — it complements them, it does not replace them.
premptictl mode.premptictl for status, health checks, mode switching, log streaming, and hook management.When your coding agent tries to use a tool, Prempti intercepts the call before it executes, evaluates it against your rules, and produces a verdict:
| Verdict | What Happens |
|---|---|
| Allow | The tool call proceeds normally |
| Deny | The tool call is blocked — the agent is told why |
| Ask | You are prompted to approve or reject the call |
Rules are standard Falco rules written in YAML. A sensible default ruleset ships with Prempti, and you can add your own to customize behavior for your workflow (see Custom Rules).
deny blocks, ask prompts you, allow proceeds.Switch between modes at any time with premptictl mode .
.env files, don't push to remote, don't write outside the project directory, etc.[!IMPORTANT] Migrating from
coding-agents-kit? Prempti does not migrate or remove existingcoding-agents-kitinstallations. Uninstallcoding-agents-kitfirst to avoid duplicate services or stale Claude Code hooks.
Download the universal .pkg installer from the latest release and open it:
open prempti--darwin-universal.pkgThe macOS Installer wizard guides you through the setup. The service starts immediately and on every subsequent login.
To install non-interactively (CI, scripted setup, SSH session):
installer -pkg prempti--darwin-universal.pkg \
-target CurrentUserHomeDirectory[!NOTE] Since the binaries are not code-signed, macOS Gatekeeper may block them on first run. Go to System Settings > Privacy & Security and allow the blocked binary, or clear the quarantine attribute from the whole install tree (executables in
bin/and the plugin library inshare/can both be flagged):xattr -dr com.apple.quarantine ~/.prempti
Download the package for your architecture from the latest release:
tar xzf prempti--linux-x86_64.tar.gz
cd prempti--linux-x86_64
bash install.shThe installer copies all components to ~/.prempti/, starts a systemd user service, and registers the hook automatically.
From the latest release, download the .msi for your CPU architecture and double-click it (or run msiexec /i prempti--windows-.msi).
The MSI deploys all components to %LOCALAPPDATA%\prempti\, adds bin\ to your user PATH, registers the Claude Code hook, registers an auto-start entry for subsequent logins, and starts the service immediately so Claude Code is protected without any extra step.
[!NOTE] Pick the MSI that matches your CPU:
prempti--windows-x64.msion Intel/AMD64,prempti--windows-arm64.msion Windows ARM64. The x64 MSI can install under emulation on ARM64 hosts but prefer the native ARM64 MSI for best performance. Seeinstallers/windows/for build prerequisites and details.
Linux / macOS
~/.prempti/bin/premptictl status
~/.prempti/bin/premptictl hook status
~/.prempti/bin/premptictl healthTip: Add
export PATH="$HOME/.prempti/bin:$PATH"to your shell profile to usepremptictlwithout the full path.
Windows
The installer starts the service automatically. Open a new terminal (so the updated PATH is picked up) and verify:
premptictl status
premptictl hook status
premptictl healthExpected health output: OK: pipeline healthy (synthetic event → allow).
If the service is not running (rare — e.g. the post-install timed out), start it manually with premptictl start. Auto-start on every login is already registered.
The installer adds bin/ to your shell PATH on Windows automatically; on Linux/macOS add it to your shell profile (see Verify). Once premptictl is on your PATH, the commands below are the same on every platform:
…Linux / macOS
~/.prempti/bin/premptictl uninstall
# Keep your custom rules in rules/user/ for a future reinstall:
~/.prempti/bin/premptictl uninstall --keep-user-rulesWindows
Any of these paths works — they all run the same cleanup custom action:
msiexec /x prempti--windows-.msi (if you still have the MSI file),msiexec /x (the GUID is in HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\ under the Prempti entry).The MSI removes the Claude Code hook, the auto-start entry, and the bin\ PATH entry before removing files, so Claude Code is not left in a fail-closed state.
The project ships with a default ruleset organized into six sections covering common attack surfaces for AI coding agents:
| Section | Coverage |
|---|---|
| Working-directory boundary | Monitor and ask on file access outside the session's project directory |
| Sensitive paths | Deny reads and writes to /etc/, ~/.ssh/, ~/.aws/, cloud credentials, .env files, etc. |
| Sandbox disable | Detect attempts to disable the agent's own sandbox configuration (Claude Code, Codex, Gemini CLI) |
| Threats | Credential access, destructive commands, pipe-to-shell, encoded payloads, exfiltration, IMDS access, reverse shells, supply-chain installs from known-malicious hosts |
| MCP and skill content | MCP server config poisoning (.mcp.json) and slash-command file injection (.claude/commands/) |
| Persistence vectors | Hook injection, git hooks, package-registry redirects, AI API base-URL overrides, API keys leaking into env files |
See rules/default/coding_agents_rules.yaml for the full ruleset. The schema, available fields, and authoring conventions are documented in rules/README.md.
The default ruleset is deliberately generic — it catches obviously risky actions that apply to most workflows. To get the most out of Prempti, you'll typically want to write your own rules tailored to your specific work: the projects you edit, the remotes you push to, the files you treat as sensitive, the commands you never want your agent to run.
Add your own rules to ~/.prempti/rules/user/. They are preserved across upgrades. You can write them by hand, or use the rule-authoring skill to have Claude Code draft and validate them for you interactively.
New or edited rules take effect on the next service start — restart the service with:
premptictl stop
premptictl startExample — block piping content to shell interpreters:
- rule: Deny pipe to shell
desc: Block piping content to shell interpreters
condition: >
tool.name = "Bash"
and (tool.input_command contains "| sh"
or tool.input_command contains "| bash"
or tool.input_command contains "| zsh")
output: >
Falco blocked piping to a shell interpreter (%tool.input_command)
priority: CRITICAL
source: coding_agent
tags: [coding_agent_deny]Rules are written in the standard Falco rule language (YAML). See rules/README.md for all available fields and examples.
A Claude Code skill is included to help you write custom rules interactively.
Register this repository as a Claude Code Plugin marketplace:
/plugin marketplace add falcosecurity/premptiThen install the skill directly:
/plugin install prempti-falco-rules@prempti-skillsOr browse and install interactively:
Browse and install pluginsprempti-skillsprempti-falco-rulesInstall nowOnce installed, ask Claude Code things like:
The skill guides Claude through writing the rule, placing it in the right directory, and validating it with Falco.
| Agent | Platform | Status |
|---|---|---|
| Claude Code | Linux (x86_64, aarch64) |
No open issues yet, or sync has not completed.