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