gemini-cli hooks

74 tagged gemini-cli, measured the same way as everything else here.

Browse within: codex-cli 40gemini-cli-extension 29gemini 24cursor 22obsidian 16gemini-cli-extensions 14ai-coding 11cli 10antigravity 9claude-code-plugin 9droid 9github-copilot 9hooks 9knowledge-management 9

BeforeAgent

01

galdawave/pickle-rick-extension

Hook Claude Code

One of 3 in hooks.json

Runs on the BeforeAgent event, executing dispatch.js via node (2 commands). From galdawave/pickle-rick-extension.

not rated 451 +1 6mo ago A tokens not measured original Apache-2.0

AfterAgent

02

gemini-cli-extensions/ralph

Hook Claude Code

Runs on the AfterAgent event, executing stop-hook.sh. From gemini-cli-extensions/ralph.

not rated 327 +1 10mo ago A tokens not measured original Apache-2.0

AfterTool

03

thoreinstein/gemini-obsidian

Hook Claude Code

One of 3 in hooks.json

Runs on the AfterTool event for obsidian_(create, append)_note, obsidian_update_frontmatter, obsidian_append_daily_log, obsidian_replace_section, obsidian_insert_at_heading and obsidian_replace_in_note tool calls, executing reindex-note.js via node. From thoreinstein/gemini-obsidian.

not rated 103 +1 17d ago A tokens not measured original ISC

BeforeTool

04

Jamkris/everything-gemini-code

Hook Claude Code

One of 6 in hooks.json

Runs on the BeforeTool event for tool == "run_shell_command", tool == "run_shell_command", tool == "run_shell_command" && tool_input.command matches "^\\s*(npm (install, test, i, ci), pnpm (install, test, i), yarn (install, test, add, remove, upgrade), bun (install, test, i, add, remove), cargo build, make, docker…

not rated 95 +1 6mo ago A tokens not measured original MIT

SessionStart

05

thoreinstein/gemini-beads

Hook Claude Code

One of 2 in hooks.json

Runs when a session starts, running bd prime. From thoreinstein/gemini-beads.

not rated 26 +1 9mo ago A tokens not measured original MIT

Notification

06

thoreinstein/gemini-notifier

Hook Claude Code

Runs when the agent sends a notification, executing notify.js via node. From thoreinstein/gemini-notifier.

not rated 25 +1 6mo ago A tokens not measured

AfterAgent

07

richardcb/oh-my-gemini

Hook Claude Code

One of 6 in hooks.json

Runs on the AfterAgent event, executing phase-gate.js and ralph-retry.js via node (2 commands). From richardcb/oh-my-gemini.

not rated 18 8mo ago A tokens not measured original MIT

PostToolUse

08

ai-plugin-marketplace/template

Hook Claude Code

Runs after a tool call finishes for write_file tool calls, running an inline shell check. From ai-plugin-marketplace/template.

not rated 13 5d ago A tokens not measured original MIT

BeforeTool

09

thoreinstein/beads-workflow

Hook Claude Code

One of 3 in hooks.json

Runs on the BeforeTool event for write_file and replace tool calls, executing enforce-obsidian-writes.sh. From thoreinstein/beads-workflow.

not rated 11 8mo ago A tokens not measured

BeforeTool

10

itallstartedwithaidea/google-ads-gemini-extension

Hook Claude Code

One of 2 in hooks.json

Runs on the BeforeTool event for run_gaql tool calls, executing validate-gaql.js via node. From itallstartedwithaidea/google-ads-gemini-extension.

not rated 9 4mo ago A tokens not measured original MIT

SessionStart

11

yideng-xl/gemini-cli-hud

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts, executing hook.js via node. From yideng-xl/gemini-cli-hud.

not rated 8 6mo ago A tokens not measured original MIT

UserPromptSubmit

12

benediktkraus/dreviho

Hook Claude Code

One of 6 in hooks.json

Runs when you submit a prompt, before the agent sees it, executing auto-recall.mjs via node. From benediktkraus/dreviho.

not rated 6 6mo ago A tokens not measured

PreCompact

13

fmind/dotfiles

Hook Claude Code

One of 5 in hooks.json

Runs before the context is compacted, running dot agent hook session grok. From fmind/dotfiles.

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

PreToolUse

14

ThirdKeyAI/symbi-gemini-cli

Hook Claude Code

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 ThirdKeyAI/symbi-gemini-cli.

not rated 4 8mo ago A tokens not measured original Apache-2.0

AfterAgent

15

djinn-soul/gemini-mem

Hook Claude Code

One of 3 in hooks.json

Runs on the AfterAgent event, executing hook-runner.cjs via node. From djinn-soul/gemini-mem.

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

BeforeTool

16

kenryu42/gemini-safety-net

Hook Claude Code

Runs on the BeforeTool event, running npx -y cc-safety-net hook --gemini-cli. From kenryu42/gemini-safety-net.

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

PostToolUse

17

ronmkr/PromptBook

Hook Claude Code

One of 4 in hooks.json

Runs after a tool call finishes for Edit, Write, MultiEdit, NotebookEdit and Bash tool calls, executing sg-python.sh via bash (6 commands). From ronmkr/PromptBook.

not rated 2 6mo ago A tokens not measured original Apache-2.0

Notification

18

wangke19/gemini-ai-helpers

Hook Claude Code

One of 2 in hooks.json

Runs when the agent sends a notification, running an inline shell check. From wangke19/gemini-ai-helpers.

not rated 2 7mo ago A tokens not measured original Apache-2.0

PreToolUse

19

alex-lamport/kaora-memory

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Write, Edit and MultiEdit tool calls, executing protect-credentials.sh. From alex-lamport/kaora-memory.

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

SessionStart

20

King-A23/agent-reflectmem

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts, executing reflectmem_hook.js via node. From King-A23/agent-reflectmem.

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

PreToolUse

21

Ezee234/symbi-gemini-cli

Hook Claude Code

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 1mo ago A tokens not measured copy · 100% Apache-2.0

SessionStart

22

priyanshuchawda/tracepilot-gemini-cli

Hook Claude Code

Runs when a session starts, executing on-start.js via node. From priyanshuchawda/tracepilot-gemini-cli.

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

SessionStart

23

kongyo2/gemini-time-injector

Hook Claude Code

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 1mo ago A tokens not measured original MIT archived

AfterAgent

24

JHdehao/gemini-mem-v3

Hook Claude Code

One of 3 in hooks.json

Runs on the AfterAgent event, executing hook-runner.cjs via node. From JHdehao/gemini-mem-v3.

not rated 1 7mo ago A tokens not measured copy · 100% 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: