← 返回
内容创作 中文

Heartbeat

Design better OpenClaw HEARTBEAT.md files with adaptive cadence, safe checks, and cron handoffs for precise schedules.
设计更优的 OpenClaw HEARTBEAT.md 文件,采用自适应节奏、安全检查和 cron 交接,实现精准调度。
ivangdavila
内容创作 clawhub v1.0.1 2 版本 99466.6 Key: 无需
★ 4
Stars
📥 2,717
下载
💾 140
安装
2
版本
#latest

概述

Heartbeat 💓

Build reliable heartbeat playbooks for OpenClaw agents without noisy checks, missed signals, or runaway costs.

Setup

On first use, follow setup.md to capture timezone, active hours, precision needs, and risk tolerance.

When to Use

User wants a better heartbeat file in OpenClaw. Agent audits current heartbeat behavior, designs a safer file, and tunes intervals using real workflow constraints.

Use this for adaptive monitoring, proactive check-ins, and hybrid heartbeat plus cron strategies.

Architecture

Memory lives in ~/heartbeat/. See memory-template.md for the structure and fields.

~/heartbeat/
├── memory.md              # Preferences, cadence profile, and last tuning decisions
├── drafts/                # Candidate heartbeat variants
└── snapshots/             # Previous heartbeat versions for rollback

Quick Reference

TopicFile
-------------
Setup interviewsetup.md
Memory schemamemory-template.md
Production heartbeat templateheartbeat-template.md
Practical heartbeat use casesuse-cases.md
Interval strategy referenceintervals.md
Trigger strategy referencetriggers.md
Validation checklist before shippingqa-checklist.md
Internet research sourcessources.md

Core Rules

1. Scope the heartbeat before writing anything

Define one mission sentence and 1-3 monitored signals first.

If scope is broad, split into explicit sections (critical, important, nice-to-have) and only automate the first two.

2. Keep output contract strict

If nothing actionable is found, heartbeat must return exactly HEARTBEAT_OK.

Do not emit summaries on empty cycles. This prevents noisy loops and keeps heartbeat cheap.

3. Tune cadence with timezone and active hours

Start from OpenClaw defaults and adapt: use a moderate baseline interval, then tighten only during active windows.

Always encode timezone and active hours in the heartbeat file to avoid waking during sleep hours.

4. Use cron for exact timing, heartbeat for adaptive timing

If a task must run at exact wall-clock times, move it to cron.

If a task should react to changing context or event probability, keep it in heartbeat.

5. Add cost guards to every expensive check

Use a two-stage pattern: cheap precheck first, expensive action only on threshold hit.

Never call paid APIs on every heartbeat cycle unless the user explicitly accepts the cost.

6. Define escalation and cooldown rules

Each alert condition must have trigger threshold, escalation route, and cooldown period.

No escalation path means no alert. No cooldown means likely alert spam.

7. Validate with dry runs and rollback path

Before finalizing, run at least one dry simulation against the checklist in qa-checklist.md.

Keep a snapshot of the previous heartbeat so the user can rollback in one step.

Common Traps

  • Polling everything every cycle -> high token/API burn with low signal quality.
  • Using heartbeat for exact 09:00 jobs -> drift and missed exact-time expectations.
  • Missing timezone in heartbeat config -> notifications at the wrong local time.
  • No active-hours filter -> overnight wakeups and user fatigue.
  • No HEARTBEAT_OK fallback -> verbose no-op loops.
  • No cooldown on alerts -> duplicate escalations during noisy incidents.

Security & Privacy

Data that stays local:

  • Heartbeat preferences and tuning notes in ~/heartbeat/
  • Draft and snapshot files for heartbeat definitions

This skill does NOT:

  • Require credentials by default
  • Trigger external APIs without user-approved instructions
  • Edit unrelated files outside the heartbeat workflow

Related Skills

Install with clawhub install if user confirms:

  • schedule - Scheduling patterns for recurring workflows
  • monitoring - Monitoring strategies and alert design
  • alerts - Alert routing and escalation hygiene
  • workflow - Multi-step workflow orchestration
  • copilot - Proactive assistant patterns with controlled autonomy

Feedback

  • If useful: clawhub star heartbeat
  • Stay updated: clawhub sync

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-03-28 21:34 安全 安全
  • v1.0.0
    2026-03-07 11:48

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,258
productivity

Word / DOCX

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

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,704