From f64229530eb7cdd798e3f934a9af716c995fc0da Mon Sep 17 00:00:00 2001 From: decolua Date: Thu, 17 Sep 2026 20:18:37 +0700 Subject: [PATCH] fix(antigravity): sanitize Hermes system identity --- open-sse/config/appConstants.js | 1 + 1 file changed, 1 insertion(+) diff --git a/open-sse/config/appConstants.js b/open-sse/config/appConstants.js index 4df1463e..106cba50 100644 --- a/open-sse/config/appConstants.js +++ b/open-sse/config/appConstants.js @@ -178,6 +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: /opencode/gi, to: (m) => (m === "OpenCode" ? "Antigravity" : m === "OPENCODE" ? "ANTIGRAVITY" : "antigravity") } ];