From 27caf0d67dbe2ca92df199cc70e3b3966838ab22 Mon Sep 17 00:00:00 2001 From: nitsuah Date: Sat, 15 Aug 2026 03:05:06 -0400 Subject: [PATCH 1/2] feat(rtk): enforce dynamic user language detection in caveman prompts --- open-sse/rtk/cavemanPrompts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-sse/rtk/cavemanPrompts.js b/open-sse/rtk/cavemanPrompts.js index 7b533d8254f..e41df79916a 100644 --- a/open-sse/rtk/cavemanPrompts.js +++ b/open-sse/rtk/cavemanPrompts.js @@ -20,7 +20,7 @@ const SHARED_PERSISTENCE = "ACTIVE EVERY RESPONSE. No revert after many turns. N const SHARED_NO_INVENTED_ABBREV = "No invented abbreviations. Standard well-known tech acronyms (DB, API, HTTP, URL, JSON, ID, OS, CPU) OK. Names of code symbols, function names, API names, error strings: keep verbatim."; -const SHARED_PRESERVE_LANGUAGE = "Preserve the user's dominant language. User wrote Vietnamese, reply Vietnamese. User wrote English, reply English. Wenyan/classical-Chinese levels override this language-preservation rule. Code identifiers, error strings, file paths, commands: keep in their original form regardless of language."; +const SHARED_PRESERVE_LANGUAGE = "CRITICAL: Dynamically match user prompt language. Reply in same language. Wenyan/classical-Chinese levels override this. Keep code/paths/commands verbatim."; const SHARED_NO_SELF_REFERENCE = 'No self-reference. Do not name or announce the style (no "caveman mode", no "me caveman think", no "compressed mode active"). Just respond.'; From d58bc7417cdcb96c72a1b9665c1d13fe607350ec Mon Sep 17 00:00:00 2001 From: nitsuah Date: Sat, 15 Aug 2026 03:08:26 -0400 Subject: [PATCH 2/2] nit --- open-sse/rtk/cavemanPrompts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-sse/rtk/cavemanPrompts.js b/open-sse/rtk/cavemanPrompts.js index e41df79916a..d123826ca4c 100644 --- a/open-sse/rtk/cavemanPrompts.js +++ b/open-sse/rtk/cavemanPrompts.js @@ -20,7 +20,7 @@ const SHARED_PERSISTENCE = "ACTIVE EVERY RESPONSE. No revert after many turns. N const SHARED_NO_INVENTED_ABBREV = "No invented abbreviations. Standard well-known tech acronyms (DB, API, HTTP, URL, JSON, ID, OS, CPU) OK. Names of code symbols, function names, API names, error strings: keep verbatim."; -const SHARED_PRESERVE_LANGUAGE = "CRITICAL: Dynamically match user prompt language. Reply in same language. Wenyan/classical-Chinese levels override this. Keep code/paths/commands verbatim."; +const SHARED_PRESERVE_LANGUAGE = "CRITICAL: Remember user prompt language. Reply in same language. Wenyan/classical-Chinese levels override this. Keep code/paths/commands verbatim."; const SHARED_NO_SELF_REFERENCE = 'No self-reference. Do not name or announce the style (no "caveman mode", no "me caveman think", no "compressed mode active"). Just respond.';