From 384c99086aa83c5452d021c8eab74c3a62bad358 Mon Sep 17 00:00:00 2001 From: Kailigithub <12250313+Kailigithub@users.noreply.github.com> Date: Mon, 3 Aug 2026 03:11:54 +0800 Subject: [PATCH] fix(llmcore): use neutral default identity for native Claude sessions (closes #712) --- llmcore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llmcore.py b/llmcore.py index b1226fcfd..6f3d2d3a3 100644 --- a/llmcore.py +++ b/llmcore.py @@ -775,7 +775,7 @@ def raw_ask(self, messages): tools = [dict(t) for t in claude_tools]; tools[-1]["cache_control"] = {"type": "ephemeral"} payload["tools"] = tools else: print("[ERROR] No tools provided for this session.") - payload['system'] = [{"type": "text", "text": "You are Claude Code, Anthropic's official CLI for Claude.", "cache_control": {"type": "ephemeral"}}] + payload['system'] = [{"type": "text", "text": "You are Claude Code, Anthropic's official CLI for Claude." if self.fake_cc_system_prompt else "You are a capable AI assistant running in GenericAgent framework.", "cache_control": {"type": "ephemeral"}}] #payload['system'][0]['text'] += f"\nPlatform: {sys.platform}" if self.system: if self.fake_cc_system_prompt: payload["system"].append({"type": "text", "text": self.system})