pegasi-ai/reins
Stop AI agents from doing things you didn't ask for.
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
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)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Bash | node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js |
| PreToolUse | Edit | node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js |
| PreToolUse | MultiEdit | node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js |
| PreToolUse | Write | node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js |
| PreToolUse | * | node ~/Documents/clawreins-public/reins/dist/hooks/pre-tool-use.js |
| PostToolUse | Bash | node ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js |
| PostToolUse | Edit | node ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js |
| PostToolUse | MultiEdit | node ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js |
| PostToolUse | Write | node ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js |
| PostToolUse | * | node ~/Documents/clawreins-public/reins/dist/hooks/post-tool-use.js |
Similar rigs
cocoindex-io/cocoindex
Incremental engine for long horizon agents 🌟 Star if you like it!
Automator 7.3k tok ·
FailproofAI/failproofai
Observability and enforcement for AI agent harnesses. Capture every run and runtime reliability with policy enforcement.
Automator 22.9k tok ·
caliber-ai-org/ai-setup
Continuously sync your AI setups with one command. Codebase tailor suited agent skills, MCPs and config files for Claude Code, Cursor, and Codex.
Automator 3.2k tok ·
asklokesh/loki-mode
Autonomous software factory. Give it a GitHub issue, a spec or a one-line task; get back a pull request with a signed receipt anyone can re-check offline. Runs on your machine with your own keys: Claude, Codex, OpenCode.
Automator 8.2k tok ·