tour

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Memory Tour

记忆漫游

Show the user what Mem0 has stored — a full walkthrough of all memories grouped by category.
向用户展示Mem0中存储的内容——按类别分组的完整记忆导览。

Cross-project mode

跨项目模式

When invoked with
--all-projects
(e.g.,
/mem0-tour --all-projects
), search across ALL projects:
  1. Use
    mem0_memory
    tool with
    action="get_all"
    ,
    scope="global"
    — no project filter.
  2. Group results by project first, then by category within each project.
  3. Display:
    ## <project_1> (<N> memories) <- current
    **Goals** — <memory content>
    ...
    
    ## <project_2> (<N> memories)
    ...
    
    <N> memories across <M> projects
  4. Mark the current project with
    <- current
    in the heading.
If
--all-projects
is NOT present, use the standard single-project flow below.
当使用
--all-projects
参数调用时(例如
/mem0-tour --all-projects
),将搜索所有项目:
  1. 使用
    mem0_memory
    工具,设置
    action="get_all"
    、
    scope="global"
    —— 不添加项目过滤条件。
  2. 先按项目对结果分组,再在每个项目内按类别分组。
  3. 展示格式:
    ## <project_1> (<N> memories) <- current
    **Goals** — <memory content>
    ...
    
    ## <project_2> (<N> memories)
    ...
    
    <N> memories across <M> projects
  4. 在标题中用
    <- current
    标记当前项目。
如果未传入
--all-projects
参数,则使用下方的标准单项目流程。

Search mode

搜索模式

When
/mem0-tour
receives a search query argument (e.g.,
/mem0-tour cooking recipes
), run in search mode — compact one-liner results:
  1. Use
    mem0_memory
    tool with
    action="search"
    ,
    query=<query>
    .
  2. Display compact results (same format as the search skill).
  3. If no results:
    No memories matching "<query>".
If no query argument and no
--all-projects
flag, use the full tour flow below.
当
/mem0-tour
接收到搜索查询参数时(例如
/mem0-tour cooking recipes
),将以搜索模式运行——返回简洁的单行结果:
  1. 使用
    mem0_memory
    工具,设置
    action="search"
    、
    query=<query>
    。
  2. 展示简洁结果(格式与搜索skill一致)。
  3. 若无结果,显示:
    No memories matching "<query>".
如果既没有查询参数,也没有
--all-projects
标志,则使用下方的完整漫游流程。

Execution

执行流程

Step 1: Fetch ALL memories

步骤1:获取所有记忆

Use
mem0_memory
tool with
action="get_all"
.
使用
mem0_memory
工具,设置
action="get_all"
。

Step 2: Group by category

步骤2:按类别分组

Group memories using their
categories
field. Map to display names:
CategoryDisplay name
identity
Identity & Background
preferences
Preferences
goals
Goals & Aspirations
projects
Projects & Initiatives
decisions
Decisions
technical
Technical Knowledge
relationships
People & Relationships
routines
Routines & Workflows
lessons
Lessons Learned
work
Work & Professional
anything elseOther
根据记忆的
categories
字段进行分组,映射到对应的显示名称:
类别字段值显示名称
identity
身份与背景
preferences
偏好设置
goals
目标与愿景
projects
项目与计划
decisions
决策记录
technical
技术知识
relationships
人物与关系
routines
惯例与工作流
lessons
经验教训
work
工作与职业
其他字段值其他

Step 3: Display results

步骤3:展示结果

Sort groups by descending memory count. For each group:
undefined
按记忆数量降序排列各组,每个分组的展示格式如下:
undefined

<display_name> (<count> memories)

<display_name> (<count> memories)

  • <full_memory_content> (<date>)
  • ...

Show the **full memory text** for each entry — do NOT truncate. If a group has more than 10 entries, show top 10 by recency and note `... and <N> more`.
  • <full_memory_content> (<date>)
  • ...

每条记录都要展示**完整的记忆文本**——请勿截断。如果某个分组的条目超过10条,按时间倒序展示前10条,并标注 `... and <N> more`。

Step 4: Print totals

步骤4:输出总计

<N> memories across <M> categories
<N> memories across <M> categories

Step 5: Empty state

步骤5:空状态处理

If zero memories found:
No memories stored yet. Start a conversation — Mem0 captures learnings automatically, or use /mem0-remember to store something manually.
如果未找到任何记忆,显示:
No memories stored yet. Start a conversation — Mem0 captures learnings automatically, or use /mem0-remember to store something manually.