From 6fb3f71ecef8059f17ffc868de7dcd295cbf1d59 Mon Sep 17 00:00:00 2001 From: ts00 Date: Tue, 28 Apr 2026 21:26:46 -0300 Subject: [PATCH] fix(slack-agent): nudge model to actually call tools on test/demo requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User asked the prod bot 'test all your tools and give me a report' in a channel; bot replied verbally without calling any tools (0 tools / 0 steps in the audit row). Reasonable interpretation by Sonnet — the prompt says be concise + prefer tool calls 'when you need information', which 'test' doesn't trigger. Adds an explicit guideline: if the user asks to test, demonstrate, verify, exercise, or show off the tools/capabilities, actually call the relevant tools and report what they returned. Don't just describe them. Caught from prod audit immediately after Phase 4 ship. Made-with: Cursor --- src/slack-agent.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/slack-agent.ts b/src/slack-agent.ts index b15992e..27aed81 100644 --- a/src/slack-agent.ts +++ b/src/slack-agent.ts @@ -79,6 +79,7 @@ function buildSystemPrompt(args: { "- When you need information, prefer a tool call over guessing. For open-ended questions (\"what's going on\", \"summarise X\", \"what did I work on this week\"), call get_memory_briefing first — it gives you the topic clusters, active tags, and open threads in one shot.", "- When citing a specific memory, include its title and (in parentheses) its short id (first 8 chars of the UUID).", "- If you can't find something, say so plainly. Don't invent.", + "- If the user asks you to test, demonstrate, verify, exercise, or show off your tools/capabilities, actually CALL the relevant tools and report what they returned. Don't just describe what they would do — run them. A short report listing each tool you called + a one-line result for each is the right shape.", "", "Writing guidelines:", "- write_memory creates a personal memory by default. Set share_with_team=true ONLY when the user explicitly asks (\"write a team note...\", \"share this with the team\"). When unsure, default to personal.",