/sasy:sasy-custom-agentfrom sasy
Adds SASY policy enforcement to hand-written agent loops, custom orchestration, or direct LLM API calls using sasy.record, sasy.check_tool_call, and sasy.session.
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 decides; the application enforces. Add calls at exactly two points of the
user's agent loop, inside one session per task. Make sure a SASY engine is
running first (the sasy-setup skill).
The primitives
with sasy.session(policy=Path("policy.dl")): binds the policy and scopes
everything below. Pass a Path; a plain string is treated as policy source.sasy.record(text, role=..., inputs=[...], tool_calls=[...], result_of=...)
records one message and returns its ID. role is "system", "user",
"llm" or "agent" (the default; also used for tool results). inputs are
IDs of the messages it was computed from; they become the dependency edges
policies trace. tool_calls lists (name, arguments) a message requests;
result_of=(name, arguments) marks a tool result. sasy.record_async is the
async form.sasy.check_tool_call(name, json.dumps(args), input_node_ids=[request_id])
asks the engine whether the call may run, given the ancestry of the message
that requested it. A denial is a result, not an exception.Where to call them
inputs set to everything sent to the model, and
tool_calls), and each tool result (with inputs=[request] and
result_of). Missing edges hide ancestry from policies.decision.authorized is true and
decision.transform_ids is empty; a decision with transforms allows the call
only with those credential transforms applied. Otherwise do not run it, and
return decision.denial_reasons to the model as the tool's result.with sasy.session(policy=Path("policy.dl")):
task = sasy.record(user_text, role="user")
request = sasy.record(reply_text, role="llm", inputs=[task],
tool_calls=[(name, args)])
decision = sasy.check_tool_call(name, json.dumps(args), input_node_ids=[request])
if decision.authorized and not decision.transform_ids:
result = run_tool(name, args)
sasy.record(str(result), inputs=[request], result_of=(name, args))
else:
result = "Blocked: " + "; ".join(decision.denial_reasons)
Then write the policy with the write-policy skill and run the agent against
both an allowed and a denied case. Details:
https://docs.sasy.ai/quickstart/ and https://docs.sasy.ai/instrumentation/.
What SKILL.md sets; muted values are Claude Code's defaults
8 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-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.npx claudepluginhub sasy-labs/sasy --plugin sasyOther plugins' skills for the same job