PreToolUse
169Hook Claude Code
Runs before the agent uses a tool for Edit and Write tool calls, running an inline shell check. From dfirtnt/Huntable-CTI-Studio.
482 tagged Security, measured the same way as everything else here.
Browse within: ai-security 14hooks 13agent-memory 9agentic 9agentic-workflow 9code-quality 9codex-cli 9gemini-cli-extension 8Guardrails 7Multi-Agent 7ai-governance 7gemini 7gemini-cli 7plugin 7
Hook Claude Code
Runs before the agent uses a tool for Edit and Write tool calls, running an inline shell check. From dfirtnt/Huntable-CTI-Studio.
Hook
Part of neural
Runs before the agent uses a tool for Bash, Bash, Write, Edit, WebFetch, Read, Edit, Write, Grep and Glob tool calls, executing dangerous-actions-blocker.sh, prompt-injection-detector.sh and sensitive-file-guard.sh via bash (3 commands). From brolag/neural-claude-code.
Hook
Part of holyclaude
Runs before the agent uses a tool for Edit, Write and MultiEdit tool calls, executing security_reminder_hook.py. From ajsai47/holyclaude.
hzeng-otterai/ai-course-example
Hook Claude Code
Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From hzeng-otterai/ai-course-example.
idoforgod/baduk-AgenticWorkflow
Hook Claude Code
Runs before the agent uses a tool for Bash, Edit, Write, Edit, Write, Edit and Write tool calls, executing block_destructive_commands.py, block_test_file_edit.py, predictive_debug_guard.py and verify_gate_passage.py (4 commands). From idoforgod/baduk-AgenticWorkflow.
Hook Claude Code
Runs before the agent uses a tool for Write, Edit, MultiEdit and Bash tool calls, executing protect-config.sh and block-destructive.sh via bash (2 commands). From iselegant/cchb.
Hook Claude Code
Runs before the agent uses a tool for Bash tool calls, executing block-dangerous-bash.sh. From Ninjabeam20/SportIQ-MCP.
Hook Claude Code
Runs before the agent uses a tool for Bash, Edit and Write tool calls, executing security_guard.py, worktree_path_guard.py and dirty_switch_guard.py (4 commands). From Smart-AI-Memory/attune-ai.
Hook
Part of claude-tools
Runs before the agent uses a tool for Bash, WebSearch, WebFetch and mcp__searxng__ tool calls, executing bun-hook-launch.sh (2 commands). From akasecurity/claude-tools.
muzafferkadir/nextjs-loop-engineering-starter
Hook Claude Code
Runs before the agent uses a tool for Edit, Write, MultiEdit, NotebookEdit and Bash tool calls, executing deny-edit.mjs via node. From muzafferkadir/nextjs-loop-engineering-starter.
Hook Claude Code
Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From whiteknightonhorse/APIbase.
Hook Claude Code
Runs before the agent uses a tool for Bash tool calls, executing security-block.sh. From usrrname/cursorrules.
Hook Claude Code
Runs before the agent uses a tool for Write, Edit, MultiEdit and NotebookEdit tool calls, running an inline shell check. From LindaHaviv/second-brain.
Hook Claude Code
Runs before the agent uses a tool for Edit, Write, Edit, Write and Bash tool calls, executing firewall-guard.sh, panic-guard.sh, dep-guard.sh, scope-guard.sh, todo-guard.sh, pre-tool-guard.py and pre-bash-guard.py with --show-current (8 commands). From InterCooperative-Network/icn.
Hook
Part of elixir-production
Runs before the agent uses a tool for Write:*.ex, Write:*.exs, Edit:*.ex, Edit:*.exs, Bash:git commit* and Bash:git push* tool calls, executing enforce-precommit.sh. From jeffweiss/elixir-production.
phanbaohuy96/flutter_base_structure
Hook Claude Code
Runs before the agent uses a tool for Write and Edit tool calls, executing guard_generated_sensitive_files.py via python3 with --show-toplevel. From phanbaohuy96/flutter_base_structure.
huangjia2019/claude-code-engingeering-EN
Hook Claude Code
Runs before the agent uses a tool for Bash tool calls, executing block-dangerous.sh. From huangjia2019/claude-code-engingeering-EN.
Claude-Code-Community-Ireland/claude-code-resources
Hook
Part of vibeworks-library
Runs before the agent uses a tool for Edit, Write and MultiEdit tool calls, executing security_reminder_hook.py via python3. From Claude-Code-Community-Ireland/claude-code-resources.
Soul-Brews-Studio/opensource-nat-brain-oracle
Hook Claude Code
Runs before the agent uses a tool for Bash, Task and Read tool calls, executing safety-check.sh, token-check.sh and log-task-start.sh (5 commands). From Soul-Brews-Studio/opensource-nat-brain-oracle.
matsuni-kk/agent_template_public
Hook Claude Code
Runs before the agent uses a tool for Bash tool calls, executing deny-check.sh. From matsuni-kk/agent_template_public.
Hook
Part of coding-pipeline
Runs before the agent uses a tool for Read, Bash, Grep, Glob, Bash, Write, Edit and MultiEdit tool calls, executing env-guard.sh, destructive-guard.sh and secret-write-guard.sh via bash (3 commands). From LuisFelipeMoro/Harness-devkit.
bugrabilge/bilge-development-kit
Hook Claude Code
Runs before the agent uses a tool for Bash, Write and Edit tool calls, executing dangerous_cmd_check.sh and secret_scanner.sh via bash (2 commands). From bugrabilge/bilge-development-kit.
Hook Claude Code
Runs before the agent uses a tool for Edit, Write, Read and MultiEdit tool calls, executing block-secrets.ps1. From rahulsethi/SAPDatasphereMCP.
Hook Claude Code
Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From trebormc/drupal-ai-agents.
At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: