Skip to main content
npm weekly downloads Hooks and policies that keep your AI agents reliable and running autonomously - for Claude Code and the Agents SDK. AI agents fail in predictable ways. They run destructive commands, leak secrets, drift off-task, get stuck in loops, or push directly to main. Left unattended, small failures cascade. Failproof AI solves this with policies - rules that hook into every agent tool call and can detect failures, mitigate them (block, instruct, sanitize), and alert you when something needs attention. A local dashboard lets you review everything afterward. Everything runs locally. No data leaves your machine.

Get started

26 built-in policies

Block destructive commands, prevent secret leakage, keep agents inside project boundaries, and more - out of the box.

Custom policies

Write your own rules in JavaScript with a simple allow / deny / instruct API.

Agent monitor

See what your agents did while you were away. Browse sessions, inspect tool calls, review where policies fired.

Easy configuration

Tune any policy without code. Set allowlists, protected branches, or thresholds per-project or globally.

Quick start

npm install -g failproofai
failproofai policies --install   # enable policies
failproofai                      # launch the dashboard
See the Getting started guide for the full walkthrough.