{"id":107,"date":"2026-03-21T22:47:17","date_gmt":"2026-03-21T14:47:17","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/concepts-system-prompt\/"},"modified":"2026-03-21T23:08:56","modified_gmt":"2026-03-21T15:08:56","slug":"concepts-system-prompt","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/concepts-system-prompt\/","title":{"rendered":"\u7cfb\u7edf\u63d0\u793a\u8bcd"},"content":{"rendered":"<h1>\u7cfb\u7edf\u63d0\u793a\u8bcd<\/h1>\n<p>OpenClaw \u4e3a\u6bcf\u6b21\u667a\u80fd\u4f53\u8fd0\u884c\u6784\u5efa\u81ea\u5b9a\u4e49\u7cfb\u7edf\u63d0\u793a\u8bcd\u3002\u8be5\u63d0\u793a\u8bcd\u7531 <strong>OpenClaw \u62e5\u6709<\/strong>\uff0c\u4e0d\u4f7f\u7528 pi-coding-agent \u9ed8\u8ba4\u63d0\u793a\u8bcd\u3002<\/p>\n<p>\u8be5\u63d0\u793a\u8bcd\u7531 OpenClaw \u7ec4\u88c5\u5e76\u6ce8\u5165\u5230\u6bcf\u6b21\u667a\u80fd\u4f53\u8fd0\u884c\u4e2d\u3002<\/p>\n<h2>\u7ed3\u6784<\/h2>\n<p>\u8be5\u63d0\u793a\u8bcd\u8bbe\u8ba1\u7d27\u51d1\uff0c\u4f7f\u7528\u56fa\u5b9a\u90e8\u5206\uff1a<\/p>\n<ul>\n<li><strong>Tooling<\/strong>\uff1a\u5f53\u524d\u5de5\u5177\u5217\u8868 + \u7b80\u77ed\u63cf\u8ff0\u3002<\/li>\n<li><strong>Safety<\/strong>\uff1a\u7b80\u77ed\u7684\u9632\u62a4\u63d0\u9192\uff0c\u907f\u514d\u8ffd\u6c42\u6743\u529b\u7684\u884c\u4e3a\u6216\u7ed5\u8fc7\u76d1\u7763\u3002<\/li>\n<li><strong>Skills<\/strong>\uff08\u5982\u679c\u53ef\u7528\uff09\uff1a\u544a\u8bc9\u6a21\u578b\u5982\u4f55\u6309\u9700\u52a0\u8f7d Skill \u6307\u4ee4\u3002<\/li>\n<li><strong>OpenClaw Self-Update<\/strong>\uff1a\u5982\u4f55\u8fd0\u884c <code>config.apply<\/code> \u548c <code>update.run<\/code>\u3002<\/li>\n<li><strong>Workspace<\/strong>\uff1a\u5de5\u4f5c\u76ee\u5f55\uff08<code>agents.defaults.workspace<\/code>\uff09\u3002<\/li>\n<li><strong>Documentation<\/strong>\uff1aOpenClaw \u6587\u6863\u7684\u672c\u5730\u8def\u5f84\uff08\u4ed3\u5e93\u6216 npm \u5305\uff09\u4ee5\u53ca\u4f55\u65f6\u9605\u8bfb\u5b83\u4eec\u3002<\/li>\n<li><strong>Workspace Files (injected)<\/strong>\uff1a\u8868\u793a\u4e0b\u65b9\u5305\u542b\u5f15\u5bfc\u6587\u4ef6\u3002<\/li>\n<li><strong>Sandbox<\/strong>\uff08\u542f\u7528\u65f6\uff09\uff1a\u8868\u793a\u6c99\u7bb1\u9694\u79bb\u8fd0\u884c\u65f6\u3001\u6c99\u7bb1\u8def\u5f84\uff0c\u4ee5\u53ca\u662f\u5426\u53ef\u7528\u63d0\u6743\u6267\u884c\u3002<\/li>\n<li><strong>Current Date &amp; Time<\/strong>\uff1a\u7528\u6237\u672c\u5730\u65f6\u95f4\u3001\u65f6\u533a\u548c\u65f6\u95f4\u683c\u5f0f\u3002<\/li>\n<li><strong>Reply Tags<\/strong>\uff1a\u652f\u6301\u7684\u63d0\u4f9b\u5546\u7684\u53ef\u9009\u56de\u590d\u6807\u7b7e\u8bed\u6cd5\u3002<\/li>\n<li><strong>Heartbeats<\/strong>\uff1a\u5fc3\u8df3\u63d0\u793a\u8bcd\u548c\u786e\u8ba4\u884c\u4e3a\u3002<\/li>\n<li><strong>Runtime<\/strong>\uff1a\u4e3b\u673a\u3001\u64cd\u4f5c\u7cfb\u7edf\u3001node\u3001\u6a21\u578b\u3001\u4ed3\u5e93\u6839\u76ee\u5f55\uff08\u68c0\u6d4b\u5230\u65f6\uff09\u3001\u601d\u8003\u7ea7\u522b\uff08\u4e00\u884c\uff09\u3002<\/li>\n<li><strong>Reasoning<\/strong>\uff1a\u5f53\u524d\u53ef\u89c1\u6027\u7ea7\u522b + \/reasoning \u5207\u6362\u63d0\u793a\u3002<\/li>\n<\/ul>\n<p>\u7cfb\u7edf\u63d0\u793a\u8bcd\u4e2d\u7684\u5b89\u5168\u9632\u62a4\u662f\u5efa\u8bae\u6027\u7684\u3002\u5b83\u4eec\u6307\u5bfc\u6a21\u578b\u884c\u4e3a\u4f46\u4e0d\u5f3a\u5236\u6267\u884c\u7b56\u7565\u3002\u4f7f\u7528\u5de5\u5177\u7b56\u7565\u3001\u6267\u884c\u5ba1\u6279\u3001\u6c99\u7bb1\u9694\u79bb\u548c\u6e20\u9053\u5141\u8bb8\u5217\u8868\u8fdb\u884c\u786c\u6027\u6267\u884c\uff1b\u8fd0\u7ef4\u4eba\u5458\u53ef\u4ee5\u6309\u8bbe\u8ba1\u7981\u7528\u8fd9\u4e9b\u3002<\/p>\n<h2>\u63d0\u793a\u8bcd\u6a21\u5f0f<\/h2>\n<p>OpenClaw \u53ef\u4ee5\u4e3a\u5b50\u667a\u80fd\u4f53\u6e32\u67d3\u66f4\u5c0f\u7684\u7cfb\u7edf\u63d0\u793a\u8bcd\u3002\u8fd0\u884c\u65f6\u4e3a\u6bcf\u6b21\u8fd0\u884c\u8bbe\u7f6e\u4e00\u4e2a <code>promptMode<\/code>\uff08\u4e0d\u662f\u9762\u5411\u7528\u6237\u7684\u914d\u7f6e\uff09\uff1a<\/p>\n<ul>\n<li><code>full<\/code>\uff08\u9ed8\u8ba4\uff09\uff1a\u5305\u542b\u4e0a\u8ff0\u6240\u6709\u90e8\u5206\u3002<\/li>\n<li><code>minimal<\/code>\uff1a\u7528\u4e8e\u5b50\u667a\u80fd\u4f53\uff1b\u7701\u7565 <strong>Skills<\/strong>\u3001<strong>Memory Recall<\/strong>\u3001<strong>OpenClaw Self-Update<\/strong>\u3001<strong>Model Aliases<\/strong>\u3001<strong>User Identity<\/strong>\u3001<strong>Reply Tags<\/strong>\u3001<strong>Messaging<\/strong>\u3001<strong>Silent Replies<\/strong> \u548c <strong>Heartbeats<\/strong>\u3002Tooling\u3001<strong>Safety<\/strong>\u3001Workspace\u3001Sandbox\u3001Current Date &amp; Time\uff08\u5df2\u77e5\u65f6\uff09\u3001Runtime \u548c\u6ce8\u5165\u7684\u4e0a\u4e0b\u6587\u4ecd\u7136\u53ef\u7528\u3002<\/li>\n<li><code>none<\/code>\uff1a\u4ec5\u8fd4\u56de\u57fa\u672c\u8eab\u4efd\u884c\u3002<\/li>\n<\/ul>\n<p>\u5f53 <code>promptMode=minimal<\/code> \u65f6\uff0c\u989d\u5916\u6ce8\u5165\u7684\u63d0\u793a\u8bcd\u6807\u8bb0\u4e3a <strong>Subagent Context<\/strong> \u800c\u4e0d\u662f <strong>Group Chat Context<\/strong>\u3002<\/p>\n<h2>\u5de5\u4f5c\u533a\u5f15\u5bfc\u6ce8\u5165<\/h2>\n<p>\u5f15\u5bfc\u6587\u4ef6\u88ab\u4fee\u526a\u540e\u9644\u52a0\u5728 <strong>Project Context<\/strong> \u4e0b\uff0c\u8fd9\u6837\u6a21\u578b\u65e0\u9700\u663e\u5f0f\u8bfb\u53d6\u5373\u53ef\u770b\u5230\u8eab\u4efd\u548c\u914d\u7f6e\u4e0a\u4e0b\u6587\uff1a<\/p>\n<ul>\n<li><code>AGENTS.md<\/code><\/li>\n<li><code>SOUL.md<\/code><\/li>\n<li><code>TOOLS.md<\/code><\/li>\n<li><code>IDENTITY.md<\/code><\/li>\n<li><code>USER.md<\/code><\/li>\n<li><code>HEARTBEAT.md<\/code><\/li>\n<li><code>BOOTSTRAP.md<\/code>\uff08\u4ec5\u5728\u5168\u65b0\u5de5\u4f5c\u533a\u4e0a\uff09<\/li>\n<\/ul>\n<p>\u5927\u6587\u4ef6\u4f1a\u5e26\u622a\u65ad\u6807\u8bb0\u88ab\u622a\u65ad\u3002\u6bcf\u4e2a\u6587\u4ef6\u7684\u6700\u5927\u5927\u5c0f\u7531 <code>agents.defaults.bootstrapMaxChars<\/code> \u63a7\u5236\uff08\u9ed8\u8ba4\uff1a20000\uff09\u3002\u7f3a\u5931\u7684\u6587\u4ef6\u4f1a\u6ce8\u5165\u4e00\u4e2a\u7b80\u77ed\u7684\u7f3a\u5931\u6587\u4ef6\u6807\u8bb0\u3002<\/p>\n<p>\u5185\u90e8\u94a9\u5b50\u53ef\u4ee5\u901a\u8fc7 <code>agent:bootstrap<\/code> \u62e6\u622a\u6b64\u6b65\u9aa4\u4ee5\u4fee\u6539\u6216\u66ff\u6362\u6ce8\u5165\u7684\u5f15\u5bfc\u6587\u4ef6\uff08\u4f8b\u5982\u5c06 <code>SOUL.md<\/code> \u66ff\u6362\u4e3a\u5176\u4ed6\u89d2\u8272\uff09\u3002<\/p>\n<p>\u8981\u68c0\u67e5\u6bcf\u4e2a\u6ce8\u5165\u6587\u4ef6\u8d21\u732e\u4e86\u591a\u5c11\uff08\u539f\u59cb vs \u6ce8\u5165\u3001\u622a\u65ad\uff0c\u52a0\u4e0a\u5de5\u5177 schema \u5f00\u9500\uff09\uff0c\u4f7f\u7528 <code>\/context list<\/code> \u6216 <code>\/context detail<\/code>\u3002\u53c2\u89c1<a href=\"\/concepts\/context\">\u4e0a\u4e0b\u6587<\/a>\u3002<\/p>\n<h2>\u65f6\u95f4\u5904\u7406<\/h2>\n<p>\u5f53\u7528\u6237\u65f6\u533a\u5df2\u77e5\u65f6\uff0c\u7cfb\u7edf\u63d0\u793a\u8bcd\u5305\u542b\u4e13\u7528\u7684 <strong>Current Date &amp; Time<\/strong> \u90e8\u5206\u3002\u4e3a\u4fdd\u6301\u63d0\u793a\u8bcd\u7f13\u5b58\u7a33\u5b9a\uff0c\u5b83\u73b0\u5728\u53ea\u5305\u542b<strong>\u65f6\u533a<\/strong>\uff08\u6ca1\u6709\u52a8\u6001\u65f6\u949f\u6216\u65f6\u95f4\u683c\u5f0f\uff09\u3002<\/p>\n<p>\u5f53\u667a\u80fd\u4f53\u9700\u8981\u5f53\u524d\u65f6\u95f4\u65f6\u4f7f\u7528 <code>session_status<\/code>\uff1b\u72b6\u6001\u5361\u7247\u5305\u542b\u65f6\u95f4\u6233\u884c\u3002<\/p>\n<p>\u914d\u7f6e\u65b9\u5f0f\uff1a<\/p>\n<ul>\n<li><code>agents.defaults.userTimezone<\/code><\/li>\n<li><code>agents.defaults.timeFormat<\/code>\uff08<code>auto<\/code> | <code>12<\/code> | <code>24<\/code>\uff09<\/li>\n<\/ul>\n<p>\u5b8c\u6574\u884c\u4e3a\u8be6\u60c5\u53c2\u89c1<a href=\"\/date-time\">\u65e5\u671f\u548c\u65f6\u95f4<\/a>\u3002<\/p>\n<h2>Skills<\/h2>\n<p>\u5f53\u5b58\u5728\u7b26\u5408\u6761\u4ef6\u7684 Skills \u65f6\uff0cOpenClaw \u6ce8\u5165\u4e00\u4e2a\u7d27\u51d1\u7684<strong>\u53ef\u7528 Skills \u5217\u8868<\/strong>\uff08<code>formatSkillsForPrompt<\/code>\uff09\uff0c\u5176\u4e2d\u5305\u542b\u6bcf\u4e2a Skill \u7684<strong>\u6587\u4ef6\u8def\u5f84<\/strong>\u3002\u63d0\u793a\u8bcd\u6307\u793a\u6a21\u578b\u4f7f\u7528 <code>read<\/code> \u52a0\u8f7d\u5217\u51fa\u4f4d\u7f6e\uff08\u5de5\u4f5c\u533a\u3001\u6258\u7ba1\u6216\u5185\u7f6e\uff09\u7684 SKILL.md\u3002\u5982\u679c\u6ca1\u6709\u7b26\u5408\u6761\u4ef6\u7684 Skills\uff0c\u5219\u7701\u7565 Skills \u90e8\u5206\u3002<\/p>\n<pre><code>&lt;available_skills&gt;\n  &lt;skill&gt;\n    &lt;name&gt;...&lt;\/name&gt;\n    &lt;description&gt;...&lt;\/description&gt;\n    &lt;location&gt;...&lt;\/location&gt;\n  &lt;\/skill&gt;\n&lt;\/available_skills&gt;\n<\/code><\/pre>\n<p>\u8fd9\u4f7f\u57fa\u7840\u63d0\u793a\u8bcd\u4fdd\u6301\u5c0f\u5de7\uff0c\u540c\u65f6\u4ecd\u7136\u652f\u6301\u6709\u9488\u5bf9\u6027\u7684 Skill \u4f7f\u7528\u3002<\/p>\n<h2>\u6587\u6863<\/h2>\n<p>\u5982\u679c\u53ef\u7528\uff0c\u7cfb\u7edf\u63d0\u793a\u8bcd\u5305\u542b\u4e00\u4e2a <strong>Documentation<\/strong> \u90e8\u5206\uff0c\u6307\u5411\u672c\u5730 OpenClaw \u6587\u6863\u76ee\u5f55\uff08\u4ed3\u5e93\u5de5\u4f5c\u533a\u4e2d\u7684 <code>docs\/<\/code> \u6216\u6253\u5305\u7684 npm \u5305\u6587\u6863\uff09\uff0c\u5e76\u6ce8\u660e\u516c\u5171\u955c\u50cf\u3001\u6e90\u4ed3\u5e93\u3001\u793e\u533a Discord \u548c ClawHub (<a href=\"https:\/\/clawhub.com\">https:\/\/clawhub.com<\/a>) \u7528\u4e8e Skills \u53d1\u73b0\u3002\u63d0\u793a\u8bcd\u6307\u793a\u6a21\u578b\u9996\u5148\u67e5\u9605\u672c\u5730\u6587\u6863\u4e86\u89e3 OpenClaw \u884c\u4e3a\u3001\u547d\u4ee4\u3001\u914d\u7f6e\u6216\u67b6\u6784\uff0c\u5e76\u5c3d\u53ef\u80fd\u81ea\u5df1\u8fd0\u884c <code>openclaw status<\/code>\uff08\u4ec5\u5728\u65e0\u6cd5\u8bbf\u95ee\u65f6\u8be2\u95ee\u7528\u6237\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u7edf\u63d0\u793a\u8bcd OpenClaw \u4e3a\u6bcf\u6b21\u667a\u80fd\u4f53\u8fd0\u884c\u6784\u5efa\u81ea\u5b9a\u4e49\u7cfb\u7edf\u63d0\u793a\u8bcd\u3002\u8be5\u63d0\u793a\u8bcd\u7531 OpenClaw \u62e5\u6709\uff0c\u4e0d\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-107","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/107","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=107"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions\/402"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}