session-history

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Fetch recent session history using the
memory_sessions
MCP tool (provided by the agentmemory server that this plugin wires up automatically via
.mcp.json
). Pass
limit: 20
to get a meaningful window.
Present the returned sessions in reverse chronological order:
  • Show the session ID (first 8 chars), project, start time, and status
  • For each session with observations, show the key highlights (type + title)
  • Note the total observation count per session
  • If a session summary exists, surface the title and the key decisions
Format as a clean timeline. Do NOT make up sessions — only show what the MCP tool actually returned. If
memory_sessions
isn't available, the stdio MCP shim didn't start — tell the user to:
  1. Run
    /plugin list
    in Claude Code and confirm
    agentmemory
    shows as enabled.
  2. Restart Claude Code (the plugin's
    .mcp.json
    is only read on startup).
  3. Check
    /mcp
    to see whether the
    agentmemory
    MCP server is connected.
使用
memory_sessions
MCP工具(由本插件通过
.mcp.json
自动连接的agentmemory服务器提供)获取近期会话历史。传入
limit: 20
以获取有效的时间范围。
按时间倒序展示返回的会话:
  • 展示会话ID(前8个字符)、项目、开始时间和状态
  • 对于有观测记录的会话,展示关键要点(类型+标题)
  • 标注每个会话的观测记录总数
  • 如果存在会话摘要,展示摘要标题和关键决策
格式化为清晰的时间线。请勿编造会话——仅展示MCP工具实际返回的内容。如果
memory_sessions
不可用,说明stdio MCP垫片未启动,请告知用户执行以下步骤:
  1. 在Claude Code中运行
    /plugin list
    ,确认
    agentmemory
    已启用。
  2. 重启Claude Code(插件的
    .mcp.json
    仅在启动时读取)。
  3. 查看
    /mcp
    ,确认
    agentmemory
    MCP服务器已连接。