session-history
它能做什么
这项技能以时间线的形式显示你当前项目最近的工作会话。每次会话会显示其状态、观察记录数量和关键决定。
适用场景
- ✓当你问上一次我们做了什么,或想列出过去的会话时。
- ✓当你想概览当前项目之前的工作时。
- ✓当你想查看每次过去会话中的关键决定时。
技能链接
https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/session-history/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“上一次我们在这个项目上做了什么?请给我看会话历史。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会按日期倒序列出该项目的会话,显示每次会话的短 ID、开始时间、状态和观察记录数量。如果记录了亮点和关键决定,也会一并列出。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
The user wants an overview of recent sessions on this project.
Quick start
memory_sessions { "project": "<current-project-id>", "limit": 20 }
Expected output:
7f3a9c2 · app · 2026-06-07 09:00 · completed · 14 obs
- decision: Rotate refresh tokens on every use
b21d004 · app · 2026-06-05 14:00 · completed · 9 obs
- code: limit.ts counts per-IP
Why
Only show sessions and observations the tool returned. An empty history is a real answer, never a cue to invent past work.
Workflow
- Use the exact project identifier recorded by the host and pass it to
memory_sessions, withagentIdwhen requested. If it is unknown, page through sessions usingnextCursorand match normalizedcwdby directory boundary before choosing the most recent 20. Never substitute another project. - Preserve scope filters on every page; stop at the requested count or a null
nextCursor. State when the displayed history is a partial page. Present in reverse chronological order: session id (first 8), project, start time, status. - For sessions with observations, show the key highlights (type plus title).
- Note the total observation count per session.
- When a session summary exists, surface its title and the key decisions.
Anti-patterns
WRONG: the tool returns two sessions, you describe "several sessions of steady progress" and add ones you remember from the conversation.
RIGHT: show exactly the two sessions returned, each with its real id, status, and observation count.
Checklist
- Every session shown came from the tool response.
- Project/directory scope was checked before selecting the displayed window.
- Order is reverse-chronological.
- Per-session observation counts match the response.
- No session or highlight was invented or merged.
See also
recap: same data grouped by date with highlights.handoff: jump straight into the most recent session.recall: search across all sessions by topic.
Troubleshooting
See TROUBLESHOOTING.md if memory_sessions is not available.
常见问题
如果没有历史记录怎么办?
技能会直接说明,不会编造过去的会话。
它会显示其他项目的会话吗?
不会。它只针对你正在工作的项目,不会替换成其他项目。
它会显示每一次会话吗?
它会显示一定数量的会话,例如最近的二十次,并在列表不完整时加以说明。
详情
作者的原始描述
Show what happened in recent past sessions on this project as a clean timeline. Use when the user asks "what did we do last time", "session history", "past sessions", or wants an overview of previous work.
repo: rohitg00/agentmemory
热度
- GitHub 星标
- 30k
- 排名
- #9354
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agentmemory-agents
30k帮你的智能体把 agentmemory 记忆服务器连接到 Claude Code、Cursor 和 Codex 等编程工具。
agentmemory-architecture
30k解释 agentmemory 如何为编程智能体存储、搜索和管理记忆,从记录到回忆的整个过程。
agentmemory-config
30k帮你的智能体设置并检查 agentmemory 记忆服务器,包括端口、配置和功能开关。
agentmemory-hooks
30k帮你的智能体自动从编程会话中记录有用的笔记,而不需要你逐条手动保存。