Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Observability and enforcement for AI agent harnesses. Capture every run and runtime reliability with policy enforcement.
Fetched from the repository for this visit.
Translations: 简体中文 · 日本語 · 한국어 · Español · Português · Deutsch · Français · Русский · हिन्दी · Türkçe · Tiếng Việt · Italiano · العربية · עברית
Your agent ran rm -rf on the wrong directory. It read .env into its context. It spent
forty minutes retrying the same broken call, then told you the task was done.
Failproof lives in your agent's runtime and hears every hook event it fires: the
session starting, every prompt, every tool call and its result, sub-agents spinning up,
context about to be compacted, the moment it tries to stop. It can act on any of
them: block the bad action before it executes, steer the agent mid-run, or send it
back to work when it quits too early. Then it learns from every failure, so your
agent's harness gets better with every run.
37% → 69% task success on failures a policy recognised. Same model, no fine-tuning
(FIRE study)
~0.7 ms p50 per policy check, from a Rust daemon in the hot path
12 agent harnesses, one policy API: Claude Code, Codex, Cursor, Hermes, OpenClaw and more
Open source and free to start. Install the CLI, connect Failproof Cloud, and your first audit runs on your agents' real history.
Twelve harnesses in two classes: ten coding CLIs, and two chat and assistant gateways (Hermes, OpenClaw).
Building your own agent, on any framework or none? Report its runs through the Python SDK or the TypeScript SDK, which give you tracing, sessions, evaluations and audits. Enforcement there needs a hook in your own runtime. Talk to us and we'll map it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
npm install -g failproofai
failproofai config # hook your agents, connect to Failproof Cloud (free)
failproofai backfill --since 7d # bring in the last week of runs already on disk
failproofai config finds every agent on this machine, hooks into each
one, starts the background daemon, and signs you in to Failproof Cloud in your
browser. No account yet? Make one right there, on the free plan.failproofai backfill --since 7d sends the last seven days
(for supported harnesses),
so you start with real evidence instead of an empty dashboard.Setting up CI, a container, or letting an agent run the install? failproofai config
notices there's no one to ask and applies the defaults without prompting.
Every harness speaks its own dialect:
followup_message.Bash, terminal, Execute, shell,
run_command, exec.Failproof translates all of it:
SessionStart, UserPromptSubmit,
PreToolUse, PostToolUse, SubagentStop, PreCompact, Stop, …).So a policy written once against Bash blocks the same command in Claude Code, Codex,
Hermes and Goose. A "run the tests before you stop" gate sends the agent back to work on
every harness that has a turn-end hook.
Each contract is verified against that CLI and pinned, with what it was verified on, in a capability matrix the test suite checks every claim against. Blocking before a tool runs is verified on all twelve harnesses; turn-end gates on eight. The per-harness matrix shows exactly which events each one honours.
A policy can listen to any of those events. Before a tool call, it can block the command outright. When a prompt arrives, it can add context. When the agent tries to stop, it can send it back to finish the job. Whatever it decides, the agent is told why. There are two kinds of policy, and you can mix them:
rm -rf build/
you asked for goes through; the rm -rf ~ that slipped into a plan doesn't. Use it
for the judgment calls no regex can make.You don't have to write either. Failproof authors them for you. Open an insight in Cloud and hit prevent this →, or describe the rule in a sentence. Failproof drafts the policy, tests it against your agents' own past tool calls, and rolls it out to every machine, observing first or enforcing straight away.
A few examples of what a policy can catch, and what it does about it:
| Example | What it catches | Does |
|---|---|---|
block-env-files | Reads of .env and other secret files | Blocks |
block-kubectl | Unreviewed changes to live infrastructure | Blocks |
warn-destructive-sql | DROP, TRUNCATE, an unbounded DELETE | Warns the agent and lets it decide |
warn-repeated-tool-calls | The agent looping on the same failing call | Warns the agent to change approach |
no-refunds-over-limit (yours) | A support agent approving a refund it isn't allowed to | Whatever you decide |
no-production-writes (yours) | File writes and edits to production paths (the code below; shell commands aren't checked) | Blocks |
Prefer to write one yourself? Save it in .failproofai/policies/ as, say,
no-production-writes-policies.mjs and it loads automatically
(naming rules). Commit
it, and every teammate whose agents run Failproof gets it on their next pull.
import { customPolicies, deny, allow } from "failproofai";
customPolicies.add({
name: "no-production-writes",
match: { events: ["PreToolUse"] },
fn: async (ctx) => {
if (!["Write", "Edit"].includes(ctx.toolName ?? "")) return allow();
if (ctx.toolInput?.file_path?.includes("production"))
return deny("Writes to production paths are blocked.");
return allow();
},
});
Every policy returns one of three decisions: allow(), deny(message), or
instruct(message). The last is the quiet superpower. Instead of crashing the agent
into a wall, it steers it ("run the tests before you stop", "use the staging database")
and the agent corrects course on its own.
→ Write a policy · Decision-model policies · More examples
A check that costs nothing can run on every event, all the time. That's what lets you hand an agent more autonomy, not less:
failproofaid is a Rust daemon with a pre-warmed
policy worker behind an owner-only Unix socket. A check that used to cost ~700 ms now
takes ~0.7 ms at p50, so policies can watch every event of every session and the agent
never feels it. How we got there →Generic guardrails are written for everyone's agent. Failproof Cloud is built for yours, from your agent's own traces, whether you run one agent or a hundred.
Every run feeds a loop that makes the harness around your agent better:
The model never changes. The harness around it learns from every failure. It's the idea behind our FIRE study, where policies derived from an agent's failures took task success from 37% to 69% on the failures they recognised. Same model, no fine-tuning.
"The audits are the part that changed how we operate. We now have fewer incidents, less compute waste, and faster shipping." — Pratheep Velicherla, CTO, Testsigma
Ask the failproof agent anything about your agent in plain English, or pull the same
data into your own tools through the MCP server,
Slack and the fp CLI.
Start with one agent on the free plan: 5,000 runs a month, no card. Self-hosting in your own cluster is available on the Enterprise plan.
→ Start free · Pricing · Quickstart · Book a demo
| Start | |
|---|---|
| Quickstart | Install, connect a harness, see the first run |
| Concepts | How the hook system works |
| Supported harnesses | All 12, and what each one can enforce |
| Observe | |
|---|---|
| Sessions | Follow a run: models, tools, errors, latency |
| Read a trace | What the execution graph is telling you |
| Audits | Find failure patterns across many sessions |
| Evaluations | Score every session with code, the decision model or an LLM judge |
| Enforce | |
|---|---|
| Write a policy | From an insight, from a sentence, or in code |
| Decision-model policies | Jev judges calls against what the user asked |
| Configuration | Config scopes, merge rules and policy parameters |
| Instrument your own agent | |
|---|---|
| Python SDK | Report runs from an agent with no harness |
| TypeScript SDK | The same events from a Node agent |
| Policy SDK | allow / deny / instruct reference |
MIT with Commons Clause — free for internal and personal use; commercial resale of failproofai itself requires a separate agreement. See LICENSE for the full text.
See CONTRIBUTING.md. New policies, edge cases, and translations all welcome.
Built with ❤️ by befailproof.ai in SF and Bengaluru.
GitHub checked 39h ago - refresh overdue. Recently viewed repositories target hourly refresh.