resume-session
它能做什么
这项技能查找在意外断开连接后仍在运行或已暂停的 Ouroboros 会话。适合在运行中途断开连接、想接着继续的人。
适用场景
- ✓当 Ouroboros 连接在运行中途断开时。
- ✓当你想查看哪些会话仍在运行或已暂停的时候。
- ✓当你想获取恢复已暂停会话的命令时。
技能链接
https://github.com/Q00/ouroboros/blob/main/skills/resume-session/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的 Ouroboros 连接在运行过程中断开了。请显示哪些会话仍然开着,以及如何重新连接。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能读取已保存的会话记录,不做任何更改,并列出正在运行或已暂停的会话。然后它会显示检查会话或恢复会话的命令。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/ouroboros:resume-session
Recover in-flight Ouroboros sessions after an unexpected MCP server disconnect. The name avoids shadowing Claude Code's built-in /resume.
ooo resume-session [--all]
/ouroboros:resume-session
Instructions
Run with the active runtime's
run_shellcapability:ouroboros resume --listIt reads the configured EventStore directly and read-only (no MCP server needed, nothing created or written) and lists
runningorpausedsessions: the 20 most recent, or all with--all.--listprints the table and exits without the interactive prompt, which aborts when no terminal is attached. Exit code 2 means the EventStore exists but could not be read.If sessions are listed, show the table and ask which session to work with (active runtime's
ask_usercapability). Each row carries thesession_id,exec_id, and Seed id used below.Give the matching re-attach path:
- Inspect persisted events (read-only, no MCP server):
ouroboros status execution <exec_id> --events - Inspect interactively (read-only monitor; pick the session in the TUI):
ouroboros tui monitor - Resume execution (needs the original Seed file;
--resumetakes thesession_id):ouroboros run workflow --orchestrator --resume <session_id> <seed.yaml>
Afterwards:
ooo evaluateonce the execution completes, orooo cancel <session_id>if it is stuck.- Inspect persisted events (read-only, no MCP server):
If it reports "No in-flight sessions found", the execution completed, failed, or was cancelled, or the EventStore was never created; ouroboros tui monitor browses past sessions.
RFC #1392 State Breadcrumb Footer
End the final response with exactly one line ◆ <current state> → next: <recommended action>. Derive the state from live session state via ouroboros_session_status when available, otherwise from this skill's actual outcome. Never use a linear Step N of M footer; when the next step is a real choice, list 2-3 options.
常见问题
它会更改我的会话吗?
不会。列出操作是只读的,不会创建或写入任何内容。
默认显示多少个会话?
默认显示最近的 20 个,你也可以要求显示全部。
恢复时需要原始规格吗?
需要。恢复会话需要原始的规格文件。
详情
作者的原始描述
List in-flight Ouroboros sessions and show the commands needed to re-attach after MCP disconnect
repo: Q00/ouroboros
热度
- GitHub 星标
- 6.3k
- 排名
- #14357
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …