ワンクリックで
recap
// Summarize the last N agent sessions for the current project, grouped by date. Use when the user asks "recap", "what have we been doing", "this week", "today", or wants a rollup of recent work.
// Summarize the last N agent sessions for the current project, grouped by date. Use when the user asks "recap", "what have we been doing", "this week", "today", or wants a rollup of recent work.
Trace a file, function, or line back to the agent session that produced its current commit. Use when the user asks "why is this code here", "what was the agent doing when this changed", or wants context on a specific location in the codebase.
List recent git commits that are linked to agent sessions, optionally filtered by branch or repo. Use when the user asks "show agent commits", "what has the agent shipped", or wants a list of commits with their session context.
Resume the most recent agent session for the current working directory. Use when the user says "where were we", "resume", "handoff", "pick up where I left off", or starts a session with no fresh context.
Delete specific observations or sessions from agentmemory. Use when user says "forget this", "delete memory", or wants to remove specific data for privacy.
Search agentmemory for past observations, sessions, and learnings about a topic. Use when the user says "recall", "remember", "what did we do", or needs context from past sessions.
Explicitly save an insight, decision, or learning to agentmemory's long-term storage. Use when the user says "remember this", "save this", or wants to preserve knowledge for future sessions.
| name | recap |
| description | Summarize the last N agent sessions for the current project, grouped by date. Use when the user asks "recap", "what have we been doing", "this week", "today", or wants a rollup of recent work. |
| argument-hint | [last N | today | this week] |
| user-invocable | true |
The user wants a recap. Time window args: $ARGUMENTS
Parse $ARGUMENTS to determine the window:
today -> sessions started on the current local datethis week -> sessions started in the last 7 dayslast <n> -> the most recent N sessionslast <n>last 10Call the memory_sessions MCP tool, then filter to the current project (match by cwd against the working directory). Apply the time window. Sort by startedAt descending.
Group the surviving sessions by their local calendar date (YYYY-MM-DD). For each date:
memory_recall with a per-session query, limit 3End with a one-line total: "N sessions across M days, K observations."
If MCP tools are unavailable, fall back to HTTP: GET $AGENTMEMORY_URL/agentmemory/sessions and POST $AGENTMEMORY_URL/agentmemory/recall with Authorization: Bearer $AGENTMEMORY_SECRET when set. Do not invent sessions; if the window is empty, say so.