Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@

# Failproof AI

[![Docs](https://img.shields.io/badge/docs-befailproof.ai-002CA7?style=flat-square)](https://befailproof.ai)
[![npm](https://img.shields.io/npm/v/failproofai?style=flat-square&color=CB3837)](https://www.npmjs.com/package/failproofai)
[![License](https://img.shields.io/badge/license-MIT%20%2B%20Commons%20Clause-blue?style=flat-square)](LICENSE)
[![CI](https://img.shields.io/github/actions/workflow/status/exospherehost/failproofai/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/exospherehost/failproofai/actions)
[![Discord](https://img.shields.io/discord/1234567890?style=flat-square&label=Discord&color=5865F2)](https://discord.com/invite/zT92CAgvkj)

Open-source hooks, policies, and project visualization for **Claude Code** & the **Agents SDK**.

- **Hooks & Policies** — 35+ built-in security policies that run as Claude Code hooks. Block dangerous commands, sanitize secrets, restrict file access, and more.
Expand Down
6 changes: 5 additions & 1 deletion docs/architecture.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Architecture
---
title: Architecture
description: "How the hook handler, config loading, and policy evaluation work internally"
icon: sitemap
---

This document explains how failproofai works internally: how the hook system processes events, how configuration is loaded and merged, how policies are evaluated, and how the dashboard fits in.

Expand Down
6 changes: 5 additions & 1 deletion docs/built-in-policies.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Built-in Policies
---
title: Built-in Policies
description: "All 35+ security policies with descriptions and parameters"
icon: shield
---

failproofai ships with 35+ built-in security policies. Each policy fires on a specific hook event type and tool name. Eight policies accept parameters that let you tune their behavior without writing code.

Expand Down
6 changes: 5 additions & 1 deletion docs/cli-reference.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# CLI Reference
---
title: CLI Reference
description: "All commands, flags, and environment variables for the failproofai CLI"
icon: terminal
---

All commands are invoked via the `failproofai` binary.

Expand Down
6 changes: 5 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Configuration
---
title: Configuration
description: "Config file format, three-scope system, and merge rules"
icon: gear
---

failproofai uses JSON configuration files to control which policies are active, how they behave, and where custom hooks are loaded from.

Expand Down
6 changes: 5 additions & 1 deletion docs/custom-hooks.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Custom Hooks
---
title: Custom Hooks
description: "Write your own policies in JavaScript with allow, deny, and instruct decisions"
icon: code
---

Custom hooks let you write your own policies in JavaScript. They integrate with the same hook event system as built-in policies and support the same `allow`, `deny`, and `instruct` decisions.

Expand Down
6 changes: 5 additions & 1 deletion docs/dashboard.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Dashboard
---
title: Dashboard
description: "Session viewer, policy management, and activity log"
icon: chart-line
---

The failproofai dashboard is a local web application for browsing Claude Code sessions and managing security policies.

Expand Down
83 changes: 83 additions & 0 deletions docs/docs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"$schema": "https://mintlify.com/docs.json",
"theme": "luma",
"name": "FailproofAI",
"colors": {
"primary": "#002CA7",
"light": "#e4587d",
"dark": "#002CA7"
},
"favicon": "/favicon.ico",
"navigation": {
"tabs": [
{
"tab": "Docs",
"groups": [
{
"group": "Getting Started",
"pages": [
"introduction",
"getting-started"
]
},
{
"group": "Core Concepts",
"pages": [
"configuration",
"built-in-policies",
"custom-hooks"
]
},
{
"group": "Tools",
"pages": [
"cli-reference",
"dashboard"
]
},
{
"group": "Advanced",
"pages": [
"architecture",
"testing",
"package-aliases"
]
}
]
}
],
"global": {
"anchors": [
{
"anchor": "GitHub",
"href": "https://github.com/exospherehost/failproofai",
"icon": "github"
},
{
"anchor": "npm",
"href": "https://www.npmjs.com/package/failproofai",
"icon": "npm"
},
{
"anchor": "Discord",
"href": "https://discord.com/invite/zT92CAgvkj",
"icon": "discord"
}
]
}
},
"navbar": {
"links": [],
"primary": {
"type": "button",
"label": "Get started",
"href": "/getting-started"
}
},
"footer": {
"socials": {
"github": "https://github.com/exospherehost/failproofai",
"x": "https://x.com/exospherehost"
}
}
}
Binary file added docs/favicon.ico
Binary file not shown.
6 changes: 5 additions & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Getting Started
---
title: Getting Started
description: "Install failproofai, enable policies, and take it for a spin"
icon: rocket
---

## Requirements

Expand Down
48 changes: 0 additions & 48 deletions docs/index.md

This file was deleted.

45 changes: 45 additions & 0 deletions docs/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: Introduction
description: "Open-source hooks, policies, and session visualization for Claude Code and the Agents SDK"
---

# Failproof AI

Open-source hooks, policies, and session visualization for **Claude Code** and the **Agents SDK**. Runs entirely locally — no data leaves your machine.

## What is Failproof AI?

Failproof AI is a security and observability toolkit that intercepts Claude Code tool calls in real time. It evaluates configurable policies — blocking dangerous commands, redacting secrets, and adding safety instructions — before Claude can act.

It also includes a local web dashboard for browsing Claude Code sessions, inspecting tool calls, and managing policies visually.

## Key features

| Feature | Description |
|---------|-------------|
| [35+ Built-in Policies](./built-in-policies.md) | Block sudo, rm -rf, force-push, secret leaks, and more — out of the box. |
| [Custom Hooks](./custom-hooks.md) | Write your own policies in JavaScript with a simple allow/deny/instruct API. |
| [Session Dashboard](./dashboard.md) | Browse projects, inspect sessions, and review every tool call and policy decision. |
| [Three-Scope Config](./configuration.md) | Global, project, and local configuration with automatic merging. |

## Quick start

Install globally via npm:

```bash
npm install -g failproofai
```

Enable policies:

```bash
failproofai --install-policies
```

Launch the dashboard:

```bash
failproofai
```

See the [Getting Started](./getting-started.md) guide for a full walkthrough.
Binary file added docs/logo/exosphere-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/logo/exosphere-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion docs/package-aliases.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Package Aliases & Typosquatting Protection
---
title: Package Aliases
description: "Registered typosquat-prevention aliases and how they work"
icon: copy
---

## Official package

Expand Down
6 changes: 5 additions & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Testing
---
title: Testing
description: "Unit tests, E2E tests, and test helpers"
icon: flask-vial
---

failproofai has two test suites: **unit tests** (fast, mocked) and **end-to-end tests** (real subprocess invocations).

Expand Down