AI agent guardrails
Generative AI Agent Guardrails
SigmaShake (ssg) checks every AI agent tool call against your rules before it runs — so risky actions can be blocked or rewritten in milliseconds, without a sandbox.
See it in action
Works with the agents your team already uses
Put the brakes on before you hit the gas.
AI agents run shell commands, edit files, and call external APIs. That means they can cause real damage before you realise what happened. SSG is the seatbelt you put on first.
AI Agent Guardrails: Live, Audited, Under 2ms
See SigmaShake in actionDeterministic guardrails intercept data loss, secret leaks, and privilege escalation from any AI coding agent. Watch a live block, then dig into the rule, the audit log, and the benchmarks.
One line, every platform.
curl -fsSL install.sigmashake.com | sh30 seconds. Zero config. One install command, self-contained binary. Prefer the install chooser (shows the ToS warning). The one-liner without -y prompts for consent; add -y only after you accept the Terms of Service.
Covers every agent your team uses.
Policy applies uniformly across Claude Code, Cursor, Codex, Gemini CLI, Copilot, and more.
Every decision is deterministic.
$rm -rf /DENY$sudo apt-get updateASK$curl https://api.example.com/dataFORCE
DENY blocks. ASK prompts. FORCE refuses the original risky action and returns a safe substitute or required safer path, all in under 2ms.
Pick a scenario. The terminal replays an AI agent trying it; SSG intercepts before the command runs.
For engineerssee the rule DSL, live dashboard, benchmarks & onboarding
rule prefer-graphify-over-recursive-search {
enabled true
priority 80
severity high
FORCE execution
IF command CONTAINS "grep -r"
SUBSTITUTE "graphify query \"<what you were searching for>\""
MESSAGE "Recursive shell search is FORCED to the graphify knowledge graph for code/architecture/relationship queries (faster, scoped). Escape hatch for literal/regex/log/config/secret searches: use ripgrep (rg) or a non-recursive search."
}Determines conflict precedence and the active audit log volume.
The raw execution action dynamically enforced upon matching.
The AST condition intercepting the raw agent process payload.
Scaling: Latency vs Rule Count
1,000 iterations + 50 warmup per tier · Unix socket RTT included · daemon p50 sub-ms at every tier · p99 stays under 2 ms (variance ±0.5 ms)
| Rules | CLI p50 | CLI p95 | CLI RSS | Daemon p50 | Daemon p95 |
|---|---|---|---|---|---|
| 10 | 95.4 ms | 120.5 ms | 42 MB | 0.23 ms | 0.35 ms |
| 50 | 94.8 ms | 104.2 ms | 47 MB | 0.17 ms | 0.34 ms |
| 100 | 97.9 ms | 113.0 ms | 42 MB | 0.23 ms | 0.35 ms |
| 200 | 96.9 ms | 126.2 ms | 44 MB | 0.13 ms | 0.26 ms |
| 500 | 100.3 ms | 122.0 ms | 43 MB | 0.17 ms | 0.32 ms |
| 100,000 | 276.4 ms | 340.9 ms | 95 MB | 0.16 ms | 0.29 ms |
CLI latency is dominated by Bun process startup (~73 ms), while rule count barely moves the needle up to 500 rules. At 100K rules, rule-file I/O pushes CLI to ~276 ms. Daemon p50 stays flat in the 0.1–0.4 ms band; sub-ms measurement noise dominates, so the ordering of tiers is not meaningful. Engine p99 stays < 20 µs at every tier up to 100,000 rules; end-to-end daemon p99 (including Unix socket RTT) stays under 2 ms.
curl -fsSL install.sigmashake.com | shJoin engineering teams reducing AI-agent incident risk deterministically across every agent in their stack.
Free to download · $5/month to use · see /install for the chooser and ToS warning. GHCR pulls accept the Terms of Service.
Scored 100 on our published SHAKEDOWN corpus
Choosing what guards your agents is a critical decision, so we made it measurable. The question that matters: does policy fire at the tool-call boundary without breaking real work? Honest-agent / integration-dependent. Not a sandbox. SigmaShake scored 100 on our published SHAKEDOWN corpus. Every bar is labeled measured or modeled. Don't trust the chart. Reproduce it.
How SigmaShake Compares
SigmaShake vs prompt engineering vs sandboxed execution
The real difference isn’t a benchmark number; it’s where the check runs. SigmaShake is local-first and gates the tool call before it executes, on your machine. LLM output filters (Lakera, Guardrails AI, NVIDIA NeMo Guardrails) inspect the model’s response after the agent has already decided to act. Microsoft also ships a free, MIT-licensed Agent Governance Toolkit for policy enforcement worth evaluating alongside SSG. The two table columns below show the older infrastructure-level approaches (DIY prompts and sandboxed containers); those output-filter and toolkit options are distinct, complementary layers, not shown as scored columns.
.rules registry where every new rule strengthens the ecosystem. Competitors start from zero community.| Criterion | SigmaShakeNative rule engine | DIY configPrompt engineering | Sandboxed containersDocker / K8s isolation |
|---|---|---|---|
| Architecture | ✓StandaloneNative binary (installer or GHCR) · $5/mo Pro | ~Text & StaticPrompt eng. + string match | ✕HeavyDocker + K3s cluster |
| Performance | ✓< 2msInstant evaluation | ✕SlowToken generation latency | ✕100+ msContainer startup overhead |
| Scale Limit | ✓100,000+Rules evaluated in < 2ms | ✕~dozensContext window limit | ✕CPU-boundNetwork / compute bottleneck |
| Reliability | ✓100%Deterministic hooks | ✕Best effortAI forgets, easy to bypass | ~StrongHard to tune in production |
| Operating Cost | ✓$5/moLocal eval · Pro unlocks Hub sync | ✕HighPer-request token spend | ✕HighAlways-on compute |
| Device Protection | ✓ActiveGatekeeps every tool call | ✕NoneProne to prompt injection | ~IsolatedOnly inside the container |
| Rule Ecosystem | ✓Public Hubhub.sigmashake.com | ✕NoneCopy-paste, no sharing | ✕NoneManual YAML policies |
curl -fsSL install.sigmashake.com | sh (no -y; review ToS)Measured, not marketed · MITRE ATT&CK-mappedSHAKEDOWN: the published policy-eval corpus
378 malicious + 152 benign task shapes (corpus v1.3.0) · tap to expand
Don't trust the chart. Reproduce it. SHAKEDOWN replays a published corpus of destructive, persistence, credential-access, defense-evasion, and supply-chain tool calls through SSG on supported integrations, scoring blocks against legitimate work left alone. SigmaShake scored 100 on that corpus. Honest-agent / integration-dependent. Not a sandbox. Fully local, no GPU, no token cost.
bun run src/cli.ts run --overlay-only --hardened --all-harnessesCommunity Rules, Ready to Install
Pre-built rulesets for TypeScript, Python, Rust, Security, Docker, and more.
Signed, version-controlled, and installable with one command.
ssg hub pull rules-agentic-aiGenerative AI Guardrails, enforced at the tool-call boundary
SigmaShake maps to MITRE ATLAS mitigation AML.M0020 and implements its rule-based-validator form: typed IF/THEN rules and regex evaluate every proposed tool call before execution and return ALLOW, DENY, ASK, or FORCE, with every decision audited.
Mapped ATLAS techniques (tap to expand)
- AML.T0051 · LLM Prompt Injection
A hijacked agent still cannot execute a tool call a rule denies.
- AML.T0053 · AI Agent Tool Invocation
Every tool call is evaluated before it runs, not after.
- AML.T0054 · LLM Jailbreak
Policy lives outside the model, so a jailbroken model still hits the same DENY.
- AML.T0056 · Extract LLM System Prompt
Secret and prompt-file reads can be denied by rule.
- AML.T0057 · LLM Data Leakage
Outbound tool calls carrying secrets can be blocked by rule.
- AML.T0010 · AI Supply Chain Compromise
Installing or executing unvetted packages can be ASK- or DENY-gated.
- AML.T0061 · LLM Prompt Self-Replication
Write and exec patterns that self-propagate can be denied.
- AML.T0062 · Discover LLM Hallucinations
SSG constrains what a wrong answer can do; it does not fact-check content.
Simple, Predictable Pricing
One flat plan, billed monthly. Cancel anytime.
Free to download · $5/month to use · billed monthly
Pro
For teams that must prove what their AI agents are allowed to do.
- Private rulesets: install from your own private GitHub repos or publish privately to the Hub for your team
- Cloud audit sync: signed (tamper-evident), exportable for security review; 7-day cloud retention (Pro) / 90-day (Enterprise). Full history always in your local audit log.
- Unlimited Tool evaluations
- Priority email support
Enterprise
When procurement asks.
- Everything in Pro
- Extended audit retention
- Team policy sharing & SSO / SAML
- Priority support with response-time SLA (hours defined in your SOW)
- Supports On-Prem Deployments
- Source code access for the licensed version of
ssg& SigmaShake Desktop is available to customers who purchase or sign a binding purchase commitment. Scoped to that version only; updates are not included. - Custom adapter development
Honest Answers to Hard Questions
Direct answers to questions skeptical engineers actually ask.
Isn't this just a PreToolUse hook or MCP server with regex?
Yes, the enforcement mechanism integrates natively via agent hooks or MCP servers (supporting Claude Code, Codex, Antigravity, Gemini, and more), and that's intentional. What SigmaShake adds on top of a hand-rolled hook script: a community rule library you don't have to write from scratch, an Ed25519-signed bundle so you can trust rules from the Hub, a per-row signed audit log (every governance event individually signed for tamper-evidence), fleet-wide policy sync across many machines, and a dashboard UI for approvals and profiling. If you only need one rule on one machine, a raw script is fine. SigmaShake is for teams that want the whole system.
Can't an agent just bypass the rules with encoding or whitespace tricks?
A motivated attacker with shell access: yes. An honest agent making a mistake, a misconfigured automation, or a junior dev who accidentally wrote a destructive command: no. SigmaShake is a guardrail for the 95% case, preventing accidental harm from agents that are trying to do the right thing but might not know all your constraints. It is not a sandbox and does not claim to be. For adversarial isolation, compose it with OS-level sandboxing (Docker, seccomp, Apple Sandbox); they address different parts of the threat surface.
How is this different from Lakera, Guardrails AI, or NeMo Guardrails?
Those products filter LLM output. They run after the model responds, checking whether generated text is safe. SigmaShake gates agent tool calls. It runs before the action executes, checking whether the thing the agent is about to do is allowed. The threat models are complementary, not competing. An LLM output filter won't stop an agent from running rm -rf; a tool-call gate will.
Is the Hub a supply-chain risk?
Every ruleset on the Hub is content-hashed and Ed25519-signed before distribution. The bundle is verified at load time; if tampered with, it won't run. Rulesets are plain DSL text, readable before install. You can audit exactly what a ruleset does before pulling it: ssg hub inspect <ruleset-id>.
Can I run this without sending anything to the cloud?
Yes for evaluation. ssg evaluates every tool call locally — the gate itself does not call home. Hub pulls, fleet sync (Pro+), and audit export (Pro+) are optional. Separately, Desktop/daemon may send a license heartbeat when licensed, and an anonymous usage heartbeat only after explicit opt-in (same model as the Desktop privacy copy). Local-only mode: install via the native installer or GHCR image, run ssg init, keep telemetry opted out, and skip Hub/fleet. Evaluation stays on-box either way.
Claude Code already asks before running commands. Why pay for this?
Claude Code's built-in permission prompts are a good start, but they're binary (allow or skip) and require your attention for every action. SigmaShake adds four things you can't get from a raw hook: (1) Defaults without writing a script: the baseline preset ships 20 rules on day one covering the most common destruction, secret-leak, and supply-chain patterns; (2) Audit trail: every evaluation is signed and stored, so you can see exactly what was blocked and why; (3) Fleet-wide policy: one rule set pushed to every developer machine, enforced without each developer writing and maintaining their own hook; (4) Multi-agent coverage: the same rules enforce across Claude Code, Cursor, Codex, Gemini CLI, and any other MCP-compatible agent simultaneously.
Will this slow down or break my agent?
In daemon mode (the default after ssg init), evaluation stays under 2 ms end-to-end over a Unix-socket hop — imperceptible in any interactive session. Cold-start (if the daemon isn't running) takes ~73–104 ms for the first call, then stays at socket-hop latency. The false-block rate on ordinary development work is measured by the SHAKEDOWN benchmark: the “agent-safety-baseline” preset blocks 0 out of 894 benign tasks. See the benchmark page for the full false-block report. If a rule fires on something legitimate, you can add an exception in one command: ssg rules exception add <rule-id> <value>.
Does writing it in CLAUDE.md stop a destructive AI coding agent?
A CLAUDE.md instruction is a probabilistic nudge: Claude Code usually follows it, but the model can ignore or misread it under prompt pressure, a long context window, or an adversarial injection. No enforcement sits in the path between the instruction and the tool call. ssg adds a deterministic gate that evaluates every tool call before it runs and returns ALLOW, DENY (runtime: block), ASK, FORCE, LOG, or SHADOW with no LLM involved in enforcement. FORCE refuses the original risky action and returns a safe substitute or required safer path for the agent to use next. Adding a permissions block to CLAUDE.md sets intent; guardrails enforce it. Test a rule now at showcase.sigmashake.com, or install SigmaShake Desktop for a full local GUI. It is free to download and costs $5/month to use.
Talk to other engineers using SSG
Share your rules, get help, and follow what's shaking next.