Skip to Content
harness-kit

Overview

Real-world guardrails, each a short walkthrough with a tested configuration and the exact message the agent reads.

Each recipe solves one task: you copy a few entries into harness.config.ts, sync the hooks, and try it. Pick the recipe that matches the problem you have.

Every configuration here is type-checked and run by the docs' tests, and every message is what the hook really writes.

Before you start

Every recipe needs the kit installed and your hooks synced. Quick start takes a few minutes.

Pick a recipe by the problem you have

Apply any recipe

Add the entries

Copy the recipe's entries into the policies of your harness.config.ts. An entry turns one built-in Policy on.

Check the configuration and sync the hooks

npx harness-kit config check
npx harness-kit settings sync

Try it

Ask the agent to do what the recipe guards against. It reads the message the recipe quotes. To try it without an agent, see Debugging a configuration.

If a recipe does not work

Start with Troubleshooting. Each recipe also has an "If it does not work" section for its own failures.

On this page