SessionStart
01Hook
Runs when a session starts on startup, compact and compact, executing namespace-hint.sh and post-compact-auto-loop.sh (2 commands). From sd0xdev/sd0x-harness.
The harness layer for Claude Code — a reference implementation of harness engineering with hook-enforced dual review, state-machine gates that survive context compaction, and fail-closed safety where it counts. Quality gates that AI can't skip.
Hook
Runs when a session starts on startup, compact and compact, executing namespace-hint.sh and post-compact-auto-loop.sh (2 commands). From sd0xdev/sd0x-harness.
Hook
Runs before the agent uses a tool for Edit, Write and NotebookEdit tool calls, executing pre-edit-guard.sh. From sd0xdev/sd0x-harness.
Hook
Runs after a tool call finishes for Edit, Write, NotebookEdit and Skill tool calls, executing post-edit-format.sh and post-skill-auto-loop.sh (2 commands). From sd0xdev/sd0x-harness.
Hook
Runs when the agent finishes a response, executing stop-guard.sh. From sd0xdev/sd0x-harness.
Hook
Runs when you submit a prompt, before the agent sees it, executing user-prompt-review-guard.sh. From sd0xdev/sd0x-harness.