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 · 9 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" ] && [ -f "$root/bin/dos-hook" ]; then command -p sh "$root/bin/dos-hook" stop --workspace .; 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 || { [ -z "$root" ] || echo "dos-hook: warning: no DOS hook backend could run; live DOS enforcement is fail-open. Install dos-kernel or restore claude-plugin/bin/dos-hook." >&2; true; }python -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 || truepython -m dos.cli hook live-rotate --workspace . 2>/dev/null || python3 -m dos.cli hook live-rotate --workspace . 2>/dev/null || powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'python -m dos.cli hook live-rotate --workspace .' 2>/dev/null || trueroot="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-}}"; if [ -n "$root" ] && [ -f "$root/bin/dos-hook" ]; then command -p sh "$root/bin/dos-hook" pretool --workspace .; 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 || { [ -z "$root" ] || echo "dos-hook: warning: no DOS hook backend could run; live DOS enforcement is fail-open. Install dos-kernel or restore claude-plugin/bin/dos-hook." >&2; true; }Read|Bash|Grep|Globroot="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-}}"; if [ -n "$root" ] && [ -f "$root/bin/dos-hook" ]; then command -p sh "$root/bin/dos-hook" posttool --workspace .; 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 || { [ -z "$root" ] || echo "dos-hook: warning: no DOS hook backend could run; live DOS enforcement is fail-open. Install dos-kernel or restore claude-plugin/bin/dos-hook." >&2; true; }overloaded|server_error|rate_limitpython -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 || true15msroot="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-}}"; if [ -n "$root" ] && [ -f "$root/bin/dos-hook" ]; then command -p sh "$root/bin/dos-hook" session-start --workspace .; 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 || { [ -z "$root" ] || echo "dos-hook: warning: no DOS hook backend could run; live DOS enforcement is fail-open. Install dos-kernel or restore claude-plugin/bin/dos-hook." >&2; true; }root="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-}}"; if [ -n "$root" ] && [ -f "$root/bin/dos-hook" ]; then command -p sh "$root/bin/dos-hook" stop --workspace .; 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 || { [ -z "$root" ] || echo "dos-hook: warning: no DOS hook backend could run; live DOS enforcement is fail-open. Install dos-kernel or restore claude-plugin/bin/dos-hook." >&2; true; }python -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