t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Antigravity in T3 doesn't read ~/.agents/skills, inconsistent with agy CLI and App

Open zhedream opened this issue 20 hours ago • 1 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Add a skill under ~/.agents/skills (the location used by the official agy CLI and the Antigravity app).
  2. Confirm that the official agy CLI and the Antigravity app can both see and use the skill.
  3. Open a default Antigravity session in T3 Code.

Expected behavior

Antigravity in T3 should read ~/.agents/skills, the same way the official agy CLI and the Antigravity app do.

Actual behavior

The skill does not appear in T3's Antigravity session. This is inconsistent with the official CLI and app.

Related, not duplicates: #41138 (global AGENTS.md), #38925 (plugin skills), #46432 (instance skills.json). Same pattern — something agy reads natively isn't carried into T3's isolated GEMINI_HOME — but none cover ~/.agents/skills. Happens with both the managed runtime and my own agy install.

Impact

Minor bug or occasional failure

Version or commit

T3 Code nightly

Environment

Windows 10, T3 Code nightly.20261201.5530, agy 1.5.20

Logs or stack traces


Screenshots, recordings, or supporting files

No response

Workaround

No response

zhedream avatar Dec 01 '26 11:12 zhedream

Can confirm this reproduces on Linux as well. Adding environment details and a source-level diagnosis from v0.1.13 (bc0f04da94):

Environment

  • T3 Code: v0.1.13 (bc0f04da94), running as a Linux x64 systemd background service (7.0.0-43-generic, Node v26.13.1), accessed from T3 Code Desktop on macOS
  • Antigravity: managed runtime 1.5.20 (antigravity acp)
  • Local skills: 60+ valid skills symlinked under ~/.agents/skills/<name>/SKILL.md

Diagnosis

  1. Antigravity 1.5.16 added ~/.agents/skills discovery. The embedded changelog in the installed 1.5.20 binary notes under ## 1.5.16:

    Added discovery of user-global skills in ~/.agents/skills, so cross-tool Agent Skills appear in /skills, / autocomplete, and agent turns, with skills in ~/.gemini taking precedence on name collisions.

  2. T3 Code's skill discovery skips ~/.agents/skills. In apps/server/src/provider/Drivers/AntigravitySkills.ts (v0.1.13, line 26):
    /** Link private GEMINI_HOME skills to ~/.gemini; ~/.agents/skills is ignored because .agents/skills is project-only. */
    
    discoverAntigravitySkills (lines 260–270) only scans ~/.gemini/config/skills, ~/.gemini/antigravity-cli/skills, workspace .gemini/skills / .agents/skills / .agent/skills, skills.json, and profile plugins. ~/.t3/caches/antigravity.json ends up with "skills": [].
  3. Isolated --gemini-dir / GEMINI_HOME doesn't carry ~/.agents/skills into the ACP session. T3 launches antigravity acp --gemini-dir <profileDirectory> --app-data-dir antigravity-acp, and linkAntigravityUserConfig in apps/server/src/provider/antigravityAuthSupport.ts (lines 263–334) only links ~/.gemini/config/skills, ~/.gemini/antigravity-cli/skills, ~/.gemini/AGENTS.md, ~/.gemini/GEMINI.md, and ~/.gemini/config/skills.json. In a fresh session, the acp-server log shows updates.go:831] Advertising 13 slash commands (built-ins only) and 0 skills from ~/.agents/skills.
  4. docs/user/providers-antigravity.md (line 40) also still documents the pre-1.5.16 behavior.

Workaround

Add ~/.agents/skills using an absolute path (Antigravity CLI does not expand ~, per #40187) in ~/.gemini/config/skills.json:

{
  "entries": [
    { "path": "/absolute/path/to/home/.agents/skills" }
  ]
}

Because linkAntigravityUserConfig symlinks ~/.gemini/config/skills.json into the managed profile and discoverAntigravitySkills reads it as well, this surfaces the skills in both the live Antigravity session and T3's $ picker.


Drafted via T3 Code triage using Gemini 4 Neon (High) on Antigravity.

AlexBabescu avatar Dec 01 '26 14:12 AlexBabescu