npx claudepluginhub alexanderatallah/redlineDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "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)}})\"",
"timeout": 10
}
]
}
]
}"Runs check-uncommitted.sh script on Stop event to check for uncommitted changes in git repo before session ends. Executes shell command with 10s timeout."