Build Claude Code hooks that check tool use.
Recent revisions are kept. Restoring one creates a new revision.