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.
This commit is contained in:
@@ -67,6 +67,7 @@ export function buildBuiltinMessages(ctx: AgentContext): ChatMessage[] {
|
|||||||
"",
|
"",
|
||||||
"You have tools available (read_file, write_file, run_command). " +
|
"You have tools available (read_file, write_file, run_command). " +
|
||||||
"Use them to complete your task — read files, run commands, make changes as needed. " +
|
"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. " +
|
"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. " +
|
"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 — " +
|
"CRITICAL: Your final output MUST start with the `---` fence on the very first line — " +
|
||||||
|
|||||||
Reference in New Issue
Block a user