pegasi-ai/reins

Stop AI agents from doing things you didn't ask for.

What it solves

AI agents can perform powerful but potentially destructive actions. Reins gives you control: it blocks harmful actions before they happen, requires human approval for high-impact ones, and keeps a permanent record of every decision. It's like a safety checkpoint for your agent's every move.

How it works

Reins runs as a layer between you and your AI agent. It evaluates each action against deterministic security policies that are cached locally, so there's no network slowdown. If an action is destructive, it blocks it. If an action is high-impact, it pauses and asks for approval (via terminal or messaging). Every decision is logged to an append-only audit file. Policies evaluate in under 50ms, and it works with Claude Code hooks, OpenClaw, and any MCP-compatible agent. It also scans your agent configuration for OWASP ASI10 vulnerabilities and tracks changes over time.

Who it's for

Developers and teams who run AI agents (like Claude Code or OpenClaw) and need strong security controls, auditability, and peace of mind that their agents won't cause damage. It's for anyone who wants zero-trust enforcement on agent actions.

Highlights

  • Blocks destructive actions before execution, scoring irreversibility.
  • Routes high-impact actions through approval flows, requiring explicit confirmation tokens for catastrophic operations.
  • Immutable audit trail saved as append-only JSONL.
  • Zero trust, synchronous enforcement, fail-closed: any unhandled error blocks the action.
  • Works with Claude Code PreToolUse and PostToolUse hooks, OpenClaw, and any MCP-compatible agent.
  • Policies evaluate in under 50ms, with local caching and offline enforcement.
  • Scans configs for OWASP ASI10 vulnerabilities and tracks drift.

Related

  • Project
  • Project
  • Project
  • Project