forget

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
The user wants to remove data from agentmemory: $ARGUMENTS
IMPORTANT: This is a destructive operation. Always confirm with the user before deleting.
Steps:
  1. First search for matching observations with the
    memory_smart_search
    MCP tool (provided by the agentmemory server this plugin wires up via
    .mcp.json
    ). Use the user's input as the
    query
    with
    limit: 20
    .
  2. Show the user what was found — session IDs, observation IDs, titles — and ask for explicit confirmation before deleting.
  3. Once confirmed, call
    memory_governance_delete
    with:
    • memoryIds: [<id>, ...]
      — an array (or comma-separated string) of the memory IDs returned by the search in step 1
    • reason: "<short reason>"
      — optional, defaults to
      "plugin skill request"
    If the user wants to drop an entire session's observations, collect every memory ID in that session from the search results and pass them all via
    memoryIds
    . The standalone MCP doesn't accept a bare
    sessionId
    argument — it deletes by memory ID only.
  4. Confirm the deletion count back to the user.
Never delete without explicit user confirmation. If the MCP tools aren'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.
用户希望从agentmemory中移除数据:$ARGUMENTS
重要提示:这是一项破坏性操作。删除前务必与用户确认。
步骤:
  1. 首先使用
    memory_smart_search
    MCP工具(由该插件通过
    .mcp.json
    连接的agentmemory服务器提供)搜索匹配的观测记录。将用户输入作为
    query
    ,设置
    limit: 20
  2. 向用户展示搜索结果——会话ID、观测记录ID、标题——并在删除前请求用户明确确认。
  3. 确认后,调用
    memory_governance_delete
    ,传入:
    • memoryIds: [<id>, ...]
      —— 步骤1搜索返回的内存ID数组(或逗号分隔的字符串)
    • reason: "<简短原因>"
      —— 可选参数,默认值为
      "plugin skill request"
    如果用户希望删除整个会话的观测记录,请从搜索结果中收集该会话的所有内存ID,并通过
    memoryIds
    传入。独立的MCP不接受单独的
    sessionId
    参数——它仅通过内存ID进行删除操作。
  4. 向用户确认删除的数量。
未经用户明确确认,绝不要执行删除操作。 如果MCP工具不可用,说明stdio MCP垫片未启动——请告知用户执行以下操作:
  1. 在Claude Code中运行
    /plugin list
    ,确认
    agentmemory
    已启用。
  2. 重启Claude Code(插件的
    .mcp.json
    仅在启动时读取)。
  3. 查看
    /mcp
    ,确认agentmemory MCP服务器已连接。",