# Repository Briefing: FailproofAI/failproofai
> Source: https://repoforai.com/repo/FailproofAI/failproofai (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/FailproofAI/failproofai
- **Official Docs / Website**: https://befailproof.ai
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: See repository
- **Engineering Health**: A (78/100 · Maintenance 35/35 · Adoption 17/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v1.0.20 (2026-12-03) — https://github.com/FailproofAI/failproofai/releases
- **Review Snapshot**: 2026-12-02 (Note: v1.0.20 on 2026-12-03 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: Docker, CLI
- **Momentum**: 10,527 ★ total (+29 24h / +275 7d) · 593 forks
- **Topics**: `agent-failure`, `agent-harness`, `agent-observability`, `agent-reliability`, `agent-tracing`, `ai-agent`, `claude-code`, `codex`, `enforcement`, `evals`, `guardrails`, `hermes`
- **When to Use**: Best for: Teams running supported agent harnesses that want to turn recurring, traceable failures into tested runtime policies. Skip if: You need hard isolation, uniform enforcement across arbitrary runtimes, or verified offline self-hosting of the full audit and rollout workflow.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Adapter contract: 29 canonical events, with normalized tool names and arguments and harness-specific verdicts.
- Enforcement coverage: pre-tool blocking verified on 12 harnesses; turn-end gates on eight.
- Local hot path: Rust daemon, pre-warmed policy worker, and owner-only Unix socket; about 0.7 ms p50 per check.
- Policy rollout: test drafted rules on historical tool calls, then observe matches or enforce.
- Failure analysis: Cloud links audit findings to session evidence and supports recurring evaluations and alerts.
- SDK boundary: Python and TypeScript support custom-agent telemetry; enforcement requires a runtime hook.
```

## Quick Start / Clone
```bash
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
```
