跳到正文
Skillpedia
智能体30k · #9354

session-history

它能做什么

这项技能以时间线的形式显示你当前项目最近的工作会话。每次会话会显示其状态、观察记录数量和关键决定。

适用场景

  • ✓当你问上一次我们做了什么,或想列出过去的会话时。
  • ✓当你想概览当前项目之前的工作时。
  • ✓当你想查看每次过去会话中的关键决定时。

技能链接

https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/session-history/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/session-history/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Use the exact project identifier recorded by the host and pass it to memory_sessions, with agentId when requested. If it is unknown, page through sessions using nextCursor and match normalized cwd by directory boundary before choosing the most recent 20. Never substitute another project.
  2. 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.
  3. For sessions with observations, show the key highlights (type plus title).
  4. Note the total observation count per session.
  5. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能