Repository navigation
Conversation
Related: #104245 (broader observed-context implementation incl. shared |
lisajlau
force-pushed
the
whatsapp/group-context
branch
from
September 8, 2026 06:58
7d98c9b to
455b55e
Compare
Author
|
Seems like there is now a pre_gateway_dispatch hook which runs whenever an inbound messaging event arrives. Let me know whether this change is still a good change, otherwise I'll just build this plugin. |
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.
What does this PR do?
Adds opt-in observed-context sharing for the WhatsApp platform.
WhatsApp can now retain unmentioned messages from authorized group chats as
context, without dispatching those messages to the agent. When enabled, that
observed context can be supplied to future addressed messages in other
authorized WhatsApp groups and to an explicit allowlist of DM senders.
Related Issue
#38710
#38750
#104245
Type of Change
Changes Made
observe_unmentioned_group_messagesshare_observed_group_contextobserved_group_context_dm_allow_fromobserved_group_context_retention_daystranscript entries rather than invoking the agent.
group.
WhatsApp groups.
DMs as per-turn context, without modifying the system prompt or persisting
it as user-authored content.
group chatter as context only, not as instructions.
authorization remains governed by
group_policyandgroup_allow_from.retention expiry, and config bridging.
New behavior
With
observe_unmentioned_group_messages: true, Hermes records messages fromauthorized WhatsApp groups even when the bot is not mentioned, but does not
respond to those messages.
With
share_observed_group_context: true, recent observed messages are sharedbetween authorized WhatsApp groups. They are also available in DMs only for
senders listed in
observed_group_context_dm_allow_from.Observed context is bounded by
observed_group_context_retention_days(default: 30 days) and is injected asuntrusted, context-only material for the current turn.
How to Test
Test in this order:
Example of config.yaml to test
Start of yaml
platforms:
whatsapp:
enabled: true
Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/AFor New Skills
hermes --toolsets skills -q "Use the X skill to do Y"Screenshots / Logs