{"id":10,"date":"2026-03-21T22:47:13","date_gmt":"2026-03-21T14:47:13","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/automation-cron-vs-heartbeat\/"},"modified":"2026-03-21T23:08:51","modified_gmt":"2026-03-21T15:08:51","slug":"automation-cron-vs-heartbeat","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/automation-cron-vs-heartbeat\/","title":{"rendered":"\u5b9a\u65f6\u4efb\u52a1\u4e0e\u5fc3\u8df3\u5bf9\u6bd4"},"content":{"rendered":"<h1>\u5b9a\u65f6\u4efb\u52a1\u4e0e\u5fc3\u8df3\u5bf9\u6bd4<\/h1>\n<h1>\u5b9a\u65f6\u4efb\u52a1\u4e0e\u5fc3\u8df3\uff1a\u4f55\u65f6\u4f7f\u7528\u54ea\u79cd\u65b9\u5f0f<\/h1>\n<p>\u5fc3\u8df3\u548c\u5b9a\u65f6\u4efb\u52a1\u90fd\u53ef\u4ee5\u6309\u8ba1\u5212\u8fd0\u884c\u4efb\u52a1\u3002\u672c\u6307\u5357\u5e2e\u52a9\u4f60\u6839\u636e\u4f7f\u7528\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u673a\u5236\u3002<\/p>\n<h2>\u5feb\u901f\u51b3\u7b56\u6307\u5357<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u4f7f\u7528\u573a\u666f<\/th>\n<th>\u63a8\u8350\u65b9\u5f0f<\/th>\n<th>\u539f\u56e0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u6bcf 30 \u5206\u949f\u68c0\u67e5\u6536\u4ef6\u7bb1<\/td>\n<td>\u5fc3\u8df3<\/td>\n<td>\u53ef\u4e0e\u5176\u4ed6\u68c0\u67e5\u6279\u91cf\u5904\u7406\uff0c\u5177\u5907\u4e0a\u4e0b\u6587\u611f\u77e5\u80fd\u529b<\/td>\n<\/tr>\n<tr>\n<td>\u6bcf\u5929\u4e0a\u5348 9 \u70b9\u51c6\u65f6\u53d1\u9001\u62a5\u544a<\/td>\n<td>\u5b9a\u65f6\u4efb\u52a1\uff08\u9694\u79bb\u5f0f\uff09<\/td>\n<td>\u9700\u8981\u7cbe\u786e\u5b9a\u65f6<\/td>\n<\/tr>\n<tr>\n<td>\u76d1\u63a7\u65e5\u5386\u4e2d\u5373\u5c06\u5230\u6765\u7684\u4e8b\u4ef6<\/td>\n<td>\u5fc3\u8df3<\/td>\n<td>\u5929\u7136\u9002\u5408\u5468\u671f\u6027\u611f\u77e5<\/td>\n<\/tr>\n<tr>\n<td>\u8fd0\u884c\u6bcf\u5468\u6df1\u5ea6\u5206\u6790<\/td>\n<td>\u5b9a\u65f6\u4efb\u52a1\uff08\u9694\u79bb\u5f0f\uff09<\/td>\n<td>\u72ec\u7acb\u4efb\u52a1\uff0c\u53ef\u4f7f\u7528\u4e0d\u540c\u6a21\u578b<\/td>\n<\/tr>\n<tr>\n<td>20 \u5206\u949f\u540e\u63d0\u9192\u6211<\/td>\n<td>\u5b9a\u65f6\u4efb\u52a1\uff08\u4e3b\u4f1a\u8bdd\uff0c<code>--at<\/code>\uff09<\/td>\n<td>\u7cbe\u786e\u5b9a\u65f6\u7684\u4e00\u6b21\u6027\u4efb\u52a1<\/td>\n<\/tr>\n<tr>\n<td>\u540e\u53f0\u9879\u76ee\u5065\u5eb7\u68c0\u67e5<\/td>\n<td>\u5fc3\u8df3<\/td>\n<td>\u642d\u8f7d\u5728\u73b0\u6709\u5468\u671f\u4e0a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u5fc3\u8df3\uff1a\u5468\u671f\u6027\u611f\u77e5<\/h2>\n<p>\u5fc3\u8df3\u5728<strong>\u4e3b\u4f1a\u8bdd<\/strong>\u4e2d\u4ee5\u56fa\u5b9a\u95f4\u9694\u8fd0\u884c\uff08\u9ed8\u8ba4\uff1a30 \u5206\u949f\uff09\u3002\u5b83\u7684\u8bbe\u8ba1\u76ee\u7684\u662f\u8ba9\u667a\u80fd\u4f53\u68c0\u67e5\u5404\u79cd\u4e8b\u9879\u5e76\u5448\u73b0\u91cd\u8981\u4fe1\u606f\u3002<\/p>\n<h3>\u4f55\u65f6\u4f7f\u7528\u5fc3\u8df3<\/h3>\n<ul>\n<li><strong>\u591a\u4e2a\u5468\u671f\u6027\u68c0\u67e5<\/strong>\uff1a\u4e0e\u5176\u8bbe\u7f6e 5 \u4e2a\u72ec\u7acb\u7684\u5b9a\u65f6\u4efb\u52a1\u5206\u522b\u68c0\u67e5\u6536\u4ef6\u7bb1\u3001\u65e5\u5386\u3001\u5929\u6c14\u3001\u901a\u77e5\u548c\u9879\u76ee\u72b6\u6001\uff0c\u4e0d\u5982\u7528\u4e00\u6b21\u5fc3\u8df3\u6279\u91cf\u5904\u7406\u6240\u6709\u5185\u5bb9\u3002<\/li>\n<li><strong>\u4e0a\u4e0b\u6587\u611f\u77e5\u51b3\u7b56<\/strong>\uff1a\u667a\u80fd\u4f53\u62e5\u6709\u5b8c\u6574\u7684\u4e3b\u4f1a\u8bdd\u4e0a\u4e0b\u6587\uff0c\u56e0\u6b64\u53ef\u4ee5\u667a\u80fd\u5224\u65ad\u54ea\u4e9b\u7d27\u6025\u3001\u54ea\u4e9b\u53ef\u4ee5\u7b49\u5f85\u3002<\/li>\n<li><strong>\u5bf9\u8bdd\u8fde\u7eed\u6027<\/strong>\uff1a\u5fc3\u8df3\u8fd0\u884c\u5171\u4eab\u540c\u4e00\u4f1a\u8bdd\uff0c\u56e0\u6b64\u667a\u80fd\u4f53\u8bb0\u5f97\u6700\u8fd1\u7684\u5bf9\u8bdd\uff0c\u53ef\u4ee5\u81ea\u7136\u5730\u8fdb\u884c\u540e\u7eed\u8ddf\u8fdb\u3002<\/li>\n<li><strong>\u4f4e\u5f00\u9500\u76d1\u63a7<\/strong>\uff1a\u4e00\u6b21\u5fc3\u8df3\u66ff\u4ee3\u591a\u4e2a\u5c0f\u578b\u8f6e\u8be2\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<h3>\u5fc3\u8df3\u4f18\u52bf<\/h3>\n<ul>\n<li><strong>\u6279\u91cf\u5904\u7406\u591a\u9879\u68c0\u67e5<\/strong>\uff1a\u4e00\u6b21\u667a\u80fd\u4f53\u8f6e\u6b21\u53ef\u4ee5\u540c\u65f6\u5ba1\u67e5\u6536\u4ef6\u7bb1\u3001\u65e5\u5386\u548c\u901a\u77e5\u3002<\/li>\n<li><strong>\u51cf\u5c11 API \u8c03\u7528<\/strong>\uff1a\u4e00\u6b21\u5fc3\u8df3\u6bd4 5 \u4e2a\u9694\u79bb\u5f0f\u5b9a\u65f6\u4efb\u52a1\u66f4\u7ecf\u6d4e\u3002<\/li>\n<li><strong>\u4e0a\u4e0b\u6587\u611f\u77e5<\/strong>\uff1a\u667a\u80fd\u4f53\u4e86\u89e3\u4f60\u4e00\u76f4\u5728\u505a\u4ec0\u4e48\uff0c\u53ef\u4ee5\u636e\u6b64\u6392\u5b9a\u4f18\u5148\u7ea7\u3002<\/li>\n<li><strong>\u667a\u80fd\u6291\u5236<\/strong>\uff1a\u5982\u679c\u6ca1\u6709\u9700\u8981\u5173\u6ce8\u7684\u4e8b\u9879\uff0c\u667a\u80fd\u4f53\u56de\u590d <code>HEARTBEAT_OK<\/code>\uff0c\u4e0d\u4f1a\u6295\u9012\u4efb\u4f55\u6d88\u606f\u3002<\/li>\n<li><strong>\u81ea\u7136\u5b9a\u65f6<\/strong>\uff1a\u4f1a\u6839\u636e\u961f\u5217\u8d1f\u8f7d\u7565\u6709\u6f02\u79fb\uff0c\u4f46\u5bf9\u5927\u591a\u6570\u76d1\u63a7\u6765\u8bf4\u6ca1\u6709\u95ee\u9898\u3002<\/li>\n<\/ul>\n<h3>\u5fc3\u8df3\u793a\u4f8b\uff1aHEARTBEAT.md \u68c0\u67e5\u6e05\u5355<\/h3>\n<p>&#8220;`md  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<\/p>\n<h1>Heartbeat checklist<\/h1>\n<ul>\n<li>Check email for urgent messages<\/li>\n<li>Review calendar for events in next 2 hours<\/li>\n<li>If a background task finished, summarize results<\/li>\n<li>If idle for 8+ hours, send a brief check-in<\/li>\n<\/ul>\n<pre><code>\n\u667a\u80fd\u4f53\u5728\u6bcf\u6b21\u5fc3\u8df3\u65f6\u8bfb\u53d6\u6b64\u6e05\u5355\uff0c\u5e76\u5728\u4e00\u6b21\u8f6e\u6b21\u4e2d\u5904\u7406\u6240\u6709\u9879\u76ee\u3002\n\n### \u914d\u7f6e\u5fc3\u8df3\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;, \/\/ \u95f4\u9694\n        target: &quot;last&quot;, \/\/ \u544a\u8b66\u6295\u9012\u76ee\u6807\n        activeHours: { start: &quot;08:00&quot;, end: &quot;22:00&quot; }, \/\/ \u53ef\u9009\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<p>\u5b8c\u6574\u914d\u7f6e\u8bf7\u53c2\u9605<a href=\"\/gateway\/heartbeat\">\u5fc3\u8df3<\/a>\u3002<\/p>\n<h2>\u5b9a\u65f6\u4efb\u52a1\uff1a\u7cbe\u786e\u8c03\u5ea6<\/h2>\n<p>\u5b9a\u65f6\u4efb\u52a1\u5728<strong>\u7cbe\u786e\u65f6\u95f4<\/strong>\u8fd0\u884c\uff0c\u53ef\u4ee5\u5728\u9694\u79bb\u4f1a\u8bdd\u4e2d\u8fd0\u884c\u800c\u4e0d\u5f71\u54cd\u4e3b\u4f1a\u8bdd\u4e0a\u4e0b\u6587\u3002<\/p>\n<h3>\u4f55\u65f6\u4f7f\u7528\u5b9a\u65f6\u4efb\u52a1<\/h3>\n<ul>\n<li><strong>\u9700\u8981\u7cbe\u786e\u5b9a\u65f6<\/strong>\uff1a&#8221;\u6bcf\u5468\u4e00\u4e0a\u5348 9:00 \u53d1\u9001&#8221;\uff08\u800c\u4e0d\u662f&#8221;\u5927\u7ea6 9 \u70b9\u5de6\u53f3&#8221;\uff09\u3002<\/li>\n<li><strong>\u72ec\u7acb\u4efb\u52a1<\/strong>\uff1a\u4e0d\u9700\u8981\u5bf9\u8bdd\u4e0a\u4e0b\u6587\u7684\u4efb\u52a1\u3002<\/li>\n<li><strong>\u4e0d\u540c\u7684\u6a21\u578b\/\u601d\u7ef4\u7ea7\u522b<\/strong>\uff1a\u9700\u8981\u66f4\u5f3a\u5927\u6a21\u578b\u7684\u6df1\u5ea6\u5206\u6790\u3002<\/li>\n<li><strong>\u4e00\u6b21\u6027\u63d0\u9192<\/strong>\uff1a\u4f7f\u7528 <code>--at<\/code> \u5b9e\u73b0&#8221;20 \u5206\u949f\u540e\u63d0\u9192\u6211&#8221;\u3002<\/li>\n<li><strong>\u5608\u6742\/\u9891\u7e41\u7684\u4efb\u52a1<\/strong>\uff1a\u4f1a\u628a\u4e3b\u4f1a\u8bdd\u5386\u53f2\u641e\u5f97\u6742\u4e71\u7684\u4efb\u52a1\u3002<\/li>\n<li><strong>\u5916\u90e8\u89e6\u53d1\u5668<\/strong>\uff1a\u65e0\u8bba\u667a\u80fd\u4f53\u662f\u5426\u5904\u4e8e\u6d3b\u8dc3\u72b6\u6001\u90fd\u5e94\u72ec\u7acb\u8fd0\u884c\u7684\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<h3>\u5b9a\u65f6\u4efb\u52a1\u4f18\u52bf<\/h3>\n<ul>\n<li><strong>\u7cbe\u786e\u5b9a\u65f6<\/strong>\uff1a\u652f\u6301\u5e26\u65f6\u533a\u7684 5 \u5b57\u6bb5 cron \u8868\u8fbe\u5f0f\u3002<\/li>\n<li><strong>\u4f1a\u8bdd\u9694\u79bb<\/strong>\uff1a\u5728 <code>cron:&lt;jobId&gt;<\/code> \u4e2d\u8fd0\u884c\uff0c\u4e0d\u4f1a\u6c61\u67d3\u4e3b\u4f1a\u8bdd\u5386\u53f2\u3002<\/li>\n<li><strong>\u6a21\u578b\u8986\u76d6<\/strong>\uff1a\u53ef\u6309\u4efb\u52a1\u4f7f\u7528\u66f4\u4fbf\u5b9c\u6216\u66f4\u5f3a\u5927\u7684\u6a21\u578b\u3002<\/li>\n<li><strong>\u6295\u9012\u63a7\u5236<\/strong>\uff1a\u9694\u79bb\u4efb\u52a1\u9ed8\u8ba4\u4ee5 <code>announce<\/code> \u6295\u9012\u6458\u8981\uff0c\u53ef\u9009 <code>none<\/code> \u4ec5\u5185\u90e8\u8fd0\u884c\u3002<\/li>\n<li><strong>\u65e0\u9700\u667a\u80fd\u4f53\u4e0a\u4e0b\u6587<\/strong>\uff1a\u5373\u4f7f\u4e3b\u4f1a\u8bdd\u7a7a\u95f2\u6216\u5df2\u538b\u7f29\uff0c\u4e5f\u80fd\u8fd0\u884c\u3002<\/li>\n<li><strong>\u4e00\u6b21\u6027\u652f\u6301<\/strong>\uff1a<code>--at<\/code> \u7528\u4e8e\u7cbe\u786e\u7684\u672a\u6765\u65f6\u95f4\u6233\u3002<\/li>\n<\/ul>\n<h3>\u5b9a\u65f6\u4efb\u52a1\u793a\u4f8b\uff1a\u6bcf\u65e5\u65e9\u95f4\u7b80\u62a5<\/h3>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw cron add<br \/>\n  &#8211;name &#8220;Morning briefing&#8221;<br \/>\n  &#8211;cron &#8220;0 7 * <em> <\/em>&#8221;<br \/>\n  &#8211;tz &#8220;America\/New_York&#8221;<br \/>\n  &#8211;session isolated<br \/>\n  &#8211;message &#8220;Generate today&#8217;s briefing: weather, calendar, top emails, news summary.&#8221;<br \/>\n  &#8211;model opus<br \/>\n  &#8211;announce<br \/>\n  &#8211;channel whatsapp<br \/>\n  &#8211;to &#8220;+15551234567&#8221;<\/p>\n<pre><code>\n\u8fd9\u4f1a\u5728\u7ebd\u7ea6\u65f6\u95f4\u6bcf\u5929\u65e9\u4e0a 7:00 \u51c6\u65f6\u8fd0\u884c\uff0c\u4f7f\u7528 Opus \u4fdd\u8bc1\u8d28\u91cf\uff0c\u5e76\u76f4\u63a5\u6295\u9012\u5230 WhatsApp\u3002\n\n### \u5b9a\u65f6\u4efb\u52a1\u793a\u4f8b\uff1a\u4e00\u6b21\u6027\u63d0\u9192\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw cron add \n  --name &quot;Meeting reminder&quot; \n  --at &quot;20m&quot; \n  --session main \n  --system-event &quot;Reminder: standup meeting starts in 10 minutes.&quot; \n  --wake now \n  --delete-after-run\n<\/code><\/pre>\n<p>\u5b8c\u6574 CLI \u53c2\u8003\u8bf7\u53c2\u9605<a href=\"\/automation\/cron-jobs\">\u5b9a\u65f6\u4efb\u52a1<\/a>\u3002<\/p>\n<h2>\u51b3\u7b56\u6d41\u7a0b\u56fe<\/h2>\n<pre><code>\u4efb\u52a1\u662f\u5426\u9700\u8981\u5728\u7cbe\u786e\u65f6\u95f4\u8fd0\u884c\uff1f\n  \u662f -&gt; \u4f7f\u7528\u5b9a\u65f6\u4efb\u52a1\n  \u5426 -&gt; \u7ee7\u7eed...\n\n\u4efb\u52a1\u662f\u5426\u9700\u8981\u4e0e\u4e3b\u4f1a\u8bdd\u9694\u79bb\uff1f\n  \u662f -&gt; \u4f7f\u7528\u5b9a\u65f6\u4efb\u52a1\uff08\u9694\u79bb\u5f0f\uff09\n  \u5426 -&gt; \u7ee7\u7eed...\n\n\u6b64\u4efb\u52a1\u80fd\u5426\u4e0e\u5176\u4ed6\u5468\u671f\u6027\u68c0\u67e5\u6279\u91cf\u5904\u7406\uff1f\n  \u662f -&gt; \u4f7f\u7528\u5fc3\u8df3\uff08\u6dfb\u52a0\u5230 HEARTBEAT.md\uff09\n  \u5426 -&gt; \u4f7f\u7528\u5b9a\u65f6\u4efb\u52a1\n\n\u8fd9\u662f\u4e00\u6b21\u6027\u63d0\u9192\u5417\uff1f\n  \u662f -&gt; \u4f7f\u7528\u5b9a\u65f6\u4efb\u52a1\u914d\u5408 --at\n  \u5426 -&gt; \u7ee7\u7eed...\n\n\u662f\u5426\u9700\u8981\u4e0d\u540c\u7684\u6a21\u578b\u6216\u601d\u7ef4\u7ea7\u522b\uff1f\n  \u662f -&gt; \u4f7f\u7528\u5b9a\u65f6\u4efb\u52a1\uff08\u9694\u79bb\u5f0f\uff09\u914d\u5408 --model\/--thinking\n  \u5426 -&gt; \u4f7f\u7528\u5fc3\u8df3\n<\/code><\/pre>\n<h2>\u7ec4\u5408\u4f7f\u7528<\/h2>\n<p>\u6700\u9ad8\u6548\u7684\u914d\u7f6e\u662f<strong>\u4e24\u8005\u7ed3\u5408<\/strong>\uff1a<\/p>\n<ol>\n<li><strong>\u5fc3\u8df3<\/strong>\u5904\u7406\u5e38\u89c4\u76d1\u63a7\uff08\u6536\u4ef6\u7bb1\u3001\u65e5\u5386\u3001\u901a\u77e5\uff09\uff0c\u6bcf 30 \u5206\u949f\u6279\u91cf\u5904\u7406\u4e00\u6b21\u3002<\/li>\n<li><strong>\u5b9a\u65f6\u4efb\u52a1<\/strong>\u5904\u7406\u7cbe\u786e\u8c03\u5ea6\uff08\u6bcf\u65e5\u62a5\u544a\u3001\u6bcf\u5468\u56de\u987e\uff09\u548c\u4e00\u6b21\u6027\u63d0\u9192\u3002<\/li>\n<\/ol>\n<h3>\u793a\u4f8b\uff1a\u9ad8\u6548\u81ea\u52a8\u5316\u914d\u7f6e<\/h3>\n<p><strong>HEARTBEAT.md<\/strong>\uff08\u6bcf 30 \u5206\u949f\u68c0\u67e5\u4e00\u6b21\uff09\uff1a<\/p>\n<p>&#8220;`md  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<\/p>\n<h1>Heartbeat checklist<\/h1>\n<ul>\n<li>Scan inbox for urgent emails<\/li>\n<li>Check calendar for events in next 2h<\/li>\n<li>Review any pending tasks<\/li>\n<li>Light check-in if quiet for 8+ hours<\/li>\n<\/ul>\n<pre><code>\n**\u5b9a\u65f6\u4efb\u52a1**\uff08\u7cbe\u786e\u5b9a\u65f6\uff09\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n# \u6bcf\u5929\u65e9\u4e0a 7 \u70b9\u7684\u65e9\u95f4\u7b80\u62a5\nopenclaw cron add --name &quot;Morning brief&quot; --cron &quot;0 7 * * *&quot; --session isolated --message &quot;...&quot; --announce\n\n# \u6bcf\u5468\u4e00\u4e0a\u5348 9 \u70b9\u7684\u9879\u76ee\u56de\u987e\nopenclaw cron add --name &quot;Weekly review&quot; --cron &quot;0 9 * * 1&quot; --session isolated --message &quot;...&quot; --model opus\n\n# \u4e00\u6b21\u6027\u63d0\u9192\nopenclaw cron add --name &quot;Call back&quot; --at &quot;2h&quot; --session main --system-event &quot;Call back the client&quot; --wake now\n<\/code><\/pre>\n<h2>Lobster\uff1a\u5e26\u5ba1\u6279\u7684\u786e\u5b9a\u6027\u5de5\u4f5c\u6d41<\/h2>\n<p>Lobster \u662f\u7528\u4e8e<strong>\u591a\u6b65\u9aa4\u5de5\u5177\u7ba1\u9053<\/strong>\u7684\u5de5\u4f5c\u6d41\u8fd0\u884c\u65f6\uff0c\u9002\u7528\u4e8e\u9700\u8981\u786e\u5b9a\u6027\u6267\u884c\u548c\u660e\u786e\u5ba1\u6279\u7684\u573a\u666f\u3002\u5f53\u4efb\u52a1\u4e0d\u53ea\u662f\u5355\u6b21\u667a\u80fd\u4f53\u8f6e\u6b21\uff0c\u4e14\u4f60\u9700\u8981\u53ef\u6062\u590d\u7684\u5e26\u4eba\u5de5\u68c0\u67e5\u70b9\u7684\u5de5\u4f5c\u6d41\u65f6\uff0c\u4f7f\u7528\u5b83\u3002<\/p>\n<h3>\u4f55\u65f6\u9002\u5408\u4f7f\u7528 Lobster<\/h3>\n<ul>\n<li><strong>\u591a\u6b65\u9aa4\u81ea\u52a8\u5316<\/strong>\uff1a\u4f60\u9700\u8981\u4e00\u4e2a\u56fa\u5b9a\u7684\u5de5\u5177\u8c03\u7528\u7ba1\u9053\uff0c\u800c\u4e0d\u662f\u4e00\u6b21\u6027\u63d0\u793a\u3002<\/li>\n<li><strong>\u5ba1\u6279\u5173\u5361<\/strong>\uff1a\u526f\u4f5c\u7528\u5e94\u6682\u505c\u76f4\u5230\u4f60\u6279\u51c6\uff0c\u7136\u540e\u7ee7\u7eed\u6267\u884c\u3002<\/li>\n<li><strong>\u53ef\u6062\u590d\u8fd0\u884c<\/strong>\uff1a\u7ee7\u7eed\u6682\u505c\u7684\u5de5\u4f5c\u6d41\u800c\u65e0\u9700\u91cd\u65b0\u8fd0\u884c\u4e4b\u524d\u7684\u6b65\u9aa4\u3002<\/li>\n<\/ul>\n<h3>\u5982\u4f55\u4e0e\u5fc3\u8df3\u548c\u5b9a\u65f6\u4efb\u52a1\u914d\u5408<\/h3>\n<ul>\n<li><strong>\u5fc3\u8df3\/\u5b9a\u65f6\u4efb\u52a1<\/strong>\u51b3\u5b9a<em>\u4f55\u65f6<\/em>\u8fd0\u884c\u3002<\/li>\n<li><strong>Lobster<\/strong> \u5b9a\u4e49\u8fd0\u884c\u5f00\u59cb\u540e<em>\u6267\u884c\u54ea\u4e9b\u6b65\u9aa4<\/em>\u3002<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e\u8ba1\u5212\u6027\u5de5\u4f5c\u6d41\uff0c\u4f7f\u7528\u5b9a\u65f6\u4efb\u52a1\u6216\u5fc3\u8df3\u89e6\u53d1\u4e00\u6b21\u8c03\u7528 Lobster \u7684\u667a\u80fd\u4f53\u8f6e\u6b21\u3002\u5bf9\u4e8e\u4e34\u65f6\u5de5\u4f5c\u6d41\uff0c\u76f4\u63a5\u8c03\u7528 Lobster\u3002<\/p>\n<h3>\u64cd\u4f5c\u8bf4\u660e\uff08\u6765\u81ea\u4ee3\u7801\uff09<\/h3>\n<ul>\n<li>Lobster \u4ee5<strong>\u672c\u5730\u5b50\u8fdb\u7a0b<\/strong>\uff08<code>lobster<\/code> CLI\uff09\u5728\u5de5\u5177\u6a21\u5f0f\u4e0b\u8fd0\u884c\uff0c\u5e76\u8fd4\u56de <strong>JSON \u4fe1\u5c01<\/strong>\u3002<\/li>\n<li>\u5982\u679c\u5de5\u5177\u8fd4\u56de <code>needs_approval<\/code>\uff0c\u4f60\u9700\u8981\u4f7f\u7528 <code>resumeToken<\/code> \u548c <code>approve<\/code> \u6807\u5fd7\u6765\u6062\u590d\u3002<\/li>\n<li>\u8be5\u5de5\u5177\u662f<strong>\u53ef\u9009\u63d2\u4ef6<\/strong>\uff1b\u5efa\u8bae\u901a\u8fc7 <code>tools.alsoAllow: [\"lobster\"]<\/code> \u9644\u52a0\u542f\u7528\u3002<\/li>\n<li>\u5982\u679c\u4f20\u5165 <code>lobsterPath<\/code>\uff0c\u5fc5\u987b\u662f<strong>\u7edd\u5bf9\u8def\u5f84<\/strong>\u3002<\/li>\n<\/ul>\n<p>\u5b8c\u6574\u7528\u6cd5\u548c\u793a\u4f8b\u8bf7\u53c2\u9605 <a href=\"\/tools\/lobster\">Lobster<\/a>\u3002<\/p>\n<h2>\u4e3b\u4f1a\u8bdd\u4e0e\u9694\u79bb\u4f1a\u8bdd<\/h2>\n<p>\u5fc3\u8df3\u548c\u5b9a\u65f6\u4efb\u52a1\u90fd\u53ef\u4ee5\u4e0e\u4e3b\u4f1a\u8bdd\u4ea4\u4e92\uff0c\u4f46\u65b9\u5f0f\u4e0d\u540c\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>\u5fc3\u8df3<\/th>\n<th>\u5b9a\u65f6\u4efb\u52a1\uff08\u4e3b\u4f1a\u8bdd\uff09<\/th>\n<th>\u5b9a\u65f6\u4efb\u52a1\uff08\u9694\u79bb\u5f0f\uff09<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u4f1a\u8bdd<\/td>\n<td>\u4e3b\u4f1a\u8bdd<\/td>\n<td>\u4e3b\u4f1a\u8bdd\uff08\u901a\u8fc7\u7cfb\u7edf\u4e8b\u4ef6\uff09<\/td>\n<td><code>cron:&lt;jobId&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u5386\u53f2<\/td>\n<td>\u5171\u4eab<\/td>\n<td>\u5171\u4eab<\/td>\n<td>\u6bcf\u6b21\u8fd0\u884c\u5168\u65b0<\/td>\n<\/tr>\n<tr>\n<td>\u4e0a\u4e0b\u6587<\/td>\n<td>\u5b8c\u6574<\/td>\n<td>\u5b8c\u6574<\/td>\n<td>\u65e0\uff08\u4ece\u96f6\u5f00\u59cb\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u6a21\u578b<\/td>\n<td>\u4e3b\u4f1a\u8bdd\u6a21\u578b<\/td>\n<td>\u4e3b\u4f1a\u8bdd\u6a21\u578b<\/td>\n<td>\u53ef\u8986\u76d6<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u51fa<\/td>\n<td>\u975e <code>HEARTBEAT_OK<\/code> \u65f6\u6295\u9012<\/td>\n<td>\u5fc3\u8df3\u63d0\u793a + \u4e8b\u4ef6<\/td>\n<td>announce \u6458\u8981\uff08\u9ed8\u8ba4\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4f55\u65f6\u4f7f\u7528\u4e3b\u4f1a\u8bdd\u5b9a\u65f6\u4efb\u52a1<\/h3>\n<p>\u5f53\u4f60\u9700\u8981\u4ee5\u4e0b\u573a\u666f\u65f6\uff0c\u4f7f\u7528 <code>--session main<\/code> \u914d\u5408 <code>--system-event<\/code>\uff1a<\/p>\n<ul>\n<li>\u63d0\u9192\/\u4e8b\u4ef6\u51fa\u73b0\u5728\u4e3b\u4f1a\u8bdd\u4e0a\u4e0b\u6587\u4e2d<\/li>\n<li>\u667a\u80fd\u4f53\u5728\u4e0b\u4e00\u6b21\u5fc3\u8df3\u65f6\u5e26\u7740\u5b8c\u6574\u4e0a\u4e0b\u6587\u5904\u7406\u5b83<\/li>\n<li>\u4e0d\u9700\u8981\u5355\u72ec\u7684\u9694\u79bb\u8fd0\u884c<\/li>\n<\/ul>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw cron add<br \/>\n  &#8211;name &#8220;Check project&#8221;<br \/>\n  &#8211;every &#8220;4h&#8221;<br \/>\n  &#8211;session main<br \/>\n  &#8211;system-event &#8220;Time for a project health check&#8221;<br \/>\n  &#8211;wake now<\/p>\n<pre><code>\n### \u4f55\u65f6\u4f7f\u7528\u9694\u79bb\u5f0f\u5b9a\u65f6\u4efb\u52a1\n\n\u5f53\u4f60\u9700\u8981\u4ee5\u4e0b\u573a\u666f\u65f6\uff0c\u4f7f\u7528 `--session isolated`\uff1a\n\n* \u65e0\u5148\u524d\u4e0a\u4e0b\u6587\u7684\u5168\u65b0\u73af\u5883\n* \u4e0d\u540c\u7684\u6a21\u578b\u6216\u601d\u7ef4\u8bbe\u7f6e\n* \u8f93\u51fa\u53ef\u901a\u8fc7 `announce` \u76f4\u63a5\u6295\u9012\u6458\u8981\uff08\u6216\u7528 `none` \u4ec5\u5185\u90e8\u8fd0\u884c\uff09\n* \u4e0d\u4f1a\u628a\u4e3b\u4f1a\u8bdd\u641e\u5f97\u6742\u4e71\u7684\u5386\u53f2\u8bb0\u5f55\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw cron add \n  --name &quot;Deep analysis&quot; \n  --cron &quot;0 6 * * 0&quot; \n  --session isolated \n  --message &quot;Weekly codebase analysis...&quot; \n  --model opus \n  --thinking high \n  --announce\n<\/code><\/pre>\n<h2>\u6210\u672c\u8003\u91cf<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u673a\u5236<\/th>\n<th>\u6210\u672c\u7279\u5f81<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5fc3\u8df3<\/td>\n<td>\u6bcf N \u5206\u949f\u4e00\u6b21\u8f6e\u6b21\uff1b\u968f HEARTBEAT.md \u5927\u5c0f\u6269\u5c55<\/td>\n<\/tr>\n<tr>\n<td>\u5b9a\u65f6\u4efb\u52a1\uff08\u4e3b\u4f1a\u8bdd\uff09<\/td>\n<td>\u5c06\u4e8b\u4ef6\u6dfb\u52a0\u5230\u4e0b\u4e00\u6b21\u5fc3\u8df3\uff08\u65e0\u9694\u79bb\u8f6e\u6b21\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u5b9a\u65f6\u4efb\u52a1\uff08\u9694\u79bb\u5f0f\uff09<\/td>\n<td>\u6bcf\u4e2a\u4efb\u52a1\u4e00\u6b21\u5b8c\u6574\u667a\u80fd\u4f53\u8f6e\u6b21\uff1b\u53ef\u4f7f\u7528\u66f4\u4fbf\u5b9c\u7684\u6a21\u578b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u5efa\u8bae<\/strong>\uff1a<\/p>\n<ul>\n<li>\u4fdd\u6301 <code>HEARTBEAT.md<\/code> \u7cbe\u7b80\u4ee5\u51cf\u5c11 token \u5f00\u9500\u3002<\/li>\n<li>\u5c06\u7c7b\u4f3c\u7684\u68c0\u67e5\u6279\u91cf\u653e\u5165\u5fc3\u8df3\uff0c\u800c\u4e0d\u662f\u521b\u5efa\u591a\u4e2a\u5b9a\u65f6\u4efb\u52a1\u3002<\/li>\n<li>\u5982\u679c\u53ea\u9700\u8981\u5185\u90e8\u5904\u7406\uff0c\u5728\u5fc3\u8df3\u4e0a\u4f7f\u7528 <code>target: \"none\"<\/code>\u3002<\/li>\n<li>\u5bf9\u5e38\u89c4\u4efb\u52a1\u4f7f\u7528\u9694\u79bb\u5f0f\u5b9a\u65f6\u4efb\u52a1\u914d\u5408\u66f4\u4fbf\u5b9c\u7684\u6a21\u578b\u3002<\/li>\n<\/ul>\n<h2>\u76f8\u5173\u5185\u5bb9<\/h2>\n<ul>\n<li><a href=\"\/gateway\/heartbeat\">\u5fc3\u8df3<\/a> &#8211; \u5b8c\u6574\u7684\u5fc3\u8df3\u914d\u7f6e<\/li>\n<li><a href=\"\/automation\/cron-jobs\">\u5b9a\u65f6\u4efb\u52a1<\/a> &#8211; \u5b8c\u6574\u7684\u5b9a\u65f6\u4efb\u52a1 CLI \u548c API \u53c2\u8003<\/li>\n<li><a href=\"\/cli\/system\">\u7cfb\u7edf<\/a> &#8211; \u7cfb\u7edf\u4e8b\u4ef6 + \u5fc3\u8df3\u63a7\u5236<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9a\u65f6\u4efb\u52a1\u4e0e\u5fc3\u8df3\u5bf9\u6bd4 \u5b9a\u65f6\u4efb\u52a1\u4e0e\u5fc3\u8df3\uff1a\u4f55\u65f6\u4f7f\u7528\u54ea\u79cd\u65b9\u5f0f \u5fc3\u8df3\u548c\u5b9a\u65f6\u4efb\u52a1\u90fd\u53ef\u4ee5\u6309\u8ba1\u5212\u8fd0\u884c\u4efb\u52a1\u3002\u672c\u6307\u5357\u5e2e\u52a9\u4f60\u6839\u636e\u4f7f\u7528 [&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-10","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/10","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=10"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":305,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/10\/revisions\/305"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}