t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Antigravity plugin skills in T3's per-instance profile never appear in the skills list

Open p4cs-974 opened this issue 1 week ago • 0 comments

Before submitting

  • [x] I searched existing issues. This overlaps with others; see Related issues below.
  • [x] I included enough detail to reproduce or investigate the problem.

Related issues

  • #28116 (open), "Antigravity does not expose the installed plugins". I read it and its comments. It reports plugins installed with the Antigravity app or agy into ~/.gemini/config/plugins, which T3 threads can't use at all: the agent says they don't exist, and their MCP servers don't load. This issue is narrower and more specific. The plugin sits in T3's own per-instance Antigravity profile, and Antigravity does load it inside T3 threads. Its hook runs and its skills can be read, and the ACP server advertises them. The only gap is T3's skills list, which comes from T3's own disk scan.
  • #38511 (closed as a duplicate of #35611) raised the same scanner gap as a side point. Its main subject was stale slash-command snapshots.
  • #35611 (open) covers advertised slash commands not reaching the composer. That's a separate path: this issue is about skills from discoverAntigravitySkills, which stays without plugin skills even after available_commands_update arrives.

If you'd rather track this under #28116, please close this as a duplicate. The details below should still help there.

Area

apps/server

Steps to reproduce

  1. Put a valid Antigravity plugin with a skills/ folder in T3's profile for an Antigravity instance: <profile>/config/plugins/<name>/, where <profile> is ~/.t3/userdata/providers/antigravity/<sha256 of instance id>. My plugin is t3-pstack 2.5.0, and agy plugin validate <dir> reports skills 66 · agents 4 · hooks 1.
  2. Restart the Antigravity provider and open a new Antigravity thread.
  3. Look at the provider's skills in T3.

Expected behavior

The plugin's skills appear in T3's skills list, as they do for Claude Code and Codex plugins.

Actual behavior

None of the plugin's skills appear. Only skills from the directories T3 scans (below) are listed.

Antigravity itself loads the plugin in T3 threads:

  • The ACP log shows Advertising 13 slash commands before the plugin was added and Advertising 79–82 slash commands after.
  • <profile>/antigravity-acp/plugin_data/<name>/ gets created.
  • The plugin's root hooks.json session-start hook runs, and the agent reads <profile>/config/plugins/<name>/skills/<skill>/SKILL.md.

Cause (from the strings in the bundled server build, so I don't have exact source lines): in src/provider/Drivers/AntigravitySkills.ts, discoverAntigravitySkills scans only these roots:

  • antigravityUserSkillDirectories(path.join(userHome, ".gemini")), which gives ~/.gemini/config/skills and ~/.gemini/antigravity-cli/skills
  • <cwd>/.gemini/skills, <cwd>/.agents/skills, <cwd>/.agent/skills

It never scans <profile>/config/plugins/*/skills. AntigravityProvider.onAvailableCommands updates slashCommands, but each workspace snapshot's skills still comes from discoveredSkills, so plugin skills never reach the skills list.

Suggested fix: in discoverAntigravitySkills, also scan <profileDirectory>/config/plugins/*/skills/*/SKILL.md, and possibly ~/.gemini/config/plugins/*/skills, which would also cover #28116.

  • Skip plugins that config/config.json disables (plugins.<name>.enabled: false).
  • Give them a plugin scope or carry the plugin name, so they don't collide with user skills of the same name (see #11161).
  • Keep them within MAX_SCAN_ENTRIES and MAX_SCAN_BYTES (compare #32161).

Impact

Major degradation or frequent failure

Version or commit

0.1.11-nightly.20261118.4903

Environment

Linux x64, T3-managed Antigravity ACP 1.5.12 (oauth-personal), plugin in <profile>/config/plugins/t3-pstack (66 skills, 4 agents, 1 hook)

Logs or stack traces

# <profile>/antigravity-acp/log/acp-server-*.log
00:23:35 updates.go:517] Advertising 13 slash commands for session 65466bdd-…   # before the plugin was copied in
00:34:03 updates.go:517] Advertising 79 slash commands for session 01019426-…   # after
00:39:20 updates.go:517] Advertising 82 slash commands for session 3bcde0ab-…

Workaround

None that's clean. agy plugin install writes to ~/.gemini/config/plugins and ignores GEMINI_HOME, and T3 doesn't scan that folder either. Copying the skills into ~/.gemini/config/skills makes them show up. But linkAntigravityUserSkills links that folder into the profile, so Antigravity then loads every skill twice: once from the plugin and once as a standalone skill.

p4cs-974 avatar Nov 19 '26 04:11 p4cs-974