# FailproofAI ## Docs - [Architecture](https://exosphere-luv-434-restructure.mintlify.app/architecture.md): How the hook handler, config loading, and policy evaluation work internally - [Built-in Policies](https://exosphere-luv-434-restructure.mintlify.app/built-in-policies.md): All 39 built-in policies that catch common agent failure modes - [Audit past sessions (beta)](https://exosphere-luv-434-restructure.mintlify.app/cli/audit.md): Count how often the agent did wasteful or risky things across past transcripts - [Sign in](https://exosphere-luv-434-restructure.mintlify.app/cli/auth.md): Sign in to FailproofAI from the CLI to enable reminders and personalized features - [View sessions](https://exosphere-luv-434-restructure.mintlify.app/cli/dashboard.md): Launch the dashboard to browse agent sessions and manage policies - [Environment variables](https://exosphere-luv-434-restructure.mintlify.app/cli/environment-variables.md): Configure failproofai behavior with environment variables - [Hook handler (internal)](https://exosphere-luv-434-restructure.mintlify.app/cli/hook.md): The subprocess Claude Code calls on each tool event - [Install policies](https://exosphere-luv-434-restructure.mintlify.app/cli/install-policies.md): Enable policies so they run on every agent tool call - [List policies](https://exosphere-luv-434-restructure.mintlify.app/cli/list-policies.md): See which policies are enabled, their parameters, and custom policies - [Uninstall policies](https://exosphere-luv-434-restructure.mintlify.app/cli/remove-policies.md): Remove hook entries from Claude Code's settings - [Check version](https://exosphere-luv-434-restructure.mintlify.app/cli/version.md): Print the installed failproofai version - [Configuration](https://exosphere-luv-434-restructure.mintlify.app/configuration.md): Config file format, three-scope system, and merge rules - [Custom Policies](https://exosphere-luv-434-restructure.mintlify.app/custom-policies.md): Write your own policies in JavaScript - enforce conventions, prevent drift, detect failures, integrate with external systems - [Dashboard](https://exosphere-luv-434-restructure.mintlify.app/dashboard.md): Monitor agent sessions, review tool calls, and manage policies - [Examples](https://exosphere-luv-434-restructure.mintlify.app/examples.md): How to set up hooks for Claude Code and the Agents SDK - [For agents](https://exosphere-luv-434-restructure.mintlify.app/for-agents.md): Add Failproof AI knowledge to your coding agent in one command. Works with Claude Code, Cursor, Windsurf, and more. - [Getting started](https://exosphere-luv-434-restructure.mintlify.app/getting-started.md): Install failproofai, enable policies, and let your agents run reliably - [Failproof AI](https://exosphere-luv-434-restructure.mintlify.app/introduction.md): FailproofAI gives AI agents 39 built-in failure policies that catch loops, secret leaks, destructive tool calls, and more in a single install. - [Package Aliases](https://exosphere-luv-434-restructure.mintlify.app/package-aliases.md): Registered typosquat-prevention aliases and how they work - [Testing](https://exosphere-luv-434-restructure.mintlify.app/testing.md): Unit tests, E2E tests, and test helpers ## Optional - [GitHub](https://github.com/failproofai/failproofai) - [npm](https://www.npmjs.com/package/failproofai) - [Slack](https://join.slack.com/t/failproofai/shared_invite/zt-3v63b7k5e-O3NBHmj8X6n9gZSGDx6ggQ)