{"id":10021329,"date":"2026-03-27T12:45:00","date_gmt":"2026-03-27T04:45:00","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021329"},"modified":"2026-03-27T12:45:00","modified_gmt":"2026-03-27T04:45:00","slug":"230%e8%a1%8c%e4%bb%a3%e7%a0%81%ef%bc%8c%e9%9b%b6%e4%be%9d%e8%b5%96%ef%bc%8c%e6%88%91%e7%94%a8%e4%b8%80%e4%b8%aa%e6%96%87%e4%bb%b6%e9%80%a0%e4%ba%86%e4%b8%80%e4%b8%aaai-agent-mini-openclaw","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021329","title":{"rendered":"230\u884c\u4ee3\u7801\uff0c\u96f6\u4f9d\u8d56\uff0c\u6211\u7528\u4e00\u4e2a\u6587\u4ef6\u9020\u4e86\u4e00\u4e2aAI Agent &#8211; Mini OpenClaw"},"content":{"rendered":"<h2>230\u884c\u4ee3\u7801\uff0c\u96f6\u4f9d\u8d56\uff0c\u6211\u7528\u4e00\u4e2a\u6587\u4ef6\u9020\u4e86\u4e00\u4e2aAI Agent<\/h2>\n<p>\u4e00\u4e2a\u6587\u4ef6\uff0c230\u884c\u4ee3\u7801\uff0c\u96f6npm\u4f9d\u8d56\u2014\u2014\u8fd9\u662f\u6211\u9020\u4e00\u4e2aAI Agent\u7684\u5168\u90e8\u6210\u672c\u3002<\/p>\n<p>\u5b83\u80fd\u81ea\u4e3b\u601d\u8003\u3001\u8c03\u7528\u5de5\u5177\u3001\u8bfb\u5199\u6587\u4ef6\u3001\u6267\u884c\u547d\u4ee4\uff0c\u5b8c\u6210\u4f60\u4ea4\u7ed9\u5b83\u7684\u4efb\u52a1\u3002\u5b83\u53eb <a href=\"https:\/\/link.segmentfault.com\/?enc=y0khwqWdtAmOcS2GiEdLjw%3D%3D.PXBRkyJeWUNpdy71ngcNk2NfaYD6iCSBhsqOjIOuu27HYrwna5j7CcWnc34DyLug\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Mini OpenClaw<\/a>\u3002<\/p>\n<hr>\n<h3>\u4e3a\u4ec0\u4e48\u8981\u9020\u8fd9\u4e2a\u8f6e\u5b50<\/h3>\n<p>\u5e02\u9762\u4e0a\u7684Agent\u6846\u67b6\uff0cLangChain\u3001AutoGPT\u3001CrewAI\u2026\u2026\u52a8\u8f84\u51e0\u5341\u4e2a\u4f9d\u8d56\uff0c\u4e0a\u5343\u4e2a\u6587\u4ef6\uff0c\u5149<code>node_modules<\/code>\u5c31\u80fd\u5403\u6389\u534a\u4e2a\u786c\u76d8\u3002<\/p>\n<p>\u6211\u53ea\u60f3\u641e\u6e05\u695a\u4e00\u4ef6\u4e8b\uff1a<strong>Agent\u7684\u672c\u8d28\u5230\u5e95\u662f\u4ec0\u4e48\uff1f<\/strong><\/p>\n<p>\u7ffb\u904d\u6240\u6709\u6846\u67b6\u7684\u6e90\u7801\uff0c\u5265\u6389\u5c01\u88c5\u3001\u62bd\u8c61\u3001\u8bbe\u8ba1\u6a21\u5f0f\uff0c\u5269\u4e0b\u7684\u6838\u5fc3\u903b\u8f91\u53ea\u6709\u4e00\u4e2a\u5faa\u73af\uff1a<\/p>\n<pre><code>\u7528\u6237\u63d0\u95ee \u2192 LLM\u601d\u8003 \u2192 \u9700\u8981\u5de5\u5177\u5417\uff1f\n                       \u251c\u2500\u2500 \u662f \u2192 \u6267\u884c\u5de5\u5177 \u2192 \u7ed3\u679c\u5582\u56deLLM \u2192 \u7ee7\u7eed\u601d\u8003\u2026\n                       \u2514\u2500\u2500 \u5426 \u2192 \u8f93\u51fa\u6700\u7ec8\u56de\u7b54 \u2705<\/code><\/pre>\n<p>\u8fd9\u5c31\u662f <strong>ReAct\uff08Reasoning + Acting\uff09<\/strong>\u3002<\/p>\n<blockquote><p><strong>Agent\u4e0d\u662f\u9b54\u6cd5\uff0c\u662f\u4e00\u4e2awhile\u5faa\u73af\u3002<\/strong><\/p><\/blockquote>\n<p>\u65e2\u7136\u6838\u5fc3\u8fd9\u4e48\u7b80\u5355\uff0c\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u7528\u4e00\u4e2a\u6587\u4ef6\u5b9e\u73b0\u5b83\uff1f<\/p>\n<p>\u4e8e\u662f\u6211\u52a8\u624b\u4e86\u3002<\/p>\n<hr>\n<h3>\u67b6\u6784\uff1a\u6781\u7b80\u5230\u4e0d\u80fd\u518d\u7b80<\/h3>\n<p>\u6574\u4e2a\u9879\u76ee\u53ea\u6709\u4e00\u4e2a\u6587\u4ef6 <code>mini-openclaw.mjs<\/code>\uff0c\u5206\u62104\u4e2a\u90e8\u5206\uff1a<\/p>\n<pre><code> mini-openclaw.mjs\uff08\u5355\u6587\u4ef6\uff0c4\u4e2a\u90e8\u5206\uff09\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502  \u7b2c\u4e00\u90e8\u5206\uff1a\u5de5\u5177\u5b9a\u4e49                    \u2502  \u2190 4\u4e2a\u5185\u7f6e\u5de5\u5177\n\u2502  \u7b2c\u4e8c\u90e8\u5206\uff1aLLM\u8c03\u7528                    \u2502  \u2190 CodeBuddy CLI\u9a71\u52a8\n\u2502  \u7b2c\u4e09\u90e8\u5206\uff1aReAct\u5faa\u73af                  \u2502  \u2190 \u601d\u8003\u2192\u884c\u52a8\u2192\u89c2\u5bdf\n\u2502  \u7b2c\u56db\u90e8\u5206\uff1a\u4ea4\u4e92\u5f0fREPL                 \u2502  \u2190 \u547d\u4ee4\u884c\u754c\u9762\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u6a21\u5757<\/th>\n<th>\u804c\u8d23<\/th>\n<th>\u4ee3\u7801\u91cf<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5de5\u5177\u5b9a\u4e49<\/td>\n<td><code>read_file<\/code> \u00b7 <code>write_file<\/code> \u00b7 <code>list_dir<\/code> \u00b7 <code>run_command<\/code><\/td>\n<td>~40\u884c<\/td>\n<\/tr>\n<tr>\n<td>LLM\u8c03\u7528<\/td>\n<td>\u901a\u8fc7CodeBuddy CLI\u975e\u4ea4\u4e92\u5f0f\u8c03\u7528\u5927\u6a21\u578b<\/td>\n<td>~50\u884c<\/td>\n<\/tr>\n<tr>\n<td>ReAct\u5faa\u73af<\/td>\n<td>\u68c0\u6d4b<code>&lt;tool_call&gt;<\/code>\u6807\u7b7e \u2192 \u6267\u884c\u5de5\u5177 \u2192 \u7ed3\u679c\u8ffd\u52a0 \u2192 \u7ee7\u7eed<\/td>\n<td>~80\u884c<\/td>\n<\/tr>\n<tr>\n<td>REPL<\/td>\n<td>readline\u4ea4\u4e92\u754c\u9762\uff0c\u652f\u6301\u591a\u8f6e\u5bf9\u8bdd<\/td>\n<td>~60\u884c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u6ca1\u6709package.json\u3002\u6ca1\u6709node_modules\u3002\u6ca1\u6709\u6784\u5efa\u6b65\u9aa4\u3002<\/strong><\/p>\n<p><code>node mini-openclaw.mjs<\/code>\uff0c\u4e00\u884c\u547d\u4ee4\uff0c\u76f4\u63a5\u8dd1\u3002<\/p>\n<blockquote><p><strong>\u6700\u597d\u7684\u67b6\u6784\uff0c\u662f\u4f60\u80fd\u4e00\u773c\u770b\u5b8c\u7684\u67b6\u6784\u3002<\/strong><\/p><\/blockquote>\n<hr>\n<h3>\u6838\u5fc3\u5b9e\u73b0\uff1a4\u4e2a\u5173\u952e\u8bbe\u8ba1\u51b3\u7b56<\/h3>\n<h4>\u51b3\u7b56\u4e00\uff1a\u6587\u672c\u6807\u7b7e\u5f0f\u5de5\u5177\u8c03\u7528<\/h4>\n<p>\u4e3b\u6d41\u65b9\u6848\u7528OpenAI\u7684function calling\u683c\u5f0f\uff0c\u9700\u8981\u7279\u5b9a\u7684API\u7ed3\u6784\u3002<\/p>\n<p>Mini OpenClaw\u7528\u4e86\u4e00\u79cd\u66f4\u7b80\u5355\u7684\u65b9\u5f0f\u2014\u2014<strong>\u6587\u672c\u6807\u7b7e<\/strong>\uff1a<\/p>\n<pre><code>&lt;tool_call&gt;{&quot;name&quot;:&quot;read_file&quot;,&quot;args&quot;:{&quot;path&quot;:&quot;test.txt&quot;}}&lt;\/tool_call&gt;<\/code><\/pre>\n<p>\u4e00\u4e2a\u6b63\u5219\u5c31\u80fd\u89e3\u6790\uff1a<\/p>\n<pre><code class=\"javascript\">const m = text.match(\/&lt;tool_call&gt;([\/s\/S]*?)&lt;\/\/tool_call&gt;\/);<\/code><\/pre>\n<p><strong>Before<\/strong>\uff1a\u4f9d\u8d56\u7279\u5b9aAPI\u683c\u5f0f\uff0c\u6362\u6a21\u578b\u5c31\u5f97\u6539\u4ee3\u7801<br \/><strong>After<\/strong>\uff1a\u7eaf\u6587\u672c\u534f\u8bae\uff0c\u4efb\u4f55\u6a21\u578b\u90fd\u80fd\u7528<\/p>\n<h4>\u51b3\u7b56\u4e8c\uff1aCLI\u800c\u975eHTTP<\/h4>\n<p>\u8c03\u7528LLM\u4e0d\u8d70HTTP API\uff0c\u76f4\u63a5spawn CodeBuddy CLI\u8fdb\u7a0b\uff1a<\/p>\n<pre><code class=\"javascript\">const proc = spawn(&quot;codebuddy&quot;, [\n  &quot;-p&quot;,                        \/\/ \u975e\u4ea4\u4e92\u5f0f\n  &quot;--output-format&quot;, &quot;json&quot;,   \/\/ JSON\u8f93\u51fa\n  &quot;--max-turns&quot;, &quot;1&quot;,          \/\/ \u5355\u8f6e\n  &quot;--tools&quot;, &quot;&quot;,               \/\/ \u7981\u7528\u5185\u7f6e\u5de5\u5177\n  &quot;--model&quot;, model,\n  prompt,\n]);<\/code><\/pre>\n<p><strong>Before<\/strong>\uff1a\u9700\u8981HTTP\u5ba2\u6237\u7aef\u3001\u5904\u7406\u9274\u6743\u3001\u7ba1\u7406\u8fde\u63a5<br \/><strong>After<\/strong>\uff1a\u4e00\u4e2aspawn\u641e\u5b9a\uff0c\u96f6\u7f51\u7edc\u4ee3\u7801<\/p>\n<h4>\u51b3\u7b56\u4e09\uff1a\u7eaf\u6587\u672c\u5bf9\u8bdd\u5386\u53f2<\/h4>\n<p>\u4e0d\u7528\u590d\u6742\u7684\u6d88\u606f\u5bf9\u8c61\u6570\u7ec4\uff0c\u76f4\u63a5\u7528\u5b57\u7b26\u4e32\u62fc\u63a5\uff1a<\/p>\n<pre><code>User: \u8bfb\u53d6test.txt\nAssistant: [\u8c03\u7528\u4e86 read_file]\n[\u5de5\u5177\u7ed3\u679c]: hello world\nAssistant: \u6587\u4ef6\u5185\u5bb9\u662f hello world<\/code><\/pre>\n<p>\u7b80\u5355\u3001\u76f4\u89c2\u3001debug\u53cb\u597d\u3002<\/p>\n<h4>\u51b3\u7b56\u56db\uff1a\u91cd\u590d\u8c03\u7528\u68c0\u6d4b<\/h4>\n<p>\u6a21\u578b\u6709\u65f6\u4f1a\u9677\u5165\u6b7b\u5faa\u73af\uff0c\u53cd\u590d\u8c03\u7528\u540c\u4e00\u4e2a\u5de5\u5177\u3002Mini OpenClaw\u7528\u4e00\u884c\u4ee3\u7801\u89e3\u51b3\uff1a<\/p>\n<pre><code class=\"javascript\">const callKey = JSON.stringify(call);\nif (callKey === lastCallKey) {\n  \/\/ \u5f3a\u5236\u7ec8\u6b62\uff0c\u8ba9\u6a21\u578b\u603b\u7ed3\u5df2\u6709\u7ed3\u679c\n}<\/code><\/pre>\n<p><strong>Before<\/strong>\uff1aAgent\u5361\u6b7b\uff0ctoken\u70e7\u5149<br \/><strong>After<\/strong>\uff1a\u81ea\u52a8\u5239\u8f66\uff0c\u5f3a\u5236\u8f93\u51fa<\/p>\n<blockquote><p><strong>\u597d\u7684\u9632\u5fa1\u673a\u5236\uff0c\u662f\u7528\u6237\u6c38\u8fdc\u611f\u77e5\u4e0d\u5230\u7684\u90a3\u79cd\u3002<\/strong><\/p><\/blockquote>\n<hr>\n<h3>\u5b9e\u6218\u6548\u679c\uff1a3\u4e2a\u573a\u666f<\/h3>\n<h4>\u573a\u666f\u4e00\uff1a\u666e\u901a\u5bf9\u8bdd\uff080\u6b21\u5de5\u5177\u8c03\u7528\uff09<\/h4>\n<pre><code>You&gt; \u4f60\u597d\uff0c\u4ecb\u7ecd\u4e00\u4e0b\u4f60\u81ea\u5df1\n\n  \u2699 \u8fed\u4ee3 1\/15\n\n\ud83e\udd16 Assistant:\n\u6211\u662f\u4e00\u4e2a\u667a\u80fd\u52a9\u624b\uff0c\u62e5\u6709\u8bfb\u5199\u6587\u4ef6\u3001\u5217\u51fa\u76ee\u5f55\u3001\u6267\u884c\u547d\u4ee4\u7b49\u5de5\u5177\uff0c\n\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b8c\u6210\u7f16\u7a0b\u3001\u8c03\u8bd5\u3001\u9879\u76ee\u7ef4\u62a4\u7b49\u5f00\u53d1\u76f8\u5173\u5de5\u4f5c\u3002<\/code><\/pre>\n<p>LLM\u5224\u65ad\u4e0d\u9700\u8981\u5de5\u5177\uff0c1\u6b21\u8fed\u4ee3\uff0c\u76f4\u63a5\u56de\u7b54\u3002<\/p>\n<h4>\u573a\u666f\u4e8c\uff1a\u8bfb\u53d6\u6587\u4ef6\uff081\u6b21\u5de5\u5177\u8c03\u7528\uff09<\/h4>\n<pre><code>You&gt; \u8bfb\u53d6 .gitattributes \u6587\u4ef6\u5185\u5bb9\u5e76\u89e3\u91ca\u5b83\u7684\u4f5c\u7528\n\n  \u2699 \u8fed\u4ee3 1\/15\n  \ud83d\udd27 \u8c03\u7528\u5de5\u5177: read_file({&quot;path&quot;:&quot;.gitattributes&quot;})\n  \ud83d\udccb \u7ed3\u679c: # Auto detect text files and perform LF normalization\n            * text=auto\n\n  \u2699 \u8fed\u4ee3 2\/15\n\n\ud83e\udd16 Assistant:\n.gitattributes \u6587\u4ef6\u7528\u4e8e\u914d\u7f6e Git \u5bf9\u6587\u4ef6\u7684\u5904\u7406\u65b9\u5f0f\uff1a\n- `* text=auto`\uff1a\u5bf9\u6240\u6709\u6587\u4ef6\u542f\u7528\u6587\u672c\u81ea\u52a8\u68c0\u6d4b\u548c\u884c\u5c3eLF\u6807\u51c6\u5316<\/code><\/pre>\n<p>LLM\u601d\u8003 \u2192 \u8c03\u7528\u5de5\u5177 \u2192 \u62ff\u5230\u7ed3\u679c \u2192 \u603b\u7ed3\u56de\u7b54\u30022\u6b21\u8fed\u4ee3\u3002<\/p>\n<h4>\u573a\u666f\u4e09\uff1a\u6267\u884c\u547d\u4ee4\uff081\u6b21\u5de5\u5177\u8c03\u7528\uff09<\/h4>\n<pre><code>You&gt; \u7528\u547d\u4ee4\u67e5\u770b\u5f53\u524d\u7684 node \u7248\u672c\u548c\u64cd\u4f5c\u7cfb\u7edf\u4fe1\u606f\n\n  \u2699 \u8fed\u4ee3 1\/15\n  \ud83d\udd27 \u8c03\u7528\u5de5\u5177: run_command({&quot;command&quot;:&quot;node --version &amp;&amp; uname -a&quot;})\n  \ud83d\udccb \u7ed3\u679c: v22.22.0\n            Darwin Enos-MacBook-Pro.local 24.6.0 ... arm64\n\n  \u2699 \u8fed\u4ee3 2\/15\n\n\ud83e\udd16 Assistant:\n\u5f53\u524d\u73af\u5883\u4fe1\u606f\uff1a\n- Node.js \u7248\u672c\uff1av22.22.0\n- \u64cd\u4f5c\u7cfb\u7edf\uff1amacOS Darwin (Apple Silicon arm64)<\/code><\/pre>\n<p><strong>Before<\/strong>\uff1a\u624b\u52a8\u6572\u547d\u4ee4\uff0c\u81ea\u5df1\u770b\u8f93\u51fa<br \/><strong>After<\/strong>\uff1aAgent\u81ea\u4e3b\u51b3\u7b56\u6267\u884c\u4ec0\u4e48\u547d\u4ee4\uff0c\u81ea\u52a8\u603b\u7ed3\u7ed3\u679c<\/p>\n<blockquote><p><strong>Agent\u7684\u4ef7\u503c\u4e0d\u5728\u4e8e\u5b83\u80fd\u505a\u4ec0\u4e48\uff0c\u5728\u4e8e\u4f60\u4e0d\u7528\u544a\u8bc9\u5b83\u600e\u4e48\u505a\u3002<\/strong><\/p><\/blockquote>\n<hr>\n<h3>ReAct\u5faa\u73af\uff1a\u4e00\u5f20\u56fe\u770b\u61c2\u5168\u90e8<\/h3>\n<pre><code>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510    prompt     \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510    spawn     \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502  \u7528\u6237    \u2502 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2192 \u2502  ReAct\u5faa\u73af    \u2502 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2192 \u2502 CodeBuddy CLI \u2502\n\u2502  \u8f93\u5165    \u2502              \u2502  (react\u51fd\u6570)   \u2502 \u2190\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2502  (LLM\u56de\u590d)    \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518              \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518    JSON       \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n                                \u2502\n                    \u68c0\u6d4b &lt;tool_call&gt; \u6807\u7b7e\n                                \u2502\n                    \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n                    \u2502 \u6709                     \u2502 \u65e0\n                    \u25bc                       \u25bc\n              \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510           \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n              \u2502 \u6267\u884c\u5de5\u5177  \u2502           \u2502 \u8f93\u51fa\u56de\u7b54  \u2502\n              \u2502 \u8ffd\u52a0\u7ed3\u679c  \u2502           \u2502 \u5faa\u73af\u7ed3\u675f  \u2502\n              \u2502 \u7ee7\u7eed\u5faa\u73af  \u2502           \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n              \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/code><\/pre>\n<p>\u6574\u4e2a\u6d41\u7a0b\u7684\u4ee3\u7801\u5b9e\u73b0\uff0c\u6838\u5fc3\u5c31\u662f<code>react<\/code>\u51fd\u6570\u91cc\u7684\u4e00\u4e2afor\u5faa\u73af\uff1a<\/p>\n<pre><code class=\"javascript\">for (let i = 1; i &lt;= maxIter; i++) {\n  const prompt = buildSystemPrompt() + &quot;\/n\/n&quot; + history.join(&quot;\/n\/n&quot;);\n  const reply = await callLLM(prompt, model, apiKey);\n  const call = extractToolCall(reply);\n  \n  if (!call) {\n    \/\/ \u6ca1\u6709\u5de5\u5177\u8c03\u7528 \u2192 \u6700\u7ec8\u56de\u7b54\n    return reply;\n  }\n  \n  \/\/ \u6709\u5de5\u5177\u8c03\u7528 \u2192 \u6267\u884c \u2192 \u7ed3\u679c\u8ffd\u52a0\u5230\u5386\u53f2 \u2192 \u7ee7\u7eed\u5faa\u73af\n  const result = executeTool(call);\n  history.push(`[\u5de5\u5177\u7ed3\u679c]: ${result}`);\n}<\/code><\/pre>\n<p><strong>\u8fd9\u5c31\u662f\u4e00\u4e2aAI Agent\u7684\u5168\u90e8\u6838\u5fc3\u903b\u8f91\u3002<\/strong><\/p>\n<p>\u6ca1\u6709\u4e2d\u95f4\u4ef6\u3002\u6ca1\u6709\u63d2\u4ef6\u7cfb\u7edf\u3002\u6ca1\u6709\u62bd\u8c61\u5c42\u3002<\/p>\n<p>\u4e00\u4e2a\u5faa\u73af\uff0c\u4e00\u4e2a\u6b63\u5219\uff0c\u4e00\u4e2aspawn\u3002<\/p>\n<hr>\n<h3>\u5feb\u901f\u4e0a\u624b\uff1a3\u6b65\u8dd1\u8d77\u6765<\/h3>\n<pre><code class=\"bash\"># 1. \u514b\u9686\ngit clone https:\/\/github.com\/wscats\/enoclaw.git\ncd enoclaw\n\n# 2. \u8bbe\u7f6eKey\nexport CODEBUDDY_API_KEY=ck_\u4f60\u7684key\n\n# 3. \u8fd0\u884c\nnode mini-openclaw.mjs<\/code><\/pre>\n<p>\u60f3\u6362\u6a21\u578b\uff1f\u4e00\u4e2a\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<pre><code class=\"bash\">MODEL=hunyuan-2.0-thinking node mini-openclaw.mjs<\/code><\/pre>\n<p>\u652f\u6301\u7684\u6a21\u578b\uff1a<code>deepseek-v3-2-volc<\/code> \u00b7 <code>hunyuan-2.0-thinking<\/code> \u00b7 <code>glm-5.0<\/code> \u00b7 <code>glm-4.7<\/code> \u00b7 <code>minimax-m2.5<\/code> \u00b7 <code>kimi-k2.5<\/code><\/p>\n<p><strong>\u524d\u7f6e\u6761\u4ef6\u53ea\u6709\u4e24\u4e2a<\/strong>\uff1aNode.js \u2265 18\uff0cCodeBuddy CLI\uff08<code>npm i -g @tencent-ai\/codebuddy-code<\/code>\uff09\u3002<\/p>\n<blockquote><p><strong>\u597d\u5de5\u5177\u7684\u6807\u51c6\uff1aREADME\u90fd\u4e0d\u7528\u770b\u5b8c\u5c31\u80fd\u8dd1\u8d77\u6765\u3002<\/strong><\/p><\/blockquote>\n<hr>\n<h3>\u5199\u5728\u6700\u540e<\/h3>\n<p>230\u884c\u4ee3\u7801\u80fd\u9020\u4e00\u4e2aAgent\uff0c\u8fd9\u4ef6\u4e8b\u672c\u8eab\u8bf4\u660e\u4e86\u4ec0\u4e48\uff1f<\/p>\n<p><strong>AI Agent\u7684\u95e8\u69db\uff0c\u4ece\u6765\u4e0d\u5728\u4ee3\u7801\u91cf\u3002<\/strong><\/p>\n<p>LangChain\u670910\u4e07\u884c\u4ee3\u7801\uff0cMini OpenClaw\u6709230\u884c\u3002\u5b83\u4eec\u7684\u6838\u5fc3\u5faa\u73af\uff0c\u4e00\u6a21\u4e00\u6837\u3002<\/p>\n<p>\u533a\u522b\u5728\u4e8e\uff1a\u4e00\u4e2a\u8ba9\u4f60\u7528\u6846\u67b6\uff0c\u4e00\u4e2a\u8ba9\u4f60<strong>\u7406\u89e3\u6846\u67b6<\/strong>\u3002<\/p>\n<p><strong>\u6240\u6709Agent\u6846\u67b6\uff0c\u90fd\u662f\u8fd9230\u884c\u7684\u53d8\u4f53\u3002<\/strong><\/p>\n<hr>\n<p>\ud83d\udcce GitHub\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=TgA8INFi%2Bv9Q%2FdaPr9psUQ%3D%3D.rd4x8YyeHTuAx%2BHYX3CRREwFG4S5GXDqrUjCQcmWLS8z8zZ%2BOwFVkD2ZYcMkpmvE\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/github.com\/Wscats\/miniclaw<\/a><\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047678971\">https:\/\/segmentfault.com\/a\/1190000047678971<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>230\u884c\u4ee3\u7801\uff0c\u96f6\u4f9d\u8d56\uff0c\u6211\u7528\u4e00\u4e2a\u6587\u4ef6\u9020\u4e86\u4e00\u4e2aAI Agent \u4e00\u4e2a\u6587\u4ef6\uff0c230\u884c\u4ee3\u7801\uff0c\u96f6npm\u4f9d\u8d56\u2014\u2014\u8fd9\u662f\u6211\u9020\u4e00 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10021329","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021329"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021329\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}