Skip to content

fix(cron): add delivery guidance to cron prompt — stop send_message thrashing - #5444

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-39d533b8
Apr 6, 2026
Merged

fix(cron): add delivery guidance to cron prompt — stop send_message thrashing#5444
teknium1 merged 1 commit into
mainfrom
hermes/hermes-39d533b8

Conversation

@teknium1

@teknium1 teknium1 commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Cron agents were burning iterations trying to use send_message (which is disabled via the messaging toolset) because user prompts said things like "send the report to Telegram." The agent would hallucinate-call the unavailable tool, get errors, then retry with different target formats — wasting 4-5 iterations per run.

The scheduler already handles delivery automatically via the deliver setting, but nothing told the agent that.

Fix

Add a delivery guidance hint to _build_job_prompt() alongside the existing [SILENT] hint:

[SYSTEM: You are running as a scheduled cron job. 
DELIVERY: Your final response will be automatically delivered 
to the user — do NOT use send_message or try to deliver 
the output yourself. Just produce your report/output as your 
final response and the system handles the rest. 
SILENT: If there is genuinely nothing new to report, respond 
with exactly "[SILENT]" (nothing else) to suppress delivery...]

Test plan

  • 2 new tests: delivery guidance present + precedes user prompt
  • All 119 existing cron tests pass (0 failures)

…hrashing

Cron agents were burning iterations trying to use send_message (which is
disabled via messaging toolset) because their prompts said things like
'send the report to Telegram'. The scheduler handles delivery
automatically via the deliver setting, but nothing told the agent that.

Add a delivery guidance hint to _build_job_prompt alongside the existing
[SILENT] hint: tells agents their final response is auto-delivered and
they should NOT use send_message.

Before: only [SILENT] suppression hint
After: delivery guidance ('do NOT use send_message') + [SILENT] hint
@teknium1
teknium1 merged commit 89db3ae into main Apr 6, 2026
3 of 4 checks passed
saxster pushed a commit to saxster/hermes-agent that referenced this pull request Apr 8, 2026
…hrashing (NousResearch#5444)

Cron agents were burning iterations trying to use send_message (which is
disabled via messaging toolset) because their prompts said things like
'send the report to Telegram'. The scheduler handles delivery
automatically via the deliver setting, but nothing told the agent that.

Add a delivery guidance hint to _build_job_prompt alongside the existing
[SILENT] hint: tells agents their final response is auto-delivered and
they should NOT use send_message.

Before: only [SILENT] suppression hint
After: delivery guidance ('do NOT use send_message') + [SILENT] hint
Tommyeds pushed a commit to Tommyeds/hermes-agent that referenced this pull request Apr 12, 2026
…hrashing (NousResearch#5444)

Cron agents were burning iterations trying to use send_message (which is
disabled via messaging toolset) because their prompts said things like
'send the report to Telegram'. The scheduler handles delivery
automatically via the deliver setting, but nothing told the agent that.

Add a delivery guidance hint to _build_job_prompt alongside the existing
[SILENT] hint: tells agents their final response is auto-delivered and
they should NOT use send_message.

Before: only [SILENT] suppression hint
After: delivery guidance ('do NOT use send_message') + [SILENT] hint
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…hrashing (NousResearch#5444)

Cron agents were burning iterations trying to use send_message (which is
disabled via messaging toolset) because their prompts said things like
'send the report to Telegram'. The scheduler handles delivery
automatically via the deliver setting, but nothing told the agent that.

Add a delivery guidance hint to _build_job_prompt alongside the existing
[SILENT] hint: tells agents their final response is auto-delivered and
they should NOT use send_message.

Before: only [SILENT] suppression hint
After: delivery guidance ('do NOT use send_message') + [SILENT] hint
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…hrashing (NousResearch#5444)

Cron agents were burning iterations trying to use send_message (which is
disabled via messaging toolset) because their prompts said things like
'send the report to Telegram'. The scheduler handles delivery
automatically via the deliver setting, but nothing told the agent that.

Add a delivery guidance hint to _build_job_prompt alongside the existing
[SILENT] hint: tells agents their final response is auto-delivered and
they should NOT use send_message.

Before: only [SILENT] suppression hint
After: delivery guidance ('do NOT use send_message') + [SILENT] hint
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…hrashing (NousResearch#5444)

Cron agents were burning iterations trying to use send_message (which is
disabled via messaging toolset) because their prompts said things like
'send the report to Telegram'. The scheduler handles delivery
automatically via the deliver setting, but nothing told the agent that.

Add a delivery guidance hint to _build_job_prompt alongside the existing
[SILENT] hint: tells agents their final response is auto-delivered and
they should NOT use send_message.

Before: only [SILENT] suppression hint
After: delivery guidance ('do NOT use send_message') + [SILENT] hint
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…hrashing (NousResearch#5444)

Cron agents were burning iterations trying to use send_message (which is
disabled via messaging toolset) because their prompts said things like
'send the report to Telegram'. The scheduler handles delivery
automatically via the deliver setting, but nothing told the agent that.

Add a delivery guidance hint to _build_job_prompt alongside the existing
[SILENT] hint: tells agents their final response is auto-delivered and
they should NOT use send_message.

Before: only [SILENT] suppression hint
After: delivery guidance ('do NOT use send_message') + [SILENT] hint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant