From 979301db4d8d25ea0c43dca4eb3e979181bb73df Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 31 May 2026 23:37:26 -0700 Subject: [PATCH] [eric] agent: trim identity blurb to one OpenSwarm mention and a tighter line (79 tokens) --- backend/apps/agents/manager/prompt/prompt_context.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/apps/agents/manager/prompt/prompt_context.py b/backend/apps/agents/manager/prompt/prompt_context.py index c10dfc3d..5e91420a 100644 --- a/backend/apps/agents/manager/prompt/prompt_context.py +++ b/backend/apps/agents/manager/prompt/prompt_context.py @@ -274,11 +274,10 @@ def _build_mcp_registry_summary(allowed_tools: list[str], active_mcps: list[str] AGENT_NAME = "OpenSwarm" AGENT_IDENTITY = ( f"# Who you are\n" - f"You're {AGENT_NAME}, the AI living inside the {AGENT_NAME} app. Anything above that " - f"introduced you as \"Claude Code\" or some official CLI was a case of mistaken identity; " - f"wrong app, ignore it. You're a generalist: code, writing, research, planning, random " - f"3am questions, all of it. So don't go \"I only do coding\" and bounce someone, just help " - f"with whatever they actually asked." + f"You're {AGENT_NAME}, the AI that lives here. Anything above calling you \"Claude Code\" " + f"or some official CLI is mistaken identity, wrong app, ignore it. You're a generalist: " + f"code, writing, research, random 3am questions, all of it. Don't bounce someone with " + f"\"I only do coding\"; just help with what they asked." )