[Memory P3] Auto-trigger session search on recall patterns #249

Open
opened 2026-04-09 00:41:35 +00:00 by Rockachopa · 0 comments
Owner

Context

Users say things like "we did this before", "last time", "remember when", "as I mentioned", "what did we decide about X" — these are recall signals that should automatically trigger session search.

Task

  1. Define pattern list for recall signals (regex or keyword)
  2. When detected, automatically invoke session_search
  3. Inject results as prefetched context (not a visible tool call)
  4. Combine with the FTS5 probe from P3.1 — patterns trigger unconditionally, probe triggers conditionally

Patterns to detect

  • "we did this before" / "we've done this" / "we already"
  • "last time" / "previously" / "earlier"
  • "remember when" / "do you remember"
  • "as I mentioned" / "as we discussed"
  • "what did we decide" / "what was the plan for"

Acceptance Criteria

  • "what did we decide about memory?" auto-surfaces relevant past sessions
  • Results appear as context, not as a tool output block
  • No false triggers on casual use of "remember" or "last"

Part of: [EPIC] Unified Memory Architecture

## Context Users say things like "we did this before", "last time", "remember when", "as I mentioned", "what did we decide about X" — these are recall signals that should automatically trigger session search. ## Task 1. Define pattern list for recall signals (regex or keyword) 2. When detected, automatically invoke session_search 3. Inject results as prefetched context (not a visible tool call) 4. Combine with the FTS5 probe from P3.1 — patterns trigger unconditionally, probe triggers conditionally ## Patterns to detect - "we did this before" / "we've done this" / "we already" - "last time" / "previously" / "earlier" - "remember when" / "do you remember" - "as I mentioned" / "as we discussed" - "what did we decide" / "what was the plan for" ## Acceptance Criteria - "what did we decide about memory?" auto-surfaces relevant past sessions - Results appear as context, not as a tool output block - No false triggers on casual use of "remember" or "last" Part of: [EPIC] Unified Memory Architecture
Rockachopa added this to the Unified Memory Architecture milestone 2026-04-09 00:41:35 +00:00
Rockachopa added the phase:3-episodicepic:memory labels 2026-04-09 00:41:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/hermes-agent#249