Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Antigravity profile skill symlinks inflate skill paths and evict global skills from agy's prompt budget #49726

Openfull-poulet(GitHub profile, opens in a new tab) opened this issue 0 comments

Summary

T3 Code creates each Antigravity profile under <stateDir>/providers/antigravity/<64-char-sha256>/ and symlinks <profile>/config/skills -> ~/.gemini/config/skills (and <profile>/antigravity-cli/skills -> ~/.gemini/antigravity-cli/skills).

agy prints each discovered skill's configured (unexpanded) path into its <skills> system prompt block and counts it against its skill-list character budget, dropping skills once the budget is exceeded. Because every global skill path repeats the ~90–150+ character private profile prefix instead of the shorter ~/.gemini/... path, users with ~100+ skills lose ~9–15 KB of budget and have global skills evicted prematurely.

Observed reproduction (agy 1.5.16, Linux)

With 135 global skills under <home>/.gemini/config/skills (~340-char descriptions each) plus 1 skill in <home>/.gemini/antigravity-cli/skills and 1 extra skill via <home>/.gemini/config/skills.json, launching agy acp --gemini-dir <profile> --app-data-dir antigravity-acp with T3 Code's current symlink layout:

  • Skills kept in <skills> prompt block: 113 / 135 (22 skills evicted)
  • Advertised skill path length: 159 chars (<stateDir>/providers/antigravity/<64-char-sha256>/config/skills/<name>/SKILL.md) vs 67 chars (<home>/.gemini/config/skills/<name>/SKILL.md) — 92 extra chars per skill
  • <skills> block size: 61,279 chars (budget saturated)

Expected behavior

T3 Code should reference the user's existing ~/.gemini skill roots from <profile>/config/skills.json using their shorter absolute ~/.gemini/... paths (and inherits for ~/.gemini/config/skills.json) instead of symlinking <profile>/config/skills and <profile>/antigravity-cli/skills, so agy advertises short paths and avoids unnecessary skill-budget eviction.

  1. tanstack-source added labelsbug

Sign in to join this conversation.