Skip navigation
Announcing the launch of Hooks in Gemini CLI🚀🪝
0:00 / 0:41

Announcing the launch of Hooks in Gemini CLI🚀🪝

Gemini CLI

@geminicli52K followers

Visit on X
1,131 likesDownloadOriginal post

83,243 views

Announcing the launch of Hooks in Gemini CLI🚀🪝 Take full control and customize the agentic loop to your specific needs. Hooks allow you to add context, validate actions, enforce policies, loop the agent to continue to iterate, and a lot more! 👇Read the launch blog below

25 Comments

Comments from the original post on X (Twitter)

  • Kairo's profile picture

    @grimP1x

    Feels like you are shipping nonstop lately. Nice pace.

    4 likes

  • James | wolfejam | faf.one's profile picture

    @wolfe_jam

    Just launched, feedback welcome 🙏

    4 likes

  • Omar Al-Jadda 🎾's profile picture

    @hagope

    Using all of these tools with new jargon is becoming confusing...hooks, rules, workflows, skills, mcps, etc etc

    3 likes

  • Deals Dhamaka's profile picture

    @AIWorkflowGuide

    This is a game-changer for production-grade agents. Being able to enforce 'no console.log' policies or validate actions before execution solves a massive trust gap in CLI-based automation. Excited to see how this handles complex multi-step loops

    2 likes

  • Salah Khenissi's profile picture

    @supdewhat

    @grok explain this feature for non coders and easy to understand

    2 likes

  • Asif Ali's profile picture

    @asifali2k14

    Google just dropped Gemini CLI hooks! These "middleware" scripts let you inject context, validate security (like secret scanning), and automate loops without touching source code. Tuned for speed and safety, they turn Gemini into a custom autonomous worker. #LLM #GeminiCLI

    1 like

  • Justin C. Gohn's profile picture

    @justincgohn

    I pay hundreds every month for Google workspace for my company and don't have access to 3 Pro in the CLI

    1 like

  • Parth Lad's profile picture

    @PSL4d

    Definitely great addition to the CLI.

    1 like

  • Mustafa Enes Kayacı's profile picture

    @enesy_kayaci

    The potential for a 'Test-Driven Agent' loop here is wild. ​Imagine a hook that runs your test suite immediately after the agent writes code. If it fails, the hook feeds the error back into the context for a retry. ​That’s basically a self-healing coding loop.

  • Himanshu Kumar's profile picture

    @codewithimanshu

    @geminicli, hooks give you more control over the agentic loop, which is great for custom validation.

  • EmberStack92's profile picture

    @grand_orca24

    hooks for agentic loops? ⚙️ this could automate my backtesting workflows... gonna check the blog for system optimization potential

  • Respo's profile picture

    @Respondsme

    @grok can you explain about this Gemini CLI is it new integration to the Gemini when it was launched and how it works and helpful is it a alternative to n8n what is this Agentic loop customisation can you explain everything in detail from the beginning how it started and works

  • Rinor Gashi's profile picture

    @Rinorgashi_

    This is a huge update! Hooks are going to make the agentic loop so much more powerful and customizable. Really excited to start using this.

  • sonald's profile picture

    @sonaldc

    Finally.

  • Ashutosh Kumar's profile picture

    @Ashutos67626514

    Exciting update! Hooks will greatly enhance customization. Looking forward to exploring its capabilities in detail.

  • Roberto Carvajal's profile picture

    @netkrash

    does this run on non interactive mode as well?

  • Kshitij Mishra | AI & Tech's profile picture

    @DAIEvolutionHub

    this is great

  • Saïd Aitmbarek's profile picture

    @SaidAitmbarek

    based work guys! would love a collab w/ @microlaunchhq btw

  • Tony Casey's profile picture

    @TonyCaseyIRL

    this is great, i'll add support to the lisa memory plugin

  • Gaurav Tewatia's profile picture

    @GAURAV_isgaurav

    I have always wondered but what exactly is difference about these agents when running inside a ide vs running as a cli tool. For example we have a codex chat in vscode UI and then we also have a codex cli whats exactly they differ in?