FailproofAI is an open-source TypeScript project focused on enhancing the reliability of AI coding agents by providing runtime failure resolution. The system is designed to hook into various agent CLIs, including Claude Code, OpenAI Codex, GitHub Copilot CLI, Cursor Agent CLI, OpenCode, Pi (pi coding agent), and Gemini CLI. Its primary function is to detect and prevent common agent failures such as infinite loops, potentially dangerous operations (e.g., `rm -rf`), and the leakage of sensitive information like API keys.
The tool operates locally, ensuring zero latency in its checks. It offers a dashboard accessible at `localhost:8020` for monitoring agent activity, including successful and blocked tool calls, and the rationale provided by policies. FailproofAI comes with 39 built-in policies and allows users to define custom policies by simply adding a file to the `.failproofai/policies/` directory. Policies can `allow()`, `deny(message)`, or `instruct(message)` an operation, providing granular control over agent behavior.
A recent beta release, `v0.0.11-beta.2`, introduced a new `failproofai audit` CLI command. This feature enables retrospective scanning of past agent sessions across all supported CLIs, replaying tool-use events through existing policies and eight new audit-only detectors. The audit generates a report highlighting protected actions versus those that might have slipped through, along with installation calls-to-action. Other updates in this release include a first-run install prompt for unconfigured machines and expanded PostHog telemetry coverage, which can be opted out via an environment variable.
Featured on AI Radar: FailproofAI: Runtime Failure Resolution for Coding Agents