SkillsReviewed · pegasi-ai

Reins security skill for Claude Code

Reins is a security skill for Claude Code developers and teams, but its protection depends on a separately installed command-line tool whose enforcement is unverified. It documents checks before tool calls, audit records afterward and optional Watchtower integration for shared policies.

Researched 16 Nov 2026

In short.

Reins is a security skill for Claude Code developers and teams that want tool-use rules and audit records, but the underlying enforcement software is outside the supplied files. The skill explains hook installation, shell and file restrictions, MCP controls and optional Watchtower policies. Its helper installs an unpinned npm package and requests balanced protection for FileSystem, Shell and Browser, leaving Network out of its requested module list. Nothing was executed. Enforcement coverage, the claimed decision time under 50 ms, offline behavior and audit uploads remain unverified; Watchtower pricing is unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied skill folder: skill/SKILL.md and skill/scripts/ensure_installed.sh, plus the accompanying repository-root LICENSE, at revision d5bc85ddfc9ad13ec22925c63312f85da94b96a7. Other repository code, the downloaded npm package, dependencies, generated hook configuration and Watchtower implementation are outside this scope. Nothing was executed; installation, enforcement, scans, audit persistence, uploads, compatibility, latency and outage behavior remain untested.

The overview

Identity

The resource is the skill folder in pegasi-ai/reins [https://github.com/pegasi-ai/reins/tree/main/skill]. It contains instructions for Claude Code and a Bash installation helper. The instructions explain how an assistant should use Reins and respond to its decisions.

The skill is distinct from the @pegasi/reins command-line package that installs and operates the controls. Watchtower, hosted at [https://app.pegasi.ai], is an optional service for centralized policies and audit review.

Assessment

The skill provides concrete operating guidance for adding rule-based checks to Claude Code tool calls. Its useful distinction is between blocking a call before execution and recording activity afterward.

The main uncertainty is implementation: neither the hook code nor the policy engine is included. The instructions establish intended behavior, while the helper establishes installation commands. They do not demonstrate that dangerous operations are consistently detected or prevented.

Users

Individual Claude Code developers may find it useful for documenting restrictions around shell commands, file changes and connected tools. Teams are the intended audience for Watchtower organization policies, administrator-controlled critical rules and centralized audit review.

Beginners need enough command-line familiarity to install an npm package and inspect configuration. Experienced developers will need to assess hook coverage and policy behavior for their tools. Compatibility with other assistants is not established.

Capabilities

Documented shell rules cover destructive disk operations, root deletion, fork bombs, certain SQL operations and force pushes. Other operations, including privilege changes and some file deletions, receive warnings. File rules list protected locations such as ~/.ssh, ~/.env and /etc/shadow.

For MCP calls, the instructions describe restrictions on page deletion, email sending to unapproved domains and destructive database commands, alongside logging of all MCP calls. The CLI reference also describes policy editing, decision statistics, audit viewing, configuration scans and monitoring against a saved baseline.

Using it

Requirements

The documented setup requires Claude Code, npm, the ability to install @pegasi/reins globally and permission to modify .claude/settings.json. The helper requires Bash. Minimum Node.js, npm, Claude Code and Reins versions, and supported operating systems, are unspecified.

Watchtower integration additionally requires an API key and service connectivity. The instructions name REINS_WATCHTOWER_API_KEY and REINS_WATCHTOWER_BASE_URL as configuration variables, with local configuration stored at ~/.openclaw/reins/config.json.

Mechanism

The documentation says PreToolUse hooks inspect Bash, Edit, MultiEdit, Write and MCP calls. Exit status 2 blocks a call; status 0 permits it. A WARN decision also uses status 0, so a warning is advisory rather than a hard stop. PostToolUse is described as non-blocking, appending JSONL audit entries and queuing uploads.

The stated policy priority is Watchtower organization rules, team rules, local overrides and built-in defaults. Administrator-defined critical organization rules are described as immutable locally. Claims of model-free evaluation, decisions under 50 ms and continued enforcement from cached policies have no implementation or measurement evidence here.

Setup

The documented manual route is npm install -g @pegasi/reins followed by reins init. The wizard offers permissive, balanced and strict levels; FileSystem, Shell, Browser and Network modules; hook installation; optional Watchtower connection; and an initial configuration scan.

The helper checks whether reins is already on the command path. If found, it prints the version and exits without checking hooks or initializing configuration. Otherwise, it installs the package and invokes reins init --non-interactive --security-level balanced --modules FileSystem,Shell,Browser. It supplies neither a package version pin nor Watchtower connection settings.

Example

An illustrative case is a Claude Code Write call targeting a file under ~/.ssh. The instructions describe this location as protected, so the intended outcome is a block before the write. The skill tells the assistant to name Reins as the source of the denial, explain the rule and offer a safe alternative.

The documented command reins audit -n 20 displays recent decisions. This example describes intended behavior; no write, block or audit output was observed.

Assessment & evidence

Limitations

The supplied files do not demonstrate command-parsing robustness, resistance to bypasses or complete coverage across tool types. Browser and Network protection are named without detailed rules. The helper does not explicitly request Network; the runtime's treatment of that omission is unknown.

Cached-policy enforcement during a Watchtower outage is a documented claim. First startup without cached policies, cache expiry and synchronization failures are unspecified. The audit example shows tool, decision, reason and timing fields, but the full upload payload, retention and service access controls are unknown.

Reasoning

Its practical value depends on correctly installed hooks: the skill supplies instructions, while the separate runtime is intended to enforce decisions. An assistant following the skill is not evidence that those hooks are active.

The helper's early exit when an executable exists makes this distinction concrete. A successful version response would establish executable availability, but would not establish configured policies, active hooks or a working Watchtower connection.

Alternatives

The documented configurations offer a choice between local Reins operation and adding Watchtower for organization and team policies plus centralized audit review. Local operation may suit an individual developer; the centralized configuration addresses shared governance needs.

No named competing tools or comparative results are supplied. Relative enforcement quality, performance and cost against alternatives are unknown.

Evidence

The source consists of skill/SKILL.md, skill/scripts/ensure_installed.sh and the repository-root LICENSE. The instruction file supports statements about intended behavior; the shell script directly supports statements about installation commands and module choices.

The original instruction file is available at [https://raw.githubusercontent.com/pegasi-ai/reins/d5bc85ddfc9ad13ec22925c63312f85da94b96a7/skill/SKILL.md], and the helper at [https://raw.githubusercontent.com/pegasi-ai/reins/d5bc85ddfc9ad13ec22925c63312f85da94b96a7/skill/scripts/ensure_installed.sh]. Neither file contains the enforcement engine. No execution results, benchmarks or service implementation are supplied.

Access & freshness

Costs

Watchtower pricing, free tiers, trials, support charges and total deployment cost are unknown. The absence of an LLM in the claimed enforcement path does not establish that the service is free.

The accompanying Apache 2.0 licence grants no-charge rights to covered material. That does not establish pricing for hosted services or other dependencies.

Rights

The accompanying repository-root LICENSE contains Apache License 2.0 [https://raw.githubusercontent.com/pegasi-ai/reins/d5bc85ddfc9ad13ec22925c63312f85da94b96a7/LICENSE]. It permits use, modification and redistribution of covered material, subject to its conditions.

Redistribution requires providing the licence and preserving applicable notices. Modified files must identify changes, and relevant NOTICE attribution must be retained if such a file accompanies the work. The licence disclaims warranties and grants no general trademark rights. Watchtower service terms and licensing of downloaded dependencies are not established.

Freshness

The supplied snapshot is pinned to source revision d5bc85ddfc9ad13ec22925c63312f85da94b96a7 and was captured on 16 November 2026 at 00:04:01.515 UTC. The main-branch address can change independently of this fixed revision.

This revision identifies the skill files, not an installed CLI release. The installation commands do not pin an npm package version, so the runtime obtained later cannot be matched to this snapshot from the supplied evidence.

Actions

Before adopting it, inspect the actual @pegasi/reins package and choose a version to pin. Review the proposed .claude/settings.json changes and decide which modules are required, including whether Network should be explicitly requested.

In a disposable Claude Code environment, verify hook status, a harmless allowed operation and a harmless policy-denied operation, then inspect the resulting audit decisions. For Watchtower, establish pricing and audit-data handling, and verify behavior when connectivity is lost. These behaviors have not been tested here.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skill/SKILL.mdselected · checked 2026-11-16
skill/scripts/ensure_installed.shselected · checked 2026-11-16