recap
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThe user wants a recap. Time window args: $ARGUMENTS
Parse to determine the window:
$ARGUMENTS- -> sessions started on the current local date
today - -> sessions started in the last 7 days
this week - -> the most recent N sessions
last <n> - bare numeric -> treat as
last <n> - empty -> default to
last 10
Call the MCP tool, then filter to the current project (match by against the working directory). Apply the time window. Sort by descending.
memory_sessionscwdstartedAtGroup the surviving sessions by their local calendar date (YYYY-MM-DD). For each date:
- List each session: id (first 8 chars), title or first prompt, observation count, status
- Indent two or three highlight observations per session (importance >= 7) drawn from with a per-session query, limit 3
memory_recall
End with a one-line total: "N sessions across M days, K observations."
If MCP tools are unavailable, fall back to HTTP: and with when set. Do not invent sessions; if the window is empty, say so.
GET $AGENTMEMORY_URL/agentmemory/sessionsPOST $AGENTMEMORY_URL/agentmemory/recallAuthorization: Bearer $AGENTMEMORY_SECRET用户需要一份回顾。时间窗口参数:$ARGUMENTS
解析以确定时间窗口:
$ARGUMENTS- -> 当天本地日期开始的会话
today - -> 过去7天内开始的会话
this week - -> 最近的N次会话
last <n> - 纯数字 -> 视为
last <n> - 空值 -> 默认使用
last 10
调用 MCP工具,然后根据工作目录(匹配)筛选当前项目的会话。应用时间窗口筛选,按降序排序。
memory_sessionscwdstartedAt将筛选后的会话按本地日历日期(YYYY-MM-DD)分组。对于每个日期:
- 列出每个会话:ID(前8个字符)、标题或首个提示词、观测次数、状态
- 缩进显示每个会话的2到3条重点观测记录(重要性≥7),通过针对单个会话的查询从获取,最多3条
memory_recall
最后以一行总结收尾:“共M天内的N次会话,K条观测记录。”
若MCP工具不可用,则回退到HTTP方式:调用,以及在设置了时调用。请勿虚构会话;若时间窗口内无会话,请如实说明。
GET $AGENTMEMORY_URL/agentmemory/sessionsAuthorization: Bearer $AGENTMEMORY_SECRETPOST $AGENTMEMORY_URL/agentmemory/recall