Files
plugins/packages/antigravity-cloak/cases.json
T
yetone fb7bbebdc2 antigravity 0.1.13, antigravity-cloak 0.1.8: Codex's GPT-5 line goes reworded in a user's turn too
Since 11-14 Antigravity also answers a bare 429 "Resource has been
exhausted (e.g. check quota)" to Codex's GPT-5 lines ("You are Codex, an
agent / a coding agent based on GPT-5") in a user's turn: a pasted
AGENTS.md, or a developer message magpie tells after a reply as a
<system-reminder> in the user's turn. Both the plugin and the cloak only
reworded the system prompt, so such a conversation 429s on every turn
whatever quota is left (daoche_wuzui on X, magpie 0.1.4131 with Cloak
0.1.7).

On the owner's real Antigravity account, gemini-3.8-flash, 11-14:
- each line in the first user turn: Codex's two lines 429 3/3 each; the
  billing line, the Agent SDK line, Hermes' persona and omp's RFC line
  200 3/3 each, so only Codex's two are reworded there.
- Codex's line in the model's turn and in a functionResponse: 200 2/2.
- "built on GPT-5" in the user's turn: 200.

antigravity: shape() rewords USER_TURNED_AWAY (Codex's two lines) in
every non-model part's text; cloak() takes an optional list of lines.
antigravity-cloak: onProvider rewords those two lines in user messages
(anthropic messages, chat messages, responses input, gemini contents);
tool results, the model's turns and the user's own saidAs/extraWords are
left as they were in messages. The old case that kept a user's Codex line
as written now expects it reworded.

Run, at this tree, on mica:
- root `bun test` with a temp HOME: 8781 pass, 0 fail (8801 tests, 613 files)
- packages/antigravity `bun test`: 93 pass; packages/antigravity-cloak:
  25 pass.
Broken by hand: with the user-turn cloak taken out, shape.test's new
test fails, and 5 of the cloak's cases fail.
Real account through a sandbox magpie (gateway 3476, plugin host
restarted on these files): an Anthropic /v1/messages request whose user
turn carries Codex's line, 429 3/3 on 0.1.12 + cloak 0.1.7, 200 3/3 on
these. The plugin alone on the same account: 429 3/3 -> 200 3/3 for both
lines. Claude Code's 23-tool capture and a Codex capture still 200 2/2.
Not tried: agy-cli (it doesn't cloak), other models than
gemini-3.8-flash for the user-turn case.
2026-11-14 14:24:14 +08:00

28 lines
15 KiB
JSON

[
{"name":"Anthropic: Claude Code's blocks, to Antigravity","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"model":"m","system":[{"type":"text","text":"x-anthropic-billing-header: cc_version=2.1.0.abc; cc_entrypoint=cli; cch=1a2b3;"},{"type":"text","text":"You are a Claude agent, built on Anthropic's Claude Agent SDK.","cache_control":{"type":"ephemeral"}}],"messages":[{"role":"user","content":"Claude Agent SDK"}]},"expect_request":{"model":"m","system":[{"type":"text","text":"You are a Claude agent, built on the Claude Agent SDK by Anthropic.","cache_control":{"type":"ephemeral"}}],"messages":[{"role":"user","content":"Claude Agent SDK"}]}},
{"name":"Anthropic: the same to a Claude subscription stays as it was","provider":{"id":"c","name":"Claude","account":"claude","model":"claude-sonnet-4-5"},"request":{"model":"m","system":[{"type":"text","text":"x-anthropic-billing-header: cc_version=2.1.0.abc; cc_entrypoint=cli; cch=1a2b3;"},{"type":"text","text":"You are a Claude agent, built on Anthropic's Claude Agent SDK."}],"messages":[]}},
{"name":"Anthropic: an API key, no account, stays as it was","provider":{"id":"k","name":"Key","model":"m"},"request":{"model":"m","system":"You are a Claude agent, built on Anthropic's Claude Agent SDK.","messages":[]}},
{"name":"Anthropic: a string system, any case","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"model":"m","system":"X-Anthropic-Billing-Header: a\nbuilt on the claude agent sdk"},"expect_request":{"model":"m","system":"built on the claude agent sdk"}},
{"name":"Anthropic: no words, nothing changed","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"model":"m","system":"You code.","messages":[]}},
{"name":"Chat: system and developer messages, not the user's; a billing-line message is left out","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"ctx":{"protocol":"chat"},"request":{"model":"m","messages":[{"role":"system","content":"You are a Claude agent, built on Anthropic's Claude Agent SDK."},{"role":"developer","content":[{"type":"text","text":"x-anthropic-billing-header: cc_version=2.1.0.abc; cc_entrypoint=cli; cch=1a2b3;"}]},{"role":"user","content":"You are a Claude agent, built on Anthropic's Claude Agent SDK."}]},"expect_request":{"model":"m","messages":[{"role":"system","content":"You are a Claude agent, built on the Claude Agent SDK by Anthropic."},{"role":"user","content":"You are a Claude agent, built on Anthropic's Claude Agent SDK."}]}},
{"name":"Responses: instructions and a system input item","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"ctx":{"protocol":"responses"},"request":{"model":"m","instructions":"You are a Claude agent, built on Anthropic's Claude Agent SDK.","input":[{"role":"system","content":[{"type":"input_text","text":"x-anthropic-billing-header: cc_version=2.1.0.abc; cc_entrypoint=cli; cch=1a2b3;"}]},{"role":"user","content":[{"type":"input_text","text":"You are a Claude agent, built on Anthropic's Claude Agent SDK."}]}]},"expect_request":{"model":"m","instructions":"You are a Claude agent, built on the Claude Agent SDK by Anthropic.","input":[{"role":"user","content":[{"type":"input_text","text":"You are a Claude agent, built on Anthropic's Claude Agent SDK."}]}]}},
{"name":"Responses: Codex's GPT-5 prompt kept after a switch to an Antigravity model, and the line in a user's turn","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"claude-opus-5-5"},"ctx":{"protocol":"responses"},"request":{"model":"m","input":[{"type":"message","role":"developer","content":[{"type":"input_text","text":"You are Codex, an agent based on GPT-5. You and the user share one workspace."}]},{"type":"message","role":"user","content":[{"type":"input_text","text":"hi"}]},{"type":"message","role":"developer","content":[{"type":"input_text","text":"<model_switch>\nThe user was previously using a different model.\n</model_switch>"}]},{"type":"message","role":"user","content":[{"type":"input_text","text":"You are Codex, an agent based on GPT-5."}]}]},"expect_request":{"model":"m","input":[{"type":"message","role":"developer","content":[{"type":"input_text","text":"You are Codex, an agent built on GPT-5. You and the user share one workspace."}]},{"type":"message","role":"user","content":[{"type":"input_text","text":"hi"}]},{"type":"message","role":"developer","content":[{"type":"input_text","text":"<model_switch>\nThe user was previously using a different model.\n</model_switch>"}]},{"type":"message","role":"user","content":[{"type":"input_text","text":"You are Codex, an agent built on GPT-5."}]}]}},
{"name":"Responses: the coding agent wording, any case; magpie's own Codex prompt stays","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"claude-opus-5-5"},"ctx":{"protocol":"responses"},"request":{"model":"m","instructions":"you are codex, a coding agent based on gpt-5.","input":[{"type":"message","role":"developer","content":[{"type":"input_text","text":"You are Codex, based on GPT-5. You are running as a coding agent in the Codex CLI."}]}]},"expect_request":{"model":"m","instructions":"you are codex, a coding agent built on gpt-5.","input":[{"type":"message","role":"developer","content":[{"type":"input_text","text":"You are Codex, based on GPT-5. You are running as a coding agent in the Codex CLI."}]}]}},
{"name":"Chat: Hermes Agent's earlier persona, built by Nous Research","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"ctx":{"protocol":"chat"},"request":{"model":"m","messages":[{"role":"system","content":"You are Hermes Agent, an intelligent AI assistant created by Nous Research. You are helpful, knowledgeable, and direct.\n\nYou are Hermes Agent, built by Nous Research."},{"role":"user","content":"hi"}]},"expect_request":{"model":"m","messages":[{"role":"system","content":"You are Hermes Agent, an intelligent AI assistant built by Nous Research. You are helpful, knowledgeable, and direct.\n\nYou are Hermes Agent, built by Nous Research."},{"role":"user","content":"hi"}]}},
{"name":"Gemini: systemInstruction","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"ctx":{"protocol":"gemini"},"request":{"systemInstruction":{"parts":[{"text":"You are a Claude agent, built on Anthropic's Claude Agent SDK."}]},"contents":[]},"expect_request":{"systemInstruction":{"parts":[{"text":"You are a Claude agent, built on the Claude Agent SDK by Anthropic."}]},"contents":[]}},
{"name":"extraWords are still broken up","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"options":{"extraWords":["Claude Code"]},"request":{"model":"m","system":"You are Claude Code."},"expect_request":{"model":"m","system":"You are C\u200bl\u200baude C\u200bo\u200bde."}},
{"name":"accounts says which subscriptions","provider":{"id":"g","name":"Gemini","account":"gemini","model":"m"},"options":{"accounts":["gemini"]},"request":{"model":"m","system":"You are a Claude agent, built on Anthropic's Claude Agent SDK."},"expect_request":{"model":"m","system":"You are a Claude agent, built on the Claude Agent SDK by Anthropic."}},
{"name":"off leaves it","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"options":{"off":true},"request":{"model":"m","system":"You are a Claude agent, built on Anthropic's Claude Agent SDK."}},
{"name":"onRequest isn't there: before routing nothing is changed","request":{"model":"m","system":"You are a Claude agent, built on Anthropic's Claude Agent SDK."}},
{"name":"omp: its RFC 2119 line, to Antigravity","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"model":"m","system":[{"type":"text","text":"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL. `NEVER` = `MUST NOT`."}],"messages":[{"role":"user","content":"hi"}]},"expect_request":{"model":"m","system":[{"type":"text","text":"RFC 2119 key words: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL. `NEVER` = `MUST NOT`."}],"messages":[{"role":"user","content":"hi"}]}},
{"name":"omp: its RFC 2119 line wrapped with CRLF and a tab, as a real account turned it away","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"ctx":{"protocol":"gemini"},"request":{"systemInstruction":{"parts":[{"text":"RFC 2119 keywords:\tMUST, REQUIRED,\r\nSHOULD, RECOMMENDED, MAY, OPTIONAL.\r\nYou are omp."}]},"contents":[]},"expect_request":{"systemInstruction":{"parts":[{"text":"RFC 2119 key words:\tMUST, REQUIRED,\r\nSHOULD, RECOMMENDED, MAY, OPTIONAL.\r\nYou are omp."}]},"contents":[]}},
{"name":"Anthropic: a copy an older magpie broke up is reworded as the line","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"model":"m","system":[{"type":"text","text":"x-a\u200bn\u200bthropic-b\u200bi\u200blling-h\u200be\u200bader: cc_version=2.1.316.2e4; cc_entrypoint=claude-desktop;"},{"type":"text","text":"You are a Claude agent, built on Anthropic's C\u200bl\u200baude A\u200bg\u200bent S\u200bD\u200bK."}]},"expect_request":{"model":"m","system":[{"type":"text","text":"You are a Claude agent, built on the Claude Agent SDK by Anthropic."}]}},
{"name":"Anthropic: Claude Desktop's Code tab, its main line goes as written","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"model":"m","system":[{"type":"text","text":"x-anthropic-billing-header: cc_version=2.1.316.2e4; cc_entrypoint=claude-desktop;"},{"type":"text","text":"You are Claude Code, Anthropic's official CLI for Claude, running within the Claude Agent SDK."},{"type":"text","text":"You are an interactive agent."}]},"expect_request":{"model":"m","system":[{"type":"text","text":"You are Claude Code, Anthropic's official CLI for Claude, running within the Claude Agent SDK."},{"type":"text","text":"You are an interactive agent."}]}},
{"name":"saidAs words go as given","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"options":{"saidAs":{"made by Acme Labs":"by Acme"}},"request":{"model":"m","system":"An agent made by\nAcme Labs."},"expect_request":{"model":"m","system":"An agent by Acme."}},
{"name":"Anthropic: Codex's GPT-5 line in a user's turn is reworded there, not in the model's or a tool result, and other lines stay (11-14)","provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"model":"m","messages":[{"role":"user","content":[{"type":"text","text":"My AGENTS.md:\nYou are Codex, a coding agent based on GPT-5. You and the user share the same workspace."},{"type":"text","text":"You are a Claude agent, built on Anthropic's Claude Agent SDK. RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL."}]},{"role":"assistant","content":[{"type":"text","text":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."},{"type":"tool_use","id":"t1","name":"read","input":{"path":"a"}}]},{"role":"user","content":[{"type":"tool_result","tool_use_id":"t1","content":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]},{"role":"user","content":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]},"expect_request":{"model":"m","messages":[{"role":"user","content":[{"type":"text","text":"My AGENTS.md:\nYou are Codex, a coding agent built on GPT-5. You and the user share the same workspace."},{"type":"text","text":"You are a Claude agent, built on Anthropic's Claude Agent SDK. RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL."}]},{"role":"assistant","content":[{"type":"text","text":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."},{"type":"tool_use","id":"t1","name":"read","input":{"path":"a"}}]},{"role":"user","content":[{"type":"tool_result","tool_use_id":"t1","content":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]},{"role":"user","content":"You are Codex, a coding agent built on GPT-5. You and the user share the same workspace."}]}},
{"name":"Chat: the line in a user's turn, reworded","ctx":{"protocol":"chat"},"provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"model":"m","messages":[{"role":"user","content":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."},{"role":"assistant","content":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]},"expect_request":{"model":"m","messages":[{"role":"user","content":"You are Codex, a coding agent built on GPT-5. You and the user share the same workspace."},{"role":"assistant","content":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]}},
{"name":"Responses: the line in a user's input item, reworded; a tool's output stays","ctx":{"protocol":"responses"},"provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"model":"m","input":[{"type":"message","role":"user","content":[{"type":"input_text","text":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]},{"type":"function_call_output","call_id":"c","output":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]},"expect_request":{"model":"m","input":[{"type":"message","role":"user","content":[{"type":"input_text","text":"You are Codex, a coding agent built on GPT-5. You and the user share the same workspace."}]},{"type":"function_call_output","call_id":"c","output":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]}},
{"name":"Gemini: the line in a user's content, reworded; the model's stays","ctx":{"protocol":"gemini"},"provider":{"id":"7c1958d885953cd3","name":"Antigravity","account":"antigravity","model":"gemini-3-flash"},"request":{"contents":[{"role":"user","parts":[{"text":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]},{"role":"model","parts":[{"text":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]}]},"expect_request":{"contents":[{"role":"user","parts":[{"text":"You are Codex, a coding agent built on GPT-5. You and the user share the same workspace."}]},{"role":"model","parts":[{"text":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]}]}},
{"name":"the line in a user's turn to a Claude subscription stays","provider":{"id":"c","name":"Claude","account":"claude","model":"claude-sonnet-4-6"},"request":{"model":"m","messages":[{"role":"user","content":"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace."}]}}
]