Skip to content

feat: add block-no-verify PreToolUse hook to .claude/settings.json #19895

@tupe12334

Description

@tupe12334

Add block-no-verify to prevent agents from bypassing git hooks

Problem

.claude/settings.json currently configures settings but does not include a PreToolUse Bash hook to prevent AI agents from running git commit or git push with the hook-bypass flag. When an agent uses this flag, it silently skips pre-commit, commit-msg, and pre-push hooks.

Solution

Add block-no-verify as a PreToolUse Bash hook. I'm happy to open a PR if the maintainers are interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions