Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): list skills from the paths in a plugin's plugin.json #43588

Mergedhazemkya(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/43588/headmerged by juliusmarminge View on GitHub

hazemkya(GitHub profile, opens in a new tab)commented

Problem

Antigravity plugins can list their skills in plugin.json, and agy loads those skills. T3 Code's skill discovery never read the manifest and only scanned <plugin>/skills, so any skill a plugin listed somewhere else was missing from the $ picker. Plugins converted from Claude Code often do this (for example "skills": ["./skills/engineering/tdd", ...]).

It also got the opposite case wrong: it listed skills from plugin folders that agy refuses to load, either because they have no manifest or because their manifest doesn't parse.

To reproduce, put a plugin in an Antigravity instance profile whose .antigravity-plugin/plugin.json has "skills": ["./engineering", "./skills/review/strict"]. agy plugin validate counts its 3 skills, but the $ picker on main shows only the one in skills/.

Change

discoverAntigravitySkills now reads each plugin's manifest the way agy's loader does:

  • Manifest choice: the first of .antigravity-plugin/plugin.json, .gemini-plugin/plugin.json and plugin.json that exists. A plugin with no manifest is skipped, and so is one whose first manifest doesn't parse; agy does not fall back to the next one.
  • skills field: a string or a list. Its paths resolve relative to the plugin folder and are added to skills/, not used instead of it. Each path is a collection, a skill folder or a SKILL.md file, scanned one level deep through the existing manifest scan mode.
  • Agent Plugins manifests: a manifest with an Agent Plugins $schema keeps only skills/. agy ignores skills there while its enable-agent-plugins-spec flag is on.

Skipping plugins without a readable manifest belongs to the same change: once discovery reads the manifest the way agy does, a plugin agy can't load has no skills to list.

Scope

Fixes #43586. The bug fix touches one server module, apps/server/src/provider/Drivers/AntigravitySkills.ts, and its tests. There are no contract, client or docs changes. It follows #38960, which added plugin skill discovery with the fixed skills/ path.

Verification

Real app. I ran vp run dev with empty state (--no-seed) and added an Antigravity instance with a fake Gemini API key, using agy 1.5.17. I added two test plugins to its profile:

  • demo, whose manifest lists ./engineering and ./skills/review/strict, and which has one skill in skills/.
  • bare, which has no manifest.

I then typed $ in a Gemini 4 Neon thread.

mainThis branch
Before: the picker shows demo:basic and bare:orphanAfter: the picker shows demo:basic, demo:collected and demo:strict

On main, the picker misses the two manifest-listed skills and shows bare:orphan, which agy never loads. With this branch it shows the 3 skills agy plugin validate counts for demo, and nothing from bare.

Against agy.

  • Throwaway plugins: I ran agy plugin validate --json (agy 1.5.17) on 33 plugins covering every rule above, plus ../ paths, missing paths, a BOM, "skills": null, and a manifest that is a JSON array. For each one I compared agy's skill count with T3's discovery. main disagreed on 23 of the 33; this branch matches all 33. For the ../ case, both sides read the plugin through the same path, since agy resolves .. from the plugin's path.
  • Real profile: on a real profile with four plugins, main listed 59 skills while agy advertised 87 skill commands. This branch lists all 87.

Tests. The plugin case in AntigravitySkills.test.ts now covers manifest-listed skills, manifest precedence, a single-string skills value and a BOM. A new case covers plugins agy does not load. Both fail on main: the first misses 4 skills, the second lists bare-skill and broken-skill. Both pass here. vp run check:changed passes.

Not checked:

  • I didn't run a live Antigravity turn, because the API key is fake. Only the skill list is verified.
  • I checked only the web client on macOS. Desktop and mobile show the same server-provided skill list.
  • I didn't test Windows paths.

Written by Claude Opus 5.5 in T3 Code (Claude Code harness).

🤖 Generated with Claude Code

    1. Pushed30b6734

    2. Evidence

      In fresh databases with identical synthetic plugins, connect Antigravity, open a seeded thread, select Gemini 3.8 Flash and type $. Chromium 156/Linux, 1280×800, light theme, agy 1.5.18.

      BeforeAfter
      5e37e6db5630b6734cd1
      Before: manifest skills missing; invalid plugins includedAfter: collected, default and listed shown; invalid plugins excluded
      Omits demo:collected and demo:listed; includes missing:ghost and malformed:invalid.Includes all three demo skills; excludes ghost and invalid.
      Before recordingAfter recording

      Scenario and synthetic seed. scenarios:prove exited 0: failed on base, passed on head.

      Native plugin probe and output confirm agy loads collected, default and listed. Caveat: agy plugin list 1.5.18 includes the malformed fixture using its fallback manifest, while fixed T3 excludes it.

      Not shown:

      • Native-loader parity for malformed-first-manifest precedence is not established: agy plugin list 1.5.18 includes invalid through the valid fallback manifest, whereas the fixed T3 picker excludes it as requested.
      • Did not exercise skill invocation in an Antigravity model turn, the reporter's full 87-skill profile, disabled-plugin filtering, Agent Plugins schema handling, or alternate manifest path formats; proof covers the specified picker fixtures.
    3. juliusmarminge added labelstakeover:ready

    4. juliusmarminge removed labelstakeover:in-progress

    5. juliusmarminge merged thisd389f8b

    6. juliusmarminge closed this

    7. juliusmarminge removed labelstakeover:ready

Sign in to join this conversation.