← 返回
开发者工具 中文

Sport Mode

Activate "Sport Mode" for high-frequency monitoring (default 3m heartbeat) and auto-cleanup. Use when supervising intense tasks (Codex, builds, migrations).
开启“运动模式”,实现高频监控(默认3分钟心跳)与自动清理。适用于监督高强度任务(如Codex、构建、迁移)。
l1vein
开发者工具 clawhub v1.0.1 1 版本 99817.5 Key: 无需
★ 0
Stars
📥 1,641
下载
💾 12
安装
1
版本
#latest

概述

Sport Mode

Temporarily boost heartbeat frequency (default 3m) and inject a monitoring task into HEARTBEAT.md.

Perfect for supervising background agents (Codex), long-running builds, or interactive games.

Usage

# Turn ON: Set heartbeat to 3m and set monitoring task
sport-mode on --task "Check Codex progress. If done, run sport-mode off."

# Custom Interval: Set to 1 minute
sport-mode on --task "Game tick" --every "1m"

# Turn OFF: Reset heartbeat to 30m and clear HEARTBEAT.md
sport-mode off

How it works

  1. ON:
    • Patches ~/.openclaw/openclaw.json (hot-reload) to set heartbeat.every.
    • Writes your task to HEARTBEAT.md with a "Sport Mode Active" header.
  2. OFF:
    • Patches config back to 30m (default).
    • Clears HEARTBEAT.md.

Best Practices

1. Set a Finish Line

Unless you want an endless marathon, always define a termination condition in your task.

  • ✅ Good: "Monitor build. If success or fail, run sport-mode off."
  • ❌ Bad: "Monitor build." (Agent might keep reporting "Done" forever until you manually stop it).

2. State Machine in File

For multi-step tasks (like games or staged deployments), let the agent update HEARTBEAT.md itself.

  • Pattern: Read state -> Execute step -> Write new state -> Sleep.
  • This keeps the agent "stateless" (doesn't rely on conversation history context window) but the task "stateful".

3. Use tmux for Visibility

If the monitoring task involves terminal output (e.g., Codex coding, compiling), running the task in a tmux session is ideal.

  • The agent can inspect the pane (tmux capture-pane) without interfering.
  • The user can attach (tmux attach) to watch live.

4. Silence is Golden

For high-frequency modes (e.g., 1m), avoid spamming "Nothing happened".

  • Configure the agent to reply HEARTBEAT_OK (silence) if the status hasn't changed.
  • Only notify the user on milestone completion, errors, or final success.

Implementation Note

This skill uses openclaw config set to safely patch configuration at runtime, triggering a seamless Gateway reload.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-28 23:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 427 📥 118,260
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,294
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,814