gemini hooks

143 tagged gemini, measured the same way as everything else here.

Browse within: gemini-cli 24gemini-cli-extension 23ai-coding 12ai-assistant 10claude-agent-sdk 10openrouter 10devtool 8pixel-art 8anti-hallucination 7developer 7developer-platform 7Cost Optimization 6Workflow Automation 6ai-routing 6

PreToolUse

73

slb350/gemini-peer-review

Hook

Part of gemini-peer-review

Runs before the agent uses a tool for ExitPlanMode, Task and Write tool calls, executing plan-peer-review-check.sh, task-peer-review-check.sh and write-peer-review-check.sh via bash (3 commands). From slb350/gemini-peer-review.

not rated 2 7mo ago A tokens not measured

PreToolUse

74

Haris0059/ibu-mcp

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From Haris0059/ibu-mcp.

not rated 2 3mo ago A tokens not measured original MIT

Stop

75

Haris0059/ibu-mcp

Hook Claude Code

One of 3 in settings.json

Runs when the agent finishes a response, running an inline shell check. From Haris0059/ibu-mcp.

not rated 2 3mo ago A tokens not measured original MIT

BeforeModel

76

pangelini777/oh-my-gem

Hook

One of 5 in hooks.json

Runs on the BeforeModel event, executing tmux_manager.py, keyword_detector.py, intent_gate.py and model_router.py via python3 (4 commands). From pangelini777/oh-my-gem.

not rated 2 3mo ago A tokens not measured

AfterAgent

77

pangelini777/oh-my-gem

Hook

One of 5 in hooks.json

Runs on the AfterAgent event, executing todo_enforcer.py and ralph_loop.py via python3 (2 commands). From pangelini777/oh-my-gem.

not rated 2 3mo ago A tokens not measured

AfterTool

78

pangelini777/oh-my-gem

Hook

One of 5 in hooks.json

Runs on the AfterTool event, executing output_truncate.py, hashline_wrapper.py, edit_error_recovery.py and json_error_recovery.py via python3 (4 commands). From pangelini777/oh-my-gem.

not rated 2 3mo ago A tokens not measured

PreToolUse

79

indrasvat/shux

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Bash tool calls, running an inline shell check. From indrasvat/shux.

not rated 2 4d ago A tokens not measured

SessionStart

80

indrasvat/shux

Hook Claude Code

One of 3 in settings.json

Runs when a session starts, executing ensure-hooks.sh via bash. From indrasvat/shux.

not rated 2 4d ago A tokens not measured

SessionStart

81

GigantesHJI/securedact-mcp

Hook

One of 6 in hooks.json

Runs when a session starts, running python -m securedact_enforced.gemini_hook --event SessionSta. From GigantesHJI/securedact-mcp.

not rated 1 3d ago A tokens not measured original Apache-2.0

BeforeTool

82

GigantesHJI/securedact-mcp

Hook

One of 6 in hooks.json

Runs on the BeforeTool event for ^(mcp_.*, .*(http, web, search, fetch, request, api, connect).*, Read, Write, Edit, MultiEdit, NotebookEdit, Bash, Grep and Glob)$ tool calls, running python -m securedact_enforced.gemini_hook --event BeforeTool. From GigantesHJI/securedact-mcp.

not rated 1 3d ago A tokens not measured original Apache-2.0

AfterTool

83

GigantesHJI/securedact-mcp

Hook

One of 6 in hooks.json

Runs on the AfterTool event for ^(mcp_.*, .*(http, web, search, fetch, request, api, connect).*, Read, Write, Edit, MultiEdit, NotebookEdit, Bash, Grep and Glob)$ tool calls, running python -m securedact_enforced.gemini_hook --event AfterTool. From GigantesHJI/securedact-mcp.

not rated 1 3d ago A tokens not measured original Apache-2.0

SessionStart

84

markbrutx/gemini-plugin-cc

Hook

Part of gemini

Runs when a session starts, executing session-lifecycle-hook.mjs via node. From markbrutx/gemini-plugin-cc.

not rated 1 5mo ago A tokens not measured

SessionEnd

85

markbrutx/gemini-plugin-cc

Hook

Part of gemini

Runs when a session ends, executing session-lifecycle-hook.mjs via node. From markbrutx/gemini-plugin-cc.

not rated 1 5mo ago A tokens not measured

Stop

86

markbrutx/gemini-plugin-cc

Hook

Part of gemini

Runs when the agent finishes a response, executing stop-review-gate-hook.mjs via node. From markbrutx/gemini-plugin-cc.

not rated 1 5mo ago A tokens not measured

SessionStart

87

azmym/gemini-plugin

Hook

Part of gemini-plugin

Runs when a session starts on startup, executing session-start-risk-map.sh. From azmym/gemini-plugin.

not rated 1 20d ago A tokens not measured original MIT

PreToolUse

88

azmym/gemini-plugin

Hook

Part of gemini-plugin

Runs before the agent uses a tool for Bash and ExitPlanMode tool calls, executing pre-destructive-bash.sh and plan-complete.sh (2 commands). From azmym/gemini-plugin.

not rated 1 20d ago A tokens not measured original MIT

SubagentStop

89

azmym/gemini-plugin

Hook

Part of gemini-plugin

Runs when a subagent finishes for gemini-validator, gemini-challenger, gemini-researcher, gemini-summarizer and gemini-reviewer tool calls, executing subagent-verdict-handler.sh. From azmym/gemini-plugin.

not rated 1 20d ago A tokens not measured original MIT

SessionStart

90

ByteLandTechnology/gemini-cc

Hook

Part of gemini

Runs when a session starts, executing session-lifecycle-hook.mjs via node. From ByteLandTechnology/gemini-cc.

not rated 1 4mo ago A tokens not measured copy · 61% Apache-2.0

SessionEnd

91

ByteLandTechnology/gemini-cc

Hook

Part of gemini

Runs when a session ends, executing session-lifecycle-hook.mjs via node. From ByteLandTechnology/gemini-cc.

not rated 1 4mo ago A tokens not measured copy · 100% Apache-2.0

Stop

92

ByteLandTechnology/gemini-cc

Hook

Part of gemini

Runs when the agent finishes a response, executing stop-review-gate-hook.mjs via node. From ByteLandTechnology/gemini-cc.

not rated 1 4mo ago A tokens not measured copy · 56% Apache-2.0

PreToolUse

93

Ezee234/symbi-gemini-cli

Hook

One of 2 in hooks.json

Runs before the agent uses a tool for write_file, replace, run_shell_command and symbi__* tool calls, executing policy-guard.sh and policy-log.sh (2 commands). From Ezee234/symbi-gemini-cli.

not rated 1 3d ago A tokens not measured copy · 100% Apache-2.0

PostToolUse

94

Ezee234/symbi-gemini-cli

Hook

One of 2 in hooks.json

Runs after a tool call finishes for write_file, replace, run_shell_command and symbi__* tool calls, executing audit-log.sh. From Ezee234/symbi-gemini-cli.

not rated 1 3d ago A tokens not measured copy · 100% Apache-2.0

SessionStart

95

kongyo2/gemini-time-injector

Hook

One of 6 in hooks.json

Runs when a session starts, executing inject-time.js via node. From kongyo2/gemini-time-injector.

not rated 1 3mo ago A tokens not measured original MIT

BeforeAgent

96

kongyo2/gemini-time-injector

Hook

One of 6 in hooks.json

Runs on the BeforeAgent event, executing inject-time.js via node. From kongyo2/gemini-time-injector.

not rated 1 3mo ago A tokens not measured original MIT

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: