From 3d1850ddbeb3efa9c9e4e0af72b906cdc165bcc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=9C=88?= Date: Sat, 23 May 2026 21:30:59 +0800 Subject: [PATCH] fix(builtin): tell agent not to use uwf CLI to discover its task Agent was wasting all 30 turns using uwf/tea CLI to explore threads instead of reading the task from its own user message. --- packages/workflow-agent-builtin/src/prompt.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/workflow-agent-builtin/src/prompt.ts b/packages/workflow-agent-builtin/src/prompt.ts index 867e724..68be81c 100644 --- a/packages/workflow-agent-builtin/src/prompt.ts +++ b/packages/workflow-agent-builtin/src/prompt.ts @@ -67,6 +67,7 @@ export function buildBuiltinMessages(ctx: AgentContext): ChatMessage[] { "", "You have tools available (read_file, write_file, run_command). " + "Use them to complete your task — read files, run commands, make changes as needed. " + + "Your task is described in the user message below — do NOT use uwf or workflow CLI commands to discover your task. " + "When you are done, output your final response with the YAML frontmatter block as specified above. " + "Do NOT output the frontmatter until you have completed all necessary work. " + "CRITICAL: Your final output MUST start with the `---` fence on the very first line — " +