← 返回
效率工具

Live Task Pulse

Real-time task progress tracking with live push notifications. MANDATORY for ALL multi-step tasks (>30s or >2 tool calls). Activate automatically — do not wa...
实时任务进度跟踪与即时推送通知。对所有多步骤任务(>30秒或>2次工具调用)强制启用,自动激活,无需等待。
siaslfs
效率工具 clawhub v1.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 584
下载
💾 9
安装
1
版本
#latest

概述

Live Task Pulse

Real-time task execution tracking with live push notifications.

Why This Exists

Other trackers write to files — users can't see progress until they ask. Live Task Pulse pushes every step change to the user's chat instantly via OpenClaw's message tool, while persisting state to JSON for crash recovery.

Architecture

┌─────────────┐    ┌──────────────┐    ┌─────────────┐
│ task_pulse.py│───>│ JSON on disk │    │ User's chat │
│  (CLI tool)  │    │ (persistence)│    │ (Telegram/  │
└──────┬───────┘    └──────────────┘    │  Discord/..)│
       │                                └──────▲──────┘
       │         ┌──────────────┐              │
       └────────>│ message tool │──────────────┘
                 │ (real-time)  │
                 └──────────────┘

Dual-layer = no other skill does both.

Quick Reference

Create task → push start notification

TASK_ID=$(python3 scripts/task_pulse.py create "任务名" "步骤1" "步骤2" "步骤3")

Then immediately call message tool:

message(action="send", message="🚀 开始【任务名】\n📋 步骤1 → 步骤2 → 步骤3\n🔄 当前: 步骤1")

Advance to next step → push progress

python3 scripts/task_pulse.py next "$TASK_ID" "抓取了25条数据"

Then push: message(action="send", message="✅ [1/3] 步骤1完成(抓取了25条数据)\n🔄 → 步骤2")

Heartbeat (long step, >1min)

python3 scripts/task_pulse.py heartbeat "$TASK_ID" "已处理60%"

Push only if meaningful progress (avoid spam).

Complete

python3 scripts/task_pulse.py done "$TASK_ID" "发布成功 https://..."

Push: message(action="send", message="🎉 【任务名】完成!\n结果: https://...")

Fail

python3 scripts/task_pulse.py error "$TASK_ID" "登录过期"

Push: message(action="send", message="❌ 【任务名】失败\n错误: 登录过期")

Query status

python3 scripts/task_pulse.py status

Cleanup (>7 days completed)

python3 scripts/task_pulse.py cleanup

Mandatory Rules

  1. Always push after file update — file update alone is invisible to users
  2. Push format: emoji + [done/total] + current step + one-line info (≤3 lines)
  3. Push frequency: every step transition; long steps max once per 30s
  4. Stall = running + no update for 3 minutes — detected on status query
  5. On stall detection: push ⚠️ 【任务名】可能卡住了(3分钟无更新)
  6. Cleanup: run in heartbeat, keep completed tasks 7 days

Status Icons

StatusIconMeaning
-----------------------
running🔄Executing
done✅/🎉Completed
errorFailed
stalled⚠️No update >3min
pendingStep not started

Integration

  • Cron jobs: Wrap cron task payload with create/next/done calls
  • Sub-agents: Parent agent creates task, sub-agent updates via file, parent pushes
  • Heartbeat cleanup: Add python3 scripts/task_pulse.py cleanup to HEARTBEAT.md
  • Multi-channel: message tool auto-routes to the active channel

See references/integration-guide.md for cron and sub-agent patterns.

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-30 16:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,721
productivity

Weather

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

Word / DOCX

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