Guardrails you configure, not write.

Rules for what your coding agent may do, written once in TypeScript. harness-kit answers Claude Code's hooks, refuses the calls that break the rules and tells the agent what to do instead.

Install
npm install --save-dev @microeinhundert/harness-kit
Read the installation guide

Why use it

What it changes for the team that adopts it.

  • A hook that fails closed

    If a Policy crashes or times out, its fail mode decides what happens. The hook never lets a call through by accident.

  • Answers the agent can act on

    Every refusal says why and what to do instead, so the agent changes course instead of retrying.

  • Your own rules, in any language

    Write a Policy in TypeScript beside the built-in ones, or an executable in any language that speaks a small JSON protocol.

  • Shared configurations that only tighten

    Each repository extends a team's central configuration. It can make rules stricter, never looser.

See it work

A call the agent should not make, and the answer it gets back.

The agent runs$ kubectl delete pod web-1
harness-kit answers deny
`kubectl delete pod web-1` is refused: `delete` is on the deny list of the kubectl command table.
Fix: Do not run it; if it is needed, ask the developer to run it by hand.
With the quick start's configuration, word for word what the hook writes. The agent reads the reason and the fix, and changes course.