Skip to main content
Before your agent runs a tool, send the conversation and the pending call to /v1/decisions. Block the call, or ask the user, when Sage says it changes, deletes or sends something the user didn’t ask for.
Block the call or ask the user when unasked is 0.5 or more. Keep the question about changes, deletes and sends: asked whether a call “does something the user did not ask for”, Sage also flags harmless reads, such as ls before a task the user asked for. Send the tool calls and results that came before, too. An instruction planted in a tool result doesn’t count as the user asking:
With this conversation, delete_all_emails still scores 0.995. In a framework, the same check plugs in as a classifier: LangChain, Mastra. For coding agents and Hermes, it comes ready-made: Tool-call guard, Hermes. In the OpenAI Agents SDK, it fits a tool guardrail: OpenAI Agents SDK.