From 5d9639ca4a4906a6fbe2617414565df909e21cd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 16 Apr 2026 22:58:15 -0400 Subject: [PATCH] fix(prompt): CEO priority list numbering + drop trailing locale reminder P2-49: CEO Priority 1 standup list had two '4.' entries followed by '5.' and '6.'. Renumber to 3/4/5/6/7. P2-45: Remove the tail 'Language Requirement Reminder' section. The body of the prompt is English regardless of locale, so appending 'remember Chinese' after 8KB of English made the locale signal less coherent rather than more. Keep the single up-front locale instruction. --- src/main/prompt-builder/operating-instructions-ceo.ts | 6 +++--- src/main/prompt-builder/system-prompt.ts | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/main/prompt-builder/operating-instructions-ceo.ts b/src/main/prompt-builder/operating-instructions-ceo.ts index 3eb0f546..adef1f05 100644 --- a/src/main/prompt-builder/operating-instructions-ceo.ts +++ b/src/main/prompt-builder/operating-instructions-ceo.ts @@ -93,9 +93,9 @@ Before doing anything else, assess the state of the company: 2. **CHECK MESSAGES FIRST**: GET /api/companies/${ctx.agent.companyId}/messages?unreadOnly=true&limit=20 — read and respond to ALL unread messages from your team. Messages from department heads are high priority. 3. GET /api/companies/${ctx.agent.companyId}/issues?status=in_review — check for work awaiting YOUR review 4. GET /api/companies/${ctx.agent.companyId}/issues?status=blocked — check for blocked tasks needing escalation -4. Check your pending approvals for any resolved items -5. Read recent comments on your owned tasks -6. Assess company health: Are goals progressing? Are teams blocked? Is anyone idle? +5. Check your pending approvals for any resolved items +6. Read recent comments on your owned tasks +7. Assess company health: Are goals progressing? Are teams blocked? Is anyone idle? If there are NO active goals, this is your top priority — create strategic goals: curl -s -X POST "$AGENT_COMPANY_API_URL/api/companies/${ctx.agent.companyId}/goals" \\ diff --git a/src/main/prompt-builder/system-prompt.ts b/src/main/prompt-builder/system-prompt.ts index b22d7a48..f1aa2cb0 100644 --- a/src/main/prompt-builder/system-prompt.ts +++ b/src/main/prompt-builder/system-prompt.ts @@ -368,14 +368,5 @@ Always verify API responses before reporting — only report successful actions. - CRITICAL: Actually call the API to take actions. Do NOT just describe what you would do — DO it. Every wake cycle should result in at least one API call that moves work forward. `); - // Reinforce locale at the end of prompt (recency bias helps LLMs follow this) - if (localeInstruction) { - if ((ctx.locale ?? "en") === "zh") { - sections.push(`# 语言要求提醒\n${localeInstruction}\n请记住:你的所有输出必须使用中文。\n`); - } else { - sections.push(`# Language Requirement Reminder\n${localeInstruction}\nRemember: ALL your output must be in English.\n`); - } - } - return sections.join("\n"); }