]> git.ekhem.eu.org Git - guix.git/commit
[ai] Pre-flight checks, surface failures, prettify.
authorJakub Czajka <jakub@ekhem.eu.org>
Tue, 28 Jul 2026 07:20:42 +0000 (07:20 +0000)
committerJakub Czajka <jakub@ekhem.eu.org>
Sun, 22 Nov 2026 10:42:39 +0000 (10:42 +0000)
commit0233b1402a465e33cdcf2a56cf8356ff93dd9dbd
treebfa225885cebfadc05027aa1afcd8780a6ced3ba
parent24c8ac46a9f6ad2ba0dee8de92626de6dcb7e716
[ai] Pre-flight checks, surface failures, prettify.

Every hook now checks that GUIX_BIN and required commands exist before
running. PreToolUse hooks deny with a visible reason on failure; other
hooks emit systemMessage. All hooks follow the create-worktree style:
copyright header, individual check blocks.

Fixed block-worktrees to not silently exit when CLAUDE_PROJECT_DIR is
unset (the hook derives proj_root from git, not that variable).

Fixed git push exemption in create-worktree to match full paths like
$HOME/.guix-profile/bin/git push.

The guix-build check now exits early only when the tree is clean and at
main tip. It warns and stops if the branch is behind main (needs
rebase), and falls through to the queue logic when there are staged
commits or a dirty tree.
.claude/hooks/block-builds
.claude/hooks/block-worktrees
.claude/hooks/create-worktree
.claude/hooks/guix-build
.claude/hooks/guix-check
.claude/hooks/notify
.claude/hooks/status-line
.claude/settings.json