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"); }