Skip to content

Update Readme#15

Merged
taranjeet merged 1 commit intomainfrom
add-discord-badge
Jun 21, 2023
Merged

Update Readme#15
taranjeet merged 1 commit intomainfrom
add-discord-badge

Conversation

@taranjeet
Copy link
Copy Markdown
Member

Add discord server link

Add discord server link
@taranjeet taranjeet merged commit 973dc54 into main Jun 21, 2023
@taranjeet taranjeet deleted the add-discord-badge branch June 21, 2023 17:03
icarlosmendez pushed a commit to icarlosmendez/mem0 that referenced this pull request Jun 7, 2025
rohankatakam pushed a commit to jean-technologies/jean-memory that referenced this pull request Jun 22, 2025
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
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.

1 participant