From f34d7e0fe057dd960d85266747446fb7ccd05940 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 11 Jan 2026 06:49:27 +0000 Subject: [PATCH] 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 --- src/agents/subagent-announce.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/agents/subagent-announce.ts b/src/agents/subagent-announce.ts index c48e6e9d6..235da5d72 100644 --- a/src/agents/subagent-announce.ts +++ b/src/agents/subagent-announce.ts @@ -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"); }