← Back to Skills Marketplace
imchongliu

Cross-Session Task Manager

by imchongliu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
199
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install cross-session-tasks
Description
解决 AI Agent 跨会话失忆问题的任务管理系统。3 个文件 + 3 条规则, 让 Agent 在 session 结束后仍能延续任务,跨 channel/thread 断点续传。 触发词:任务管理、跨会话、task continuity、session memory、断点续传
README (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(自由使用、修改、分发)

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cross-session-tasks
  3. After installation, invoke the skill by name or use /cross-session-tasks
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug cross-session-tasks
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Cross-Session Task Manager?

解决 AI Agent 跨会话失忆问题的任务管理系统。3 个文件 + 3 条规则, 让 Agent 在 session 结束后仍能延续任务,跨 channel/thread 断点续传。 触发词:任务管理、跨会话、task continuity、session memory、断点续传. It is an AI Agent Skill for Claude Code / OpenClaw, with 199 downloads so far.

How do I install Cross-Session Task Manager?

Run "/install cross-session-tasks" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cross-Session Task Manager free?

Yes, Cross-Session Task Manager is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cross-Session Task Manager support?

Cross-Session Task Manager is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cross-Session Task Manager?

It is built and maintained by imchongliu (@imchongliu); the current version is v1.0.0.

💬 Comments