antigravity: reword Hermes', OpenCode's, Codex CLI's and pi's identity lines, which Google refuses since 11-14 evening
Since about 18:43 on 11-14 Antigravity answers 429 "Resource has been exhausted" to a system instruction holding "You are Hermes Agent" (Hermes' current persona), "You are OpenCode", Codex CLI's "You are a coding agent running in the Codex CLI" or pi's "a coding assistant running inside pi", whatever quota is left (@ZhouYimingsjtu, @Lmohn39 on X). Hermes' earlier persona is still refused as "You're … created by", so it keeps its "built by". Tried on a real account (gemini-3-flash), each alone: Codex GPT-6's prompt, Claude Code, Gemini CLI, Qwen Code, Cline, Kilo, goose, Amp, Droid, Kimi, Aider and Cursor pass as written. agTurnedAway gains the four lines; agSaidAs rewords them "You're …" and "running within pi", the smallest change that passed 5/5 on the real account (gemini-3-flash: pi 1.5.0's full default prompt, both Hermes personas, OpenCode's first lines, Codex CLI's prompt; claude-sonnet-4-6: pi 5/5), through the antigravity plugin's cloak, which has the same lines (plugins a617ecfd, antigravity 0.1.16, agy-cli 0.1.48, antigravity-cloak 0.1.9). The refusal's hint names the agent: new OpenCode, Codex CLI and pi hints, Hermes' covers both personas, word for word the plugins' and the Routing page's (client.js HINTS, i18n zh/zh-TW/ja/de). Run (mica; mote was over its 18 cores): - go test ./internal/gateway -run 'Antigravity|Cloak|CodeAssist': ok - go test ./internal/gui: ok - GOOS=linux and GOOS=windows go vet -tags nogui ./internal/gateway ./internal/gui: ok - node --test i18n-keys, i18n-en-no-cjk, routing-ag-turned-away (both engines): 38 pass - gofmt -l: clean Broken by hand: with the pi and OpenCode lines out of agTurnedAway, TestAntigravityCloakRewordsEveryLineItTurnsAway and TestAntigravityHermesHint go red. Not run: the full go test ./... (mica had another session's full suite running, mote over load) and the whole GUI suite; the change is strings in four tables plus the hint switch.
This commit is contained in:
@@ -403,7 +403,7 @@ recorded as a prediction failure (`noPrediction`).
|
||||
- Claude Desktop's check that a gateway model answers (`{"max_tokens":1,"messages":[{"role":"user","content":"."}]}`, sent as it starts and by its settings' Test connection on the shortest id it is listed with haiku in it, else sonnet, else opus, else the first model listed; `desktopProbe` in [`desktop.go`](../../internal/gateway/desktop.go)) goes to the model the user chose in one of Desktop's own model menus that magpie still serves (`desktopChosen`: `__model_selector_state` in Claude-3p's `local-agent-mode-sessions/<account>/<org>/cowork_account_settings.json`, in the order Code, Cowork, Chat; cybercaius's DeepSeek in the Code tab, v0.1.2033), unless a session's turn was sent after that file was last written: then the model that turn was for (`desktopPicked`), while magpie serves it, the newer of the two being what the user is on now (before, the last session's model came first whenever any menu still held it, so the Code tab switched off DeepSeek with Cowork left on it kept the check on DeepSeek, cybercaius on Discord, v0.1.2212), else to Desktop's default model, the first one listed to it (`desktopDefault`; Desktop's own settings call the first listed model the default), never to the haiku it names, which is another provider's quota, nor, with no menu chosen, to the model the last session ran on (`desktopPicked`), which can be days old: v0.1.1821 sent it there, a relay's GPT model CyberCaius had left for his routing group, and the relay turned it away (Discord, v0.1.1838). It is asked for 16 tokens upstream (`desktopProbeTokens`): OpenAI's models refuse fewer, and a relay in front of one (AnyRouter's "bad response status code 400") passes on no floor for `tokenFloor` to ask again at. A relay that needs `prompt_cache_key` gets one (above). It is recorded with kind `connection_check` (`KindDesktopCheck`), which the Routing page tags "Connection check" with why its model is the id Desktop named and not the one chosen in the conversation: a list with no Claude-named id made the row read "requested deepseek-flash" while the menu's gpt-6.1-sol answered (cybercaius on Discord, v0.1.2212). `TestClaudeDesktopProbeToDefaultModel`, `TestClaudeDesktopProbeToChosenModel`. `TestClaudeDesktopProbeAsksNoClassifier` checks the kind.
|
||||
- Claude Desktop's `/v1/models` tags a model with `anthropic_family_tier` only when the user picked it for that tier (`DesktopTiers`, the Agents page's opus, sonnet, haiku and fable). Before, a Claude model magpie served was tagged with its own tier unpicked, so Desktop's Code tab told Claude Code to run its haiku calls (its small, fast model) on whichever provider served a `claude-haiku-…`: a chat on AgentRouter's gpt-6.1-sol sent them to Leee's `claude-haiku-5-5` (cybercaius on Discord). Untagged, Claude Code asks for its own id of the tier. A background call (no tools) or a subagent's turn asking for a Claude model by Claude's own id that is no catalog id (`claudeOwnID`) stays on the chat's provider (`desktopPicked`), even when another provider serves a model of that name: `servedBeside` gives that provider's model of that name, else its newest model of the tier, beside the chat's model first, else the call goes to the chat's model. The provider's Claude models stand in only when the chat itself is on one of them: a chat on Leee's DeepSeek had Claude Code's sonnet calls sent to Leee's `claude-sonnet-5-5`, which its key may not use (403, CyberCaius on Discord), so Claude Code's own calls in a chat on another vendor's model go to the chat's model, and a tier the user picked takes Claude Code's own id of it even where a provider lists a model by that name (`TestClaudeDesktopNonClaudeChatKeepsTierCalls`). A lead's turn and an id the user picked for a tier (a catalog id) go as asked. `TestClaudeDesktopBackgroundStaysOnChatProvider`.
|
||||
- While a model is picked for one of Claude Desktop's tiers, magpie's Desktop profile also lists Desktop's models in `inferenceModels` (`DesktopInferenceModels` in [`desktop_list.go`](../../internal/gateway/desktop_list.go)), so a pick that isn't a Claude model runs in the Code tab with the prompt of its tier's newest Claude model (`behavesAs`: `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5`, Desktop's catalog v3739; `claude-fable-5-2`, Claude Code 2.1.321's newest Fable, which Desktop's catalog v4371 doesn't list yet), not Claude Code's generic one (moer2831 on Discord). Desktop 4.29 and later hand Claude Code `behavesAs` only from that list (z3t in its app.asar, 4.4212: `modelPicker.options` with each entry's `behavesAs`); the gateway's `behaves_as` row field feeds Desktop's own effort profile only. A non-empty list replaces `/v1/models` in Desktop's menus (pzn: a discovered row gives only its name and description, by id), so the list is every row `/v1/models` gives Desktop, by its id and in its order, each with what Desktop would have read off the row: `supports1m` for a window of 1M and up, `prefer1m` (and the row's `display_name` as `labelOverride`, where Desktop names the row by display_name) for a model listed by its `[1m]` id, and a pick's `anthropicFamilyTier` with `isFamilyDefault`. Desktop keys the list by name and reads one tier off an entry (FPn in its app.asar, 4.23118: the entry tagged with a tier names its `ANTHROPIC_DEFAULT_<TIER>_MODEL`), so a model picked for two tiers is tagged with the first (`desktopTierOf`). Each later tier (`desktopSharedTiers`) gets the model's id form under a number of its own (`desktopTierAlias`: magpie-<number>.anthropic.<model>, mythos-magpie-<number> or anthropic/magpie-<number>), which `aliased` reads back to the model, so the gateway serves it as the pick (`desktopTierAsked`). That id is a row of Desktop's `/v1/models` only (`DesktopTierRows`, a copy of the model's row tagged `anthropic_family_tier` and `is_family_default`), never a list entry: the list is Desktop's model menu, and an entry there showed as a model of its own, "Gemini 4 Hydrogen · haiku" beside "Gemini 4 Hydrogen" (yanghonghang on X, v0.1.3997). Desktop's discovery pins a tier the list leaves out from a tagged row (`shortnameIdentityOverrides` in its app.asar, 4.23118, under the list's own pins), and with a list it reads `/v1/models` only when the profile says `modelDiscoveryEnabled`, which magpie's profile carries while a tier is shared (`DesktopDiscovers`). The later tier has no `behavesAs`, which Desktop takes only from the list, so a model that isn't Claude runs there on Claude Code's generic prompt. Before, the later tier had no model: copilot/claude-sonnet-5.5 picked for sonnet and haiku gave Claude Code an empty `ANTHROPIC_DEFAULT_HAIKU_MODEL`, and its small tasks, WebFetch's page summaries among them, ran on the session's model. A Claude model picked runs as itself where Claude Code knows it by the id it is listed by; a routing group led by one is listed by its mythos-magpie-<number> and runs as the group's model, as one listed by anthropic/magpie-<number> does (`desktopRunsAs`; `TestDesktopTierSharedPick`, `TestDesktopGroupPickRunsAsItsModel`). Nothing picked (or a pick of a model no longer listed): no list, and Desktop finds the models as before. Picks that can't be read are unknown, and what is written stays. Older builds take the entries' names and drop the rest (2.7032's entry is a zod object, which strips unknown keys). Desktop reads its profile only as it starts, so the tiers' menu says to restart it, and the Agents row's Restart shows (`AppBehind` reads the profile). `TestDesktopInferenceModels`.
|
||||
- Antigravity answers a system instruction holding one of a few lines with a 429 "Resource has been exhausted" whatever quota is left, on every model (`agTurnedAway` in [`codeassist.go`](../../internal/gateway/codeassist.go)): Claude Code's billing line, the Claude Agent SDK's identity line, Codex's identity lines for its GPT-5 models (which a Codex thread begun on a GPT model keeps after a switch), Hermes Agent's earlier default persona, and oh-my-pi's RFC 2119 line. An Antigravity account's system instruction goes with each such line reworded with the same meaning (`antigravityCloak`, `agSaidAs`, in `codeAssistBody`): the billing line left out, "built on the Claude Agent SDK by Anthropic", Codex's "built on GPT-5", Hermes' "built by Nous Research", oh-my-pi's "RFC 2119 key words". Until 11-14 they went broken up by zero-width spaces; since then Google's check reads past invisible characters and turned every broken-up line away 5 of 5 on a real account, so a line is also matched with invisible characters inside it and a copy an older magpie or middleware broke up is reworded too. Every other provider, Gemini CLI's sign-in on the same envelope included, is sent the prompt as written. `magpie provider set antigravity prompt=as-written` (`Provider.PromptAsWritten`) turns it off. The refusal is still told against the system prompt as the agent wrote it (`antigravityTurnedAway`): a 400 with the hint for that prompt, the account not rested, and a group skipping Antigravity for that prompt for 6 hours after a refusal (`antigravityForeseen`).
|
||||
- Antigravity answers a system instruction holding one of a few lines with a 429 "Resource has been exhausted" whatever quota is left, on every model (`agTurnedAway` in [`codeassist.go`](../../internal/gateway/codeassist.go)): Claude Code's billing line, the Claude Agent SDK's identity line, Codex's identity lines for its GPT-5 models (which a Codex thread begun on a GPT model keeps after a switch), Hermes Agent's earlier default persona, and oh-my-pi's RFC 2119 line; since the evening of 11-14 also "You are Hermes Agent" (Hermes' current persona), "You are OpenCode", Codex CLI's "You are a coding agent running in the Codex CLI" (its prompt for models it has none of its own for) and pi's "a coding assistant running inside pi". Codex's GPT-6 prompt, Claude Code's own line, Gemini CLI, Qwen Code, Cline, Kilo, goose, Amp, Droid, Kimi, Aider and Cursor pass as written (real account, 11-14). An Antigravity account's system instruction goes with each such line reworded with the same meaning (`antigravityCloak`, `agSaidAs`, in `codeAssistBody`): the billing line left out, "built on the Claude Agent SDK by Anthropic", Codex's "built on GPT-5", Hermes' "built by Nous Research", oh-my-pi's "RFC 2119 key words", "You're" for Hermes', OpenCode's and Codex CLI's "You are", and pi's "running within pi". The refusal's hint names the agent (`antigravityHint`: Codex, Codex CLI, Hermes, OpenCode, pi, RFC), word for word as the antigravity and agy-cli plugins and the Routing page's `HINTS` have it. Until 11-14 they went broken up by zero-width spaces; since then Google's check reads past invisible characters and turned every broken-up line away 5 of 5 on a real account, so a line is also matched with invisible characters inside it and a copy an older magpie or middleware broke up is reworded too. Every other provider, Gemini CLI's sign-in on the same envelope included, is sent the prompt as written. `magpie provider set antigravity prompt=as-written` (`Provider.PromptAsWritten`) turns it off. The refusal is still told against the system prompt as the agent wrote it (`antigravityTurnedAway`): a 400 with the hint for that prompt, the account not rested, and a group skipping Antigravity for that prompt for 6 hours after a refusal (`antigravityForeseen`).
|
||||
- Claude Code's advisor (`/advisor`, `--advisor`) is Anthropic's server tool `advisor_20260301`, its `model` named as Claude Code names its own: on magpie, by magpie's id (the tier an alias like `opus` is on), which no vendor knows, so the request was turned away whole (JackChou on Discord). Relayed on Messages (`passthrough`), the advisor's model goes as the upstream's own name for it when it is the same provider's Claude model, or a Claude id naming no provider (`advisorTools` in [`advisor.go`](../../internal/gateway/advisor.go)); one it can't run there (another provider's, a group, not Claude's) is run by magpie when magpie serves it (below) and otherwise left out, as is every advisor when the request's own model isn't a Claude model (a vendor's Messages API knows no such tool), and the turn is answered without one. A translation drops it with every other server tool. Claude Code (2.1.300) also puts the advisor in the conversation: a `{role: "system"}` message whose text ends in its instructions ("# Advisor Tool … call advisor BEFORE substantive work") and a `tool_addition` naming it. Where the advisor is left out, that `tool_addition` goes too (and a message it leaves empty), and the instructions become Claude Code's own "The advisor tool is no longer available; disregard the earlier advisor instructions." (`withoutAdvisor` on Messages, `advisorGoneIn` in `parseAnthropic` for a translation): left there, the model called `advisor()` as one of the agent's tools and Claude Code answered "No such tool available: advisor" (JackChou on Discord). The Claude subscription's run declares only magpie's tools, so it never has one. `TestAdvisorModelAsTheUpstreamNamesIt`, `TestAdvisorLeftOutOnTranslation`.
|
||||
- magpie runs Claude Code's advisor itself where the upstream can't and the advisor's model is one magpie serves (`provider.Resolve` takes it; `advisedHere` in [`advisor_serve.go`](../../internal/gateway/advisor_serve.go), Awad_Yoo on X). Claude Code sends the advisor for any model only with `CLAUDE_CODE_ENABLE_EXPERIMENTAL_ADVISOR_TOOL` set (2.1.316), which the Claude Code advisor field writes (agent-wiring.md). Such a request is translated, a relay on Messages too (`ownAPI`): the server tool becomes `Request.Advisor`, and the model is offered a function tool `advisor` with no parameters (`advisorToolDef`, a neutral description naming neither magpie nor a vendor), Claude Code's instructions and `tool_addition` kept as written. A call of it is answered inside the reply's rounds, beside web search's (`searchRounds`, `adviceRound`): the advisor model is asked through the gateway (`advise`, User-Agent `magpie-advisor/1`, the executor's system prompt and conversation, what the model said before the call, its tools offered with `tool_choice` none, no reasoning, and a short ask appended to the last user message, `adviceFor`), and the reply goes on with the advice as the call's result. Claude Code is told as Anthropic's server tells it: a `server_tool_use` (`srvtoolu_…`, empty input) and an `advisor_tool_result` with `{type: advisor_result, text}`, or `{type: advisor_tool_result_error, error_code}` (`unavailable`, `too_many_requests`, `overloaded`, `prompt_too_long`, `execution_time_exceeded`, or `max_uses_exceeded` past three calls a reply). Claude Code echoes both blocks in the next turn's assistant message; `readAdvised` reads them back as the model's call and its result, splitting the message around them (`adviceApart`). Not handled: a round that calls the advisor beside an agent tool keeps the agent's tool call only, as with web search. `TestAdvisorServedForAVendorModel`, `TestAdvisorHistoryGoesBackAsACall`, `TestAdvisorFailureIsAnErrorCode`, `TestAdvisedHere`.
|
||||
- Kiro is told where to cache the prompt (plugins#110: a Kiro subscription read 0 from its cache). Its API takes Bedrock's `cachePoint: {"type":"default"}` on a `userInputMessage`, an `assistantResponseMessage` or as a tool entry. The built-in (`buildKiro` in [`kiro.go`](../../internal/gateway/kiro.go)) marks the first message when there is a system prompt, which it folds into that message, and the current message, as `buildAnthropic` marks Anthropic's. A moved Kiro's plugin (opencode-kiro-auth 0.1.10, the mover's `min`) turns each `cache_control` in the Anthropic body it is handed into one, at most 4, the last kept.
|
||||
|
||||
@@ -21,6 +21,9 @@ const hermesOldSystem = "You are Hermes Agent, an intelligent AI assistant creat
|
||||
// on one on 10-27 and 11-14: the line as written, in the system
|
||||
// instruction, in any case, and since 11-14 broken up by invisible
|
||||
// characters too (fakeGoogle reads past them, as Google's check does).
|
||||
// Since the evening of 11-14 "You are Hermes Agent", "You are OpenCode",
|
||||
// Codex CLI's line and pi's are turned away too, and Hermes' earlier
|
||||
// persona as "You're Hermes Agent, …" with "created by".
|
||||
var googleTurnsAway = []string{
|
||||
"x-anthropic-billing-header:",
|
||||
"built on anthropic's claude agent sdk",
|
||||
@@ -28,8 +31,29 @@ var googleTurnsAway = []string{
|
||||
"you are codex, a coding agent based on gpt-5",
|
||||
"hermes agent, an intelligent ai assistant created by nous research",
|
||||
"rfc 2119 keywords: must, required, should, recommended, may, optional.",
|
||||
"you are hermes agent",
|
||||
"you are opencode",
|
||||
"you are a coding agent running in the codex cli",
|
||||
"a coding assistant running inside pi",
|
||||
}
|
||||
|
||||
// piDefaultSystem is pi 1.5.0's default system prompt as it builds it
|
||||
// (buildSystemPromptSections in dist/core/system-prompt.js, read from the
|
||||
// npm package), with its four default tools, an empty skills list and a
|
||||
// working directory.
|
||||
const piDefaultSystem = "You are a coding assistant running inside pi, a coding agent harness. Help users inspect files, run commands, and modify code.\n\n<tools>\n- read: Read the contents of a file\n- bash: Execute a bash command in the current working directory\n- edit: Make precise file edits with exact text replacement\n- write: Create or overwrite files\n\nAdditional tools may be available.\n</tools>\n\n<rules>\n- Use bash for file operations like ls, rg, find\n- Be concise in your responses\n- Show file paths clearly when working with files\n</rules>\n\n<docs>\nPi documentation (read only when the user asks about the harness itself, its SDK, extensions, themes, skills, or TUI):\n- Main documentation: /usr/lib/node_modules/@earendil-works/pi/README.md\n</docs>\n\n<cwd>\n/Users/me/project\n</cwd>"
|
||||
|
||||
// openCodeSystem is the first line of each of OpenCode 2.0.25's prompts.
|
||||
var openCodeSystem = []string{
|
||||
"You are OpenCode, a coding agent that helps users with software engineering tasks.",
|
||||
"You are opencode, an interactive CLI tool that helps users with software engineering tasks.",
|
||||
"You are OpenCode, the best coding agent on the planet.",
|
||||
}
|
||||
|
||||
// codexCLISystem is how Codex 0.165's prompt for a model it has none of its
|
||||
// own for begins.
|
||||
const codexCLISystem = "You are a coding agent running in the Codex CLI, a terminal-based coding assistant. Codex CLI is an open source project led by OpenAI. You are expected to be precise, safe, and helpful."
|
||||
|
||||
// zeroWidth is U+200B, what magpie put inside these lines until 11-14.
|
||||
const zeroWidth = "\u200b"
|
||||
|
||||
@@ -90,9 +114,9 @@ func joinedBy(sep string) func(string) string {
|
||||
func unsaid(got string) string {
|
||||
got = regexp.MustCompile(`built on the Claude Agent SDK by Anthropic`).ReplaceAllString(got, "built on Anthropic's Claude Agent SDK")
|
||||
got = regexp.MustCompile(`(?i)built(\s+)on(\s+)gpt-5`).ReplaceAllString(got, "based${1}on${2}GPT-5")
|
||||
got = regexp.MustCompile(`(?i)built(\s+)by(\s+)nous`).ReplaceAllStringFunc(got, func(m string) string {
|
||||
return "created" + strings.TrimPrefix(m, "built")
|
||||
})
|
||||
got = regexp.MustCompile(`(?i)(assistant\s+)built(\s+by\s+nous)`).ReplaceAllString(got, "${1}created${2}")
|
||||
got = regexp.MustCompile(`(?i)\b(you)'re`).ReplaceAllString(got, "${1} are")
|
||||
got = regexp.MustCompile(`running(\s+)within(\s+)pi`).ReplaceAllString(got, "running${1}inside${2}pi")
|
||||
return strings.Replace(got, "key words", "keywords", 1)
|
||||
}
|
||||
|
||||
@@ -129,7 +153,14 @@ func TestAntigravityCloakRewordsEveryLineItTurnsAway(t *testing.T) {
|
||||
"You are Codex, a coding agent based on GPT-5. You and the user share the same workspace.",
|
||||
hermesOldSystem,
|
||||
strings.ToUpper(hermesOldSystem),
|
||||
"You are Hermes Agent, built by Nous Research. Be direct.",
|
||||
"You are Hermes Agent, an intelligent AI assistant created by Nous.",
|
||||
ompLine,
|
||||
piDefaultSystem,
|
||||
openCodeSystem[0],
|
||||
openCodeSystem[1],
|
||||
openCodeSystem[2],
|
||||
codexCLISystem,
|
||||
// twice, and after text whose lower case is longer than it is
|
||||
"İstanbul ✓ " + codexGPT5System + "\n\n" + hermesOldSystem + "\n" + codexGPT5System,
|
||||
} {
|
||||
@@ -161,12 +192,14 @@ func TestAntigravityCloakRewordsEveryLineItTurnsAway(t *testing.T) {
|
||||
// what Antigravity answers is sent as written, word for word
|
||||
for _, system := range []string{
|
||||
"",
|
||||
"You are opencode, an interactive CLI tool.",
|
||||
"You are Claude Code, Anthropic's official CLI for Claude, running within the Claude Agent SDK.",
|
||||
"You are a Claude agent, built on the Claude Agent SDK by Anthropic.",
|
||||
"You are Codex, based on GPT-5. You are running as a coding agent in the Codex CLI on a user's computer.",
|
||||
"You are Hermes Agent, built by Nous Research. Be direct.",
|
||||
"You are Hermes Agent, an intelligent AI assistant created by Nous.",
|
||||
"You are Codex, an agent based on GPT-6.",
|
||||
"You're Hermes Agent, built by Nous Research. Be direct.",
|
||||
"You're OpenCode, the best coding agent on the planet.",
|
||||
"You are a coding assistant running within pi, a coding agent harness.",
|
||||
"Hermes Agent, an intelligent AI assistant built by Nous Research.",
|
||||
} {
|
||||
if got := antigravityCloak(system); got != system {
|
||||
t.Errorf("%q went as %q", system, got)
|
||||
@@ -178,6 +211,20 @@ func TestAntigravityHermesHint(t *testing.T) {
|
||||
if antigravityHint(hermesOldSystem) != antigravityHermesHint {
|
||||
t.Error("Hermes' old persona isn't told its own hint")
|
||||
}
|
||||
if antigravityHint("You are Hermes Agent, built by Nous Research.") != antigravityHermesHint {
|
||||
t.Error("Hermes' current persona isn't told its own hint")
|
||||
}
|
||||
for _, c := range []struct{ system, hint string }{
|
||||
{piDefaultSystem, antigravityPiHint},
|
||||
{openCodeSystem[0], antigravityOpenCodeHint},
|
||||
{openCodeSystem[1], antigravityOpenCodeHint},
|
||||
{openCodeSystem[2], antigravityOpenCodeHint},
|
||||
{codexCLISystem, antigravityCodexCLIHint},
|
||||
} {
|
||||
if antigravityHint(c.system) != c.hint {
|
||||
t.Errorf("%.40q isn't told its own hint", c.system)
|
||||
}
|
||||
}
|
||||
if antigravityHint(codexGPT5System) != antigravityCodexHint || antigravityHint(claudeCodeSystem) != antigravityTurnedAwayHint {
|
||||
t.Error("the other prompts lost their hints")
|
||||
}
|
||||
@@ -246,7 +293,7 @@ func TestAntigravityAnswersHermesAndCodexByDefault(t *testing.T) {
|
||||
if code, out := hermesTurn(s, hermesOldSystem); code != 200 || !strings.Contains(out, "from google") {
|
||||
t.Fatalf("Hermes: %d %s", code, out)
|
||||
}
|
||||
if sent != strings.Replace(hermesOldSystem, "created by", "built by", 1) {
|
||||
if sent != strings.Replace(strings.Replace(hermesOldSystem, "created by", "built by", 1), "You are Hermes", "You're Hermes", 1) {
|
||||
t.Fatalf("Hermes' prompt went as %q", sent)
|
||||
}
|
||||
for _, search := range []bool{false, true} {
|
||||
@@ -273,7 +320,7 @@ func TestAntigravityAnswersHermesAndCodexByDefault(t *testing.T) {
|
||||
if sent != hermesOldSystem {
|
||||
t.Fatalf("sent as written, Hermes' prompt went as %q", sent)
|
||||
}
|
||||
if code != http.StatusBadRequest || !strings.Contains(out, antigravityHermesHint) {
|
||||
if hint, _ := json.Marshal(antigravityHermesHint); code != http.StatusBadRequest || !strings.Contains(out, strings.Trim(string(hint), `"`)) {
|
||||
t.Fatalf("Hermes, as written: %d %s", code, out)
|
||||
}
|
||||
code, out = codexAGPost(s, codexAGTurn(true, false))
|
||||
|
||||
@@ -152,7 +152,9 @@ func TestAntigravityCodexHintIsTheRoutingPages(t *testing.T) {
|
||||
if !strings.Contains(string(b), quote(antigravityCodexHint)) {
|
||||
t.Fatal("plugins/routing/client.js doesn't know the note the gateway adds to Antigravity's refusal of Codex's prompt")
|
||||
}
|
||||
if !strings.Contains(string(b), quote(antigravityHermesHint)) {
|
||||
t.Fatal("plugins/routing/client.js doesn't know the note the gateway adds to Antigravity's refusal of Hermes' old persona")
|
||||
for _, hint := range []string{antigravityHermesHint, antigravityOpenCodeHint, antigravityCodexCLIHint, antigravityPiHint, antigravityRFCHint} {
|
||||
if !strings.Contains(string(b), quote(hint)) {
|
||||
t.Fatalf("plugins/routing/client.js doesn't know the note %.60q", hint)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,9 +86,19 @@ func antigravityTurnsAway(system string) bool {
|
||||
// - Hermes Agent's earlier default persona (its SOUL.md until Hermes
|
||||
// replaced it: "You are Hermes Agent, an intelligent AI assistant
|
||||
// created by Nous Research. …"), which a SOUL.md the user edited keeps
|
||||
// (zgoodz on X, 10-27). The line without "Research", "AI" or "Hermes"
|
||||
// goes through, and so does today's "You are Hermes Agent, built by
|
||||
// Nous Research."
|
||||
// (zgoodz on X, 10-27). Since 11-14 it is turned away with "built by"
|
||||
// too, and as "You're Hermes Agent, …" with "created by", 3 of 3 each;
|
||||
// - since the evening of 11-14 (Lmohn39 and ZhouYimingsjtu on X), 3 of 3
|
||||
// or 5 of 5 each on a real account, on gemini-3-flash and
|
||||
// claude-sonnet-4-6 alike: "You are Hermes Agent" (today's persona,
|
||||
// "You are Hermes Agent, built by Nous Research.", and the earlier
|
||||
// one), "You are OpenCode" (each of OpenCode 2.0.25's prompts), "You
|
||||
// are a coding agent running in the Codex CLI" (Codex 0.165's prompt for
|
||||
// a model it has none of its own for) and "a coding assistant running
|
||||
// inside pi" (pi 1.5.0's default prompt). Codex's prompt for GPT-6,
|
||||
// Claude Code's, Gemini CLI's, Qwen Code's, Cline's, Kilo's, goose's,
|
||||
// Amp's, Droid's, Kimi CLI's, Aider's and Cursor's went through as
|
||||
// written.
|
||||
//
|
||||
// Each goes reworded with the same meaning (agSaidAs). Until 11-14 they
|
||||
// went broken up by zero-width spaces, which Google let through; since then
|
||||
@@ -104,8 +114,12 @@ var agTurnedAway = []string{
|
||||
"built on anthropic's claude agent sdk",
|
||||
"you are codex, an agent based on gpt-5",
|
||||
"you are codex, a coding agent based on gpt-5",
|
||||
"hermes agent, an intelligent ai assistant created by nous research",
|
||||
"an intelligent ai assistant created by nous research",
|
||||
agRFCLine,
|
||||
"you are hermes agent",
|
||||
"you are opencode",
|
||||
"you are a coding agent running in the codex cli",
|
||||
"a coding assistant running inside pi",
|
||||
}
|
||||
|
||||
// agRFCLine is the line oh-my-pi (omp) starts its system prompt with, and
|
||||
@@ -125,7 +139,12 @@ const agRFCLine = "rfc 2119 keywords: must, required, should, recommended, may,
|
||||
// Hermes' current persona says it;
|
||||
// - omp's "keywords" as "key words", RFC 2119's own term (10 of 10 on
|
||||
// 11-14, eric_li8983 on X, while a broken-up copy was turned away 1 to
|
||||
// 3 times in 10).
|
||||
// 3 times in 10);
|
||||
// - "You are Hermes Agent", "You are OpenCode" and Codex CLI's line as
|
||||
// "You're …" (5 of 5 each; Hermes' earlier persona with "built by" as
|
||||
// well, 5 of 5);
|
||||
// - pi's "running inside pi" as "running within pi" (5 of 5 on both
|
||||
// models).
|
||||
var agSaidAs = []func(string) string{
|
||||
func(string) string { return "" },
|
||||
func(m string) string { return agSDKSaidAs.ReplaceAllString(m, "${1}the${2}${3} by Anthropic") },
|
||||
@@ -133,14 +152,23 @@ var agSaidAs = []func(string) string{
|
||||
func(m string) string { return agBasedOn.ReplaceAllString(m, "built${1}on") },
|
||||
func(m string) string { return agCreatedBy.ReplaceAllString(m, "built${1}by") },
|
||||
func(m string) string { return agRFCSaidAs.ReplaceAllString(m, "$1 $2") },
|
||||
agYoure,
|
||||
agYoure,
|
||||
agYoure,
|
||||
func(m string) string { return agInside.ReplaceAllString(m, "within") },
|
||||
}
|
||||
|
||||
// agYoure is m, which starts "You are", starting "You're" instead.
|
||||
func agYoure(m string) string { return agYouAre.ReplaceAllString(m, "${1}'re") }
|
||||
|
||||
// each white space as agSpace has it, which Go's \s is not
|
||||
var (
|
||||
agSDKSaidAs = lazyre.New(`(?i)^(built` + agSpace + `on` + agSpace + `)anthropic's(` + agSpace + `)(claude` + agSpace + `agent` + agSpace + `sdk)$`)
|
||||
agBasedOn = lazyre.New(`(?i)based(` + agSpace + `)on`)
|
||||
agCreatedBy = lazyre.New(`(?i)created(` + agSpace + `)by`)
|
||||
agRFCSaidAs = lazyre.New(`(?i)(key)(words)`)
|
||||
agYouAre = lazyre.New(`(?i)^(you)` + agSpace + `are`)
|
||||
agInside = lazyre.New(`(?i)inside`)
|
||||
)
|
||||
|
||||
// agSpace is a run of white space as Google's check reads it: on a real
|
||||
@@ -209,9 +237,9 @@ func antigravityTurnsCodexAway(system string) bool {
|
||||
}
|
||||
|
||||
// antigravityTurnsHermesAway says whether system carries Hermes Agent's
|
||||
// earlier default persona that Antigravity turns away.
|
||||
// persona, today's or the earlier one, that Antigravity turns away.
|
||||
func antigravityTurnsHermesAway(system string) bool {
|
||||
return agSays(system, "hermes agent, an intelligent ai assistant created by nous research")
|
||||
return agSays(system, "you are hermes agent") || agSays(system, "an intelligent ai assistant created by nous research")
|
||||
}
|
||||
|
||||
// antigravityTurnsRFCAway says whether system carries omp's RFC 2119 line.
|
||||
@@ -390,9 +418,22 @@ const antigravityTurnedAwayHint = "Antigravity answers this 429 to the system pr
|
||||
// and a new one on the Antigravity model is sent magpie's own.
|
||||
const antigravityCodexHint = "Antigravity answers this 429 to Codex's own system prompt for GPT-5 models whatever quota is left, so it is not a quota and waiting won't help; a Codex chat begun on a GPT model keeps that prompt after a model switch or a fork, so start a new chat on this model"
|
||||
|
||||
// antigravityHermesHint is the hint for Hermes Agent's earlier default
|
||||
// persona (routing/client.js AG_HERMES).
|
||||
const antigravityHermesHint = "Antigravity answers this 429 to Hermes Agent's earlier default persona (its SOUL.md) whatever quota is left, so it is not a quota and waiting won't help; Hermes' current default persona goes through, so put it in SOUL.md, or use another provider for these chats"
|
||||
// antigravityHermesHint is the hint for Hermes Agent's persona, today's or
|
||||
// the earlier one, word for word what the antigravity plugin says
|
||||
// (HERMES_HINT; routing/client.js AG_HERMES).
|
||||
const antigravityHermesHint = "Antigravity answers this 429 to Hermes Agent's default persona (\"You are Hermes Agent, …\" in its SOUL.md), the current one and the earlier one alike, whatever quota is left, so it is not a quota and waiting won't help; magpie sends it as \"You're Hermes Agent, …\", which goes through, so start SOUL.md another way, or use another provider for these chats"
|
||||
|
||||
// antigravityOpenCodeHint is the hint for OpenCode's prompts (OPENCODE_HINT;
|
||||
// routing/client.js AG_OPENCODE).
|
||||
const antigravityOpenCodeHint = "Antigravity answers this 429 to OpenCode's system prompt (\"You are OpenCode, …\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're OpenCode, …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group"
|
||||
|
||||
// antigravityCodexCLIHint is the hint for Codex's prompt for a model it has
|
||||
// none of its own for (CODEX_CLI_HINT; routing/client.js AG_CODEX_CLI).
|
||||
const antigravityCodexCLIHint = "Antigravity answers this 429 to Codex's prompt for a model it has none of its own for (\"You are a coding agent running in the Codex CLI\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group"
|
||||
|
||||
// antigravityPiHint is the hint for pi's default prompt (PI_HINT;
|
||||
// routing/client.js AG_PI).
|
||||
const antigravityPiHint = "Antigravity answers this 429 to pi's default system prompt (\"You are a coding assistant running inside pi\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"running within pi\", which goes through, so give pi a system prompt of your own (--system-prompt) or use another provider for these chats"
|
||||
|
||||
// antigravityRFCHint is the hint for omp's RFC 2119 line, word for word
|
||||
// what the antigravity plugin says (RFC_HINT; routing/client.js AG_RFC).
|
||||
@@ -404,9 +445,18 @@ func antigravityHint(system string) string {
|
||||
if antigravityTurnsCodexAway(system) {
|
||||
return antigravityCodexHint
|
||||
}
|
||||
if agSays(system, "you are a coding agent running in the codex cli") {
|
||||
return antigravityCodexCLIHint
|
||||
}
|
||||
if antigravityTurnsHermesAway(system) {
|
||||
return antigravityHermesHint
|
||||
}
|
||||
if agSays(system, "you are opencode") {
|
||||
return antigravityOpenCodeHint
|
||||
}
|
||||
if agSays(system, "a coding assistant running inside pi") {
|
||||
return antigravityPiHint
|
||||
}
|
||||
if antigravityTurnsRFCAway(system) {
|
||||
return antigravityRFCHint
|
||||
}
|
||||
|
||||
@@ -4347,7 +4347,10 @@ const I18N = {
|
||||
"WorkBuddy refuses chats from Codex and Claude Code (their system prompt); use it from Hermes, OpenCode or Pi, or add another provider to this group": "WorkBuddy 会因系统提示词拒绝 Codex 和 Claude Code 的对话;请在 Hermes、OpenCode 或 Pi 中使用,或在此分组中再加一个供应商",
|
||||
"Antigravity answers this 429 to the system prompt of Claude Code and the Claude Agent SDK (Claude Desktop's chats) whatever quota is left, so it is not a quota and waiting won't help; use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity 对 Claude Code 和 Claude Agent SDK(Claude Desktop 的对话)的系统提示词都会回这个 429,与剩余额度无关,所以这不是额度用尽,等待也不会好;请用其他供应商处理这些对话,或在路由分组中把另一个供应商排在 Antigravity 之后",
|
||||
"Antigravity answers this 429 to Codex's own system prompt for GPT-5 models whatever quota is left, so it is not a quota and waiting won't help; a Codex chat begun on a GPT model keeps that prompt after a model switch or a fork, so start a new chat on this model": "Antigravity 对 Codex 给 GPT-5 模型的系统提示词都会回这个 429,与剩余额度无关,所以这不是额度用尽,等待也不会好;在 GPT 模型上开始的 Codex 对话切换模型或分叉后仍带着这段提示词,请在这个模型上新开一个对话",
|
||||
"Antigravity answers this 429 to Hermes Agent's earlier default persona (its SOUL.md) whatever quota is left, so it is not a quota and waiting won't help; Hermes' current default persona goes through, so put it in SOUL.md, or use another provider for these chats": "Antigravity 对 Hermes Agent 旧版默认人设(SOUL.md)都会回这个 429,与剩余额度无关,所以这不是额度用尽,等待也不会好;Hermes 当前的默认人设可以通过,请把它写进 SOUL.md,或为这些对话换用其他提供商",
|
||||
"Antigravity answers this 429 to Hermes Agent's default persona (\"You are Hermes Agent, …\" in its SOUL.md), the current one and the earlier one alike, whatever quota is left, so it is not a quota and waiting won't help; magpie sends it as \"You're Hermes Agent, …\", which goes through, so start SOUL.md another way, or use another provider for these chats": "Antigravity 对 Hermes Agent 的默认人设(SOUL.md 里的 \"You are Hermes Agent, …\",当前版和旧版都一样)都会回这个 429,与剩余额度无关,所以这不是额度用尽,等待也不会好;magpie 会把它改成 \"You're Hermes Agent, …\" 发出,这样可以通过,所以请换一种写法开头 SOUL.md,或为这些对话换用其他提供商",
|
||||
"Antigravity answers this 429 to OpenCode's system prompt (\"You are OpenCode, …\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're OpenCode, …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity 对 OpenCode 的系统提示词(\"You are OpenCode, …\")都会回这个 429,与剩余额度无关,所以这不是额度用尽,等待也不会好;magpie 会把这一行改成 \"You're OpenCode, …\" 发出,这样可以通过,请用其他供应商处理这些对话,或在路由分组中把另一个供应商排在 Antigravity 之后",
|
||||
"Antigravity answers this 429 to Codex's prompt for a model it has none of its own for (\"You are a coding agent running in the Codex CLI\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity 对 Codex 给没有专属提示词的模型用的系统提示词(\"You are a coding agent running in the Codex CLI\")都会回这个 429,与剩余额度无关,所以这不是额度用尽,等待也不会好;magpie 会把这一行改成 \"You're …\" 发出,这样可以通过,请用其他供应商处理这些对话,或在路由分组中把另一个供应商排在 Antigravity 之后",
|
||||
"Antigravity answers this 429 to pi's default system prompt (\"You are a coding assistant running inside pi\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"running within pi\", which goes through, so give pi a system prompt of your own (--system-prompt) or use another provider for these chats": "Antigravity 对 pi 的默认系统提示词(\"You are a coding assistant running inside pi\")都会回这个 429,与剩余额度无关,所以这不是额度用尽,等待也不会好;magpie 会把这一行改成 \"running within pi\" 发出,这样可以通过,请给 pi 设一个自己的系统提示词(--system-prompt),或为这些对话换用其他提供商",
|
||||
"Antigravity answers this 429 to the line \"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.\" that starts oh-my-pi (omp)'s system prompt, and to any prompt that has it, whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"RFC 2119 key words: …\", which goes through, so this one came from a copy of it that was worded another way": "Antigravity 对 oh-my-pi(omp)系统提示词开头的 \"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.\" 这一行,以及带有这一行的任何提示词,都会回这个 429,与剩余额度无关,所以这不是额度用尽,等待也不会好;magpie 会把这一行改成 \"RFC 2119 key words: …\" 发出,这样可以通过,所以这次来自这一行换了写法的副本",
|
||||
"the provider's network firewall blocked requests from this IP; wait a while, or switch to another network or proxy": "供应商的网络防火墙拦截了此 IP 的请求;请稍后再试,或更换网络或代理",
|
||||
"ZCode's risk control blocked this account for unusual activity (code 3012); it rests, and the group's other providers are used. If the ZCode app fails on this account too, only ZCode support can lift the block": "ZCode 风控因异常行为封禁了这个账号(代码 3012);它会暂停使用,改用此分组中的其他供应商。如果用这个账号在 ZCode 官方 App 里也失败,只有 ZCode 客服能解除",
|
||||
@@ -9587,7 +9590,10 @@ const I18N = {
|
||||
"WorkBuddy refuses chats from Codex and Claude Code (their system prompt); use it from Hermes, OpenCode or Pi, or add another provider to this group": "WorkBuddy 會因系統提示詞拒絕 Codex 和 Claude Code 的對話;請在 Hermes、OpenCode 或 Pi 中使用,或在此分組中再加一個供應商",
|
||||
"Antigravity answers this 429 to the system prompt of Claude Code and the Claude Agent SDK (Claude Desktop's chats) whatever quota is left, so it is not a quota and waiting won't help; use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity 對 Claude Code 和 Claude Agent SDK(Claude Desktop 的對話)的系統提示詞都會回這個 429,與剩餘額度無關,所以這不是額度用盡,等待也不會好;請用其他供應商處理這些對話,或在路由分組中把另一個供應商排在 Antigravity 之後",
|
||||
"Antigravity answers this 429 to Codex's own system prompt for GPT-5 models whatever quota is left, so it is not a quota and waiting won't help; a Codex chat begun on a GPT model keeps that prompt after a model switch or a fork, so start a new chat on this model": "Antigravity 對 Codex 給 GPT-5 模型的系統提示詞都會回這個 429,與剩餘額度無關,所以這不是額度用盡,等待也不會好;在 GPT 模型上開始的 Codex 對話切換模型或分叉後仍帶著這段提示詞,請在這個模型上新開一個對話",
|
||||
"Antigravity answers this 429 to Hermes Agent's earlier default persona (its SOUL.md) whatever quota is left, so it is not a quota and waiting won't help; Hermes' current default persona goes through, so put it in SOUL.md, or use another provider for these chats": "Antigravity 對 Hermes Agent 舊版預設人設(SOUL.md)都會回這個 429,與剩餘額度無關,所以這不是額度用盡,等待也不會好;Hermes 目前的預設人設可以通過,請把它寫進 SOUL.md,或為這些對話改用其他供應商",
|
||||
"Antigravity answers this 429 to Hermes Agent's default persona (\"You are Hermes Agent, …\" in its SOUL.md), the current one and the earlier one alike, whatever quota is left, so it is not a quota and waiting won't help; magpie sends it as \"You're Hermes Agent, …\", which goes through, so start SOUL.md another way, or use another provider for these chats": "Antigravity 對 Hermes Agent 的預設人設(SOUL.md 裡的 \"You are Hermes Agent, …\",目前版和舊版都一樣)都會回這個 429,與剩餘額度無關,所以這不是額度用盡,等待也不會好;magpie 會把它改成 \"You're Hermes Agent, …\" 送出,這樣可以通過,所以請換一種寫法開頭 SOUL.md,或為這些對話改用其他供應商",
|
||||
"Antigravity answers this 429 to OpenCode's system prompt (\"You are OpenCode, …\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're OpenCode, …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity 對 OpenCode 的系統提示詞(\"You are OpenCode, …\")都會回這個 429,與剩餘額度無關,所以這不是額度用盡,等待也不會好;magpie 會把這一行改成 \"You're OpenCode, …\" 送出,這樣可以通過,請用其他供應商處理這些對話,或在路由分組中把另一個供應商排在 Antigravity 之後",
|
||||
"Antigravity answers this 429 to Codex's prompt for a model it has none of its own for (\"You are a coding agent running in the Codex CLI\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity 對 Codex 給沒有專屬提示詞的模型用的系統提示詞(\"You are a coding agent running in the Codex CLI\")都會回這個 429,與剩餘額度無關,所以這不是額度用盡,等待也不會好;magpie 會把這一行改成 \"You're …\" 送出,這樣可以通過,請用其他供應商處理這些對話,或在路由分組中把另一個供應商排在 Antigravity 之後",
|
||||
"Antigravity answers this 429 to pi's default system prompt (\"You are a coding assistant running inside pi\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"running within pi\", which goes through, so give pi a system prompt of your own (--system-prompt) or use another provider for these chats": "Antigravity 對 pi 的預設系統提示詞(\"You are a coding assistant running inside pi\")都會回這個 429,與剩餘額度無關,所以這不是額度用盡,等待也不會好;magpie 會把這一行改成 \"running within pi\" 送出,這樣可以通過,請給 pi 設一個自己的系統提示詞(--system-prompt),或為這些對話改用其他供應商",
|
||||
"Antigravity answers this 429 to the line \"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.\" that starts oh-my-pi (omp)'s system prompt, and to any prompt that has it, whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"RFC 2119 key words: …\", which goes through, so this one came from a copy of it that was worded another way": "Antigravity 對 oh-my-pi(omp)系統提示詞開頭的 \"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.\" 這一行,以及帶有這一行的任何提示詞,都會回這個 429,與剩餘額度無關,所以這不是額度用盡,等待也不會好;magpie 會把這一行改成 \"RFC 2119 key words: …\" 送出,這樣可以通過,所以這次來自這一行換了寫法的副本",
|
||||
"the provider's network firewall blocked requests from this IP; wait a while, or switch to another network or proxy": "供應商的網路防火牆攔截了此 IP 的請求;請稍後再試,或更換網路或代理",
|
||||
"ZCode's risk control blocked this account for unusual activity (code 3012); it rests, and the group's other providers are used. If the ZCode app fails on this account too, only ZCode support can lift the block": "ZCode 風控因異常行為封鎖了這個帳號(代碼 3012);它會暫停使用,改用此分組中的其他供應商。如果用這個帳號在 ZCode 官方 App 裡也失敗,只有 ZCode 客服能解除",
|
||||
@@ -14846,7 +14852,10 @@ const I18N = {
|
||||
"WorkBuddy refuses chats from Codex and Claude Code (their system prompt); use it from Hermes, OpenCode or Pi, or add another provider to this group": "WorkBuddy は Codex と Claude Code からのチャットを(そのシステムプロンプトが原因で)拒否します。Hermes、OpenCode、Pi から使うか、このグループに別のプロバイダを追加してください",
|
||||
"Antigravity answers this 429 to the system prompt of Claude Code and the Claude Agent SDK (Claude Desktop's chats) whatever quota is left, so it is not a quota and waiting won't help; use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity は Claude Code と Claude Agent SDK(Claude Desktop のチャット)のシステムプロンプトに対し、残りクォータに関係なくこの 429 を返します。クォータ切れではなく、待っても解決しません。これらのチャットには別のプロバイダを使うか、ルーティンググループで Antigravity の後に別のプロバイダを置いてください",
|
||||
"Antigravity answers this 429 to Codex's own system prompt for GPT-5 models whatever quota is left, so it is not a quota and waiting won't help; a Codex chat begun on a GPT model keeps that prompt after a model switch or a fork, so start a new chat on this model": "Antigravity は Codex の GPT-5 モデル向けシステムプロンプトに対し、残りクォータに関係なくこの 429 を返します。クォータ切れではなく、待っても解決しません。GPT モデルで始めた Codex のチャットは、モデルを切り替えたりフォークしたりしてもそのプロンプトを持ち続けるので、このモデルで新しいチャットを始めてください",
|
||||
"Antigravity answers this 429 to Hermes Agent's earlier default persona (its SOUL.md) whatever quota is left, so it is not a quota and waiting won't help; Hermes' current default persona goes through, so put it in SOUL.md, or use another provider for these chats": "Antigravity は Hermes Agent の以前のデフォルトのペルソナ(SOUL.md)に対し、残りクォータに関係なくこの 429 を返します。クォータ切れではなく、待っても解決しません。Hermes の現在のデフォルトのペルソナは通るので、それを SOUL.md に書くか、これらのチャットには別のプロバイダーを使ってください",
|
||||
"Antigravity answers this 429 to Hermes Agent's default persona (\"You are Hermes Agent, …\" in its SOUL.md), the current one and the earlier one alike, whatever quota is left, so it is not a quota and waiting won't help; magpie sends it as \"You're Hermes Agent, …\", which goes through, so start SOUL.md another way, or use another provider for these chats": "Antigravity は Hermes Agent のデフォルトのペルソナ(SOUL.md の \"You are Hermes Agent, …\"。現在のものも以前のものも同じ)に対し、残りクォータに関係なくこの 429 を返します。クォータ切れではなく、待っても解決しません。magpie はこれを \"You're Hermes Agent, …\" として送り、それは通るので、SOUL.md を別の書き出しにするか、これらのチャットには別のプロバイダーを使ってください",
|
||||
"Antigravity answers this 429 to OpenCode's system prompt (\"You are OpenCode, …\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're OpenCode, …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity は OpenCode のシステムプロンプト(\"You are OpenCode, …\")に対し、残りクォータに関係なくこの 429 を返します。クォータ切れではなく、待っても解決しません。magpie はこの行を \"You're OpenCode, …\" として送り、それは通るので、これらのチャットには別のプロバイダーを使うか、ルーティンググループで Antigravity の後に別のプロバイダーを置いてください",
|
||||
"Antigravity answers this 429 to Codex's prompt for a model it has none of its own for (\"You are a coding agent running in the Codex CLI\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity は、専用のプロンプトがないモデル向けの Codex のシステムプロンプト(\"You are a coding agent running in the Codex CLI\")に対し、残りクォータに関係なくこの 429 を返します。クォータ切れではなく、待っても解決しません。magpie はこの行を \"You're …\" として送り、それは通るので、これらのチャットには別のプロバイダーを使うか、ルーティンググループで Antigravity の後に別のプロバイダーを置いてください",
|
||||
"Antigravity answers this 429 to pi's default system prompt (\"You are a coding assistant running inside pi\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"running within pi\", which goes through, so give pi a system prompt of your own (--system-prompt) or use another provider for these chats": "Antigravity は pi のデフォルトのシステムプロンプト(\"You are a coding assistant running inside pi\")に対し、残りクォータに関係なくこの 429 を返します。クォータ切れではなく、待っても解決しません。magpie はこの行を \"running within pi\" として送り、それは通るので、pi に独自のシステムプロンプト(--system-prompt)を指定するか、これらのチャットには別のプロバイダーを使ってください",
|
||||
"Antigravity answers this 429 to the line \"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.\" that starts oh-my-pi (omp)'s system prompt, and to any prompt that has it, whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"RFC 2119 key words: …\", which goes through, so this one came from a copy of it that was worded another way": "Antigravity は oh-my-pi(omp)のシステムプロンプト冒頭の行 \"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.\" と、この行を含むあらゆるプロンプトに対し、残りクォータに関係なくこの 429 を返します。クォータ切れではなく、待っても解決しません。magpie はこの行を \"RFC 2119 key words: …\" として送り、それは通るので、今回は表現の異なるこの行のコピーが原因です",
|
||||
"the provider's network firewall blocked requests from this IP; wait a while, or switch to another network or proxy": "プロバイダのネットワークファイアウォールがこの IP からのリクエストをブロックしました。しばらく待つか、別のネットワークやプロキシに切り替えてください",
|
||||
"ZCode's risk control blocked this account for unusual activity (code 3012); it rests, and the group's other providers are used. If the ZCode app fails on this account too, only ZCode support can lift the block": "ZCode のリスク管理が不審なアクティビティを理由にこのアカウントをブロックしました(コード 3012)。このアカウントは休止し、グループの他のプロバイダが使われます。ZCode アプリでもこのアカウントが失敗する場合、解除できるのは ZCode サポートだけです",
|
||||
@@ -20113,7 +20122,10 @@ const I18N = {
|
||||
"WorkBuddy refuses chats from Codex and Claude Code (their system prompt); use it from Hermes, OpenCode or Pi, or add another provider to this group": "WorkBuddy lehnt Chats von Codex und Claude Code ab (wegen ihres System-Prompts); nutzen Sie es aus Hermes, OpenCode oder Pi oder fügen Sie dieser Gruppe einen weiteren Anbieter hinzu",
|
||||
"Antigravity answers this 429 to the system prompt of Claude Code and the Claude Agent SDK (Claude Desktop's chats) whatever quota is left, so it is not a quota and waiting won't help; use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity beantwortet den System-Prompt von Claude Code und dem Claude Agent SDK (Chats in Claude Desktop) mit diesem 429, egal wie viel Kontingent übrig ist – das Kontingent ist also nicht aufgebraucht, und Warten hilft nicht; nutzen Sie für diese Chats einen anderen Anbieter oder setzen Sie in einer Routing-Gruppe einen hinter Antigravity",
|
||||
"Antigravity answers this 429 to Codex's own system prompt for GPT-5 models whatever quota is left, so it is not a quota and waiting won't help; a Codex chat begun on a GPT model keeps that prompt after a model switch or a fork, so start a new chat on this model": "Antigravity beantwortet den eigenen System-Prompt von Codex für GPT-5-Modelle mit diesem 429, egal wie viel Kontingent übrig ist – das Kontingent ist also nicht aufgebraucht, und Warten hilft nicht; ein Codex-Chat, der auf einem GPT-Modell begonnen wurde, behält diesen Prompt nach einem Modellwechsel oder Fork, also beginnen Sie einen neuen Chat mit diesem Modell",
|
||||
"Antigravity answers this 429 to Hermes Agent's earlier default persona (its SOUL.md) whatever quota is left, so it is not a quota and waiting won't help; Hermes' current default persona goes through, so put it in SOUL.md, or use another provider for these chats": "Antigravity beantwortet die frühere Standard-Persona von Hermes Agent (seine SOUL.md) mit diesem 429, egal wie viel Kontingent übrig ist – das Kontingent ist also nicht aufgebraucht, und Warten hilft nicht; die aktuelle Standard-Persona von Hermes geht durch, also tragen Sie diese in SOUL.md ein, oder nutzen Sie für diese Chats einen anderen Anbieter",
|
||||
"Antigravity answers this 429 to Hermes Agent's default persona (\"You are Hermes Agent, …\" in its SOUL.md), the current one and the earlier one alike, whatever quota is left, so it is not a quota and waiting won't help; magpie sends it as \"You're Hermes Agent, …\", which goes through, so start SOUL.md another way, or use another provider for these chats": "Antigravity beantwortet die Standard-Persona von Hermes Agent (\"You are Hermes Agent, …\" in seiner SOUL.md), die aktuelle wie die frühere, mit diesem 429, egal wie viel Kontingent übrig ist – das Kontingent ist also nicht aufgebraucht, und Warten hilft nicht; magpie sendet sie als \"You're Hermes Agent, …\", was durchgeht, also beginnen Sie SOUL.md anders, oder nutzen Sie für diese Chats einen anderen Anbieter",
|
||||
"Antigravity answers this 429 to OpenCode's system prompt (\"You are OpenCode, …\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're OpenCode, …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity beantwortet den Systemprompt von OpenCode (\"You are OpenCode, …\") mit diesem 429, egal wie viel Kontingent übrig ist – das Kontingent ist also nicht aufgebraucht, und Warten hilft nicht; magpie sendet diese Zeile als \"You're OpenCode, …\", was durchgeht, also nutzen Sie für diese Chats einen anderen Anbieter, oder setzen Sie in einer Routing-Gruppe einen hinter Antigravity",
|
||||
"Antigravity answers this 429 to Codex's prompt for a model it has none of its own for (\"You are a coding agent running in the Codex CLI\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group": "Antigravity beantwortet den Prompt von Codex für ein Modell ohne eigenen Prompt (\"You are a coding agent running in the Codex CLI\") mit diesem 429, egal wie viel Kontingent übrig ist – das Kontingent ist also nicht aufgebraucht, und Warten hilft nicht; magpie sendet diese Zeile als \"You're …\", was durchgeht, also nutzen Sie für diese Chats einen anderen Anbieter, oder setzen Sie in einer Routing-Gruppe einen hinter Antigravity",
|
||||
"Antigravity answers this 429 to pi's default system prompt (\"You are a coding assistant running inside pi\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"running within pi\", which goes through, so give pi a system prompt of your own (--system-prompt) or use another provider for these chats": "Antigravity beantwortet den Standard-Systemprompt von pi (\"You are a coding assistant running inside pi\") mit diesem 429, egal wie viel Kontingent übrig ist – das Kontingent ist also nicht aufgebraucht, und Warten hilft nicht; magpie sendet diese Zeile als \"running within pi\", was durchgeht, also geben Sie pi einen eigenen Systemprompt (--system-prompt), oder nutzen Sie für diese Chats einen anderen Anbieter",
|
||||
"Antigravity answers this 429 to the line \"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.\" that starts oh-my-pi (omp)'s system prompt, and to any prompt that has it, whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"RFC 2119 key words: …\", which goes through, so this one came from a copy of it that was worded another way": "Antigravity beantwortet die Zeile \"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.\", mit der der System-Prompt von oh-my-pi (omp) beginnt, und jeden Prompt, der sie enthält, mit diesem 429, egal wie viel Kontingent übrig ist – das Kontingent ist also nicht aufgebraucht, und Warten hilft nicht; magpie sendet diese Zeile als \"RFC 2119 key words: …\", was durchgeht, dieser Fehler kam also von einer anders formulierten Kopie davon",
|
||||
"the provider's network firewall blocked requests from this IP; wait a while, or switch to another network or proxy": "die Netzwerk-Firewall des Anbieters hat Anfragen von dieser IP blockiert; warten Sie eine Weile oder wechseln Sie Netzwerk oder Proxy",
|
||||
"ZCode's risk control blocked this account for unusual activity (code 3012); it rests, and the group's other providers are used. If the ZCode app fails on this account too, only ZCode support can lift the block": "Die Risikokontrolle von ZCode hat dieses Konto wegen ungewöhnlicher Aktivität gesperrt (Code 3012); es pausiert, und die anderen Anbieter der Gruppe werden genutzt. Scheitert das Konto auch in der ZCode-App, kann nur der ZCode-Support die Sperre aufheben",
|
||||
|
||||
@@ -1565,16 +1565,23 @@ function routingPage(part) {
|
||||
// what it adds to the same 429 for Codex's own GPT-5 system prompt, which
|
||||
// a thread begun on a GPT model keeps after a switch (antigravityCodexHint)
|
||||
const AG_CODEX = "Antigravity answers this 429 to Codex's own system prompt for GPT-5 models whatever quota is left, so it is not a quota and waiting won't help; a Codex chat begun on a GPT model keeps that prompt after a model switch or a fork, so start a new chat on this model";
|
||||
// what it adds to the same 429 for Hermes Agent's earlier default persona
|
||||
// (antigravityHermesHint)
|
||||
const AG_HERMES = "Antigravity answers this 429 to Hermes Agent's earlier default persona (its SOUL.md) whatever quota is left, so it is not a quota and waiting won't help; Hermes' current default persona goes through, so put it in SOUL.md, or use another provider for these chats";
|
||||
// what it adds to the same 429 for Hermes Agent's persona, today's or the
|
||||
// earlier one (antigravityHermesHint)
|
||||
const AG_HERMES = "Antigravity answers this 429 to Hermes Agent's default persona (\"You are Hermes Agent, …\" in its SOUL.md), the current one and the earlier one alike, whatever quota is left, so it is not a quota and waiting won't help; magpie sends it as \"You're Hermes Agent, …\", which goes through, so start SOUL.md another way, or use another provider for these chats";
|
||||
// ... for OpenCode's prompts (antigravityOpenCodeHint)
|
||||
const AG_OPENCODE = "Antigravity answers this 429 to OpenCode's system prompt (\"You are OpenCode, …\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're OpenCode, …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group";
|
||||
// ... for Codex's prompt for a model it has none of its own for
|
||||
// (antigravityCodexCLIHint)
|
||||
const AG_CODEX_CLI = "Antigravity answers this 429 to Codex's prompt for a model it has none of its own for (\"You are a coding agent running in the Codex CLI\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"You're …\", which goes through, so use another provider for these chats, or put one after Antigravity in a routing group";
|
||||
// ... for pi's default prompt (antigravityPiHint)
|
||||
const AG_PI = "Antigravity answers this 429 to pi's default system prompt (\"You are a coding assistant running inside pi\") whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"running within pi\", which goes through, so give pi a system prompt of your own (--system-prompt) or use another provider for these chats";
|
||||
// what it adds to the same 429 for oh-my-pi's RFC 2119 line
|
||||
// (antigravityRFCHint)
|
||||
const AG_RFC = "Antigravity answers this 429 to the line \"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL.\" that starts oh-my-pi (omp)'s system prompt, and to any prompt that has it, whatever quota is left, so it is not a quota and waiting won't help; magpie sends that line as \"RFC 2119 key words: …\", which goes through, so this one came from a copy of it that was worded another way";
|
||||
// what it adds to WorkBuddy's 403 11140 for an account it restricted
|
||||
// (provider.WBRestrictedHint, #1849)
|
||||
const WB_RESTRICTED = "WorkBuddy restricted this account for unusual activity; it stays out until WorkBuddy lifts that, which an appeal (Submit feedback in WorkBuddy) asks for";
|
||||
const HINTS = [WB_REFUSED, BLOCKED, ZCODE_BLOCKED, AG_TURNED_AWAY, AG_CODEX, AG_HERMES, AG_RFC, WB_RESTRICTED];
|
||||
const HINTS = [WB_REFUSED, BLOCKED, ZCODE_BLOCKED, AG_TURNED_AWAY, AG_CODEX, AG_HERMES, AG_OPENCODE, AG_CODEX_CLI, AG_PI, AG_RFC, WB_RESTRICTED];
|
||||
|
||||
function trySaid(r, i) {
|
||||
const tr = r.tries[i], w = tried(r, tr), agent = agentName(r.agent);
|
||||
|
||||
Reference in New Issue
Block a user