Stats
Actions
Tags
From DOS — the trust substrate for agent fleets
Manages API failure and rate-limit backoff via hooks on session events and tool use. Runs bash commands through a 'dos' breaker system, monitoring Read/Bash/Grep/Glob tools with async failure rewake.
7 events · 8 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
root="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-}}"; if [ -n "$root" ]; then "$root/bin/dos-hook" stop --workspace . 2>/dev/null; rc=$?; [ "$rc" -eq 0 ] && exit 0; fi; python -m dos.cli hook stop --workspace . 2>/dev/null || python3 -m dos.cli hook stop --workspace . 2>/dev/null || powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'python -m dos.cli hook stop --workspace .' 2>/dev/null || truepython -m dos.cli hook stop-failure --success --workspace . 2>/dev/null || python3 -m dos.cli hook stop-failure --success --workspace . 2>/dev/null || powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'python -m dos.cli hook stop-failure --success --workspace .' 2>/dev/null || trueroot="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-}}"; if [ -n "$root" ]; then "$root/bin/dos-hook" pretool --workspace . 2>/dev/null; rc=$?; [ "$rc" -eq 0 ] && exit 0; fi; python -m dos.cli hook pretool --workspace . 2>/dev/null || python3 -m dos.cli hook pretool --workspace . 2>/dev/null || powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'python -m dos.cli hook pretool --workspace .' 2>/dev/null || trueRead|Bash|Grep|Globroot="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-}}"; if [ -n "$root" ]; then "$root/bin/dos-hook" posttool --workspace . 2>/dev/null; rc=$?; [ "$rc" -eq 0 ] && exit 0; fi; python -m dos.cli hook posttool --workspace . 2>/dev/null || python3 -m dos.cli hook posttool --workspace . 2>/dev/null || powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'python -m dos.cli hook posttool --workspace .' 2>/dev/null || truepython -m dos.cli hook stop-failure --workspace . 2>/dev/null || python3 -m dos.cli hook stop-failure --workspace . 2>/dev/null || powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'python -m dos.cli hook stop-failure --workspace .' 2>/dev/null || true320msroot="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-}}"; if [ -n "$root" ]; then "$root/bin/dos-hook" session-start --workspace . 2>/dev/null; rc=$?; [ "$rc" -eq 0 ] && exit 0; fi; python -m dos.cli hook session-start --workspace . 2>/dev/null || python3 -m dos.cli hook session-start --workspace . 2>/dev/null || powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'python -m dos.cli hook session-start --workspace .' 2>/dev/null || trueroot="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-}}"; if [ -n "$root" ]; then "$root/bin/dos-hook" stop --workspace . 2>/dev/null; rc=$?; [ "$rc" -eq 0 ] && exit 0; fi; python -m dos.cli hook stop --workspace . 2>/dev/null || python3 -m dos.cli hook stop --workspace . 2>/dev/null || powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'python -m dos.cli hook stop --workspace .' 2>/dev/null || truepython -m dos.cli hook marker --reset --workspace . 2>/dev/null || python3 -m dos.cli hook marker --reset --workspace . 2>/dev/null || powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'python -m dos.cli hook marker --reset --workspace .' 2>/dev/null || truenpx claudepluginhub anthony-chaudhary/dos-kernel --plugin dos-kernel