TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Guardrails – A Contextual Security Layer for Agentic AI Systems

1 点作者 lbeurerkellner28 天前
Hey HN, we are a small team from Europe building in agent security and we have just released Invariant Guardrails, our open-source system to enforce contextual security in AI agents and MCP-powered applications.<p>Guardrails acts as a transparent layer between your LLM&#x2F;MCP server and your agent. It lets you define deterministic rules that block risky behavior: secret leakage, unsafe tool use, PII exposure, malicious code patterns, jailbreaks, loops, and more.<p>Rules are written in a Python-inspired DSL, enabling powerful contextual logic like below. The origins of this idea go back to OPA&#x2F;Rego, i.e. policy languages used for authentication.<p><pre><code> raise &quot;PII leakage in email&quot; if: (out: ToolOutput) -&gt; (call: ToolCall) any(pii(out.content)) call is tool:send_email({ to: &quot;^(?!.*@ourcompany.com$).*$&quot; }) </code></pre> It’s fast (low-latency, pipelined execution), supports both hosted and local deployments, and integrates via simple proxies. You keep your agent code unchanged.<p>Let us know what you think. We found it quite helpful for MCP debugging and security analysis so far. Happy to answer questions!<p>Docs: <a href="https:&#x2F;&#x2F;explorer.invariantlabs.ai&#x2F;docs" rel="nofollow">https:&#x2F;&#x2F;explorer.invariantlabs.ai&#x2F;docs</a><p>Repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;invariantlabs-ai&#x2F;invariant">https:&#x2F;&#x2F;github.com&#x2F;invariantlabs-ai&#x2F;invariant</a><p>Blog post: <a href="https:&#x2F;&#x2F;invariantlabs.ai&#x2F;blog&#x2F;guardrails" rel="nofollow">https:&#x2F;&#x2F;invariantlabs.ai&#x2F;blog&#x2F;guardrails</a><p>Playground: <a href="https:&#x2F;&#x2F;explorer.invariantlabs.ai&#x2F;playground" rel="nofollow">https:&#x2F;&#x2F;explorer.invariantlabs.ai&#x2F;playground</a>

暂无评论

暂无评论