Skip to content

plugin add --target antigravity-cli installs the Claude build and ignores native .antigravity-plugin manifests #996

Done

Description

@jskswamy

The situation

Antigravity (agy) officially defines native plugins as any directory containing plugin.json, .antigravity-plugin/plugin.json, or .gemini-plugin/plugin.json (with root hooks.json and mcp_config.json).

In a multi-harness repo that ships both a Claude Code build and a native Antigravity build for the same plugin:

.claude-plugin/marketplace.json       plugins: [{ "name": "my-plugin", "source": "./plugins/claude-code/my-plugin" }]
plugins/claude-code/my-plugin/        .claude-plugin/plugin.json, hooks/hooks.json (Claude-format hook scripts)
plugins/antigravity/my-plugin/        .antigravity-plugin/plugin.json, hooks.json (Antigravity hook contract / shim)

On skillshare v0.30.12, two things break:

  1. .antigravity-plugin/plugin.json (and .gemini-plugin/plugin.json) are not recognized as native Antigravity manifests (internal/plugin/source_manifest.go only checks root plugin.json):

    agy plugin validate plugins/antigravity/my-plugin --json --strict
    # exit 0: manifest ".antigravity-plugin/plugin.json", hooks: 2, skills: 4
    
    skillshare plugin discover plugins/antigravity/my-plugin -g --json
    # ✗ no valid supported plugin manifest found; choose a plugin or marketplace directory
  2. No native Antigravity marketplace catalog is read (internal/plugin/source.go reads .agents/plugins/, .omp-plugin/, .claude-plugin/, .cursor-plugin/, .github/plugin/, .plugin/, and root marketplace.json):

    skillshare plugin discover <repo> -g --json
    # targetInfo["antigravity-cli"] resolves to .claude-plugin/plugin.json -> plugins/claude-code/my-plugin

    When skillshare plugin add/update --target antigravity-cli installs the Claude Code build, agy plugin install converts hooks/hooks.json into root hooks.json with matcher: "run_command" invoking the Claude-format hook script directly (without the plugin's native Antigravity shim). Any fail-closed Claude PreToolUse hook expecting .tool_input then blocks every run_command in agy with exit status 2.

This is the same pattern OMP hit in #587 (fixed in #588).

Ask

  1. Recognize .antigravity-plugin/plugin.json (and .gemini-plugin/plugin.json) alongside root plugin.json for antigravity and antigravity-cli targets in internal/plugin/source_manifest.go.
  2. Support a native Antigravity marketplace catalog (e.g. .antigravity-plugin/marketplace.json) in internal/plugin/source.go so antigravity / antigravity-cli resolve to the native build when present and fall back to .claude-plugin/marketplace.json only when absent (matching the .omp-plugin/marketplace.json precedence added in fix(plugins): honor native OMP marketplace builds #588).

Activity

  1. added a commit that references this issue on Nov 24, 2026
    e09dd1d
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions