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.
npm install --save-dev @microeinhundert/harness-kitWhy 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.
$ kubectl delete pod web-1`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.
Set it up
Install harness-kit and see your first refused call.
Learn how it works
How harness-kit decides what the agent may do.