Antigravity answers "Hermes Agent, an intelligent AI assistant created by Nous Research" (Hermes' earlier default SOUL.md, which a SOUL.md the user edited keeps) with the same fake 429 "Resource has been exhausted" (zgoodz on X, 10-27: "antigravity在Hermes里一样429"). Hermes' current default persona goes through. The line joins the words broken with a zero-width space, after its H: "You are Hermes Agent, an intelligent ..." still fails on a real account, while "Hermes Agent, an intelligent ..." goes through. magpie v0.1.1641 breaks the same lines on an Antigravity account by itself (`magpie provider set antigravity prompt=as-written` turns it off); the README says so, and that this middleware then adds only extraWords. Run: - bun test packages/antigravity-cloak: 15 pass, 0 fail (new case: Hermes' old persona in a chat system message, broken after its H; the current "You are Hermes Agent, built by Nous Research." stays). With the word taken out: 14 pass, 1 fail. - bun test scripts/check.test.mjs: 3 pass. - Real Antigravity account through a sandbox magpie: the line whole is refused; broken after its H, 200; real Hermes Agent with the old persona answered through magpie's own break (magpie-side, same rule). Not tried: this plugin installed in a running magpie on a real account.
18 lines
8.7 KiB
JSON
18 lines
8.7 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": "x\u200b-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 C\u200blaude Agent SDK.", "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": "X\u200b-Anthropic-Billing-Header: a\nbuilt on the c\u200blaude 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", "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 Anthropic's C\u200blaude Agent SDK."}, {"role": "developer", "content": [{"type": "text", "text": "x\u200b-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."}]}},
|
|
{"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 Anthropic's C\u200blaude Agent SDK.", "input": [{"role": "system", "content": [{"type": "input_text", "text": "x\u200b-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."}]}]}},
|
|
{"name": "Responses: Codex's GPT-5 prompt kept after a switch to an Antigravity model", "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": "Y\u200bou 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."}]}]}},
|
|
{"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": "y\u200bou 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."}]}]}},
|
|
{"name": "Chat: Hermes Agent's earlier persona, broken after its H", "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 H\u200bermes 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"}]}},
|
|
{"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 Anthropic's C\u200blaude Agent SDK."}]}, "contents": []}},
|
|
{"name": "extraWords are broken too", "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\u200blaude Code."}},
|
|
{"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 Anthropic's C\u200blaude Agent SDK."}},
|
|
{"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."}}
|
|
]
|