Stats
Actions
Tags
From plouto
{"riskFlags": {"touchesBash": false, "matchAllTools": true, "touchesFileWrites": false}, "typeStats": {"command": 5}, "eventStats": {"PreToolUse": 1, "SessionEnd": 1, "StopFailure": 1, "SessionStart": 2}, "originCounts": {"absolutePaths": 0, "pluginScripts": 3, "projectScripts": 0}, "timeoutStats": {"commandsWithoutTimeout": 5}}
4 events · 5 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
python3 ${CLAUDE_PLUGIN_ROOT}/bin/plouto-gate.pyAPI_URL="${PLOUTO_API_URL:-$SCALENE_API_URL}"; TOKEN="${PLOUTO_TOKEN:-$SCALENE_TOKEN}"; if [ -n "$API_URL" ] && [ -n "$TOKEN" ]; then echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] SessionEnd $CLAUDE_SESSION_ID — syncing" >> $HOME/.claude/plouto.log; for i in 1 2 3; do python3 ${CLAUDE_PLUGIN_ROOT}/bin/plouto-sync.py --api-url "$API_URL" --token "$TOKEN" --session-only $CLAUDE_SESSION_ID >> $HOME/.claude/plouto.log 2>&1 && break || { echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] sync attempt $i failed, retrying" >> $HOME/.claude/plouto.log; sleep $((i*2)); }; done; fiAPI_URL="${PLOUTO_API_URL:-$SCALENE_API_URL}"; TOKEN="${PLOUTO_TOKEN:-$SCALENE_TOKEN}"; if [ -n "$API_URL" ] && [ -n "$TOKEN" ]; then echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] StopFailure $CLAUDE_SESSION_ID rate_limit" >> $HOME/.claude/plouto.log; curl -s --max-time 10 -X POST "$API_URL/api/ingest/event" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d "{\"session_id\":\"$CLAUDE_SESSION_ID\",\"event\":\"rate_limit\",\"timestamp\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}" >> $HOME/.claude/plouto.log 2>&1; fiAPI_URL="${PLOUTO_API_URL:-$SCALENE_API_URL}"; TOKEN="${PLOUTO_TOKEN:-$SCALENE_TOKEN}"; if [ -n "$API_URL" ] && [ -n "$TOKEN" ]; then BRANCH=$(git -C "$PWD" rev-parse --abbrev-ref HEAD 2>/dev/null || echo ''); echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] SessionStart $CLAUDE_SESSION_ID cwd=$PWD branch=$BRANCH" >> $HOME/.claude/plouto.log; curl -s --max-time 10 -X POST "$API_URL/api/ingest/event" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d "{\"session_id\":\"$CLAUDE_SESSION_ID\",\"event\":\"session_started\",\"timestamp\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\",\"cwd\":\"$PWD\",\"git_branch\":\"$BRANCH\"}" > /dev/null 2>>$HOME/.claude/plouto.log; fipython3 ${CLAUDE_PLUGIN_ROOT}/bin/plouto-policy.pynpx claudepluginhub ploutoai/plouto-plugin --plugin plouto