Stats
Actions
Tags
From agentic-guardrails
Blocks editing/writing on the main branch, enforces branch leases for bash commands, normalizes bash output, and marks in-progress tasks. Runs bash scripts, can modify files.
3 events · 3 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
Bash|Write|Edit|NotebookEdit|Read|mcp__.*python3 -c "import os,sys,glob,runpy,json; n=sys.argv[1]; r=os.environ.get('CLAUDE_PLUGIN_ROOT'); cands=([r] if r else [])+glob.glob(os.path.expanduser('~/.claude/plugins/cache')+'/*/agentic-guardrails*')+glob.glob(os.path.expanduser('~/.claude/plugins/cache')+'/*/agentic-guardrails*/*'); p=next((os.path.join(c,'scripts','claude',n+'.py') for c in cands if c and os.path.isfile(os.path.join(c,'scripts','claude',n+'.py'))),None); runpy.run_path(p,run_name='__main__') if p else (n=='pretooluse' and (sys.stderr.write('agentic-guardrails: cannot locate scripts; failing closed\n'),json.dump({'hookSpecificOutput':{'hookEventName':'PreToolUse','permissionDecision':'ask','permissionDecisionReason':'agentic-guardrails could not locate its scripts (CLAUDE_PLUGIN_ROOT unresolved); failing closed. Review this operation manually.'}},sys.stdout)))" pretooluse15msBash|Write|Edit|NotebookEdit|Readpython3 -c "import os,sys,glob,runpy,json; n=sys.argv[1]; r=os.environ.get('CLAUDE_PLUGIN_ROOT'); cands=([r] if r else [])+glob.glob(os.path.expanduser('~/.claude/plugins/cache')+'/*/agentic-guardrails*')+glob.glob(os.path.expanduser('~/.claude/plugins/cache')+'/*/agentic-guardrails*/*'); p=next((os.path.join(c,'scripts','claude',n+'.py') for c in cands if c and os.path.isfile(os.path.join(c,'scripts','claude',n+'.py'))),None); runpy.run_path(p,run_name='__main__') if p else (n=='pretooluse' and (sys.stderr.write('agentic-guardrails: cannot locate scripts; failing closed\n'),json.dump({'hookSpecificOutput':{'hookEventName':'PreToolUse','permissionDecision':'ask','permissionDecisionReason':'agentic-guardrails could not locate its scripts (CLAUDE_PLUGIN_ROOT unresolved); failing closed. Review this operation manually.'}},sys.stdout)))" posttooluse10msstartup|resume|clearpython3 -c "import os,sys,glob,runpy,json; n=sys.argv[1]; r=os.environ.get('CLAUDE_PLUGIN_ROOT'); cands=([r] if r else [])+glob.glob(os.path.expanduser('~/.claude/plugins/cache')+'/*/agentic-guardrails*')+glob.glob(os.path.expanduser('~/.claude/plugins/cache')+'/*/agentic-guardrails*/*'); p=next((os.path.join(c,'scripts','claude',n+'.py') for c in cands if c and os.path.isfile(os.path.join(c,'scripts','claude',n+'.py'))),None); runpy.run_path(p,run_name='__main__') if p else (n=='pretooluse' and (sys.stderr.write('agentic-guardrails: cannot locate scripts; failing closed\n'),json.dump({'hookSpecificOutput':{'hookEventName':'PreToolUse','permissionDecision':'ask','permissionDecisionReason':'agentic-guardrails could not locate its scripts (CLAUDE_PLUGIN_ROOT unresolved); failing closed. Review this operation manually.'}},sys.stdout)))" sessionstart15msnpx claudepluginhub profsynapse/agentic-guardrails-plugin --plugin agentic-guardrails