By sasy-labs
Skills for coding agents that set up SASY, protect agents with it, and write or explain its policies
npx claudepluginhub sasy-labs/sasySet up SASY, run its example demos, protect agents with it (LangChain, Google ADK, Langroid or your own loop), and explain why an action was blocked
Read and write SASY Datalog policies against the public schema and validator
7-day visitors to each marketplace page
SASY enforces policies on what AI agents do. You write rules as a Datalog policy; SASY compiles it and checks every tool call before it runs, against the history of messages and tool results that led to that call, even through summaries, tools and handoffs between agents.
Your agent records each message and tool result in a dependency graph, and asks
the SASY engine about each proposed tool call before it runs; the engine allows it
or returns the denial reason to the agent. For LangChain, Google ADK and Langroid,
sasy.instrument() does this automatically. Any other agent makes the same two
calls with SASY's primitives: sasy.record for each message and
sasy.check_tool_call before each tool runs:
We actively maintain SASY and provide support for policy formalization and integration. If you have a system or use case where you'd like to use SASY, please reach out.
For convenience, SASY includes skills for coding agents (Claude Code, Codex, Cursor and others) that help with setup, framework integration, policy writing and explaining denials. Install them with:
npx skills add sasy-labs/sasy
Then ask your agent to walk you through a SASY demo or integrate enforcement into your system. To enforce policies on the coding agent itself (Claude Code, Codex or pi), ask it to set up SASY Guard; the skills install the SASY Guard skill for that.
You need uv and a running Docker installation. No checkout of this repository is needed. In your project:
uv venv --python 3.11
source .venv/bin/activate
uv add sasy # in a project with a pyproject.toml
# uv pip install sasy # in a plain directory without one
sasy engine start
sasy engine start starts the policy engine, with a default configuration set up
at ~/.sasy, automatically read by the Python SDK.
See local engine for configuration options.
Without installing the SDK, you can also run uvx sasy engine start.
Write your rules in Datalog using the policy guide,
or describe your policy in natural language and use the
write-policy skill to translate
it into enforceable Datalog.
Then enable SASY before building your agent and run each task in a session.
For example, with your LangChain model and tools:
from pathlib import Path
import sasy
from langchain.agents import create_agent
sasy.instrument()
agent = create_agent(model, tools)
with sasy.session(policy=Path("policy.dl")):
result = agent.invoke({"messages": [{"role": "user", "content": "Your task"}]})
Google ADK and Langroid agents are also supported; see the ADK and Langroid integration guides.
To integrate SASY with your own orchestration, record messages and dependencies produced by your system, and check the authorization of actions before they execute.
import json
from pathlib import Path
import sasy
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.