Merged
Conversation
Add discord server link
icarlosmendez
pushed a commit
to icarlosmendez/mem0
that referenced
this pull request
Jun 7, 2025
Update Readme
rohankatakam
pushed a commit
to jean-technologies/jean-memory
that referenced
this pull request
Jun 22, 2025
Update Readme
MDGreyMatter
pushed a commit
to Go-Grey-Matter/ai-memory-system
that referenced
this pull request
Mar 31, 2026
New tool: session_start (mcp_server.py)
- Inserted before get_current_user so it appears first in the tool list
- Parameters: user_email (str), first_message (str)
- Does three things atomically in one round-trip:
1. Resolves user identity: exact email match → fuzzy ILIKE name fallback
Returns {matched, user_email, name, user_id} or {matched:false, message}
2. Searches all team memories (cross-user, no user_id filter, limit=5)
using first_message as the query. Returns related_work list so Claude
can surface teammate progress to the user before responding.
3. Stores "{display_name} started working on: {first_message}" as an
exact memory (infer=False) under the resolved user, including DB sync
to openmemory.memories + memory_status_history.
Tool description instructs Claude to:
- Call session_start as the VERY FIRST tool in every new conversation
- MUST surface non-empty related_work to the user before responding
- Use judgment about relevance; not every hit needs mentioning
- Fall back gracefully if the tool errors
Updated get_current_user description to defer to session_start for
conversation starts; use get_current_user only for mid-conversation
identity lookups.
Bug fixed: old_state in MemoryStatusHistory must be NOT NULL per DB
constraint; used MemoryState.deleted as the sentinel value for new
additions (consistent with existing add_memories behavior).
Verified:
- session_start is tool mem0ai#1 in the tool list
- Returns correct user profile + related_work (em dash Oden memory
surfaces as top result for Oden email copy query, score 0.35)
- Session note "Michael Dunn started working on: ..." stored in DB
- Unknown user returns matched:false + empty related_work
MDGreyMatter
pushed a commit
to Go-Grey-Matter/ai-memory-system
that referenced
this pull request
Mar 31, 2026
New tool: session_start (mcp_server.py)
- Inserted before get_current_user so it appears first in the tool list
- Parameters: user_email (str), first_message (str)
- Does three things atomically in one round-trip:
1. Resolves user identity: exact email match → fuzzy ILIKE name fallback
Returns {matched, user_email, name, user_id} or {matched:false, message}
2. Searches all team memories (cross-user, no user_id filter, limit=5)
using first_message as the query. Returns related_work list so Claude
can surface teammate progress to the user before responding.
3. Stores "{display_name} started working on: {first_message}" as an
exact memory (infer=False) under the resolved user, including DB sync
to openmemory.memories + memory_status_history.
Tool description instructs Claude to:
- Call session_start as the VERY FIRST tool in every new conversation
- MUST surface non-empty related_work to the user before responding
- Use judgment about relevance; not every hit needs mentioning
- Fall back gracefully if the tool errors
Updated get_current_user description to defer to session_start for
conversation starts; use get_current_user only for mid-conversation
identity lookups.
Bug fixed: old_state in MemoryStatusHistory must be NOT NULL per DB
constraint; used MemoryState.deleted as the sentinel value for new
additions (consistent with existing add_memories behavior).
Verified:
- session_start is tool mem0ai#1 in the tool list
- Returns correct user profile + related_work (em dash Oden memory
surfaces as top result for Oden email copy query, score 0.35)
- Session note "Michael Dunn started working on: ..." stored in DB
- Unknown user returns matched:false + empty related_work
MDGreyMatter
pushed a commit
to Go-Grey-Matter/ai-memory-system
that referenced
this pull request
Mar 31, 2026
New tool: session_start (mcp_server.py)
- Inserted before get_current_user so it appears first in the tool list
- Parameters: user_email (str), first_message (str)
- Does three things atomically in one round-trip:
1. Resolves user identity: exact email match → fuzzy ILIKE name fallback
Returns {matched, user_email, name, user_id} or {matched:false, message}
2. Searches all team memories (cross-user, no user_id filter, limit=5)
using first_message as the query. Returns related_work list so Claude
can surface teammate progress to the user before responding.
3. Stores "{display_name} started working on: {first_message}" as an
exact memory (infer=False) under the resolved user, including DB sync
to openmemory.memories + memory_status_history.
Tool description instructs Claude to:
- Call session_start as the VERY FIRST tool in every new conversation
- MUST surface non-empty related_work to the user before responding
- Use judgment about relevance; not every hit needs mentioning
- Fall back gracefully if the tool errors
Updated get_current_user description to defer to session_start for
conversation starts; use get_current_user only for mid-conversation
identity lookups.
Bug fixed: old_state in MemoryStatusHistory must be NOT NULL per DB
constraint; used MemoryState.deleted as the sentinel value for new
additions (consistent with existing add_memories behavior).
Verified:
- session_start is tool mem0ai#1 in the tool list
- Returns correct user profile + related_work (em dash Oden memory
surfaces as top result for Oden email copy query, score 0.35)
- Session note "Michael Dunn started working on: ..." stored in DB
- Unknown user returns matched:false + empty related_work
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.
Add discord server link