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.

188Stars on the repository
64Mods indexed here, across every type
2d agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

SessionStart

01

sd0xdev/sd0x-harness

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.

188 2d ago A tokens not measured original MIT

PreToolUse

02

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.

188 2d ago A tokens not measured copy · 66% MIT

PostToolUse

03

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.

188 2d ago A tokens not measured original MIT

Stop

04

sd0xdev/sd0x-harness

Hook

Runs when the agent finishes a response, executing stop-guard.sh. From sd0xdev/sd0x-harness.

188 2d ago A tokens not measured copy · 64% MIT

UserPromptSubmit

05

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.

188 2d ago A tokens not measured original MIT