Skip to content

add private proactive checkin DMs to eventAssistant#147

Merged
jencompgeek merged 10 commits into
mainfrom
jh/checkin-dms
Jun 5, 2026
Merged

add private proactive checkin DMs to eventAssistant#147
jencompgeek merged 10 commits into
mainfrom
jh/checkin-dms

Conversation

@jencompgeek

@jencompgeek jencompgeek commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

What is in this PR?

Adds a mechanism for eventAssistant to proactively send private messages to users to provide social reassurance, light connection with other participants (letting user know others have similar interests or positions/feelings about something), and low-pressure support. See CHECK_IN_HANDLER.md for details. By default, agent runs every 3 minutes and limits messages to a single participant to no more than once every 10 mins. Uses the same hallucinationChecker that backChannel uses for shared insights to prevent hallucinated user comments on shared sentiment.

Changes in the codebase

  • refactor: move hallucination checker into a shared helper
  • feat: add method to interventionHandler to process private interventions
  • feat: add private proactive checkin DMs to eventAssistant
  • feat: add necessary trace data to proactive agent Langsmith traces
  • test: increase user test timeout to allow time for LLM fun fact generation (unrelated but necessary for CI to pass)
  • test: ensure visualResponse preference set to false for test users (unrelated but necessary for CI to pass)

Documentation and automated testing

Did you:

  • document any breaking changes in your commit messages?
  • document your changes as comments in the code? Use TSDoc format where appropriate.
  • update the README and docs to be clear and easy to use for end users and developers?
  • add and/or update automated tests?
  • update team documentation of any new or changed environment variables?

Testing this PR

Additional information

separate interventionHandler into public and private intervention methods for DM interventions
@jencompgeek jencompgeek changed the title Jh/checkin dms add private proactive checkin DMs to eventAssistant Jun 2, 2026
@jencompgeek jencompgeek marked this pull request as ready for review June 2, 2026 22:01
…agent shared chat history

agents using interventionHandler were attributing shared chat msgs posted by agent to individual
users b/c no role or name
…rect channels

dedup direct channels in the agent on the small chance they were concurrently created simultaneously

@johnnycrich johnnycrich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jencompgeek Thanks for this work. I especially like how you designed the check-in handling!

@jencompgeek jencompgeek merged commit c0f63fe into main Jun 5, 2026
1 check passed
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.

2 participants