Anchorwatch

Guides

Practical, tested answers to the questions people actually search for about Claude Code hooks, guardrails, secrets, plugins and testing discipline. Written against the current documentation and updated when Claude Code changes.

Latest guide

Claude Code in CI: running headless with -p safely

A headless run has nobody to answer prompts, so it trusts the repository's hooks automatically while ignoring the repository's allow rules — here is what that inversion costs and the four flags that close it.

Read it
hooks.json
{ "PreToolUse": [{ "matcher": "Bash", "hooks": [{ "type": "command", "command": "bash guard.sh" }] }] } # every guide ends with something you can paste