Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

prempti

> 编程语言
Open source

Falco-powered policy and visibility layer for AI coding agents

188 stars0 likes0 views
WebsiteGitHub

About

Falco-powered policy and visibility layer for AI coding agents

Prempti

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.

Falco meets AI Coding Agents

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.

What It Is — and What It Isn't

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.

Features

  • Real-time tool-call interception — every shell command, file write/edit/read, web fetch, and MCP call is evaluated before it runs.
  • Allow / deny / ask verdicts — block, prompt for confirmation, or let it through; agents receive LLM-friendly feedback on denials and adapt.
  • Two operational modes — guardrails (verdicts enforced) and monitor (observe-only); switch any time with premptictl mode.
  • Customizable Falco rules — standard YAML rules; a curated default ruleset ships with the project covering common attack surfaces (credentials, sandbox-disable attempts, exfiltration, persistence, MCP/skill poisoning, and more).
  • Full audit trail — every tool call recorded with structured fields, correlatable across rule alerts.
  • Cross-platform — Linux, macOS, and Windows on x86_64 and aarch64.
  • CLI included — premptictl for status, health checks, mode switching, log streaming, and hook management.
  • Rule-authoring skill for Claude Code — an interactive skill to draft and validate custom rules with the help of your agent.

How It Works

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).

Modes

  • Guardrails mode (default) — verdicts are enforced: deny blocks, ask prompts you, allow proceeds.
  • Monitor mode — all tool calls proceed; verdicts are still evaluated and logged but never act on the agent. Useful for pure observation, auditing, and rule tuning.

Switch between modes at any time with premptictl mode .

When It Makes Sense

  • When you want to see what your coding agent is actually doing during a session, without reading every tool call by hand.
  • When you want to set clear boundaries — don't touch .env files, don't push to remote, don't write outside the project directory, etc.
  • When you're experimenting with a coding agent and want a safety net against accidental mistakes.
  • When a team wants to standardize how agents behave across members, using shareable YAML rules.
  • Best used alongside sandboxing, system hardening, or least-privilege environments.

Quick Start

[!IMPORTANT] Migrating from coding-agents-kit? Prempti does not migrate or remove existing coding-agents-kit installations. Uninstall coding-agents-kit first to avoid duplicate services or stale Claude Code hooks.

macOS

Download the universal .pkg installer from the latest release and open it:

bash
open prempti--darwin-universal.pkg

The 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):

bash
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 in share/ can both be flagged):

bash
xattr -dr com.apple.quarantine ~/.prempti

Linux

Download the package for your architecture from the latest release:

bash
tar xzf prempti--linux-x86_64.tar.gz
cd prempti--linux-x86_64
bash install.sh

The installer copies all components to ~/.prempti/, starts a systemd user service, and registers the hook automatically.

Windows

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.msi on Intel/AMD64, prempti--windows-arm64.msi on Windows ARM64. The x64 MSI can install under emulation on ARM64 hosts but prefer the native ARM64 MSI for best performance. See installers/windows/ for build prerequisites and details.

Verify

Linux / macOS

bash
~/.prempti/bin/premptictl status
~/.prempti/bin/premptictl hook status
~/.prempti/bin/premptictl health

Tip: Add export PATH="$HOME/.prempti/bin:$PATH" to your shell profile to use premptictl without the full path.

Windows

The installer starts the service automatically. Open a new terminal (so the updated PATH is picked up) and verify:

powershell
premptictl status
premptictl hook status
premptictl health

Expected 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.

Managing

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:

…

Uninstall

Linux / macOS

bash
~/.prempti/bin/premptictl uninstall

# Keep your custom rules in rules/user/ for a future reinstall:
~/.prempti/bin/premptictl uninstall --keep-user-rules

Windows

Any of these paths works — they all run the same cleanup custom action:

  • Apps & Features (recommended),
  • 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.

Default Rules

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.

Custom Rules

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:

bash
premptictl stop
premptictl start

Example — block piping content to shell interpreters:

yaml
- 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.

Rule Authoring Skill for Claude Code

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/prempti

Then install the skill directly:

/plugin install prempti-falco-rules@prempti-skills

Or browse and install interactively:

  1. Select Browse and install plugins
  2. Select prempti-skills
  3. Select prempti-falco-rules
  4. Select Install now

Once installed, ask Claude Code things like:

  • "Block the agent from running git push"
  • "Deny any read outside the working directory"
  • "Create a rule that requires confirmation before editing Dockerfiles"

The skill guides Claude through writing the rule, placing it in the right directory, and validating it with Falco.

Supported Agents & Platforms

Agent Platform Status
Claude Code Linux (x86_64, aarch64)

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rust

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言