{"id":127,"date":"2026-03-21T22:47:18","date_gmt":"2026-03-21T14:47:18","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/gateway-heartbeat\/"},"modified":"2026-03-21T23:29:06","modified_gmt":"2026-03-21T15:29:06","slug":"gateway-heartbeat","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/gateway-heartbeat\/","title":{"rendered":"\u5fc3\u8df3"},"content":{"rendered":"<h1>\u5fc3\u8df3<\/h1>\n<h1>\u5fc3\u8df3\uff08Gateway \u7f51\u5173 \u7f51\u5173\uff09<\/h1>\n<blockquote>\n<p><strong>\u5fc3\u8df3 vs Cron\uff1f<\/strong> \u53c2\u89c1 <a href=\"https:\/\/pa.yingzhi8.cn\/?p=10\">Cron vs \u5fc3\u8df3<\/a> \u4e86\u89e3\u4f55\u65f6\u4f7f\u7528\u54ea\u79cd\u65b9\u6848\u3002<\/p>\n<\/blockquote>\n<p>\u5fc3\u8df3\u5728\u4e3b\u4f1a\u8bdd\u4e2d\u8fd0\u884c<strong>\u5468\u671f\u6027\u667a\u80fd\u4f53\u8f6e\u6b21<\/strong>\uff0c\u4f7f\u6a21\u578b\u80fd\u591f\u5728\u4e0d\u6253\u6270\u4f60\u7684\u60c5\u51b5\u4e0b\u63d0\u9192\u9700\u8981\u5173\u6ce8\u7684\u4e8b\u9879\u3002<\/p>\n<h2>\u5feb\u901f\u5f00\u59cb\uff08\u65b0\u624b\uff09<\/h2>\n<ol>\n<li>\u4fdd\u6301\u5fc3\u8df3\u542f\u7528\uff08\u9ed8\u8ba4 <code>30m<\/code>\uff0cAnthropic OAuth\/setup-token \u4e3a <code>1h<\/code>\uff09\u6216\u8bbe\u7f6e\u4f60\u81ea\u5df1\u7684\u9891\u7387\u3002<\/li>\n<li>\u5728\u667a\u80fd\u4f53\u5de5\u4f5c\u533a\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684 <code>HEARTBEAT.md<\/code> \u68c0\u67e5\u6e05\u5355\uff08\u53ef\u9009\u4f46\u63a8\u8350\uff09\u3002<\/li>\n<li>\u51b3\u5b9a\u5fc3\u8df3\u6d88\u606f\u53d1\u9001\u5230\u54ea\u91cc\uff08\u9ed8\u8ba4 <code>target: \"last\"<\/code>\uff09\u3002<\/li>\n<li>\u53ef\u9009\uff1a\u542f\u7528\u5fc3\u8df3\u63a8\u7406\u5185\u5bb9\u53d1\u9001\u4ee5\u63d0\u9ad8\u900f\u660e\u5ea6\u3002<\/li>\n<li>\u53ef\u9009\uff1a\u5c06\u5fc3\u8df3\u9650\u5236\u5728\u6d3b\u52a8\u65f6\u6bb5\uff08\u672c\u5730\u65f6\u95f4\uff09\u3002<\/li>\n<\/ol>\n<p>\u914d\u7f6e\u793a\u4f8b\uff1a<\/p>\n<p><code>``json5  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n{<br \/>\n  agents: {<br \/>\n    defaults: {<br \/>\n      heartbeat: {<br \/>\n        every: \"30m\",<br \/>\n        target: \"last\",<br \/>\n        \/\/ activeHours: { start: \"08:00\", end: \"24:00\" },<br \/>\n        \/\/ includeReasoning: true, \/\/ \u53ef\u9009\uff1a\u540c\u65f6\u53d1\u9001\u5355\u72ec\u7684<\/code>Reasoning:` \u6d88\u606f<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n## \u9ed8\u8ba4\u503c\n\n* \u95f4\u9694\uff1a`30m`\uff08\u5f53\u68c0\u6d4b\u5230\u7684\u8ba4\u8bc1\u6a21\u5f0f\u4e3a Anthropic OAuth\/setup-token \u65f6\u4e3a `1h`\uff09\u3002\u8bbe\u7f6e `agents.defaults.heartbeat.every` \u6216\u5355\u667a\u80fd\u4f53 `agents.list[].heartbeat.every`\uff1b\u4f7f\u7528 `0m` \u7981\u7528\u3002\n* \u63d0\u793a\u5185\u5bb9\uff08\u53ef\u901a\u8fc7 `agents.defaults.heartbeat.prompt` \u914d\u7f6e\uff09\uff1a\n  `Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK.`\n* \u5fc3\u8df3\u63d0\u793a**\u539f\u6837**\u4f5c\u4e3a\u7528\u6237\u6d88\u606f\u53d1\u9001\u3002\u7cfb\u7edf\u63d0\u793a\u5305\u542b&quot;Heartbeat&quot;\u90e8\u5206\uff0c\u8fd0\u884c\u5728\u5185\u90e8\u88ab\u6807\u8bb0\u3002\n* \u6d3b\u52a8\u65f6\u6bb5\uff08`heartbeat.activeHours`\uff09\u6309\u914d\u7f6e\u7684\u65f6\u533a\u68c0\u67e5\u3002\u5728\u65f6\u6bb5\u5916\uff0c\u5fc3\u8df3\u4f1a\u88ab\u8df3\u8fc7\u76f4\u5230\u4e0b\u4e00\u4e2a\u65f6\u6bb5\u5185\u7684\u65f6\u949f\u5468\u671f\u3002\n\n## \u5fc3\u8df3\u63d0\u793a\u7684\u7528\u9014\n\n\u9ed8\u8ba4\u63d0\u793a\u6545\u610f\u8bbe\u8ba1\u5f97\u6bd4\u8f83\u5bbd\u6cdb\uff1a\n\n* **\u540e\u53f0\u4efb\u52a1**\uff1a&quot;Consider outstanding tasks&quot;\u4fc3\u4f7f\u667a\u80fd\u4f53\u5ba1\u67e5\u5f85\u529e\u4e8b\u9879\uff08\u6536\u4ef6\u7bb1\u3001\u65e5\u5386\u3001\u63d0\u9192\u3001\u6392\u961f\u5de5\u4f5c\uff09\u5e76\u63d0\u9192\u4efb\u4f55\u7d27\u6025\u4e8b\u9879\u3002\n* **\u4eba\u7c7b\u7b7e\u5230**\uff1a&quot;Checkup sometimes on your human during day time&quot;\u4fc3\u4f7f\u5076\u5c14\u53d1\u9001\u8f7b\u91cf\u7ea7\u7684&quot;\u6709\u4ec0\u4e48\u9700\u8981\u5e2e\u52a9\u7684\u5417\uff1f&quot;\u6d88\u606f\uff0c\u4f46\u901a\u8fc7\u4f7f\u7528\u4f60\u914d\u7f6e\u7684\u672c\u5730\u65f6\u533a\u907f\u514d\u591c\u95f4\u6253\u6270\uff08\u53c2\u89c1 [\/concepts\/timezone](\/concepts\/timezone)\uff09\u3002\n\n\u5982\u679c\u4f60\u5e0c\u671b\u5fc3\u8df3\u6267\u884c\u975e\u5e38\u5177\u4f53\u7684\u4efb\u52a1\uff08\u4f8b\u5982&quot;\u68c0\u67e5 Gmail PubSub \u7edf\u8ba1&quot;\u6216&quot;\u9a8c\u8bc1 Gateway \u7f51\u5173\u5065\u5eb7\u72b6\u6001&quot;\uff09\uff0c\u5c06 `agents.defaults.heartbeat.prompt`\uff08\u6216 `agents.list[].heartbeat.prompt`\uff09\u8bbe\u7f6e\u4e3a\u81ea\u5b9a\u4e49\u5185\u5bb9\uff08\u539f\u6837\u53d1\u9001\uff09\u3002\n\n## \u54cd\u5e94\u7ea6\u5b9a\n\n* \u5982\u679c\u6ca1\u6709\u9700\u8981\u5173\u6ce8\u7684\u4e8b\u9879\uff0c\u56de\u590d **`HEARTBEAT_OK`**\u3002\n* \u5728\u5fc3\u8df3\u8fd0\u884c\u671f\u95f4\uff0c\u5f53 `HEARTBEAT_OK` \u51fa\u73b0\u5728\u56de\u590d\u7684**\u5f00\u5934\u6216\u7ed3\u5c3e**\u65f6\uff0cOpenClaw \u5c06\u5176\u89c6\u4e3a\u786e\u8ba4\u3002\u8be5\u6807\u8bb0\u4f1a\u88ab\u79fb\u9664\uff0c\u5982\u679c\u5269\u4f59\u5185\u5bb9 **\u2264 `ackMaxChars`**\uff08\u9ed8\u8ba4\uff1a300\uff09\uff0c\u5219\u56de\u590d\u88ab\u4e22\u5f03\u3002\n* \u5982\u679c `HEARTBEAT_OK` \u51fa\u73b0\u5728\u56de\u590d\u7684**\u4e2d\u95f4**\uff0c\u5219\u4e0d\u4f1a\u88ab\u7279\u6b8a\u5904\u7406\u3002\n* \u5bf9\u4e8e\u8b66\u62a5\uff0c**\u4e0d\u8981**\u5305\u542b `HEARTBEAT_OK`\uff1b\u53ea\u8fd4\u56de\u8b66\u62a5\u6587\u672c\u3002\n\n\u5728\u5fc3\u8df3\u4e4b\u5916\uff0c\u6d88\u606f\u5f00\u5934\/\u7ed3\u5c3e\u7684\u610f\u5916 `HEARTBEAT_OK` \u4f1a\u88ab\u79fb\u9664\u5e76\u8bb0\u5f55\u65e5\u5fd7\uff1b\u4ec5\u5305\u542b `HEARTBEAT_OK` \u7684\u6d88\u606f\u4f1a\u88ab\u4e22\u5f03\u3002\n\n## \u914d\u7f6e\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  agents: {\n    defaults: {\n      heartbeat: {\n        every: &quot;30m&quot;, \/\/ \u9ed8\u8ba4\uff1a30m\uff080m \u7981\u7528\uff09\n        model: &quot;anthropic\/claude-opus-4-5&quot;,\n        includeReasoning: false, \/\/ \u9ed8\u8ba4\uff1afalse\uff08\u53ef\u7528\u65f6\u53d1\u9001\u5355\u72ec\u7684 Reasoning: \u6d88\u606f\uff09\n        target: &quot;last&quot;, \/\/ last | none | &lt;channel id&gt;\uff08\u6838\u5fc3\u6216\u63d2\u4ef6\uff0c\u4f8b\u5982 &quot;bluebubbles&quot;\uff09\n        to: &quot;+15551234567&quot;, \/\/ \u53ef\u9009\u7684\u6e20\u9053\u7279\u5b9a\u8986\u76d6\n        prompt: &quot;Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK.&quot;,\n        ackMaxChars: 300, \/\/ HEARTBEAT_OK \u540e\u5141\u8bb8\u7684\u6700\u5927\u5b57\u7b26\u6570\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<h3>\u4f5c\u7528\u57df\u548c\u4f18\u5148\u7ea7<\/h3>\n<ul>\n<li><code>agents.defaults.heartbeat<\/code> \u8bbe\u7f6e\u5168\u5c40\u5fc3\u8df3\u884c\u4e3a\u3002<\/li>\n<li><code>agents.list[].heartbeat<\/code> \u5728\u5176\u4e4b\u4e0a\u5408\u5e76\uff1b\u5982\u679c\u4efb\u4f55\u667a\u80fd\u4f53\u6709 <code>heartbeat<\/code> \u5757\uff0c<strong>\u53ea\u6709\u8fd9\u4e9b\u667a\u80fd\u4f53<\/strong>\u8fd0\u884c\u5fc3\u8df3\u3002<\/li>\n<li><code>channels.defaults.heartbeat<\/code> \u4e3a\u6240\u6709\u6e20\u9053\u8bbe\u7f6e\u53ef\u89c1\u6027\u9ed8\u8ba4\u503c\u3002<\/li>\n<li><code>channels.&lt;channel&gt;.heartbeat<\/code> \u8986\u76d6\u6e20\u9053\u9ed8\u8ba4\u503c\u3002<\/li>\n<li><code>channels.&lt;channel&gt;.accounts.&lt;id&gt;.heartbeat<\/code>\uff08\u591a\u8d26\u6237\u6e20\u9053\uff09\u8986\u76d6\u5355\u6e20\u9053\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<h3>\u5355\u667a\u80fd\u4f53\u5fc3\u8df3<\/h3>\n<p>\u5982\u679c\u4efb\u4f55 <code>agents.list[]<\/code> \u6761\u76ee\u5305\u542b <code>heartbeat<\/code> \u5757\uff0c<strong>\u53ea\u6709\u8fd9\u4e9b\u667a\u80fd\u4f53<\/strong>\u8fd0\u884c\u5fc3\u8df3\u3002\u5355\u667a\u80fd\u4f53\u5757\u5728 <code>agents.defaults.heartbeat<\/code> \u4e4b\u4e0a\u5408\u5e76\uff08\u56e0\u6b64\u4f60\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u6b21\u5171\u4eab\u9ed8\u8ba4\u503c\uff0c\u7136\u540e\u6309\u667a\u80fd\u4f53\u8986\u76d6\uff09\u3002<\/p>\n<p>\u793a\u4f8b\uff1a\u4e24\u4e2a\u667a\u80fd\u4f53\uff0c\u53ea\u6709\u7b2c\u4e8c\u4e2a\u667a\u80fd\u4f53\u8fd0\u884c\u5fc3\u8df3\u3002<\/p>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  agents: {<br \/>\n    defaults: {<br \/>\n      heartbeat: {<br \/>\n        every: &#8220;30m&#8221;,<br \/>\n        target: &#8220;last&#8221;,<br \/>\n      },<br \/>\n    },<br \/>\n    list: [<br \/>\n      { id: &#8220;main&#8221;, default: true },<br \/>\n      {<br \/>\n        id: &#8220;ops&#8221;,<br \/>\n        heartbeat: {<br \/>\n          every: &#8220;1h&#8221;,<br \/>\n          target: &#8220;whatsapp&#8221;,<br \/>\n          to: &#8220;+15551234567&#8221;,<br \/>\n          prompt: &#8220;Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK.&#8221;,<br \/>\n        },<br \/>\n      },<br \/>\n    ],<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n### \u5b57\u6bb5\u8bf4\u660e\n\n* `every`\uff1a\u5fc3\u8df3\u95f4\u9694\uff08\u65f6\u957f\u5b57\u7b26\u4e32\uff1b\u9ed8\u8ba4\u5355\u4f4d = \u5206\u949f\uff09\u3002\n* `model`\uff1a\u5fc3\u8df3\u8fd0\u884c\u7684\u53ef\u9009\u6a21\u578b\u8986\u76d6\uff08`provider\/model`\uff09\u3002\n* `includeReasoning`\uff1a\u542f\u7528\u65f6\uff0c\u4e5f\u4f1a\u53d1\u9001\u5355\u72ec\u7684 `Reasoning:` \u6d88\u606f\uff08\u5982\u679c\u53ef\u7528\uff09\uff08\u4e0e `\/reasoning on` \u683c\u5f0f\u76f8\u540c\uff09\u3002\n* `session`\uff1a\u5fc3\u8df3\u8fd0\u884c\u7684\u53ef\u9009\u4f1a\u8bdd\u952e\u3002\n  * `main`\uff08\u9ed8\u8ba4\uff09\uff1a\u667a\u80fd\u4f53\u4e3b\u4f1a\u8bdd\u3002\n  * \u663e\u5f0f\u4f1a\u8bdd\u952e\uff08\u4ece `openclaw sessions --json` \u6216 [sessions CLI](\/cli\/sessions) \u590d\u5236\uff09\u3002\n  * \u4f1a\u8bdd\u952e\u683c\u5f0f\uff1a\u53c2\u89c1[\u4f1a\u8bdd](\/concepts\/session)\u548c[\u7fa4\u7ec4](\/channels\/groups)\u3002\n* `target`\uff1a\n  * `last`\uff08\u9ed8\u8ba4\uff09\uff1a\u53d1\u9001\u5230\u6700\u540e\u4f7f\u7528\u7684\u5916\u90e8\u6e20\u9053\u3002\n  * \u663e\u5f0f\u6e20\u9053\uff1a`whatsapp` \/ `telegram` \/ `discord` \/ `googlechat` \/ `slack` \/ `msteams` \/ `signal` \/ `imessage`\u3002\n  * `none`\uff1a\u8fd0\u884c\u5fc3\u8df3\u4f46**\u4e0d\u53d1\u9001**\u5230\u5916\u90e8\u3002\n* `to`\uff1a\u53ef\u9009\u7684\u6536\u4ef6\u4eba\u8986\u76d6\uff08\u6e20\u9053\u7279\u5b9a ID\uff0c\u4f8b\u5982 WhatsApp \u7684 E.164 \u6216 Telegram \u804a\u5929 ID\uff09\u3002\n* `prompt`\uff1a\u8986\u76d6\u9ed8\u8ba4\u63d0\u793a\u5185\u5bb9\uff08\u4e0d\u5408\u5e76\uff09\u3002\n* `ackMaxChars`\uff1a`HEARTBEAT_OK` \u540e\u5728\u53d1\u9001\u524d\u5141\u8bb8\u7684\u6700\u5927\u5b57\u7b26\u6570\u3002\n\n## \u53d1\u9001\u884c\u4e3a\n\n* \u5fc3\u8df3\u9ed8\u8ba4\u5728\u667a\u80fd\u4f53\u4e3b\u4f1a\u8bdd\u4e2d\u8fd0\u884c\uff08`agent:&lt;id&gt;:&lt;mainKey&gt;`\uff09\uff0c\u6216\u5f53 `session.scope = &quot;global&quot;` \u65f6\u5728 `global` \u4e2d\u8fd0\u884c\u3002\u8bbe\u7f6e `session` \u53ef\u8986\u76d6\u4e3a\u7279\u5b9a\u6e20\u9053\u4f1a\u8bdd\uff08Discord\/WhatsApp \u7b49\uff09\u3002\n* `session` \u53ea\u5f71\u54cd\u8fd0\u884c\u4e0a\u4e0b\u6587\uff1b\u53d1\u9001\u7531 `target` \u548c `to` \u63a7\u5236\u3002\n* \u8981\u53d1\u9001\u5230\u7279\u5b9a\u6e20\u9053\/\u6536\u4ef6\u4eba\uff0c\u8bbe\u7f6e `target` + `to`\u3002\u4f7f\u7528 `target: &quot;last&quot;` \u65f6\uff0c\u53d1\u9001\u4f7f\u7528\u8be5\u4f1a\u8bdd\u7684\u6700\u540e\u4e00\u4e2a\u5916\u90e8\u6e20\u9053\u3002\n* \u5982\u679c\u4e3b\u961f\u5217\u7e41\u5fd9\uff0c\u5fc3\u8df3\u4f1a\u88ab\u8df3\u8fc7\u5e76\u7a0d\u540e\u91cd\u8bd5\u3002\n* \u5982\u679c `target` \u89e3\u6790\u4e3a\u65e0\u5916\u90e8\u76ee\u6807\uff0c\u8fd0\u884c\u4ecd\u4f1a\u53d1\u751f\u4f46\u4e0d\u4f1a\u53d1\u9001\u51fa\u7ad9\u6d88\u606f\u3002\n* \u4ec5\u5fc3\u8df3\u56de\u590d**\u4e0d\u4f1a**\u4fdd\u6301\u4f1a\u8bdd\u6d3b\u8dc3\uff1b\u6700\u540e\u7684 `updatedAt` \u4f1a\u88ab\u6062\u590d\uff0c\u56e0\u6b64\u7a7a\u95f2\u8fc7\u671f\u6b63\u5e38\u5de5\u4f5c\u3002\n\n## \u53ef\u89c1\u6027\u63a7\u5236\n\n\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c`HEARTBEAT_OK` \u786e\u8ba4\u4f1a\u88ab\u6291\u5236\uff0c\u800c\u8b66\u62a5\u5185\u5bb9\u4f1a\u88ab\u53d1\u9001\u3002\u4f60\u53ef\u4ee5\u6309\u6e20\u9053\u6216\u6309\u8d26\u6237\u8c03\u6574\uff1a\n\n```yaml  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nchannels:\n  defaults:\n    heartbeat:\n      showOk: false # \u9690\u85cf HEARTBEAT_OK\uff08\u9ed8\u8ba4\uff09\n      showAlerts: true # \u663e\u793a\u8b66\u62a5\u6d88\u606f\uff08\u9ed8\u8ba4\uff09\n      useIndicator: true # \u53d1\u51fa\u6307\u793a\u5668\u4e8b\u4ef6\uff08\u9ed8\u8ba4\uff09\n  telegram:\n    heartbeat:\n      showOk: true # \u5728 Telegram \u4e0a\u663e\u793a OK \u786e\u8ba4\n  whatsapp:\n    accounts:\n      work:\n        heartbeat:\n          showAlerts: false # \u4e3a\u6b64\u8d26\u6237\u6291\u5236\u8b66\u62a5\u53d1\u9001\n<\/code><\/pre>\n<p>\u4f18\u5148\u7ea7\uff1a\u5355\u8d26\u6237 \u2192 \u5355\u6e20\u9053 \u2192 \u6e20\u9053\u9ed8\u8ba4\u503c \u2192 \u5185\u7f6e\u9ed8\u8ba4\u503c\u3002<\/p>\n<h3>\u5404\u6807\u5fd7\u7684\u4f5c\u7528<\/h3>\n<ul>\n<li><code>showOk<\/code>\uff1a\u5f53\u6a21\u578b\u8fd4\u56de\u4ec5 OK \u7684\u56de\u590d\u65f6\uff0c\u53d1\u9001 <code>HEARTBEAT_OK<\/code> \u786e\u8ba4\u3002<\/li>\n<li><code>showAlerts<\/code>\uff1a\u5f53\u6a21\u578b\u8fd4\u56de\u975e OK \u56de\u590d\u65f6\uff0c\u53d1\u9001\u8b66\u62a5\u5185\u5bb9\u3002<\/li>\n<li><code>useIndicator<\/code>\uff1a\u4e3a UI \u72b6\u6001\u754c\u9762\u53d1\u51fa\u6307\u793a\u5668\u4e8b\u4ef6\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c<strong>\u6240\u6709\u4e09\u4e2a<\/strong>\u90fd\u4e3a false\uff0cOpenClaw \u4f1a\u5b8c\u5168\u8df3\u8fc7\u5fc3\u8df3\u8fd0\u884c\uff08\u4e0d\u8c03\u7528\u6a21\u578b\uff09\u3002<\/p>\n<h3>\u5355\u6e20\u9053 vs \u5355\u8d26\u6237\u793a\u4f8b<\/h3>\n<p>&#8220;`yaml  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n\u6e20\u9053s:<br \/>\n  defaults:<br \/>\n    heartbeat:<br \/>\n      showOk: false<br \/>\n      showAlerts: true<br \/>\n      useIndicator: true<br \/>\n  slack:<br \/>\n    heartbeat:<br \/>\n      showOk: true # \u6240\u6709 Slack \u8d26\u6237<br \/>\n    accounts:<br \/>\n      ops:<br \/>\n        heartbeat:<br \/>\n          showAlerts: false # \u4ec5\u4e3a ops \u8d26\u6237\u6291\u5236\u8b66\u62a5<br \/>\n  telegram:<br \/>\n    heartbeat:<br \/>\n      showOk: true<\/p>\n<pre><code>\n### \u5e38\u89c1\u6a21\u5f0f\n\n| \u76ee\u6807               | \u914d\u7f6e                                                                                       |\n| ---------------- | ---------------------------------------------------------------------------------------- |\n| \u9ed8\u8ba4\u884c\u4e3a\uff08\u9759\u9ed8 OK\uff0c\u8b66\u62a5\u5f00\u542f\uff09 | *\uff08\u65e0\u9700\u914d\u7f6e\uff09*                                                                                 |\n| \u5b8c\u5168\u9759\u9ed8\uff08\u65e0\u6d88\u606f\uff0c\u65e0\u6307\u793a\u5668\uff09   | `channels.defaults.heartbeat: { showOk: false, showAlerts: false, useIndicator: false }` |\n| \u4ec5\u6307\u793a\u5668\uff08\u65e0\u6d88\u606f\uff09        | `channels.defaults.heartbeat: { showOk: false, showAlerts: false, useIndicator: true }`  |\n| \u4ec5\u5728\u4e00\u4e2a\u6e20\u9053\u663e\u793a OK      | `channels.telegram.heartbeat: { showOk: true }`                                          |\n\n## HEARTBEAT.md\uff08\u53ef\u9009\uff09\n\n\u5982\u679c\u5de5\u4f5c\u533a\u4e2d\u5b58\u5728 `HEARTBEAT.md` \u6587\u4ef6\uff0c\u9ed8\u8ba4\u63d0\u793a\u4f1a\u544a\u8bc9\u667a\u80fd\u4f53\u8bfb\u53d6\u5b83\u3002\u628a\u5b83\u60f3\u8c61\u6210\u4f60\u7684&quot;\u5fc3\u8df3\u68c0\u67e5\u6e05\u5355&quot;\uff1a\u5c0f\u5de7\u3001\u7a33\u5b9a\uff0c\u53ef\u4ee5\u5b89\u5168\u5730\u6bcf 30 \u5206\u949f\u5305\u542b\u4e00\u6b21\u3002\n\n\u5982\u679c `HEARTBEAT.md` \u5b58\u5728\u4f46\u5b9e\u9645\u4e0a\u662f\u7a7a\u7684\uff08\u53ea\u6709\u7a7a\u884c\u548c markdown \u6807\u9898\u5982 `# Heading`\uff09\uff0cOpenClaw \u4f1a\u8df3\u8fc7\u5fc3\u8df3\u8fd0\u884c\u4ee5\u8282\u7701 API \u8c03\u7528\u3002\u5982\u679c\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u5fc3\u8df3\u4ecd\u4f1a\u8fd0\u884c\uff0c\u7531\u6a21\u578b\u51b3\u5b9a\u505a\u4ec0\u4e48\u3002\n\n\u4fdd\u6301\u5b83\u5c0f\u5de7\uff08\u7b80\u77ed\u7684\u68c0\u67e5\u6e05\u5355\u6216\u63d0\u9192\uff09\u4ee5\u907f\u514d\u63d0\u793a\u81a8\u80c0\u3002\n\n`HEARTBEAT.md` \u793a\u4f8b\uff1a\n\n```md  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n# Heartbeat checklist\n\n- Quick scan: anything urgent in inboxes?\n- If it's daytime, do a lightweight check-in if nothing else is pending.\n- If a task is blocked, write down _what is missing_ and ask Peter next time.\n<\/code><\/pre>\n<h3>\u667a\u80fd\u4f53\u53ef\u4ee5\u66f4\u65b0 HEARTBEAT.md \u5417\uff1f<\/h3>\n<p>\u53ef\u4ee5 \u2014 \u5982\u679c\u4f60\u8981\u6c42\u5b83\u8fd9\u6837\u505a\u3002<\/p>\n<p><code>HEARTBEAT.md<\/code> \u53ea\u662f\u667a\u80fd\u4f53\u5de5\u4f5c\u533a\u4e2d\u7684\u666e\u901a\u6587\u4ef6\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u5728\u666e\u901a\u804a\u5929\u4e2d\u544a\u8bc9\u667a\u80fd\u4f53\uff1a<\/p>\n<ul>\n<li>&#8220;\u66f4\u65b0 <code>HEARTBEAT.md<\/code> \u6dfb\u52a0\u6bcf\u65e5\u65e5\u5386\u68c0\u67e5\u3002&#8221;<\/li>\n<li>&#8220;\u91cd\u5199 <code>HEARTBEAT.md<\/code>\uff0c\u4f7f\u5176\u66f4\u77ed\u5e76\u4e13\u6ce8\u4e8e\u6536\u4ef6\u7bb1\u8ddf\u8fdb\u3002&#8221;<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u5e0c\u671b\u8fd9\u4e3b\u52a8\u53d1\u751f\uff0c\u4f60\u4e5f\u53ef\u4ee5\u5728\u5fc3\u8df3\u63d0\u793a\u4e2d\u5305\u542b\u660e\u786e\u7684\u4e00\u884c\uff0c\u5982\uff1a&#8221;If the checklist becomes stale, update HEARTBEAT.md with a better one.&#8221;<\/p>\n<p>\u5b89\u5168\u63d0\u793a\uff1a\u4e0d\u8981\u5728 <code>HEARTBEAT.md<\/code> \u4e2d\u653e\u7f6e\u5bc6\u94a5\uff08API \u5bc6\u94a5\u3001\u7535\u8bdd\u53f7\u7801\u3001\u79c1\u6709\u4ee4\u724c\uff09\u2014 \u5b83\u4f1a\u6210\u4e3a\u63d0\u793a\u4e0a\u4e0b\u6587\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<h2>\u624b\u52a8\u5524\u9192\uff08\u6309\u9700\uff09<\/h2>\n<p>\u4f60\u53ef\u4ee5\u6392\u961f\u4e00\u4e2a\u7cfb\u7edf\u4e8b\u4ef6\u5e76\u89e6\u53d1\u5373\u65f6\u5fc3\u8df3\uff1a<\/p>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\nopenclaw system event --text \"Check for urgent follow-ups\" --mode now<\/code><\/p>\n<p>\u5982\u679c\u591a\u4e2a\u667a\u80fd\u4f53\u914d\u7f6e\u4e86 <code>heartbeat<\/code>\uff0c\u624b\u52a8\u5524\u9192\u4f1a\u7acb\u5373\u8fd0\u884c\u6bcf\u4e2a\u667a\u80fd\u4f53\u7684\u5fc3\u8df3\u3002<\/p>\n<p>\u4f7f\u7528 <code>--mode next-heartbeat<\/code> \u7b49\u5f85\u4e0b\u4e00\u4e2a\u8ba1\u5212\u7684\u65f6\u949f\u5468\u671f\u3002<\/p>\n<h2>\u63a8\u7406\u5185\u5bb9\u53d1\u9001\uff08\u53ef\u9009\uff09<\/h2>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5fc3\u8df3\u53ea\u53d1\u9001\u6700\u7ec8\u7684&#8221;\u7b54\u6848&#8221;\u8d1f\u8f7d\u3002<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u8981\u900f\u660e\u5ea6\uff0c\u8bf7\u542f\u7528\uff1a<\/p>\n<ul>\n<li><code>agents.defaults.heartbeat.includeReasoning: true<\/code><\/li>\n<\/ul>\n<p>\u542f\u7528\u540e\uff0c\u5fc3\u8df3\u8fd8\u4f1a\u53d1\u9001\u4e00\u6761\u4ee5 <code>Reasoning:<\/code> \u4e3a\u524d\u7f00\u7684\u5355\u72ec\u6d88\u606f\uff08\u4e0e <code>\/reasoning on<\/code> \u683c\u5f0f\u76f8\u540c\uff09\u3002\u5f53\u667a\u80fd\u4f53\u7ba1\u7406\u591a\u4e2a\u4f1a\u8bdd\/\u4ee3\u7801\u5e93\u5e76\u4e14\u4f60\u60f3\u4e86\u89e3\u5b83\u4e3a\u4ec0\u4e48\u51b3\u5b9a\u8054\u7cfb\u4f60\u65f6\uff0c\u8fd9\u5f88\u6709\u7528 \u2014 \u4f46\u5b83\u4e5f\u53ef\u80fd\u6cc4\u9732\u6bd4\u4f60\u60f3\u8981\u7684\u66f4\u591a\u5185\u90e8\u7ec6\u8282\u3002\u5728\u7fa4\u804a\u4e2d\u5efa\u8bae\u4fdd\u6301\u5173\u95ed\u3002<\/p>\n<h2>\u6210\u672c\u610f\u8bc6<\/h2>\n<p>\u5fc3\u8df3\u8fd0\u884c\u5b8c\u6574\u7684\u667a\u80fd\u4f53\u8f6e\u6b21\u3002\u66f4\u77ed\u7684\u95f4\u9694\u6d88\u8017\u66f4\u591a token\u3002\u4fdd\u6301 <code>HEARTBEAT.md<\/code> \u5c0f\u5de7\uff0c\u5982\u679c\u4f60\u53ea\u60f3\u8981\u5185\u90e8\u72b6\u6001\u66f4\u65b0\uff0c\u8003\u8651\u4f7f\u7528\u66f4\u4fbf\u5b9c\u7684 <code>model<\/code> \u6216 <code>target: \"none\"<\/code>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5fc3\u8df3 \u5fc3\u8df3\uff08Gateway \u7f51\u5173 \u7f51\u5173\uff09 \u5fc3\u8df3 vs Cron\uff1f \u53c2\u89c1 Cron vs \u5fc3\u8df3 \u4e86\u89e3\u4f55\u65f6\u4f7f\u7528\u54ea\u79cd [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-127","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":2,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":840,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/127\/revisions\/840"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}