npx claudepluginhub jinsong-zhou/cc-harness --plugin cc-harnessDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"session-summary\" \"scripts/hooks/track-iteration.js\" \"minimal,standard,strict\""
}
],
"description": "Write session summary with duration, iterations, and scores"
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"pre-compact\" \"scripts/hooks/track-iteration.js\" \"minimal,standard,strict\""
}
],
"description": "Save harness state before context compaction"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/hooks/run-with-flags.js\" \"session-start\" \"scripts/hooks/track-iteration.js\" \"minimal,standard,strict\""
}
],
"description": "Initialize or restore harness session state"
}
]
}"Executes bash scripts on SessionStart to load program context, PreCompact to save state, and Stop to detect milestones. Logs events to /tmp/claude-hooks-debug.log."