Claude Code plugin

Reins

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

392 stars 52 forksPlugins & marketplaces Plugin marketplace Source

Install

Add the plugin marketplace
/plugin marketplace add pegasi-ai/reins

Run inside Claude Code, then /plugin to pick what to install from it.

Install
npm install -g @pegasi-ai/reins

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/pegasi-ai/reins.git

From the README

🪢 Reins
  Security controls for AI agents.

    github.com/pegasi-ai/reins

    = 18.0.0">
In Greek myth, Athena gave Bellerophon the golden bridle — reins included — that let him guide Pegasus. Reins applies the same idea to AI agents: raw power is not enough — what matters is making it controllable.

Reins enforces deterministic security policies on every agent action, scans your configs for OWASP ASI10 vulnerabilities, and tracks drift over time. Policies evaluate in under 50ms. Works with Claude Code PreToolUse and PostToolUse hooks, OpenClaw, and any MCP-compatible agent.

Quickstart

Claude Code Skill

Install the Reins skill to give Claude Code awareness of your security posture:

Or clone the repo — the skill is included at .claude/skills/reins/ automatically.

Demo

An OpenClaw agent tries to bulk-delete 4,382 Gmail messages. Reins blocks it before execution.

What Reins does

- Prevent — Block destructive actions before execution. Score irreversibility. Detect risky browser state.
- Pause — Route high-impact actions through terminal or messaging approval flows. Require explicit CONFIRM-* tokens for catastrophic operations.
- Prove — Preserve an immutable audit trail of every decision, approval, and block.

Security guarantees

- Zero Trust — every action evaluated before execution
- Synchronous — agent cannot proceed until the hook exits
- No network in the hot path — policies cached locally, enforced offline
- Fail-closed — any unhandled hook error blocks the action
- Immutable audit — append-only JSONL at ~/.openclaw/reins/decisions.jsonl

Documentation

Full docs at reins.sh/docs:

- Getting Started
- How It Works
- Security Policies
- CLI Reference
- Security Scan
- Reins Cloud
- Use as a Library
- Architecture

Contributing

PRs welcome. See…
Read the full README on GitHub

How plugins work

  • A plugin bundles slash commands, subagents, skills, hooks, MCP servers and status lines so they install together.
  • Add the marketplace inside Claude Code with /plugin marketplace add pegasi-ai/reins, then run /plugin to pick what to install.
  • You can turn a plugin off again from /plugin without deleting anything.
Claude Code docs

Details

Language
Python
License
Apache-2.0
Last updated
11 October 2026
Topics
agent-observabilityagent-securityai-monitoringai-safetyaudit-trailbrowser-automationclaude-code-marketplaceclaude-code-pluginclaude-code-skillcuahuman-in-the-loopintervention

FAQ

What is Reins?

Stop AI agents from doing things you didn't ask for. It is a plugin for Claude Code, from pegasi-ai/reins on GitHub.

How do I install Reins?

Run npm install -g @pegasi-ai/reins, then follow the setup in the README.

Is Reins popular?

pegasi-ai/reins has 392 GitHub stars and 52 forks. It was last updated on 11 October 2026.

More plugins & marketplaces

Browse the most popular Claude Code mods, all plugins & marketplaces, or the skills and MCP server directories.