Stats
Actions
Tags
From redline
On session stop, runs an adversarial reviewer agent that reads the active goal and blocks if the agent is stuck repeating a mistake. Uses Anthropic CLI, only reads files.
1 event · 1 hook
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
node -e "let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{if(JSON.parse(d).stop_hook_active)process.exit(0)}catch{}try{const s=require('child_process').execSync('git diff --stat HEAD',{encoding:'utf-8'}).trim();if(!s)process.exit(0);console.log(JSON.stringify({decision:'block',reason:'Consider running a /redline:... command'}))}catch{process.exit(0)}})"10msnpx claudepluginhub alexanderatallah/redline --plugin redline