← 返回 Skills 市场
Cross-Session Task Manager
作者
imchongliu
· GitHub ↗
· v1.0.0
· MIT-0
199
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install cross-session-tasks
功能描述
解决 AI Agent 跨会话失忆问题的任务管理系统。3 个文件 + 3 条规则, 让 Agent 在 session 结束后仍能延续任务,跨 channel/thread 断点续传。 触发词:任务管理、跨会话、task continuity、session memory、断点续传
使用说明 (SKILL.md)
Cross-Session Task Management 🧠
让 Agent 记住「上次做到哪了」的 3 个文件 + 3 条规则。
核心问题
每次 session 结束,Agent 失忆。上下文窗口限制导致任务无法跨 session 延续。
设计原则
任务状态住在文件里,不住在 thread 里。
不管你用哪个 channel、哪个 thread、哪天开的对话,只要读到同一个文件,就能恢复上下文。
快速开始
第 1 步:创建 3 个文件
# 1. 复制模板到你的 workspace
cp templates/ACTIVE-TASKS.md ~/. openclaw/workspace/
cp templates/CLOSED-TASKS.md ~/.openclaw/workspace/
mkdir -p ~/.openclaw/workspace/projects/
# 2. 在 AGENTS.md 中添加规则(见下方)
第 2 步:在 AGENTS.md 中添加 3 条规则
在 ## Every Session 部分添加:
4. Read `ACTIVE-TASKS.md` — 有活跃任务就恢复上下文
在文件末尾添加:
### 📋 Session 结束时更新任务状态
每次对话结束前(或主要任务完成后),检查是否有活跃任务需要更新:
1. **读 ACTIVE-TASKS.md** — 确认当前有哪些任务
2. **判断本次对话是否涉及某个任务** — 如果是:
- 更新 `projects/任务名/progress.md` 的进度检查清单
- 更新「下次开始时需要知道的」部分
- 更新 ACTIVE-TASKS.md 的「上次更新」和「下一步」列
3. **发现新任务** — 如果本次对话开启了一个新项目:
- 创建 `projects/任务名/progress.md`
- 在 ACTIVE-TASKS.md 中添加一行
- 归档:将 `projects/任务名/` 移至 `projects/_archive/`,从 ACTIVE-TASKS.md 删除,添加到 `CLOSED-TASKS.md`
4. **不需要更新的情况** — 纯闲聊、信息查询、无涉及活跃任务时,跳过此步骤
### 🔍 处理项目任务时:先检查是否有同名任务
当用户提到一个项目/任务名称时,**先在 ACTIVE-TASKS.md 中搜索同名任务**:
- 如果找到 → 读对应 `progress.md`,从断点继续
- 如果没找到 → 视为新任务,创建 `projects/任务名/progress.md` 并更新 ACTIVE-TASKS.md
- 如果不确定是否是旧任务,**先问用户确认**
### 📝 progress.md 必须包含以下 5 个部分
1. **基本信息** — 项目名、编号、截止日期、相关文件路径
2. **进度检查清单** — 用 checkbox 列出所有步骤,标明当前在哪步
3. **关键决策与规则** — 已做出的决定、必须遵守的规则
4. **文件位置** — 相关文件的路径
5. **下次开始时需要知道的** — 用人类语言写给未来自己的备忘录(3-5 条)
第 3 步:配置心跳兜底(可选)
在 HEARTBEAT.md 中添加:
### 任务健康检查(每 2-3 次心跳触发一次)
- 读取 ACTIVE-TASKS.md,检查所有活跃任务
- 对超过 7 天未更新的任务 → 提醒
- 检查是否有任务的截止日期在 3 天内 → 紧急提醒
文件结构
~/.openclaw/workspace/
├── ACTIVE-TASKS.md # 任务索引(所有活跃任务)
├── CLOSED-TASKS.md # 已归档任务
├── AGENTS.md # 包含任务管理规则
├── HEARTBEAT.md # 心跳检查规则
└── projects/
└── 任务名/
└── progress.md # 单个任务的进度文件
实际效果
- 第 1 天:在 thread A 讨论某个项目,做到一半
- 第 10 天:在 thread B 说「继续做那个项目」
- Agent:读 ACTIVE-TASKS.md → 找到任务 → 读 progress.md → 知道截止日期、已完成步骤、下一步 → 继续
评分
改进前:7/10 → 改进后:8.5/10
许可证
MIT-0(自由使用、修改、分发)
安全使用建议
This skill is a file-based cookbook for making an agent continue tasks across sessions. Before installing: 1) Back up any existing ~/.openclaw/workspace and AGENTS.md because the instructions will create and move directories and edit AGENTS.md. 2) Verify the copy commands (there's a small typo in the documentation) so you don't accidentally write files to the wrong path. 3) Confirm you are comfortable with the agent having permission to read/write ~/.openclaw/workspace and to modify AGENTS.md. 4) Test in an isolated workspace (e.g., a temporary directory) to see behavior before applying to your main environment. If you want stronger safeguards, require explicit user confirmation before the agent updates files or archives projects.
功能分析
Type: OpenClaw Skill
Name: cross-session-tasks
Version: 1.0.0
The skill is a legitimate task management system designed to help an AI agent maintain context across sessions by storing state in local markdown files within the workspace (~/.openclaw/workspace/). It uses standard file operations (mkdir, cp) and clear logic in SKILL.md for updating task progress and checklists, with no evidence of data exfiltration, malicious execution, or unauthorized access.
能力评估
Purpose & Capability
The name/description promise (cross-session task continuity) matches the instructions: the skill tells the agent to store and read task state from files (ACTIVE-TASKS.md, CLOSED-TASKS.md, per-project progress.md). It does not request unrelated credentials or binaries.
Instruction Scope
All runtime instructions are about creating/reading/updating files under ~/.openclaw/workspace and editing AGENTS.md to add rules. This is consistent with the goal, but it does require the agent to read and modify files in the user's home directory and agent config (AGENTS.md). The SKILL.md contains a small typo in the cp path (`~/. openclaw/...`) — users should double-check paths before running commands.
Install Mechanism
Instruction-only skill with no install spec or downloads. No code is written to disk by the skill itself beyond the user-directed file copies; lowest-risk install posture.
Credentials
No environment variables, credentials, or external config paths are requested. The skill's file access (workspace and AGENTS.md) is proportionate to its stated purpose of file-based task persistence.
Persistence & Privilege
The skill is not forced-always and does not request special platform privileges. It does direct the agent to modify files (create project dirs, move to projects/_archive/, update ACTIVE/CLOSED lists and AGENTS.md). That file-system and agent-config modification is expected for this feature, but users should be comfortable granting the agent read/write access to the specified workspace and AGENTS.md.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cross-session-tasks - 安装完成后,直接呼叫该 Skill 的名称或使用
/cross-session-tasks触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the cross-session-tasks skill.
- Provides a simple file-based system (3 files + 3 rules) to persist and continue AI Agent tasks across sessions, channels, or threads.
- Introduces ACTIVE-TASKS.md and projects/进度文件 to track and update ongoing tasks and their progress.
- Includes clear rules for updating, archiving, and resuming tasks, plus optional heartbeat health checks.
- Designed for easy integration by copying templates and adding rules to AGENTS.md.
元数据
常见问题
Cross-Session Task Manager 是什么?
解决 AI Agent 跨会话失忆问题的任务管理系统。3 个文件 + 3 条规则, 让 Agent 在 session 结束后仍能延续任务,跨 channel/thread 断点续传。 触发词:任务管理、跨会话、task continuity、session memory、断点续传. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 199 次。
如何安装 Cross-Session Task Manager?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cross-session-tasks」即可一键安装,无需额外配置。
Cross-Session Task Manager 是免费的吗?
是的,Cross-Session Task Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Cross-Session Task Manager 支持哪些平台?
Cross-Session Task Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Cross-Session Task Manager?
由 imchongliu(@imchongliu)开发并维护,当前版本 v1.0.0。
推荐 Skills