Who it is forA team lead who wants evidence from real agent traffic before switching a gateway from shadow to enforcement.
The problemTurning on enforcement without data risks blocking legitimate work, and leaving it off leaves the target exposed.
The outcomeA shadow report by action showing what enforcement would have held or refused, and how many of those the upstream accepted as sent.
What you need first
- A terminal on macOS or Linux, with Homebrew, a Linux package, Docker or Helm available
- An HTTP API or tool endpoint you want the gateway to sit in front of, or the local demo target on localhost:3000
- Optional: a Decionis key from `agentsafe login`, if you want decisions from the Decionis control plane instead of the local demo authority
Steps
- Install AgentSafe with Homebrew:
brew tap decionis/agent-safe https://github.com/decionis/agent-safe-pipeline && brew trust decionis/agent-safe && brew install agentsafe - Start the gateway in shadow mode in front of your agent's API:
agentsafe proxy --upstream <your-api-url> --mode shadow(inferred, check the README) - Let the agent run its normal workload through the gateway for a representative period.
- Read the shadow report:
agentsafe status - Review the held and refused actions by type, then decide whether to switch to enforcement mode.
Prompt for your agent
Using the decionis/agent-safe-pipeline repository, install AgentSafe and run it in shadow mode in front of <your-api-url>. After the agent has run its normal tasks, run `agentsafe status` and summarize what enforcement would have held or refused, by action. Verify that the shadow report reflects requests the agent actually sent before recommending enforcement.
Caveat. Shadow results depend on the authority in use; with no Decionis key the report comes from a local demo policy, not your organization's real policy.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for decionis/agent-safe-pipeline and "Preview what enforcement would change on live agent traffic"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer