/sasy:sasy-langchainfrom sasy
Instruments LangChain/LangGraph agents so every tool call is checked against a SASY policy before execution. Use with SASY enforcement on agent tool calls.
Ships in sasy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
sasy[langchain],
which pins the supported LangChain/LangGraph versions) and an engine is
running; use sasy-setup if not.sasy.instrument() once at startup, after any sasy.configure(...) and
before the agent is built. It makes LangChain's create_agent build a
SASY-checked agent.create_agent(model, tools) from langchain.agents.with sasy.session(policy=Path("policy.dl")):.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": task}]})
A denied call does not run; the model receives an error tool message.
Check these in the user's code before calling it done:
create_agent builds. Inside a SASY session,
a ToolNode SASY did not build is refused, and a tool that graph code calls
directly (not through a ToolNode) is not checked at all. A custom
LangGraph StateGraph needs the sasy-custom-agent approach instead.sasy.instrument(http=True);
then the policy must allow the model provider's host.Then write the policy (write-policy) and test one allowed and one denied
call. Details: https://docs.sasy.ai/integrations/langchain/
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sasy, langchain, langgraph, agent-security, policy-enforcement
npx claudepluginhub sasy-labs/sasy --plugin sasy8 skills in this plugin
/sasy-adkProtect a Google ADK agent application with SASY so function tools, agent transfers and child agents are checked against a policy. Use when the user's agents are built with Google ADK and they want SASY enforcement./sasy-custom-agentAdd SASY policy enforcement to agent code that does not use a supported framework, using sasy.record, sasy.check_tool_call and sasy.session. Use for hand-written agent loops, custom orchestration or direct LLM API calls./sasy-examplesRun and explain the SASY example demos (message-flow, LangChain, Google ADK, Langroid) - which example shows what, how to run one, its options, and how to read its output. Use when the user wants to see SASY working, asks for a demo or a walkthrough, or asks how to run an example or what its output means./sasy-helpExplain what SASY is and list the SASY skills and what each one does. Use when the user asks what SASY is, what the SASY skills can do, which SASY skills are available, or how to get started with SASY./sasy-langroidProtect a Langroid multi-agent program with SASY so tool calls are checked against a policy before they run. Use when the user's agents are built with Langroid and they want SASY enforcement./sasy-setupInstall the SASY Python SDK, start a local SASY engine and confirm it enforces a policy. Use when the user asks to install, set up or start SASY, or when another SASY skill needs a running engine. Also use when the user asks to install SASY Guard or to enforce policies on their coding agent (Claude Code, Codex or pi); this skill points to the SASY Guard skill for that.Other plugins' skills for the same job