FailproofAI/failproofai
A hook-based runtime layer for tracing and enforcing AI agent behavior
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Failproof is a hook-based reliability layer around existing agent harnesses, not an agent runtime. Adapters normalize 29 lifecycle events and canonicalize tool names and arguments before policy evaluation. They translate verdicts back into native contracts: Claude Code consumes JSON, Factory's droid uses exit code 2 to stop an action, and Hermes loads a Python plugin. OpenCode and OpenClaw integrate through in-process plugins rather than shell hooks.
The local hot path runs through failproofaid, a Rust daemon with a pre-warmed policy worker behind an owner-only Unix socket. The daemon also handles telemetry shipping and policy synchronization for Cloud. The npm manifest exposes failproofai and failproofaid, with sql.js as its sole declared dependency; the Cargo workspace spans crates/*. The source tree separately includes the SDK and Hermes, OpenClaw, and Pi integration directories.
Key Capabilities & Differentiators
Failproof can block a tool call before execution, inject context at prompt time, or request another turn when an agent tries to stop. A shared policy API supports deterministic JavaScript checks and Jev, a classifier for yes/no judgments grounded in the user's request. Pre-tool blocking is verified across all 12 supported harnesses; turn-end enforcement is verified on eight. The local policy check measures about 0.7 ms at p50.
Cloud connects session replay and SQL analysis to failure clustering, recurring evaluations, and alerts via Slack, email, or signed webhooks. It can draft a policy from an audit finding, test it on historical tool calls, and deploy it in observation or enforcement mode. The FIRE study's 37% to 69% task-success result applies to failures recognized by a policy, not to agent workloads generally.
Trade-offs & Limitations
Compared with a trace-only platform, Failproof adds intervention on the runtime path. Compared with bespoke per-harness hooks, it reduces duplicated adapter and policy maintenance. The trade-off is that real coverage depends on the hooks a harness exposes and honors. Treat enforcement as an application-layer control, not a sandbox: a path rule for structured edits does not automatically inspect equivalent shell commands.
Local JavaScript checks suit explicit constraints and avoid a classifier round trip when they do not call a model. Use decision-model checks for cases that need context, and measure their latency and error rates separately. Cloud adds audit and fleet rollout but introduces trace-export review. Inspect the root LICENSE before redistribution, and verify retention and hosting requirements before making Cloud part of a compliance-sensitive workflow.
Hardware & Deployment Guide
The npm package declares Node.js 20.9+ and Bun 1.3+ engine floors. The standard onboarding path is npm install -g failproofai, then failproofai config to discover harnesses, install hooks, start the daemon, and connect to Cloud. Configuration applies defaults noninteractively in CI or containers. failproofai backfill --since 7d uploads supported harness history; review data-handling rules before running it.
Local .failproofai/policies/ files provide a JavaScript policy path, but audits and fleet policy rollout are part of the connected Cloud workflow. Dockerfile.docs is present; it does not establish a self-hosted Cloud stack or a production container topology. Stable v1.0.18 ships Self Reports and an agent-settings guard; Python SDK v0.0.1b7 adds session-scoped self_report events.
Teams running supported agent harnesses that want to turn recurring, traceable failures into tested runtime policies.
You need hard isolation, uniform enforcement across arbitrary runtimes, or verified offline self-hosting of the full audit and rollout workflow.
Quick Start & Installation
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
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| failproofai ★ | 10.5k | +275 | TypeScript | — | A hook-based runtime layer for tracing and enforcing AI agent behavior |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| lobehub | 86.4k | +237 | TypeScript | — | A self-hostable agent workspace for team tasks, shared context, and MCP tools |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/FailproofAI/failproofai.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about failproofai
How does a policy reach an agent, and what changes for a custom runtime?
Do I need a GPU, and how should I size a rollout?
Can we redistribute it commercially or keep all session data on our own infrastructure?
Why use this instead of a tracing tool or native harness hooks?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy