task-completed-gate

Block task completion when modified files have syntax errors, incomplete markers, or failing tests.

hook Stop claude-code mode: enforce

Block task completion when modified files have syntax errors, incomplete markers, or failing tests.

FieldValue
idtask-completed-gate
modeenforce
logical_eventStop
command{repo_root}/hooks/task-completed-gate.sh
timeout120
harnesses["claude-code"]
Full hook config
config/hook-registry.json (entry)
{
"id": "task-completed-gate",
"description": "Block task completion when modified files have syntax errors, incomplete markers, or failing tests.",
"mode": "enforce",
"logical_event": "Stop",
"command": "{repo_root}/hooks/task-completed-gate.sh",
"timeout": 120,
"harnesses": [
"claude-code"
]
}

Command: .../hooks/task-completed-gate.sh


View source on GitHub