Skip to content

[Feature Request] Add support to Antigravity CLI #1975

Closed

Description

@foobra

Activity

  1. pszymkowiak commented on May 26, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    ✨ Category feature
    🟢 Priority low
    🎯 Confidence 72%

    Summary

    Feature request to add support for 'Antigravity CLI' — likely a fictional/non-existent tool; needs verification before acting on


    Triaged automatically by wshm · This is an automated analysis, not a human review.

  2. bstordrup commented on Jun 14, 2026

    @bstordrup

    As far as I have been testing using Antigravity CLI and manually editing files, supporting hooks will require editing the ~/.gemini/antigravity-cli/hooks.json or ~/.gemini/config/hooks.json to include this content

    {
      "RtkHook": {
        "enabled": true,
        "PreInvocation": null,
        "PostInvocation": null,
        "Stop": null,
        "PreToolUse": [
          {
            "matcher": "run_shell_command",
            "hooks": [
              {
                "type": "command",
                "command": "~/.gemini/hooks/rtk-hook-gemini.sh",
                "timeout": 0
              }
            ]
          }
        ],
        "PostToolUse": null
      }
    }
    

    Both locations works - agy see the hooks - but only the ~/.gemini/config/hooks.json is documented in Antigravity Hooks documentation, and that one takes precedence if both exists.

  3. julian-carpenter commented on Jun 15, 2026

    @julian-carpenter

    Yes, I can confirm this. However, I am unsure if the matcher should be "run_shell_command" as was with Gemini or "run_command", as is listed in the AGY CLI doc

  4. bstordrup commented on Jun 15, 2026

    @bstordrup

    Using the specified hook definition, I did manage to get some results - I was able to see a result when running rtk gain afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions