Files
plugins/packages/antigravity-cloak
yetone 9e07c70627 antigravity 0.1.4, antigravity-cloak 0.1.4: omp's first line, "RFC 2119 keywords: ...", is broken up, so its prompt is no longer turned away with a 429 (eric_li8983 on X)
eric_li8983's 429 RESOURCE_EXHAUSTED after 0.1.3 was not quota. On the
owner's real Antigravity account (plenty of quota; "hi" with no system
prompt gives 200 on gemini-3.8-flash, claude-sonnet-4-6, gemini-3-flash),
oh-my-pi's real system prompt (captured from omp 's request to a local
server, 10.5KB) got 429 on all three. Bisected by hand: the sentence
"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL."
alone gets 429; its halves, the list without the final period, or "2120"
for "2119" get 200; the prompt without that line gets 200. Broken with a
zero-width space after the first and second character of each word, the
whole prompt gets 200 on the same three models.

The line is added to antigravity's TURNED_AWAY (with its own hint when the
cloak missed a reworded copy) and to antigravity-cloak's words.

Run: bun test packages/antigravity packages/antigravity-cloak on
magpie-desktop (wsl-run, HOME temp): 86 pass. Broken by hand (the TURNED_AWAY
entry removed): the new shape test and the 429 hint test go red, 2 fail.
Real account: omp's full prompt 200 on 3 models after, 429 before.
Not tried: omp's own run through magpie end to end (the user's AGENTS.md
and tools were not in the captured prompt); other omp prompt lines after
the cloak. Real quota 429s and the credits path are unchanged.
2026-11-11 14:32:50 +08:00
..

@magpie-community/middleware-antigravity-cloak

Claude Code and Claude Desktop on an Antigravity account, as magpie gateway middleware.

Antigravity answers a request whose system prompt reads as Claude Code's or the Claude Agent SDK's (which Claude Desktop's chats use) with 429 Resource has been exhausted, however much quota is left. magpie shows it as a 400 that says so. Tried with a real account, Antigravity matches these pieces of the prompt:

  • Claude Code's billing line, x-anthropic-billing-header: …;
  • You are a Claude agent, built on Anthropic's Claude Agent SDK;
  • Codex's own prompt for its GPT-5 models, You are Codex, an agent based on GPT-5 or You are Codex, a coding agent based on GPT-5. A Codex chat begun on a GPT model keeps it after /model or a fork onto an Antigravity model, so that chat 429s while a new one works;
  • Hermes Agent's earlier default persona, Hermes Agent, an intelligent AI assistant created by Nous Research, which a SOUL.md the user edited keeps (Hermes' current default goes through). Breaking it after You doesn't help; it is broken after the H.

The same prompt goes through when each has a zero-width space (U+200B) inside it. This middleware puts two (after the first and the second character of each word; one after the first letter only was turned away again on 11-11) in x-anthropic-billing-header, Claude Agent SDK, those two Codex lines and Hermes' line, in the system prompt only, and only in what an Antigravity account is sent. Every other provider, a Claude subscription above all, gets the prompt as the agent wrote it, even in a routing group that tries Antigravity first. The model reads the words as before.

It needs a magpie with the onProvider hook (v0.1.1283 or later): an older magpie loads it and never calls it, so requests go as they came.

magpie v0.1.1641 and later break these same lines on an Antigravity account by themselves (magpie provider set antigravity prompt=as-written turns that off), so there this middleware adds only extraWords.

Install it from magpie's Plugins › Discover, or with magpie plugin add @magpie-community/middleware-antigravity-cloak.

Before you turn it on

  • This changes what Google is sent so that a request it means to refuse isn't refused. It may be against Antigravity's terms, and Google can ban the account for it. Use it on an account you can afford to lose.
  • Google can change what it matches at any time. Then the refusal comes back, and magpie may no longer recognise it as this refusal: it can read as a real quota running out and rest the account. If that happens, add the new words to extraWords, or turn the plugin off.

Options

{ "extraWords": [], "accounts": ["antigravity"], "off": false }
  • extraWords: more words to break the same way, matched whatever their case.
  • accounts: the subscriptions it acts on, by kind. antigravity is the default.
  • off: leave every request as it came.

中文:Antigravity 看到 Claude Code / Claude Agent SDK / Codex GPT-5 / Hermes Agent 旧版默认人设的系统提示词会回一个假的 429。这个中间件只在发给 Antigravity 账号的请求里,往 x-anthropic-billing-header、Claude Agent SDK 和 Codex 给 GPT-5 模型的身份行(在 GPT 模型上开始、再切到 Antigravity 模型的 Codex 对话会带着它),以及 Hermes Agent 旧版默认人设(SOUL.md)那句里插一个零宽空格,其他供应商(尤其是 Claude 订阅)收到的提示词不变。这样做可能违反 Antigravity 的条款,账号有被封的风险,请只用在可以承受损失的账号上。需要 magpie v0.1.1283 或更新版本。

After hexiaolv/magpie-antigravity-cloak (MIT), which breaks a longer list of words in every request, whatever provider it goes to.