fix(subagent): make announce prompt more emphatic
The previous prompt was too permissive about skipping announcements. Updated to strongly encourage announcing results since the requester is waiting for a response. - Add 'You MUST announce your result' instruction - Clarify ANNOUNCE_SKIP is only for complete failures - Improve guidance on providing useful summaries
This commit is contained in:
@@ -213,8 +213,11 @@ function buildSubagentAnnouncePrompt(params: {
|
||||
params.subagentReply
|
||||
? `Sub-agent result: ${params.subagentReply}`
|
||||
: "Sub-agent result: (not available).",
|
||||
'Reply exactly "ANNOUNCE_SKIP" to stay silent.',
|
||||
"Any other reply will be posted to the requester chat provider.",
|
||||
"",
|
||||
"**You MUST announce your result.** The requester is waiting for your response.",
|
||||
"Provide a brief, useful summary of what you accomplished.",
|
||||
'Only reply "ANNOUNCE_SKIP" if the task completely failed with no useful output.',
|
||||
"Your reply will be posted to the requester chat.",
|
||||
].filter(Boolean);
|
||||
return lines.join("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user