HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
invariantlabs-ai
invariant
Python2024–2025
invariantlabs-ai / invariant

invariant

Guardrails for secure and robust agent development

2Distinct people
12Mentions
0Explicit recommenders
476GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Guardrails for secure and robust agent development

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by month12 dated mentions

Observed mentions: 2024-08-20 19:32:25 UTC to 2025-04-18 17:37:45 UTC.

012342024-08-01 00:00:00 UTC to 2024-09-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 commentsAug 20242024-09-01 00:00:00 UTC to 2024-10-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-10-01 00:00:00 UTC to 2024-11-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-11-01 00:00:00 UTC to 2024-12-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-12-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 4 mentions; 3 submissions, 1 commentsDec 20242025-01-01 00:00:00 UTC to 2025-02-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 comments2025-02-01 00:00:00 UTC to 2025-03-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2025-03-01 00:00:00 UTC to 2025-04-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2025-04-01 00:00:00 UTC to 2025-05-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsApr 2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Aug 20242024-08-01 00:00:00 UTC2024-09-01 00:00:00 UTC211
Sep 20242024-09-01 00:00:00 UTC2024-10-01 00:00:00 UTC000
Oct 20242024-10-01 00:00:00 UTC2024-11-01 00:00:00 UTC000
Nov 20242024-11-01 00:00:00 UTC2024-12-01 00:00:00 UTC000
Dec 20242024-12-01 00:00:00 UTC2025-01-01 00:00:00 UTC431
Jan 20252025-01-01 00:00:00 UTC2025-02-01 00:00:00 UTC220
Feb 20252025-02-01 00:00:00 UTC2025-03-01 00:00:00 UTC110
Mar 20252025-03-01 00:00:00 UTC2025-04-01 00:00:00 UTC202
Apr 20252025-04-01 00:00:00 UTC2025-05-01 00:00:00 UTC110

What Hacker News says

12 sources

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

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. Guardrails acts as a transparent layer between your LLM/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. Rules are written in a Python-inspired DSL, enabling powerful contextual logic like below. The origins of this idea go back to OPA/Rego, i.e. policy languages used for authentication. raise "PII leakage in email" if: (out: ToolOutput) -> (call: ToolCall) any(pii(out.content)) call is tool:send_email({ to: "^(?!.*@ourcompany.com$).*$" }) It’s fast (low-latency, pipelin
Read the rest
ed execution), supports both hosted and local deployments, and integrates via simple proxies. You keep your agent code unchanged. Let us know what you think. We found it quite helpful for MCP debugging and security analysis so far. Happy to answer questions! Docs: https://explorer.invariantlabs.ai/docs Repo: https://github.com/invariantlabs-ai/invariant Blog post: https://invariantlabs.ai/blog/guardrails Playground: https://explorer.invariantlabs.ai/playground
1 points · Open discussion

Show HN: Try test-driven agent development in this holiday prompting challenge

Our team at Invariant has built an awesome agent testing challenge for the holidays, that showcases how agent development can benefit from concepts known from test-driven software engineering. You can play the challenge at the linked URL. You are given a pre-existing agent implementation where you can only change the system prompt and your goal is to make a small test suite of unit tests pass. The tool implementations are complete, but the agent needs to be instructed to use them properly. The challenge was created to showcase two open source projects we released recently: A trace viewer for agent trajectories (Explorer, https://github.com/invariantlabs-ai/explorer) and a library for building agent unit tests (Testing, https://github.com/invariantlabs-ai/invariant). Let us know what you think, we'll be around in the comment section. Happy
Read the rest
holidays everyone!
3 points · Open discussion
This is specifically directed at agent traces and not necessarily other LLM use cases. We work on a lot of automated analysis and error detection mechanisms (see https://github.com/invariantlabs-ai/invariant/tree/main/anal...) on such agent traces, which can be nicely shown and highlighted in line with the trace in Explorer. Also, agent builders value collaboration a lot. They send around traces like pastebins to point out specific issues and failure modes of their agents. Explorer makes it easy to point to specific points in long traces and annotate them.
In Show HN: A better way to inspect and test AI Agents traces

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.