当前位置: 首页 > Skill >

Agent Dashboard — real-time progress board for any task

Agent Dashboard — real-time progress board for any task

Agent Dashboard — real-time progress board for any task

在长时间运行的任务期间,将实时进度和关键指标推送至 live statb.io 仪表板。当代理执行...

1.0.0 2026.11.11 951
获取Skill文件查看使用说明
作 者:林言 许可证: 更新时间:2026.11.11
本文目录展开

statb.io — Live Dashboard for Agent Runs

Push numeric key-value pairs to a statb.io board with a single curl call. The user opens the board URL in a browser and sees live-updating cards — no signup, no API key, no SDK required.

Quick Reference

curl -s 'https://statb.io/b/{board_id}/push?key1=value1&key2=+1&key3=-0.5'

Board viewer: https://statb.io/board.html?board={board_id}

Board ID Rules

  • Use only lowercase letters and hyphens (a-z, 0-9, -).
  • Make it long and unique to avoid collisions (e.g. acme-deploy-x7k9m, agent-training-4feb).
  • The board is created automatically on first push.

Value Syntax

Syntax Meaning Example
42 Set to this value ?cpu=72.5
+N Increment by N (starts at 0 if key missing) ?steps=+1
-N Decrement by N ?errors=-1

Only numeric values (int or float). Non-numeric values are silently skipped. Multiple keys in one request are fine.

Workflow

When the user asks you to run a multi-step or long-running task:

  1. Generate a board ID. Combine a short project/task label with a random suffix: e.g. migrate-db-k8r2q or scrape-run-20260414. Tell the user:

    You can monitor progress live at: https://statb.io/board.html?board={board_id}

  2. Push an initial snapshot before starting work:

    curl -s 'https://statb.io/b/{board_id}/push?status=1&total_steps=10&completed=0&errors=0'
    

    Use status=1 for running, status=0 for finished.

  3. Push updates during work. After each meaningful step or batch:

    curl -s 'https://statb.io/b/{board_id}/push?completed=+1'
    

    Push changed values only — no need to resend unchanged keys.

  4. Push final state when done:

    curl -s 'https://statb.io/b/{board_id}/push?status=0&completed=10&duration_sec=47'
    

What to Push

Choose keys that let the user understand progress at a glance:

  • Progress counters: completed, total, remaining, percent
  • Rates / speed: items_per_sec, tokens_per_sec
  • Quality signals: errors, warnings, success_rate
  • Resource usage: cpu, mem_mb, gpu_temp
  • Timing: elapsed_sec, eta_sec, duration_sec
  • Domain-specific: loss, accuracy, rows_processed, files_converted

Keep key names short, lowercase, underscore-separated.

⚠ Common Pitfall — Push Must Be Continuous

The #1 mistake is pushing once at the start and never again. The board then shows stale numbers for the entire run, which defeats the purpose.

Push calls must be placed inside the actual work — not just before it:

  • Loops: Put the push call inside the for / while body, not above it.
  • Batch callbacks: Push after each batch completes, not only before the first batch.
  • Long scripts: If you generate a script or code for the user, embed a push call after each major stage, not just at the top.
  • Timer / interval: For continuous processes with no natural loop boundary, register a recurring timer (e.g. every 15–30 seconds) that pushes the latest metrics.

Self-check before executing: Look at your plan. If there is only one curl …/push call at the beginning, you are doing it wrong. There must be at least one push inside the loop or between stages, plus a final push at the end.

Bad:

curl -s 'https://statb.io/b/board/push?total=100&done=0'   # ← only push
for f in *.csv; do process "$f"; done                       # board stays at 0

Good:

curl -s 'https://statb.io/b/board/push?total=100&done=0'
for f in *.csv; do
  process "$f"
  curl -s 'https://statb.io/b/board/push?done=+1'          # ← push inside loop
done
curl -s 'https://statb.io/b/board/push?status=0'           # ← final push

Rules

  • Always tell the user the board URL at the start so they can open it.
  • Push at meaningful intervals, not every line of code. Once per logical step, batch, or every 10–30 seconds for continuous work.
  • Use increment (+N) for counters so concurrent pushes don't clobber.
  • Use set (plain number) for gauges like percentages, temperatures, rates.
  • Do not push sensitive data. Board IDs are unguessable but boards are not access-controlled. Never push passwords, tokens, PII, or secrets.
  • Silent push. Use curl -s to suppress output. Push failures are non-fatal — do not let a failed push stop the actual work.
  • Free tier limits: max 16 keys per board. Keep it focused.

Examples

Multi-file processing

# Start
curl -s 'https://statb.io/b/convert-imgs-a9x2/push?total=200&done=0&errors=0&status=1'

# After each file
curl -s 'https://statb.io/b/convert-imgs-a9x2/push?done=+1'

# On error
curl -s 'https://statb.io/b/convert-imgs-a9x2/push?errors=+1'

# Finish
curl -s 'https://statb.io/b/convert-imgs-a9x2/push?status=0'

Code migration with metrics

curl -s 'https://statb.io/b/migrate-v3-kq82/push?files_total=48&files_done=+1&tests_pass=142&tests_fail=3'

Training loop

curl -s "https://statb.io/b/train-bert-e4p1/push?epoch=+1&loss=${LOSS}&acc=${ACC}&lr=${LR}"

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
Skill 文件
  • SKILL.md
    • statb.io — Live Dashboard for Agent Runs
    • Quick Reference
    • Board ID Rules
    • Value Syntax
    • Workflow
    • What to Push
    • ⚠ Common Pitfall — Push Must Be Continuous
    • Rules
    • Examples
      • Multi-file processing
      • Code migration with metrics
      • Training loop
  • 项目或源文件

相关 Skill

更多
Agent Dashboard Agent Dashboard 实时代理仪表盘,用于OpenClaw。随时监控活跃任务、定时任务健康、问题及待办事项。提供三种设置层级:(1) 零配置可以...
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...