← 返回
效率工具 中文

Task Supervisor

Manage complex tasks with 5+ steps or duration >20 min, tracking progress via task files and sending periodic status reports until completion or pause.
管理复杂任务(≥5步或>20分钟),通过任务文件跟踪进度,定期发送状态报告,直至完成或暂停。
mashirops
效率工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 830
下载
💾 6
安装
1
版本
#latest

概述

Task Supervisor

Manage long-running tasks with checkpoints, progress files, and periodic WhatsApp reports.

Is This a Large Task?

Before doing anything else, mentally check:

SignalLarge?
----------------
Steps ≥ 5 OR time > 20 min✅ Yes
User says "take your time / overnight / keep me posted"✅ Yes
Needs sub-agent + cron + multiple domains✅ Yes
Single tool call, quick search, short edit, Q&A❌ No — skip this skill entirely
"Help me write X" (one doc, one sitting)❌ No
"Search for Y and summarize" (few minutes)❌ No

If not large → respond normally, skip task files and crons entirely.

On Task Start

When you receive a large task, immediately:

  1. Create a task file at .tasks/.md (use kebab-case slug)
  2. Decompose the task into numbered steps
  3. Spawn a reporter cron to send progress updates
  4. Begin execution, updating the file after each step

Task File Format

# Task: <Title>

**Started**: <ISO timestamp>
**Status**: in_progress | paused | done | failed
**Estimated Steps**: N
**Last Updated**: <ISO timestamp>

## Steps

- [ ] 1. First step
- [ ] 2. Second step
- [x] 3. Completed step ✓ (2026-03-02T22:05:00+08:00)
- [!] 4. Failed step — <error summary>

## Log

### Step 3 — 2026-03-02T22:05:00+08:00
Result or notes here.

### Error — 2026-03-02T22:07:00+08:00
What failed and how it was handled.

## Result

(Fill when done — final summary for the user)

During Execution

After every step (success or failure):

  • Update the checkbox in Steps ([x] done, [!] failed)
  • Append a Log entry with timestamp and key findings
  • Update Last Updated timestamp

On failure:

  • Mark step [!] with error summary
  • Try an alternative approach if obvious
  • If truly stuck, set Status to paused and note what's needed

Progress Reporting (Cron)

At task start, spawn a cron reporter using exec:

openclaw cron add "task-report-<SLUG>" \
  --schedule "*/15 * * * *" \
  --message "Read .tasks/<SLUG>.md and send a Feishu message to the user with progress update. Include: completed steps, current step, blockers if any. Keep it under 5 sentences. Remove this cron when Status=done or Status=failed." \
  --once-complete

Adjust interval based on task scope:

  • Quick task (<30 min): every 10 min
  • Medium task (30 min–2 hr): every 15 min
  • Long task (>2 hr): every 30 min

On Task Completion

  1. Fill in ## Result section with a clear summary
  2. Set Status: done
  3. Send a final Feishu message: task name, what was accomplished, any caveats
  4. Remove the progress cron

On Task Failure / Getting Stuck

  1. Set Status: paused
  2. Document exactly what was tried and what's blocked
  3. Send Feishu message alert immediately (don't wait for cron)
  4. Do NOT silently stop — always notify

Resuming a Paused Task

When asked to continue a task:

  1. Read .tasks/.md
  2. Find the last completed step
  3. Continue from there
  4. Re-spawn reporter cron if needed

Multi-Task Awareness

If multiple tasks are running, maintain separate files per task. On heartbeat, check .tasks/ for any in_progress tasks and include a brief status in heartbeat responses.

Quick Reference

SituationAction
-------------------
Task assignedCreate file, decompose, spawn cron, start
Step doneUpdate [x], append log
Step failedMark [!], try alternative, log error
Truly stuckSet paused, WhatsApp alert immediately
Task completeFill Result, set done, final message, remove cron
Asked for updateRead task file, summarize current state

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 03:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,175
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,352
ai-intelligence

Subagent Distiller

mashirops
自动增量提取对话中的结构化知识,智能过滤无用信息,动态聚类主题,支持状态追踪和长期价值沉淀。
★ 0 📥 719