Skip to content

Antigravity sends $skill mentions as plain text and fails to invoke disable-model-invocation skills #39324

Description

@zytact

What happened

Invoking a skill with $ship in T3 Code works on Claude Code, but on Antigravity the agent could not find the skill and guessed what the workflow should be instead. The skill had disable-model-invocation: true in its frontmatter. Even for skills without that flag, $skill dispatch on Antigravity is not implemented and relies on the model guessing from plain text.

Diagnosis

On Antigravity, T3 Code does not dispatch $skill mentions before sending the turn over ACP session/prompt:

  1. makeAntigravityAcpAdapterFlavor (apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts:216-315) does not implement rewriteUserText, so packages/provider-acp/src/server/adapter.ts:8670-8680 sends turnInput.message.text verbatim to Antigravity ACP.
  2. parseSkillFrontmatter in apps/server/src/provider/Drivers/AntigravitySkills.ts:43-110 only parses name and description and ignores disable-model-invocation (never setting userInvocationOnly).
  3. Antigravity 1.5.12 hides disable-model-invocation: true skills from the model's <skills> system-prompt catalog, while still advertising them as native /name commands in available_commands_update.
  4. For normal skills, $name only works opportunistically because the model sees the skill in <skills> and infers from the literal text $name that it should read that SKILL.md. For disable-model-invocation: true skills, the skill is excluded from <skills> and T3 neither rewrites $name nor passes the skill's path or contents, so the model cannot find it and guesses.
  5. Other providers handle $skill explicitly: Claude Code (ClaudeSkillDispatch.ts), Cursor (packages/provider-cursor/src/server/skills.ts and adapter.ts), OpenCode (packages/provider-opencode/src/server/v2/adapter.ts), and Grok (packages/provider-grok/src/server/adapter.ts).
  6. Checked main (42d23872) against v0.1.11-nightly.20261119.4928 (e8c4824b): no commits touch Antigravity $skill dispatch.

Steps to reproduce

  1. Put a user skill in ~/.gemini/config/skills/<name>/SKILL.md with disable-model-invocation: true in its frontmatter.
  2. Start a thread on the Antigravity provider in T3 Code.
  3. Send a prompt invoking the skill with $<name> (for example, Fix X. $<name>).
  4. Observe that Antigravity receives literal $<name> text, does not see <name> in its <skills> catalog, and guesses what the skill does instead of reading its SKILL.md.
  5. Control: sending $<name> on a Claude Code thread invokes the skill.

Version

0.1.11-nightly.20261119.4928 (triage CLI: 0.1.11-nightly.20261119.4941)

Environment

Linux x64 (WSL2 6.18.58.1-microsoft-standard-WSL2), Node v26.13.1, T3 Code desktop app connected to local server, Antigravity 1.5.12 (Gemini 4 Neon)

Evidence

# Local provider cache (~/.t3/caches/antigravity.json) shows Antigravity 1.5.12 advertises
# disable-model-invocation: true skills as native slash commands via available_commands_update:
{ "name": "ship", "description": "Take a task from implementation to a filed PR..." }
{ "name": "maintain-verification-skill", "description": "Periodic pass that keeps..." }

# Thread interaction (redacted):
User:      ... So fix all those things. $ship
Assistant: (guessed the workflow instead of reading ~/.gemini/config/skills/ship/SKILL.md)
User:      it seems you

Related issues

#15606 (same bug on Cursor, fixed), #31235 (same bug on Muse, open), #9161 and #20367 (same bug on Claude, fixed). None cover Antigravity.

Fix applied or workaround

No server fix applied. Workarounds: start the message with / so Antigravity ACP expands it as a native slash command, or remove disable-model-invocation: true from the skill frontmatter (the reporter renamed the skill and removed disable-model-invocation: true).

Filed by

Antigravity (Gemini 4 Neon, High) via t3 triage

Activity

  1. added
    via-triage
    on Nov 19, 2026
  2. boom-bang commented on Nov 25, 2026

    @boom-bang

    Note

    🤖 Claude Opus 5.5 responding on behalf of @boom-bang

    The bug is still there on main at 4568a1b741 (v0.1.13 nightly). It also hits skills installed through an Antigravity plugin, not only skills in ~/.gemini/config/skills.

    Setup: t3-pstack installed as an Antigravity plugin (config/plugins/t3-pstack/skills/), Gemini 4 Neon, T3 v0.1.12.

    Verified:

    • The model's <skills> list contains the 9 plugin skills without disable-model-invocation and none of the other 58. I checked this by asking a probe thread to print the list it received.
    • $bro invoke this skill reaches the model as plain text. In a fresh thread the model guessed that $bro was a typo for browser. It read browser/SKILL.md, then ran fd and found bro/SKILL.md after 5 tool calls. When an earlier turn had already listed the plugin's skills folder, $bro worked because the path was already in context.
    • /bro invoke this skill in a fresh thread reads plugins/t3-pstack/skills/bro/SKILL.md as its first step, so the /name workaround also works for plugin skills.
    • Invoke this skill /bro (slash mid-message) is plain text too. The model found the skill only by searching the disk.
    • On main, rewriteUserText is still implemented only by the Grok adapter (packages/provider-grok/src/server/adapter.ts:387). Antigravity uses the shared ACP path, which passes $name through unchanged.

    #39355 and #40504 both look like they would fix this. Neither has been merged yet.

  3. zhanglg12 commented on Nov 30, 2026

    @zhanglg12

    The mobile / autocomplete itself produces the $skill text tracked here. Reproduced with T3 Code Beta 0.1.13, server 0.1.13 on macOS arm64, and an Antigravity gemini-4-neon thread.

    1. Use an Antigravity plugin skill named clean-project with disable-model-invocation: true in its SKILL.md.
    2. At the start of the mobile composer, type /clean and tap skill:<plugin>:clean-project under Commands.
    3. The draft becomes $clean-project . Sending it delivers the literal token to Antigravity ACP, and the skill body is absent from the prompt.

    The / menu creates that row from the discovered skill catalog with type: "skill". resolveComposerCommandSelection inserts $<name> for every skill row, regardless of the active provider or which trigger opened the menu. Menu construction · Selection handler

    When ACP also advertises the same bare command name, getProviderSlashCommandsForSlashMenu filters that native row out. Keeping the advertised command selectable at the start of the draft would let ACP handle the invocation. Inline $name mentions still need the dispatch behavior originally reported here. Command filtering

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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions