~ / rigs / pegasi-ai / reins

pegasi-ai/reins

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

↗ GitHub ★ 411 apache-2.0 updated 5mo ago project Claude Code Claude plugin
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~84 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
2/5
Pre-tool screening hook · No YOLO mode · details

Copy this rig

# review before running: this installs third-party code
$ npx degit pegasi-ai/reins/.claude ./rig-reins  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit pegasi-ai/reins/plugin/skills/reins .claude/skills/reins

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js"
          }
        ]
      },
      {
        "matcher": "Edit",
        "hooks": [
          {
            "type": "command",
            "command": "node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js"
          }
        ]
      },
      {
        "matcher": "MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js"
          }
        ]
      },
      {
        "matcher": "Write",
        "hooks": [
          {
            "type": "command",
            "command": "node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js"
          }
        ]
      },
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js"
          }
        ]
      }
    ]
  }
}

Skills (1)

Hooks (10)

eventmatcherruns
PreToolUseBashnode ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js
PreToolUseEditnode ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js
PreToolUseMultiEditnode ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js
PreToolUseWritenode ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js
PreToolUse*node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js
PostToolUseBashnode ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js
PostToolUseEditnode ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js
PostToolUseMultiEditnode ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js
PostToolUseWritenode ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js
PostToolUse*node ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js

Similar rigs

copied ✓