· Amit Kothari
· AI Workflows and Operations
How to build a self-updating SOP with AI stop hooks
Here is how to build a self-updating SOP with AI stop hooks. A Markdown procedure ends with an introspection step, and a Claude Code Stop hook fires a small Haiku auditor after the run, flags drift, stages the fix, and waits for approval before anything commits. The hook emits one decision object and logs every verdict to JSONL.