From a61fc6a01eec3e53cc3c03aae1b8c802172df7f1 Mon Sep 17 00:00:00 2001 From: decolua Date: Wed, 23 Sep 2026 11:46:05 +0700 Subject: [PATCH] fix(antigravity): rewrite all Hermes identity variants, not just the legacy sentence The old rule only matched 'You are Hermes Agent, an intelligent AI assistant created by Nous Research.' Current Hermes versions use 'You are Hermes Agent, built by Nous Research.' and similar variants, which slipped through and got a fake 429 RESOURCE_EXHAUSTED. Replace every variant with a neutral 'You are an AI assistant.' identity. Co-Authored-By: Claude Code --- open-sse/config/appConstants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-sse/config/appConstants.js b/open-sse/config/appConstants.js index 62ddfb6b..ed627535 100644 --- a/open-sse/config/appConstants.js +++ b/open-sse/config/appConstants.js @@ -178,7 +178,7 @@ export const CLAUDE_SYSTEM_PROMPT = "You are Claude Code, Anthropic's official C // makes the backend flag the request and answer 429 Quota Exhausted. export const ANTIGRAVITY_PROMPT_REWRITES = [ { from: "You are a Claude agent, built on Anthropic's Claude Agent SDK.", to: "" }, - { from: /You are Hermes Agent,\s*(an intelligent AI assistant)(?: created by Nous Research)?\./gi, to: "You are Hermes Agent. You are $1." }, + { from: /You are Hermes(?: Agent)?(?:,\s*(?:an intelligent AI assistant|an AI assistant|an AI agent))?(?:,?\s*(?:built|created)\s+by\s+Nous Research)?\./gi, to: "You are an AI assistant." }, // Claude Code prepends this line to its system prompt. The Claude-format translator strips it, // but OpenAI-format clients (e.g. proxies that convert Claude Code to /v1/chat/completions) // pass it through, and any system text containing it gets a fake 429 RESOURCE_EXHAUSTED.