You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #370 landed, memory recall now only runs at turn boundaries (not on every tool-loop iteration). This is correct — the recall query is based on the last user message, which doesn't change between tool iterations, so re-querying produces identical results.
Future Enhancement
There may be value in tool-result-aware recall: incorporating tool results into the recall query so that mid-loop iterations could surface different, more relevant memories based on what the tools discovered.
Example scenario:
User asks "what should we do about the database?"
Turn-start recall surfaces general DB preference memories
Tool call discovers the issue is specifically about PostgreSQL replication
A re-query incorporating "PostgreSQL replication" context could surface more targeted memories (e.g., the user's PostgreSQL version preferences, prior replication decisions)
Current Behavior
The recall query always uses _state.FindLastUserMessage()?.Content, which is the raw user message. Tool results are not factored into the query.
Design Considerations
Would require a new recall query strategy that extracts key terms from tool results
Could use a lightweight extraction (keyword-based) or LLM-based query reformulation
Should be opt-in / configurable to avoid adding latency to tool loops that don't benefit
Context
With #370 landed, memory recall now only runs at turn boundaries (not on every tool-loop iteration). This is correct — the recall query is based on the last user message, which doesn't change between tool iterations, so re-querying produces identical results.
Future Enhancement
There may be value in tool-result-aware recall: incorporating tool results into the recall query so that mid-loop iterations could surface different, more relevant memories based on what the tools discovered.
Example scenario:
Current Behavior
The recall query always uses
_state.FindLastUserMessage()?.Content, which is the raw user message. Tool results are not factored into the query.Design Considerations
Related