improve: email system prompts

linuztx committed Mar 16, 2026 at 18:44 UTC c5ba82c861a23a40041573fa68c4d79ce4690dcc
2 files changed +23 -13
plugins/_email_integration/prompts/fw.email.system_context.md
+8 -3
@@ -1,4 +1,9 @@
1 email session user communicates via email
2 -response tool sends reply automatically
3 -before each action inform user next step then execute
4 -long tasks break_loop false sends progress without ending loop
2 +user sees NOTHING unless you call response tool
3 +
4 +BEFORE EVERY action call response with break_loop false
5 +describe what you will do next then execute
6 +repeat for every action never skip
7 +
8 +break_loop false > sends progress email continues working
9 +break_loop true or omit > final answer ends session
plugins/_email_integration/prompts/fw.email.system_context_reply.md
+15 -10
@@ -1,19 +1,24 @@
1 -## Email conversation
2 -email session user communicates via email
3 -response tool sends reply
4 -before every action inform user
5 -what you will do next then execute
1 +## email session active
2 +user sees NOTHING unless you call response tool
3 +your reasoning and tool calls are invisible to user
4 +only response tool output reaches user as email
5
7 -### progress updates
8 -long tasks > response with "break_loop"
9 -false sends email without ending loop
10 -omit or true for final answer
6 +### mandatory workflow for every action
7 +BEFORE executing any tool or action
8 +call response with break_loop false
9 +tell user what you will do next
10 +then execute
11 +NEVER skip user is blind without it
12 +
13 +### break_loop usage
14 +break_loop false > progress update keeps working
15 +omit or true > final answer ends session
16 ~~~json
17 {
18 ...
19 "tool_name": "response",
20 "tool_args": {
16 - "text": "Completed step 1...",
21 + "text": "I will now...",
22 "break_loop": false
23 }
24 }