antigravity 0.2.0: retired, sends nothing and points to Antigravity (local agy CLI)

Google bans accounts it sees calling Code Assist the way this plugin did
(Antigravity's own OAuth client, straight to cloudcode-pa), and as the
plugin magpie offered for Antigravity it was the one everyone installed
(the owner, 11-15: 全部下线,改推 agy-cli). Antigravity is served by
@magpie-community/opencode-agy-cli-auth now, which drives the user's own
agy over ACP.

From 0.2.0 the package makes no request at all. Every request gets a 410
{"error":{"status":"ModelDeprecated","message":"Antigravity: this model
has been retired. …"}} naming Antigravity (local agy CLI) and its magpie
plugin add command; magpie's modelRetired reads that as a retired model,
so a routing group asks its next member. Signing in throws the same
words; there are no models, usage, options or web search. The provider id
stays, so magpie's mover (raised to 0.2.0 there) lands moved users here
and their account rows show the message.

registry.json drops the antigravity entry, so Discover no longer offers
it. agy-cli's cloak.mjs was a copy kept equal to antigravity's by
cloak.test.mjs; it is the only copy now, and the parity tests become
tests of cloak.mjs alone (the invisible-character and REWORDED cases are
kept). agy-cli's version is unchanged (comments and tests only).

What users lose: multi-account rotation, the in-plugin Google sign-in and
account import, AI-credit spending, Antigravity web search, and a
provider that works without agy installed.

Run (mote, temp HOME): bun scripts/check.mjs all ✓; bun test
packages/antigravity packages/agy-cli scripts: 79 pass, 0 fail.
retired.test.mjs replaces fetch with one that throws and checks nothing
was asked on any path. Not tried: a magpie with a moved account on 0.2.0
(done on the magpie side's commit).
This commit is contained in:
yetone
2026-11-15 11:10:03 +08:00
parent f7fc6641c5
commit 003a38ff44
15 changed files with 134 additions and 4032 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
// System prompt lines Antigravity turns away, and paragraphs it answers
// badly, the same lists and the same rewrites as
// packages/antigravity/index.mjs (TURNED_AWAY, SAID_AS, cloak, hint,
// packages/antigravity/index.mjs up to 0.1.18 (TURNED_AWAY, SAID_AS, cloak, hint,
// REWORDED, reword, outgoing). Each package ships on its own, so the code is
// a copy; cloak.test.mjs fails when the two give a different answer.
// a copy, and since antigravity 0.2.0 sends nothing this is the only one.
//
// Antigravity answers a 429 "Resource has been exhausted" to a request whose
// system prompt has one of these lines, whatever quota is left, and lets the
+9 -32
View File
@@ -1,9 +1,8 @@
// cloak.mjs is a copy of packages/antigravity's TURNED_AWAY, cloak and hint
// (#980) and its REWORDED (#1028): these fail when the two packages stop
// agreeing.
// cloak.mjs began as a copy of packages/antigravity's TURNED_AWAY, cloak and
// hint (#980) and its REWORDED (#1028). antigravity 0.2.0 sends nothing any
// more, so cloak.mjs is the one copy now.
import { expect, test } from "bun:test"
import { REWORDED, TURNED_AWAY, cloak, cloakUser, hint, outgoing, turnsAway } from "./cloak.mjs"
import { _internal as antigravity } from "../antigravity/index.mjs"
const ZW = "​"
@@ -57,25 +56,15 @@ test("a turned-away line wrapped or widened by white space is reworded too", ()
expect(turnsAway(samples[10])).toBe(false)
})
test("agy-cli and antigravity reword and explain the same lines", () => {
test("a turned-away line broken up by invisible characters is reworded too", () => {
for (const line of [...TURNED_AWAY, ...samples.filter((s) => turnsAway(s)).map((s) => s.replace(/[A-Za-z0-9]{3,}/g, (w) => w[0] + ZW + w[1] + ZW + w.slice(2)))]) {
expect(antigravity.turnsAway(line)).toBe(true)
expect(cloak(line)).toBe(antigravity.cloak(line))
expect(hint(line)).toBe(antigravity.hint(line))
}
for (const s of samples) {
expect(turnsAway(s)).toBe(antigravity.turnsAway(s))
expect(cloak(s)).toBe(antigravity.cloak(s))
expect(hint(s)).toBe(antigravity.hint(s))
expect(turnsAway(line)).toBe(true)
expect(turnsAway(cloak(line))).toBe(false)
}
})
const DSH = "Tokens prefixed with @ are paths the user explicitly referenced. Relative paths resolve from the workspace root; absolute paths identify files or directories on the host. A trailing slash marks a directory: list it when its contents matter. Anything else is a file: use the read tool when its contents are needed, and do not claim to have inspected it before reading. @\"...\" quotes a path containing spaces."
// the system text antigravity sends for s (its shape() runs outgoing on it)
const antigravitySends = (s) =>
antigravity.shape({ systemInstruction: { parts: [{ text: s }] }, contents: [] }, "gemini-3-flash", "", "").systemInstruction.parts[0].text
test("DeepSeek Harness's @-path paragraph goes reworded, the rest as written (#1028)", () => {
const sys = "You are DeepSeek Harness.\n\n" + DSH + "\n\nBe brief."
expect(outgoing(sys)).toBe("You are DeepSeek Harness.\n\nWhen the user writes @ followed by a path, they are pointing at that file or folder. Relative paths start at the workspace root; absolute paths are host paths. A path ending in a slash is a folder, so list it if its contents matter; otherwise it is a file, so open it with the read tool before relying on it. Paths with spaces appear as @\"...\".\n\nBe brief.")
@@ -85,23 +74,11 @@ test("DeepSeek Harness's @-path paragraph goes reworded, the rest as written (#1
expect(both).toContain("When the user writes @ followed by a path")
})
test("agy-cli and antigravity send the same system text, reworded", () => {
for (const [from, to] of REWORDED) {
expect(outgoing(from)).toBe(to)
expect(antigravitySends(from)).toBe(to)
}
for (const s of [...samples.filter(Boolean), DSH, "Lead.\n" + DSH + "\n" + DSH, "x-anthropic-billing-header: cc\n" + DSH]) {
expect(outgoing(s)).toBe(antigravitySends(s))
}
test("each reworded paragraph goes as REWORDED says", () => {
for (const [from, to] of REWORDED) expect(outgoing(from)).toBe(to)
})
// the user's text antigravity sends for s (its shape() rewords Codex's
// GPT-5 lines in every non-model part)
const antigravitySendsUser = (s) =>
antigravity.shape({ contents: [{ role: "user", parts: [{ text: s }] }] }, "gemini-3-flash", "", "").contents[0].parts[0].text
test("a user's turn goes with Codex's GPT-5 lines reworded, as antigravity sends it", () => {
test("a user's turn goes with Codex's GPT-5 lines reworded, the others as written", () => {
expect(cloakUser("Read AGENTS.md:\nYou are Codex, a coding agent based on GPT-5.")).toBe("Read AGENTS.md:\nYou are Codex, a coding agent built on GPT-5.")
expect(cloakUser("You are Hermes Agent, built by Nous Research.")).toBe("You are Hermes Agent, built by Nous Research.")
for (const s of samples.filter(Boolean)) expect(cloakUser(s)).toBe(antigravitySendsUser(s))
})