跳到正文
Skillpedia
智能体81k · #1692

session-persist

它能做什么

这项技能保存智能体会话的状态,使你可以暂停并稍后恢复。适用于有长期任务、且不想每次都重新建立上下文的人。

适用场景

  • ✓当你需要暂停任务,并在之后带着完整上下文继续的时候。
  • ✓当你想在长任务中设置进度检查点的时候。
  • ✓当你想删除旧的已保存会话的时候。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-rvf/skills/session-persist/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请保存这个会话,以便我明天从上次停下的地方继续迁移工作。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能为智能体的状态、记忆条目和任务进度拍摄快照,并以会话名称存储。之后你可以列出、查看、恢复或删除已保存的会话。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Session Persistence

Save and restore complete agent sessions across conversations.

When to use

When you need to pause work and resume later with full context, or when you want to checkpoint progress during long-running tasks.

Steps

  1. Save session — call mcp__plugin_ruflo-core_ruflo__session_save to snapshot current state
  2. List sessions — call mcp__plugin_ruflo-core_ruflo__session_list to see all saved sessions
  3. Restore — call mcp__plugin_ruflo-core_ruflo__session_restore to resume a previous session
  4. Info — call mcp__plugin_ruflo-core_ruflo__session_info for session details and metadata
  5. Clean up — call mcp__plugin_ruflo-core_ruflo__session_delete to remove old sessions

Session hooks

  • hooks_session-start — automatically restore context at conversation start
  • hooks_session-end — automatically save state with metrics export
  • hooks_session-restore — restore a specific session by ID

What's persisted

  • Agent state and configuration
  • Memory entries and patterns
  • Learning trajectories and metrics
  • Task progress and todos
常见问题

具体会保存哪些内容?

智能体的状态和设置、记忆条目和模式、学习记录以及任务进度。

它会自动恢复吗?

如果已设置,会话开始钩子可以在对话开始时恢复上下文。

如何删除旧会话?

使用删除步骤,它会移除已保存的快照。

详情

作者的原始描述

Persist and restore agent sessions across conversations with state snapshots

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1692
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能