一键导入
session-history
// Show what happened in recent past sessions on this project. Use when user asks "what did we do last time", "session history", "past sessions", or wants an overview of previous work.
// Show what happened in recent past sessions on this project. Use when user asks "what did we do last time", "session history", "past sessions", or wants an overview of previous 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.
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.
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.
| name | session-history |
| description | Show what happened in recent past sessions on this project. Use when user asks "what did we do last time", "session history", "past sessions", or wants an overview of previous work. |
| user-invocable | true |
Fetch recent session history using the memory_sessions MCP tool (provided by the agentmemory server that this plugin wires up automatically via .mcp.json). Pass limit: 20 to get a meaningful window.
Present the returned sessions in reverse chronological order:
Format as a clean timeline. Do NOT make up sessions — only show what the MCP tool actually returned. If memory_sessions isn't available, the stdio MCP shim didn't start — tell the user to:
/plugin list in Claude Code and confirm agentmemory shows as enabled..mcp.json is only read on startup)./mcp to see whether the agentmemory MCP server is connected.