Recap

作者 rohitg00007a1a7fe864无许可证29K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Summarize the last N agent sessions for the current project, grouped by date, with highlight observations per session. Use when the user asks "recap", "what have we been doing", "today", "this week", or wants a rollup of recent work.

AI 生成的概览

按日期汇总当前项目最近的智能体会话,并给出每个会话的要点。

功能
通过 memory_sessions 和 memory_recall 工具读取会话历史,将会话筛选到当前项目的工作目录,并按参数解析出的时间范围(today、this week、last N,默认 10)进行过滤。它把保留下来的会话按本地日历日期分组,列出每个会话的短 id、标题或首个提示、观察数量和状态,并附上两到三条来自 memory_recall 的高重要性要点。最后以一行总计说明会话数、天数和观察数。
适用场景
当用户要求回顾、询问最近在做什么,或需要今天、本周、最近 N 次会话的汇总时使用。它用于查看当前项目过去的智能体活动,而不是规划后续工作。
运行要求
需要 memory_sessions 和 memory_recall 工具可用;若不可用,会引用一份共享的故障排查文件。不附带脚本,仅为说明文档。

The user wants a recap. Time window args: $ARGUMENTS

Quick start

json
memory_sessions { "limit": 30 }

Then per surviving session: memory_recall { "query": "<top concepts>", "limit": 3 }.

Expected output:

text
2026-06-07  7f3a9c2 · "Auth refresh rework" · 14 obs · completed    - [8] Rotate refresh tokens on every use3 sessions across 2 days, 41 observations.

Why

Only summarize sessions and observations the tools returned. An empty window is a real answer, not a prompt to invent activity.

Workflow

  1. Parse $ARGUMENTS: today = current local date; this week = last 7 days; last <n> or bare numeric = most recent N; empty = last 10.
  2. Call memory_sessions, filter to the current project (match cwd against the working directory), apply the window, sort by startedAt descending.
  3. Group survivors by local calendar date (YYYY-MM-DD).
  4. Per session list id (first 8), title or first prompt, observation count, status. Indent 2-3 highlights (importance >= 7) from memory_recall.
  5. End with "N sessions across M days, K observations."

Anti-patterns

WRONG: window is empty, so you summarize "a productive week of auth work" from memory of the conversation.

RIGHT: "No sessions in the last 7 days for this project."

Checklist

  • Window parsed correctly from the argument.
  • Sessions filtered to the current project's cwd.
  • Highlights come from memory_recall, not paraphrase.
  • Totals line reflects the actual counts shown.

See also

  • handoff, session-history, recall: same session data, different lens.

Troubleshooting

See ../_shared/TROUBLESHOOTING.md if memory_sessions or memory_recall is not available.

来源与署名

来源:rohitg00/agentmemory位于plugin/skills/recap提交007a1a7

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架