# AI use cases for Failproofai (FailproofAI/failproofai)

Repo: [FailproofAI/failproofai](https://github.com/FailproofAI/failproofai) | Use cases: 3 | Page: https://dedupedai.com/use-cases/failproofai-failproofai/

Failproof AI is an npm CLI that puts guardrail policies on coding agents. It blocks risky actions such as rm -rf, force pushes and reads of .env files, supports custom JavaScript policies, and serves a local dashboard of agent runs.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Install guardrails on your coding agents: https://dedupedai.com/use-cases/failproofai-failproofai/install-failproofai-guardrails-for-coding-agents/
- Audit past agent runs for risky patterns: https://dedupedai.com/use-cases/failproofai-failproofai/audit-your-agent-history-with-failproofai/
- Write a custom policy in JavaScript: https://dedupedai.com/use-cases/failproofai-failproofai/write-a-custom-failproofai-policy/

## How to install guardrails on your coding agents with Failproofai

Repo: [FailproofAI/failproofai](https://github.com/FailproofAI/failproofai) | Difficulty: Beginner | Time: 10 minutes | Basis: From the README

Wire the hooks, then add a policy pack to enforce rules like blocking sudo, rm -rf and force pushes.

**Who it is for:** A developer letting agents run commands on a real machine.

**The problem:** One bad command from an agent can delete files or push to main.

**The outcome:** Agents that are blocked from the risky actions in the pack you chose.

### Steps

1. Install with `npm install -g failproofai`
2. Run `failproofai config` to wire up your agents and the daemon
3. Run `failproofai policies add FailproofAI/policies` to choose what to enforce
4. Read any pack with policies show before adding it

### Prompt to paste into your agent

```text
Using FailproofAI/failproofai, run `npm install -g failproofai`, `failproofai config`, then `failproofai policies add FailproofAI/policies`, and summarize which policies are now active on my machine.
```

### Caveat



Risk, system: It installs hooks into your agents; setup picks no policies until you add a pack.

Risk, trust: Read a policy pack with policies show before adding one from another owner.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/failproofai-failproofai/install-failproofai-guardrails-for-coding-agents/

## How to audit past agent runs for risky patterns with Failproofai

Repo: [FailproofAI/failproofai](https://github.com/FailproofAI/failproofai) | Difficulty: Beginner | Time: 15 minutes | Basis: From the README

Open the local dashboard and run the offline audit to find risky behaviour in history already on your machine.

**Who it is for:** A team lead reviewing what agents have been doing.

**The problem:** Nobody reads every agent transcript.

**The outcome:** A list of risky patterns and suggested policies to stop them.

### Steps

1. Install with `npm install -g failproofai`
2. Run `failproofai` with no arguments to serve the dashboard on localhost:8020
3. Run `failproofai audit` to scan your history for risky patterns
4. Add the suggested policies with `failproofai policies add <owner>/<repo>`

### Prompt to paste into your agent

```text
With FailproofAI/failproofai, run `failproofai audit` and report the riskiest patterns it finds in my agent history, with the policy that would block each.
```

### Caveat

The README says the dashboard needs no account and nothing leaves the machine.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/failproofai-failproofai/audit-your-agent-history-with-failproofai/

## How to write a custom policy in JavaScript with Failproofai

Repo: [FailproofAI/failproofai](https://github.com/FailproofAI/failproofai) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Drop a file into .failproofai/policies/ and use allow, deny or instruct to shape agent behaviour.

**Who it is for:** A developer with project-specific rules agents must follow.

**The problem:** Built-in policies cannot know your repo's rules.

**The outcome:** A policy file that loads automatically and enforces your rule.

### Steps

1. Install with `npm install -g failproofai`
2. Create a file in `.failproofai/policies/`
3. Return allow(), deny(message) or instruct(message) from your policy, as in the README example
4. It loads automatically with no flags needed

### Prompt to paste into your agent

```text
Using FailproofAI/failproofai, write a policy file in .failproofai/policies/ that denies <my risky command> with a clear message back to the agent, following the README's allow, deny and instruct API.
```

### Caveat



Risk, system: A policy is code that runs on every agent action; test it before relying on it.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/failproofai-failproofai/write-a-custom-failproofai-policy/
