fix: soften intercom response enforcement to prevent chat loops - #23
Merged
Conversation
Rule #7 and the per-message directive both used MUST/DO NOT language that compelled agents to always respond to intercom messages. Combined with inboundTrigger=always, this created infinite reply loops where agents exchanged pleasantries indefinitely. Changes: - Rule #7: replace MUST with conditional — only reply when there's substance to contribute; never just to acknowledge receipt - Directive: replace forceful DO NOT with gentle reminder — respond only if meaningful, otherwise continue working - Ask messages still require prompt replies since the sender is blocked Co-authored-by: scarlet-tahr-17 <scarlet-tahr-17@pi-agent.local>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rule #7 and the per-message context directive both used forceful MUST/DO NOT language that compelled agents to always respond to every intercom message. Combined with
inboundTrigger=always, this created infinite reply loops where agents exchanged pleasantries endlessly.Changes
Rule #7 (system prompt): Replace "MUST respond" with conditional — agents should only reply when there's substance to contribute (questions, decisions, findings, help). Never reply just to acknowledge receipt, say thanks, or "close the loop." Ask messages still require prompt replies since the sender is blocked.
Per-message directive (context event handler): Replace the forceful "⚠️ DO NOT reply in normal chat. You MUST respond using the intercom tool" with a gentle reminder to respond only if meaningful, otherwise continue working.
Behavior
send("task done")ask("which API?")send("found a bug")— scarlet-tahr-17