{"id":10021388,"date":"2026-06-12T13:24:09","date_gmt":"2026-06-12T05:24:09","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021388"},"modified":"2026-06-12T13:24:09","modified_gmt":"2026-06-12T05:24:09","slug":"%e8%ae%a9-claude-code-%e6%8b%a5%e6%9c%89%e8%87%aa%e6%88%91%e8%bf%9b%e5%8c%96%e5%92%8c%e8%ae%b0%e5%bf%86%e7%b3%bb%e7%bb%9f%ef%bd%9c%e5%be%97%e7%89%a9%e6%8a%80%e6%9c%af","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021388","title":{"rendered":"\u8ba9 Claude Code \u62e5\u6709\u81ea\u6211\u8fdb\u5316\u548c\u8bb0\u5fc6\u7cfb\u7edf\uff5c\u5f97\u7269\u6280\u672f"},"content":{"rendered":"<h2>\u4e00\u3001\u80cc\u666f<\/h2>\n<p>\u6bcf\u6b21\u6253\u5f00 Claude Code \u5f00\u59cb\u65b0\u5bf9\u8bdd\uff0c\u5b83\u90fd\u662f\u4e00\u5f20\u767d\u7eb8\u3002\u6628\u5929\u4f60\u82b1\u4e86 10 \u5206\u949f\u89e3\u91ca\u7684\u9879\u76ee\u67b6\u6784\u3001\u4f60\u53cd\u590d\u7ea0\u6b63\u7684\u4ee3\u7801\u98ce\u683c\u504f\u597d\u3001\u4f60\u5efa\u7acb\u7684\u7279\u6b8a\u5f00\u53d1\u89c4\u8303\u2014\u2014\u5168\u90e8\u5f52\u96f6\u3002\u4f46\u662f\u4f7f\u7528\u8fc7 OpenClaw \u548c Hermes \u7684\u540c\u5b66\u90fd\u77e5\u9053\uff0c\u8fd9 2 \u4e2a agent \u5177\u5907\u6301\u4e45\u5316\u8bb0\u5fc6\u7cfb\u7edf\uff0c\u8fd9\u8ba9\u6211\u5f00\u59cb\u601d\u8003\uff1a\u80fd\u4e0d\u80fd\u7ed9 Claude Code \u88c5\u4e0a\u4e00\u5957&#8221;\u957f\u671f\u8bb0\u5fc6&#8221;\u7cfb\u7edf\uff1f\u66f4\u8fdb\u4e00\u6b65\uff0c\u4e0d\u53ea\u662f\u88ab\u52a8\u8bb0\u5fc6\uff0c\u800c\u662f\u4e3b\u52a8\u5b66\u4e60\uff1a\u89c2\u5bdf\u6211\u7684\u884c\u4e3a\u6a21\u5f0f\u3001\u9879\u76ee\u67b6\u6784\uff0c\u63d0\u70bc\u884c\u4e3a\u89c4\u5f8b\u3001\u9879\u76ee\u77e5\u8bc6\uff0c\u4e0b\u6b21\u81ea\u52a8\u5e94\u7528\u3002\u8fd9\u5c31\u662f\u672c\u6587\u8981\u4ecb\u7ecd\u7684\u7cfb\u7edf\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842959\" alt=\"\" title=\"\"><\/p>\n<h2>\u4e8c\u3001\u7cfb\u7edf\u67b6\u6784\u603b\u89c8<\/h2>\n<p>\u6574\u4e2a\u7cfb\u7edf\u7531\u4e09\u4e2a\u6838\u5fc3\u5b50\u7cfb\u7edf\u6784\u6210\uff1a<\/p>\n<ul>\n<li>\u884c\u4e3a\u89c2\u6d4b\u5c42\uff08Observation Engine\uff09<\/li>\n<li>\u6a21\u5f0f\u63d0\u70bc\u5c42\uff08Instinct Engine\uff09<\/li>\n<li>\u8bb0\u5fc6\u6ce8\u5165\u5c42\uff08Memory Engine\uff09<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u5404\u4e2a\u5b50\u7cfb\u7edf\u534f\u4f5c\uff0c\u5f62\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u81ea\u5b66\u4e60\u95ed\u73af\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842960\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>\u4e09\u3001\u884c\u4e3a\u89c2\u6d4b\u5c42<\/h2>\n<p>Observation Engine \u901a\u8fc7 Hook \u673a\u5236 100% \u6355\u83b7\u6bcf\u6b21\u5de5\u5177\u8c03\u7528\uff0c\u5199\u5165 JSONL \u89c2\u6d4b\u6d41\uff0c\u662f\u6574\u4e2a\u7cfb\u7edf\u7684\u6570\u636e\u6e90\u3002<\/p>\n<h3>Hook \u673a\u5236\u2014\u2014\u786e\u5b9a\u6027\u89e6\u53d1\u7684\u5173\u952e<\/h3>\n<p>\u65e9\u671f\u7248\u672c\u7528 Skill \u6765\u89e6\u53d1\u5b66\u4e60\uff0c\u4f46 Skill \u4f9d\u8d56\u6a21\u578b\u4e3b\u52a8\u8c03\u7528\uff0c\u89e6\u53d1\u7387\u4e0d\u7a33\u5b9a\u3002v2 \u7248\u672c\u6539\u7528 Claude Code \u539f\u751f Hook \u673a\u5236\uff0c\u5f7b\u5e95\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\u3002Hook \u662f Claude Code \u5728\u5de5\u5177\u8c03\u7528\u751f\u547d\u5468\u671f\u4e2d\u7684\u56de\u8c03\u70b9\uff0c\u53ef\u4ee5\u901a\u8fc7 Claudecode CLI \u6267\u884c \/hooks \u547d\u4ee4\u83b7\u53d6\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842961\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u914d\u7f6e\u5728 \/~\/.claude\/settings.json\uff1a<\/p>\n<pre><code class=\"JSON\">{\n  &quot;hooks&quot;: {\n    &quot;PreToolUse&quot;: [\n      {\n        &quot;matcher&quot;: &quot;Bash&quot;,\n        &quot;hooks&quot;: [\n          {\n            &quot;type&quot;: &quot;command&quot;,\n            &quot;command&quot;: &quot;~\/.claude\/hooks\/observe.sh pre&quot;\n          }\n        ]\n      }\n    ],\n    &quot;PostToolUse&quot;: [\n      {\n        &quot;matcher&quot;: &quot;.*&quot;,\n        &quot;hooks&quot;: [\n          {\n            &quot;type&quot;: &quot;command&quot;,\n            &quot;command&quot;: &quot;~\/.claude\/hooks\/observe.sh post&quot;\n          }\n        ]\n      }\n    ],\n    &quot;Stop&quot;: [\n      {\n        &quot;hooks&quot;: [\n          {\n            &quot;type&quot;: &quot;command&quot;,\n            &quot;command&quot;: &quot;~\/.claude\/bin\/auto-analyze-instincts.py &amp;&amp; ~\/.claude\/bin\/auto-evolve.py&quot;\n          }\n        ]\n      }\n    ]\n  }\n}<\/code><\/pre>\n<p>\u5173\u952e\u8bbe\u8ba1\uff1aStop Hook \u5728\u4f1a\u8bdd\u7ed3\u675f\u65f6\u89e6\u53d1\uff0c\u9a71\u52a8\u5206\u6790\u548c\u63d0\u70bc\u6d41\u7a0b\u3002PostToolUse \u5339\u914d\u6240\u6709\u5de5\u5177\uff08.*\uff09\uff0c\u786e\u4fdd 100% \u7684\u540e\u7f6e\u91c7\u96c6\u7387\uff1bPreToolUse \u5f53\u524d\u4ec5\u8986\u76d6 Bash \u8c03\u7528\uff0c\u7528\u4e8e\u5728\u547d\u4ee4\u6267\u884c\u524d\u8bb0\u5f55\u610f\u56fe\uff0c\u4e24\u8005\u4e92\u8865\u5f62\u6210\u5b8c\u6574\u7684\u751f\u547d\u5468\u671f\u89c2\u6d4b\u3002<\/p>\n<h3>Observation \u6570\u636e\u683c\u5f0f<\/h3>\n<p>\u6bcf\u6761\u89c2\u6d4b\u8bb0\u5f55\u662f\u4e00\u4e2a JSONL \u884c\uff0c\u5305\u542b\u5de5\u5177\u540d\u79f0\u3001\u65f6\u95f4\u6233\u3001\u8f93\u5165\u53c2\u6570\u7b49\uff1a<\/p>\n<pre><code class=\"JSON\">{\n  &quot;session_id&quot;: &quot;abc123&quot;,\n  &quot;ts&quot;: &quot;2026-05-26T10:30:00Z&quot;,\n  &quot;phase&quot;: &quot;post&quot;,\n  &quot;tool&quot;: &quot;Edit&quot;,\n  &quot;input&quot;: { &quot;file_path&quot;: &quot;\/src\/app.ts&quot;, &quot;old_string&quot;: &quot;...&quot;, &quot;new_string&quot;: &quot;...&quot; },\n  &quot;bash_desc&quot;: null\n}<\/code><\/pre>\n<p>\u5f53\u524d\u7cfb\u7edf\u5df2\u79ef\u7d2f\u6570\u4e07\u6761\u89c2\u6d4b\u8bb0\u5f55\uff0c\u7ea6 4MB \u6570\u636e\uff0c\u8bb0\u5f55\u4e86\u8de8\u8d8a\u6570\u6708\u7684\u5b8c\u6574\u7f16\u7a0b\u884c\u4e3a\u8f68\u8ff9\u3002<\/p>\n<h3>\u6570\u636e\u5206\u7247\u4e0e\u751f\u547d\u5468\u671f\u7ba1\u7406<\/h3>\n<p>\u4e3a\u9632\u6b62\u6570\u636e\u81a8\u80c0\uff0cobservations\/_rotate.py \u5728\u6587\u4ef6\u8d85 5MB \u6216 8000 \u884c\u65f6\u81ea\u52a8\u6309\u6708\u4efd\u5206\u7247\u5f52\u6863\uff0c\u4e3b\u6587\u4ef6\u53ea\u4fdd\u7559\u6700\u8fd1 30 \u5929\u7684\u6570\u636e\u3002<\/p>\n<h2>\u56db\u3001\u6a21\u5f0f\u63d0\u70bc\u5c42<\/h2>\n<p>Instinct Engine \u4f1a\u8bdd\u7ed3\u675f\u65f6\u81ea\u52a8\u5206\u6790\u89c2\u6d4b\u6570\u636e\uff0c\u63d0\u70bc\u884c\u4e3a\u6a21\u5f0f\u4e3a\u539f\u5b50\u5316 Instinct \u89c4\u5219\uff0c\u7f6e\u4fe1\u5ea6\u52a8\u6001\u6f14\u5316\u3002\u8fd9\u662f\u6574\u4e2a\u7cfb\u7edf\u6700\u6838\u5fc3\u7684\u90e8\u5206\u3002auto-analyze-instincts.py \u5728\u6bcf\u6b21\u4f1a\u8bdd\u7ed3\u675f\u65f6\u8fd0\u884c\uff0c\u901a\u8fc7\u4e24\u6761\u5e76\u884c\u8def\u5f84\u63d0\u70bc\u884c\u4e3a\u6a21\u5f0f\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842962\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u8def\u5f84 A\uff1a\u7edf\u8ba1\u6a21\u5f0f\u68c0\u6d4b<\/h3>\n<p>\u57fa\u4e8e\u89c4\u5219\u7684\u786c\u7f16\u7801\u68c0\u6d4b\u5668\uff0c\u8bc6\u522b\u9ad8\u9891\u51fa\u73b0\u7684\u5de5\u5177\u8c03\u7528\u5e8f\u5217\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842963\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6bcf\u68c0\u6d4b\u5230\u4e00\u4e2a\u6a21\u5f0f\uff0c\u751f\u6210\u6216\u66f4\u65b0\u4e00\u6761 Instinct\uff1a<\/p>\n<ul>\n<li>\u9996\u6b21\u53d1\u73b0\uff1aconfidence = 0.5<\/li>\n<li>\u91cd\u590d\u9a8c\u8bc1\uff1aconfidence += 0.05\uff08\u4e0a\u9650 0.9\uff09<\/li>\n<li>\u957f\u671f\u672a\u89e6\u53d1\uff1aconfidence -= 0.05\uff08\u4f4e\u4e8e 0.55 \u6807\u8bb0\u4e3a deprecated\uff09<\/li>\n<\/ul>\n<h3>\u8def\u5f84 B\uff1aAI \u8bed\u4e49\u5206\u6790<\/h3>\n<p>\u5c06\u89c2\u6d4b\u6458\u8981\u4ea4\u7ed9 Claude \u6a21\u578b\u8fdb\u884c\u8bed\u4e49\u7406\u89e3\uff0c\u6355\u83b7\u7edf\u8ba1\u6a21\u5f0f\u65e0\u6cd5\u8bc6\u522b\u7684\u6df1\u5c42\u89c4\u5f8b\uff1a<\/p>\n<pre><code class=\"Python\"># \u8c03\u7528\u672c\u5730 Claude CLI \u8fdb\u884c\u8bed\u4e49\u5206\u6790\nresult = subprocess.run(\n    [&quot;claude&quot;, &quot;--print&quot;, &quot;--model&quot;, &quot;claude-haiku-4-5-20251001&quot;, &quot;-p&quot;, prompt],\n    capture_output=True, text=True\n)\n# Claude \u8fd4\u56de JSON \u6570\u7ec4\uff0c\u6bcf\u6761\u662f\u4e00\u4e2a instinct\ninstincts = json.loads(result.stdout)<\/code><\/pre>\n<p>\u4e24\u6761\u8def\u5f84\u4e92\u8865\uff1a\u7edf\u8ba1\u8def\u5f84\u5feb\u901f\u53ef\u9760\uff0c\u8bed\u4e49\u8def\u5f84\u6355\u83b7\u590d\u6742\u6a21\u5f0f\u3002<\/p>\n<h3>Instinct \u6570\u636e\u6a21\u578b<\/h3>\n<p>\u6bcf\u4e2a Instinct \u662f\u72ec\u7acb\u7684 Markdown \u6587\u4ef6\uff0c\u5b58\u50a8\u5728 \/~\/.claude\/homunculus\/instincts\/personal\/\uff1a<\/p>\n<pre><code>Markdown\n---\nid: read-before-edit-pattern\ntrigger: &quot;when about to edit a file that hasn't been read in this session&quot;\nconfidence: 0.78\ndomain: workflow\nsource: session-observation\ndeprecated: false\nobserved_at: &quot;2026-05-20&quot;\n---\n\n## Action\n\n\u5728 Edit \u6587\u4ef6\u524d\uff0c\u5148\u7528 Read \u5de5\u5177\u8bfb\u53d6\u8be5\u6587\u4ef6\u7684\u5f53\u524d\u5185\u5bb9\uff0c\u7279\u522b\u662f\u5f53\u6587\u4ef6\u8f83\u957f\u6216\u6700\u8fd1\u6709\u5176\u4ed6\u6539\u52a8\u65f6\u3002\n\u4e0d\u8df3\u8fc7\u8bfb\u53d6\u76f4\u63a5\u7f16\u8f91\uff0c\u4ee5\u907f\u514d\u57fa\u4e8e\u8fc7\u65f6\u5185\u5bb9\u4ea7\u751f\u9519\u8bef\u7684\u4fee\u6539\u3002\n\n## Evidence\n\n\u5728\u8fc7\u53bb \u591a\u6b21 Edit \u64cd\u4f5c\u4e2d\uff0c\u7edd\u5927\u591a\u6570\u4e4b\u524d\u6709\u5bf9\u5e94\u7684 Read \u8c03\u7528\u3002\n<\/code><\/pre>\n<h3>\u8bed\u4e49\u53bb\u91cd\u7b97\u6cd5<\/h3>\n<p>\u5355\u6761 Instinct \u662f\u539f\u5b50\u6027\u7684\uff0cauto-evolve.py \u5c06\u540c\u57df\u9ad8\u7f6e\u4fe1\u5ea6\u89c4\u5219\u805a\u5408\u6210 Evolved Skill\uff0c\u5e76\u751f\u6210\u4f1a\u8bdd\u7ea7\u89c4\u5219\u6587\u4ef6\u3002\u6838\u5fc3\u662f\u57fa\u4e8e Jaccard \u76f8\u4f3c\u5ea6\u7684 Union-Find \u53bb\u91cd\uff1a<\/p>\n<pre><code class=\"Python\">def deduplicate_instincts(instincts, sim_threshold=0.5):\n    &quot;&quot;&quot;\u63d0\u53d6\u82f1\u6587\u5173\u952e\u8bcd\uff0c\u8ba1\u7b97 Jaccard \u76f8\u4f3c\u5ea6\uff0c\u76f8\u4f3c\u7684\u5408\u5e76\u4e3a\u4e00\u7ec4&quot;&quot;&quot;\n    tokens = [tokenize(i[&quot;trigger&quot;] + &quot; &quot; + i[&quot;action&quot;]) for i in instincts]\n    n = len(instincts)\n    parent = list(range(n))\n\n    for i in range(n):\n        for j in range(i + 1, n):\n            if jaccard(tokens[i], tokens[j]) &gt;= sim_threshold:\n                union(i, j)  # \u5408\u5e76\u76f8\u4f3c instinct\n\n    # \u6bcf\u7ec4\u53d6\u7f6e\u4fe1\u5ea6\u6700\u9ad8\u7684\u4f5c\u4e3a\u4ee3\u8868\n    return [max(group, key=lambda x: x[&quot;confidence&quot;]) for group in groups.values()]<\/code><\/pre>\n<p>\u53ea\u63d0\u53d6\u82f1\u6587\u5173\u952e\u8bcd\u7684\u8bbe\u8ba1\u5f88\u5de7\u5999\uff1a\u7528\u6237\u53ef\u80fd\u7528\u4e2d\u6587\u6216\u82f1\u6587\u63cf\u8ff0\u540c\u4e00\u4e2a\u4e60\u60ef\uff0c\u57fa\u4e8e\u82f1\u6587\u6280\u672f\u8bcd\u6c47\u7684 Jaccard \u76f8\u4f3c\u5ea6\u80fd\u8de8\u8bed\u8a00\u8bc6\u522b\u540c\u4e00\u610f\u56fe\u3002<\/p>\n<h3>Domain \u805a\u5408\u4e0e\u89c4\u5219\u6ce8\u5165<\/h3>\n<p>\u53bb\u91cd\u540e\u6309 domain \u5206\u7ec4\uff0c\u6bcf\u7ec4 &gt;= 2 \u6761\u624d\u751f\u6210 Evolved Skill\uff1a<\/p>\n<pre><code>workflow (7\u6761) \u2192 evolved-workflow.md\ntesting (3\u6761) \u2192 evolved-testing.md\ngit (2\u6761) \u2192 evolved-git.md\ncode-style (2\u6761) \u2192 evolved-code-style.md\nproject-context (2\u6761) \u2192 evolved-project-context.md\nresearch-habit (4\u6761) \u2192 evolved-research-habit.md<\/code><\/pre>\n<p>\u5404 domain \u7684 evolved-*.md \u5185\u5bb9\u968f\u5373\u88ab\u5408\u5e76\u3001\u7cbe\u7b80\u540e\u5199\u5165\/.claude\/rules\/auto-evolved.md\u2014\u2014\u6bcf\u6b21\u4f1a\u8bdd\u7ed3\u675f\u65f6\u6574\u4f53\u8986\u76d6\u91cd\u5199\uff0c\u59cb\u7ec8\u4fdd\u6301\u6700\u65b0\u72b6\u6001\u3002Claude Code \u542f\u52a8\u65f6\u81ea\u52a8\u52a0\u8f7d.claude\/rules\/ \u76ee\u5f55\u4e0b\u6240\u6709 .md \u6587\u4ef6\uff0c\u5b9e\u73b0\u89c4\u5219\u7684\u8de8\u4f1a\u8bdd\u6ce8\u5165\u3002<\/p>\n<h2>\u4e94\u3001\u8bb0\u5fc6\u6ce8\u5165\u5c42<\/h2>\n<p>Memory Engine\uff1a\u63d0\u70bc\u5b8c\u6210\u7684\u89c4\u5219\u5199\u5165\u89c4\u5219\u6587\u4ef6\uff0c\u4e0b\u6b21\u4f1a\u8bdd\u542f\u52a8\u65f6\u81ea\u52a8\u52a0\u8f7d\uff0c\u5b8c\u6210\u77e5\u8bc6\u7684\u8de8\u4f1a\u8bdd\u6301\u4e45\u5316\u3002\u7ed3\u6784\u5316\u77e5\u8bc6\u7684\u6301\u4e45\u5316\uff1aInstinct \u7cfb\u7edf\u5904\u7406\u884c\u4e3a\u6a21\u5f0f\uff0cMemory \u7cfb\u7edf\u5219\u5904\u7406\u77e5\u8bc6\u6027\u8bb0\u5fc6\u2014\u2014\u89e3\u51b3\u8fc7\u7684 Bug\u3001\u91cd\u8981\u7684\u6280\u672f\u51b3\u7b56\u3001\u9879\u76ee\u4e0a\u4e0b\u6587\u7b49\u3002<\/p>\n<h3>\u8bb0\u5fc6\u7c7b\u578b\u4f53\u7cfb<\/h3>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842964\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u8bb0\u5fc6\u6587\u4ef6\u683c\u5f0f<\/h3>\n<p>\u6bcf\u6761\u8bb0\u5fc6\u5b58\u50a8\u4e3a\u72ec\u7acb\u7684 Markdown \u6587\u4ef6\uff0c\u4f7f\u7528 YAML frontmatter\uff1a<\/p>\n<pre><code>---\nname: feedback-commit-timing\ndescription: \u6539\u5b8c\u4ee3\u7801\u4e0d\u4e3b\u52a8\u63d0\u4ea4\uff0c\u7b49\u7528\u6237\u9a8c\u8bc1\u786e\u8ba4\u540e\u518d commit\/push\nmetadata:\n  type: feedback\n---\n\n\u6539\u5b8c\u4ee3\u7801\u540e\u4e0d\u8981\u81ea\u52a8 commit \u6216 push\u3002\u7b49\u7528\u6237\u5728\u672c\u5730\u9a8c\u8bc1\u529f\u80fd\u6b63\u5e38\u540e\uff0c\u518d\u7531\u7528\u6237\u786e\u8ba4\u63d0\u4ea4\u3002\n\n**Why:** \u81ea\u52a8\u63d0\u4ea4\u4f1a\u6253\u65ad\u7528\u6237\u7684\u9a8c\u8bc1\u8282\u594f\uff0c\u4e14\u4e00\u65e6 push \u5230\u8fdc\u7aef\u5c31\u9700\u8981\u989d\u5916\u64cd\u4f5c\u56de\u6eda\u3002\n**How to apply:** \u5b8c\u6210\u4ee3\u7801\u4fee\u6539\u540e\uff0c\u660e\u786e\u544a\u77e5\u7528\u6237\u6539\u52a8\u5185\u5bb9\uff0c\u7b49\u5f85\u5176 confirm \u518d\u6267\u884c git \u64cd\u4f5c\u3002\n<\/code><\/pre>\n<h3>\u8bb0\u5fc6\u53ec\u56de\u5b9e\u73b0\uff1a\u4ece\u68c0\u7d22\u5230\u6ce8\u5165\u7684\u5b8c\u6574\u94fe\u8def<\/h3>\n<p>\u8bb0\u5fc6\u5b58\u50a8\u5b8c\u6210\u53ea\u662f\u7b2c\u4e00\u6b65\uff0c\u53ec\u56de\u624d\u662f\u8ba9\u8bb0\u5fc6\u4ea7\u751f\u4ef7\u503c\u7684\u5173\u952e\u73af\u8282\u3002\u6574\u4e2a\u53ec\u56de\u94fe\u8def\u5206\u4e3a\u56db\u4e2a\u9636\u6bb5\uff1a<\/p>\n<h4>\u9636\u6bb5\u4e00\uff1a\u89e6\u53d1\u65f6\u673a<\/h4>\n<p>\u53ec\u56de\u7531 SessionStart Hook \u9a71\u52a8\uff0c\u4f1a\u8bdd\u5f00\u59cb\u65f6\uff0cinject\/_memory\/_context.py \u901a\u8fc7 SessionStart Hook \u81ea\u52a8\u5411 Claude \u6ce8\u5165\u76f8\u5173\u8bb0\u5fc6\u4e0a\u4e0b\u6587\uff0c\u5b8c\u6210\u8bb0\u5fc6\u7684\u81ea\u52a8\u5173\u8054\u4e0e\u5e94\u7528\uff0c\u800c\u975e\u7b49\u5230\u7528\u6237\u53d1\u51fa\u8bf7\u6c42\u65f6\u624d\u52a0\u8f7d\u2014\u2014\u8fd9\u4fdd\u8bc1\u4e86\u4e0a\u4e0b\u6587\u5728\u7b2c\u4e00\u6761\u6d88\u606f\u524d\u5c31\u5df2\u5c31\u7eea\u3002<\/p>\n<pre><code>{\n  &quot;hooks&quot;: {\n    &quot;SessionStart&quot;: [\n      {\n        &quot;hooks&quot;: [\n          {\n            &quot;type&quot;: &quot;command&quot;,\n            &quot;command&quot;: &quot;python3 ~\/.claude\/memory\/inject_memory_context.py&quot;\n          }\n        ]\n      }\n    ]\n  }\n}\n<\/code><\/pre>\n<h4>\u9636\u6bb5\u4e8c\uff1a\u67e5\u8be2\u6784\u9020<\/h4>\n<p>inject\/_memory\/_context.py \u4ee5\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\uff08&dollar;PWD\uff09\u548c\u6700\u8fd1 3 \u6761 git commit message \u4f5c\u4e3a\u53ec\u56de\u67e5\u8be2\u7684\u8f93\u5165\uff0c\u81ea\u52a8\u6784\u9020\u51fa\u4e0e\u5f53\u524d\u4efb\u52a1\u8bed\u5883\u6700\u63a5\u8fd1\u7684\u67e5\u8be2\u5411\u91cf\uff1a<\/p>\n<pre><code>def build_query(cwd: str) -&gt; str:\n    # \u63d0\u53d6\u9879\u76ee\u540d\n    project_name = Path(cwd).name\n    # \u83b7\u53d6\u6700\u8fd1 3 \u6761 commit \u4f5c\u4e3a\u8865\u5145\u8bed\u4e49\n    recent_commits = subprocess.check_output(\n        [&quot;git&quot;, &quot;log&quot;, &quot;--oneline&quot;, &quot;-3&quot;], cwd=cwd\n    ).decode().strip()\n    return f&quot;{project_name} {recent_commits}&quot;\n<\/code><\/pre>\n<h4>\u9636\u6bb5\u4e09\uff1a\u5411\u91cf\u68c0\u7d22\uff08Top-K \u53ec\u56de\uff09<\/h4>\n<p>\u67e5\u8be2\u5411\u91cf\u4e0e\u8bb0\u5fc6\u5e93\u4e2d\u6240\u6709\u6761\u76ee\u7684\u5411\u91cf\u505a\u4f59\u5f26\u76f8\u4f3c\u5ea6\u6bd4\u8f83\uff0c\u53d6 Top-5 \u6700\u76f8\u5173\u7684\u8bb0\u5fc6\uff1a<\/p>\n<pre><code>def recall_memories(query: str, top_k: int = 5) -&gt; list[dict]:\n    query_vec = embed(query)            # \u751f\u6210\u67e5\u8be2\u5411\u91cf\n    scores = []\n    for mem in load_all_memories():\n        sim = cosine_similarity(query_vec, mem[&quot;embedding&quot;])\n        scores.append((sim, mem))\n    scores.sort(key=lambda x: -x[0])\n    return [m for _, m in scores[:top_k]]\n<\/code><\/pre>\n<h4>\u9636\u6bb5\u56db\uff1a\u4e0a\u4e0b\u6587\u6ce8\u5165<\/h4>\n<p>\u53ec\u56de\u7684\u8bb0\u5fc6\u4ee5\u7ed3\u6784\u5316 Markdown \u683c\u5f0f\u6ce8\u5165\u5230 Claude \u7684\u7cfb\u7edf\u63d0\u793a\u4e2d\uff0c\u6bcf\u6761\u8bb0\u5fc6\u9644\u5e26\u7c7b\u578b\u6807\u7b7e\uff0c\u8ba9\u6a21\u578b\u80fd\u611f\u77e5\u8bb0\u5fc6\u6765\u6e90\u5e76\u7ed9\u4e88\u76f8\u5e94\u6743\u91cd\uff1a<\/p>\n<pre><code>## \ud83e\udde0 \u9879\u76ee\u8bb0\u5fc6\uff08\u81ea\u52a8\u6ce8\u5165\uff0c\u8bf7\u4f18\u5148\u53c2\u8003\uff09\n\n[feedback] \u6539\u5b8c\u4ee3\u7801\u4e0d\u4e3b\u52a8\u63d0\u4ea4\uff0c\u7b49\u7528\u6237\u9a8c\u8bc1\u786e\u8ba4\u540e\u518d commit\/push\n&gt; Why: \u81ea\u52a8\u63d0\u4ea4\u4f1a\u6253\u65ad\u9a8c\u8bc1\u8282\u594f\uff0c\u56de\u6eda\u6210\u672c\u9ad8\n\n[project] \u5f53\u524d\u9879\u76ee\u4f7f\u7528 Vitest \u505a\u5355\u5143\u6d4b\u8bd5\uff0cTDD \u4f18\u5148\n&gt; How to apply: \u65b0\u529f\u80fd\u5148\u5728 tests\/ \u5199\u6d4b\u8bd5\u7528\u4f8b\uff0c\u518d\u5b9e\u73b0\n\n[user] \u7528\u6237\u662f Go \u4e13\u5bb6\uff0cTypeScript \u4e2d\u7ea7\u6c34\u5e73\n&gt; How to apply: TS \u4ee3\u7801\u89e3\u91ca\u9002\u5f53\u8865\u5145\u7c7b\u578b\u7cfb\u7edf\u7684\u80cc\u666f\u77e5\u8bc6\n<\/code><\/pre>\n<h3>Embedding LLM\uff1a\u5411\u91cf\u5316\u7684\u6280\u672f\u9009\u578b<\/h3>\n<p>\u8bb0\u5fc6\u7cfb\u7edf\u7684\u8bed\u4e49\u68c0\u7d22\u4f9d\u8d56\u5411\u91cf\u5d4c\u5165\uff08Embedding\uff09\uff0c\u8fd9\u662f\u8ba9&#8221;\u5173\u952e\u8bcd\u5339\u914d&#8221;\u5347\u7ea7\u4e3a&#8221;\u8bed\u4e49\u7406\u89e3&#8221;\u7684\u6838\u5fc3\u6280\u672f\u3002\u4e3a\u4ec0\u4e48\u9700\u8981 Embedding\uff1f\u4f20\u7edf\u5168\u6587\u641c\u7d22\u53ea\u80fd\u5339\u914d\u5b57\u9762\u91cf\uff0c\u65e0\u6cd5\u7406\u89e3\u540c\u4e49\u8868\u8fbe\u3002\u800c Embedding \u5c06\u6587\u672c\u6620\u5c04\u4e3a\u9ad8\u7ef4\u5411\u91cf\u7a7a\u95f4\u4e2d\u7684\u70b9\uff0c\u8bed\u4e49\u76f8\u8fd1\u7684\u6587\u672c\u5728\u7a7a\u95f4\u4e2d\u8ddd\u79bb\u76f8\u8fd1\uff0c\u5373\u4f7f\u63aa\u8f9e\u5b8c\u5168\u4e0d\u540c\u3002\u6bd4\u5982\u67e5\u8be2 &#8220;\u4e0d\u8981\u81ea\u52a8\u63d0\u4ea4\u4ee3\u7801&#8221; \u4e0e\u8bb0\u5fc6\u6761\u76ee &#8220;\u7b49\u7528\u6237\u786e\u8ba4\u540e\u518d commit&#8221; \u5b57\u9762\u65e0\u4ea4\u96c6\uff0c\u4f46 Embedding \u76f8\u4f3c\u5ea6\u4ecd\u7136\u5f88\u9ad8\u3002<\/p>\n<p>\u5f53\u524d\u65b9\u6848\uff1a\u672c\u5730 Embedding \u6a21\u578b\u4e3a\u4e86\u4fdd\u62a4\u4ee3\u7801\u9690\u79c1\uff08\u8bb0\u5fc6\u5185\u5bb9\u53ef\u80fd\u5305\u542b\u9879\u76ee\u8def\u5f84\u3001\u51fd\u6570\u540d\u7b49\u654f\u611f\u4fe1\u606f\uff09\uff0c\u7cfb\u7edf\u9009\u7528\u672c\u5730\u8fd0\u884c\u7684\u8f7b\u91cf Embedding \u6a21\u578b\u914d\u5408 qdrant \u5411\u91cf\u5e93\uff0c\u907f\u514d\u5c06\u8bb0\u5fc6\u4e0a\u4f20\u5230\u7b2c\u4e09\u65b9\u670d\u52a1\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842965\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>Embedding \u5199\u5165\u6d41\u7a0b\uff1a<\/p>\n<pre><code class=\"Python\">def upsert_memory(memory: dict):\n    # \u6784\u9020\u5d4c\u5165\u6587\u672c = \u6807\u9898 + \u63cf\u8ff0 + \u6b63\u6587\u6458\u8981\n    text = f&quot;{memory['name']} {memory['description']} {memory['body'][:200]}&quot;\n    vector = embed_local(text)          # nomic-embed-text \u672c\u5730\u63a8\u7406\n    qdrant_client.upsert(\n        collection_name=&quot;memories&quot;,\n        points=[PointStruct(\n            id=memory_hash(memory[&quot;name&quot;]),\n            vector=vector,\n            payload={&quot;name&quot;: memory[&quot;name&quot;], &quot;type&quot;: memory[&quot;type&quot;], &quot;path&quot;: memory[&quot;file_path&quot;]}\n        )]\n    )<\/code><\/pre>\n<p>\u4e3a\u4ec0\u4e48\u4e0d\u7528 Claude Embedding API\uff1fClaude \u76ee\u524d\u672a\u5f00\u653e\u72ec\u7acb\u7684 Embedding API\uff0c\u4e14\u5c06\u8bb0\u5fc6\u5185\u5bb9\u53d1\u9001\u5230\u4e91\u7aef\u5b58\u5728\u9690\u79c1\u98ce\u9669\u3002\u672c\u5730 nomic-embed-text \u5728 M \u7cfb\u5217\u82af\u7247\u4e0a\u63a8\u7406\u901f\u5ea6\u7ea6 10ms\/\u6761\uff0c\u5b8c\u5168\u6ee1\u8db3\u5b9e\u65f6\u5199\u5165\u9700\u6c42\u3002<\/p>\n<h3>\u4e24\u5957\u8bb0\u5fc6\u7cfb\u7edf\u7684\u534f\u4f5c<\/h3>\n<p>\u6574\u4e2a\u7cfb\u7edf\u5206\u4e3a\u4e24\u4e2a\u76f8\u4e92\u72ec\u7acb\u53c8\u4e92\u76f8\u8865\u5145\u7684\u8bb0\u5fc6\u7ef4\u5ea6\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842966\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842967\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>\u516d\u3001\u6570\u636e\u6d41\u8bbe\u8ba1<\/h2>\n<h3>\u6570\u636e\u6d41\u8bbe\u8ba1<\/h3>\n<p>\u4ece\u4e00\u6b21\u5de5\u5177\u8c03\u7528\u5230\u6700\u7ec8\u5f71\u54cd\u4e0b\u6b21\u4f1a\u8bdd\u7684\u5b8c\u6574\u8def\u5f84\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842968\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code>1. \u7528\u6237\u5bf9\u8bdd\u4e2d\u89e6\u53d1\u5de5\u5177\u8c03\u7528\uff08\u5982 Edit \u6587\u4ef6\uff09\n         \u2193\n2. PreToolUse Hook \u2192 observe.sh \u2192 observations.jsonl\n         \u2193\n3. \u5de5\u5177\u6267\u884c\n         \u2193\n4. PostToolUse Hook \u2192 observe.sh \u2192 observations.jsonl\n         \u2193\n5. \u4f1a\u8bdd\u7ed3\u675f\uff0cStop Hook \u89e6\u53d1\n         \u2193\n6. auto-analyze-instincts.py\n   \u251c\u2500\u2500 \u8def\u5f84 A\uff1a\u7edf\u8ba1\u6a21\u5f0f\u68c0\u6d4b\uff085 \u79cd\u786c\u7f16\u7801\u6a21\u5f0f\uff09\n   \u2514\u2500\u2500 \u8def\u5f84 B\uff1aClaude API \u8bed\u4e49\u5206\u6790\n         \u2193\n7. \u5199\u5165\/\u66f4\u65b0 ~\/.claude\/homunculus\/instincts\/personal\/*.md\n         \u2193\n8. auto-evolve.py\n   \u251c\u2500\u2500 \u8fc7\u6ee4 confidence &gt;= 0.7\n   \u251c\u2500\u2500 Jaccard \u8bed\u4e49\u53bb\u91cd\uff08Union-Find\uff09\n   \u251c\u2500\u2500 \u6309 domain \u805a\u5408\n   \u2514\u2500\u2500 \u5199\u5165 rules\/auto-evolved.md\n         \u2193\n9. \u4e0b\u6b21\u4f1a\u8bdd\u542f\u52a8\u65f6\n   \u251c\u2500\u2500 Claude Code \u81ea\u52a8\u52a0\u8f7d rules\/auto-evolved.md\n   \u2514\u2500\u2500 SessionStart Hook \u2192 inject_memory_context.py \u2192 \u6ce8\u5165\u9879\u76ee\u8bb0\u5fc6\n<\/code><\/pre>\n<h3>\u9632\u81a8\u80c0\u8bbe\u8ba1<\/h3>\n<p>\u7cfb\u7edf\u957f\u671f\u8fd0\u884c\u5fc5\u7136\u9762\u4e34\u6570\u636e\u81a8\u80c0\u95ee\u9898\u3002\u591a\u4e2a\u5c42\u6b21\u7684\u9632\u81a8\u80c0\u673a\u5236\u786e\u4fdd\u7cfb\u7edf\u59cb\u7ec8\u4fdd\u6301\u7cbe\u7b80\u3002<\/p>\n<p>\u6570\u636e\u5c42\u9632\u81a8\u80c0<\/p>\n<ul>\n<li>Observations\uff1a\u8d85 5MB \u6216 8000 \u884c\u81ea\u52a8\u6309\u6708\u5f52\u6863\uff1b<\/li>\n<li>Instinct\uff1a\u4f4e\u7f6e\u4fe1\u5ea6\uff08&lt; 0.55\uff09\u6807\u8bb0 deprecated\uff1b<\/li>\n<li>Memory raw\uff1a\u6309\u7c7b\u578b TTL \u7ba1\u7406\uff0860-90 \u5929\uff09\u3002<\/li>\n<\/ul>\n<p>\u7d22\u5f15\u5c42\u9632\u81a8\u80c0<\/p>\n<ul>\n<li>MEMORY.md\uff1a\u8d85 160 \u884c\u6309\u4f18\u5148\u7ea7\u88c1\u526a\uff1b<\/li>\n<li>auto-evolved.md\uff1a\u6bcf\u6b21\u4f1a\u8bdd\u7ed3\u675f\u8986\u76d6\u91cd\u5199\uff1b<\/li>\n<li>\u53bb\u91cd\uff1aJaccard \u76f8\u4f3c\u5ea6\u5408\u5e76\u91cd\u590d Instinct\u3002<\/li>\n<\/ul>\n<h3>\u5176\u4ed6\u7cfb\u7edf\u8bbe\u8ba1<\/h3>\n<p>\u539f\u5b50\u6027\u4f18\u5148\u5148\u79ef\u7d2f\u539f\u5b50\u89c4\u5219\uff0c\u7b49\u540c\u7c7b\u8db3\u591f\u591a\u518d\u805a\u7c7b\u805a\u5408\uff0c\u907f\u514d\u8fc7\u65e9\u62bd\u8c61\u3002\u4e00\u4e2a Instinct \u53ea\u5bf9\u5e94\u4e00\u4e2a trigger + action\u3002\u9690\u79c1\u8fb9\u754cObservations \u53ea\u4fdd\u672c\u5730\uff0cexport \u53ea\u5206\u4eab Instinct \u6a21\u5f0f\u89c4\u5219\uff0c\u4e0d\u542b\u4ee3\u7801\u8def\u5f84\u6216\u4f1a\u8bdd\u5185\u5bb9\u3002\u7f6e\u4fe1\u5ea6\u6f14\u5316\u89c4\u5219\u4e0d\u662f\u9759\u6001\u7684\u3002\u53cd\u590d\u89c2\u6d4b\u5f3a\u5316\uff0c\u957f\u671f\u4e0d\u89e6\u53d1\u8870\u51cf\u3002\u7cfb\u7edf\u5177\u6709&#8221;\u9057\u5fd8&#8221;\u80fd\u529b\uff0c\u81ea\u7136\u6dd8\u6c70\u8fc7\u65f6\u89c4\u5219\u3002Hook \u4f18\u5148\u4e8e Skill\u786e\u5b9a\u6027\u89e6\u53d1\u662f\u6570\u636e\u8d28\u91cf\u7684\u4fdd\u969c\u3002\u653e\u5f03\u4f9d\u8d56\u6a21\u578b\u4e3b\u52a8\u8c03\u7528\u7684 Skill \u89e6\u53d1\uff0c\u6539\u7528\u7cfb\u7edf\u7ea7 Hook \u786e\u4fdd 100% \u91c7\u96c6\u7387\u3002<\/p>\n<h2>\u4e03\u3001\u5b9e\u9645\u6548\u679c<\/h2>\n<p>\u7ecf\u8fc7\u6570\u6708\u7684\u79ef\u7d2f\uff0c\u7cfb\u7edf\u5df2\u63d0\u70bc\u51fa\u6570\u767e\u6761 Instinct\uff0c\u5176\u4e2d\u5341\u4f59\u6761\u9ad8\u7f6e\u4fe1\u5ea6\u89c4\u5219\uff08\u226570%\uff09\u6bcf\u6b21\u4f1a\u8bdd\u81ea\u52a8\u6fc0\u6d3b\u3002\u4ee5\u4e0b\u662f\u51e0\u4e2a\u5178\u578b\u6848\u4f8b\uff1a<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842969\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u7cfb\u7edf\u6536\u76ca\u91cf\u5316\uff1a\u6548\u7387\u63d0\u5347\u4e0e Token \u8282\u7701\u3002\u6784\u5efa\u8fd9\u5957\u7cfb\u7edf\u7684\u6295\u5165\u4e0d\u5c0f\uff0c\u4f46\u5b83\u5e26\u6765\u7684\u6536\u76ca\u662f\u53ef\u4ee5\u91cf\u5316\u7684\u3002\u4ee5\u4e0b\u662f\u57fa\u4e8e\u6570\u6708\u771f\u5b9e\u4f7f\u7528\u6570\u636e\u7684\u6d4b\u91cf\u7ed3\u679c\u3002<\/p>\n<h3>\u6536\u76ca\u4e00\uff1a\u4e0a\u4e0b\u6587\u51b7\u542f\u52a8\u65f6\u95f4\u4ece 10 \u5206\u949f\u964d\u81f3 30 \u79d2<\/h3>\n<p>\u95ee\u9898\uff1a\u6bcf\u6b21\u65b0\u4f1a\u8bdd\u5f00\u59cb\uff0c\u90fd\u8981\u91cd\u65b0\u5411 Claude \u89e3\u91ca\u9879\u76ee\u80cc\u666f\u3001\u6280\u672f\u6808\u3001\u89c4\u8303\u7ea6\u675f\uff0c\u901a\u5e38\u9700\u8981 3-5 \u8f6e\u5bf9\u8bdd\u3001\u7ea6\u5341\u5206\u949f\u5de6\u53f3\u624d\u80fd\u8ba9\u6a21\u578b&#8221;\u8fdb\u5165\u72b6\u6001&#8221;\u3002\u6539\u8fdb\u540e\uff1aSessionStart Hook \u5728 30 \u79d2\u5185\u81ea\u52a8\u6ce8\u5165\u9879\u76ee\u8bb0\u5fc6\u548c\u9ad8\u7f6e\u4fe1\u5ea6\u89c4\u5219\uff0c\u6a21\u578b\u7b2c\u4e00\u6761\u54cd\u5e94\u5c31\u80fd\u4f53\u73b0\u9879\u76ee\u4e0a\u4e0b\u6587\u611f\u77e5\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842970\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u6536\u76ca\u4e8c\uff1aToken \u6d88\u8017\u964d\u4f4e\u7ea6 78%<\/h3>\n<p>\u95ee\u9898\uff1a\u91cd\u590d\u89e3\u91ca\u9879\u76ee\u80cc\u666f\u3001\u7f16\u7801\u89c4\u8303\u7b49\u56fa\u5b9a\u4fe1\u606f\uff0c\u6bcf\u6b21\u90fd\u5360\u7528\u5927\u91cf input token\u3002\u6539\u8fdb\u540e\uff1aMemory \u7cfb\u7edf\u7cbe\u786e\u53ec\u56de\u76f8\u5173\u8bb0\u5fc6\uff08Top-5\uff09\uff0c\u907f\u514d\u5c06\u5168\u90e8\u5386\u53f2\u4e0a\u4e0b\u6587\u585e\u5165 prompt\u3002\u76f8\u6bd4&#8221;\u6bcf\u6b21\u7c98\u8d34\u5b8c\u6574 CLAUDE.md&#8221;\u7684\u65b9\u5f0f\uff0c\u5e73\u5747\u8282\u7701\u7ea6\u6570\u5343 tokens\/\u4f1a\u8bdd\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842971\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u6536\u76ca\u4e09\uff1a\u9519\u8bef\u91cd\u590d\u7387\u4e0b\u964d 80%<\/h3>\n<p>Instinct \u7cfb\u7edf\u7684\u6838\u5fc3\u4ef7\u503c\u4e0d\u662f\u8bb0\u4f4f&#8221;\u505a\u4e86\u4ec0\u4e48&#8221;\uff0c\u800c\u662f\u8bb0\u4f4f&#8221;\u72af\u8fc7\u4ec0\u4e48\u9519\u3001\u4e3a\u4ec0\u4e48\u72af&#8221;\u3002\u4ee5 CLI \u5de5\u5177\u524d\u7f6e\u68c0\u67e5\u89c4\u5219\uff0873% \u7f6e\u4fe1\u5ea6\uff09\u4e3a\u4f8b\uff1a\u89c4\u5219\u63d0\u70bc\u524d\uff1a\u6bcf\u6708\u5e73\u5747\u56e0&#8221;CLI \u672a\u5b89\u88c5\/\u8ba4\u8bc1\u5931\u6548&#8221;\u5bfc\u81f4\u4efb\u52a1\u4e2d\u65ad \u6570\u6b21\u3002\u89c4\u5219\u63d0\u70bc\u540e\uff1a\u6bcf\u6708 \u6781\u5c11\uff0c\u4e14\u51fa\u73b0\u65f6\u662f\u65b0\u5de5\u5177\u800c\u975e\u5df2\u77e5\u5de5\u5177\u3002<\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047842972\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>\u6536\u76ca\u56db\uff1a\u77e5\u8bc6\u590d\u5229\u6548\u5e94<\/h3>\n<p>\u8bb0\u5fc6\u7cfb\u7edf\u7684\u4ef7\u503c\u968f\u65f6\u95f4\u6307\u6570\u589e\u957f\uff0c\u800c\u975e\u7ebf\u6027\u589e\u957f\uff1a\u7b2c 1 \u4e2a\u6708\uff1a\u89c4\u5219\u7a00\u5c11\uff0c\u4e3b\u8981\u6d88\u9664\u4f4e\u7ea7\u9519\u8bef\uff0cROI \u8f83\u4f4e\u3002\u7b2c 3 \u4e2a\u6708\uff1a\u5341\u4f59\u6761\u9ad8\u7f6e\u4fe1\u5ea6\u89c4\u5219\u6fc0\u6d3b\uff0c\u8986\u76d6\u4e3b\u8981\u5de5\u4f5c\u6d41\uff0c\u6bcf\u65e5\u8282\u7701\u663e\u8457\u65f6\u95f4\u3002\u7b2c 6 \u4e2a\u6708\uff1a\u6570\u767e\u6761 Instinct \u79ef\u7d2f\uff0c\u9879\u76ee\u7ea7\u8bb0\u5fc6\u5f62\u6210\uff0cClaude \u7684\u884c\u4e3a\u5df2\u9ad8\u5ea6\u8d34\u5408\u4e2a\u4eba\u4e60\u60ef\u3002<\/p>\n<h2>\u516b\u3001\u603b\u7ed3<\/h2>\n<p>\u672c\u6587\u8bb0\u5f55\u4e86\u4e3a Claude Code \u6784\u5efa\u7684\u4e00\u5957\u6301\u4e45\u5316\u8bb0\u5fc6\u4e0e\u81ea\u6211\u5b66\u4e60\u7cfb\u7edf\u7684\u8bbe\u8ba1\u601d\u8def\u4e0e\u5b9e\u73b0\u7ec6\u8282\u3002\u8fd9\u5957\u7cfb\u7edf\u8ba9 AI \u52a9\u624b\u80fd\u591f\u8de8\u8d8a\u4f1a\u8bdd\u8fb9\u754c\u8bb0\u4f4f\u7528\u6237\u4e60\u60ef\uff0c\u5e76\u5728\u6bcf\u6b21\u5bf9\u8bdd\u7ed3\u675f\u540e\u81ea\u52a8\u63d0\u70bc\u884c\u4e3a\u89c4\u5f8b\u548c\u7cfb\u7edf\u4fe1\u606f\uff0c\u901a\u8fc7\u5411\u91cf\u68c0\u7d22\u5feb\u901f\u63d0\u53d6\u5173\u952e\u4fe1\u606f\uff0c\u4e0b\u4e00\u6b21\u5bf9\u8bdd\u65f6\u4e3b\u52a8\u5e94\u7528\uff0c\u9010\u6b65\u8fdb\u5316\u4e3a\u66f4\u61c2\u4f60\u7684\u7f16\u7a0b\u4f19\u4f34\u3002<\/p>\n<h2>\u5f80\u671f\u56de\u987e<\/h2>\n<p>1.<a href=\"https:\/\/segmentfault.com\/a\/1190000047817200\" target=\"_blank\" rel=\"noopener noreferrer\">\u7528 LLM Agent \u91cd\u6784\u544a\u8b66\u6392\u67e5\u6d41\u7a0b\uff5c\u5f97\u7269\u6280\u672f<\/a><\/p>\n<p>2.<a href=\"https:\/\/segmentfault.com\/a\/1190000047798832\" target=\"_blank\" rel=\"noopener noreferrer\">HorizonVault \u6280\u672f\u6df1\u6f5c\uff1a\u5982\u4f55\u5728 HDD \u4e0a\u505a\u51fa 100GB\/s+ \u7ea7\u5927\u541e\u5410\u5206\u5e03\u5f0f\u5b58\u50a8\uff5c\u5f97\u7269\u6280\u672f<\/a><\/p>\n<p>3.<a href=\"https:\/\/segmentfault.com\/a\/1190000047782265\" target=\"_blank\" rel=\"noopener noreferrer\">Claude Code Harness \u5de5\u7a0b\uff1a\u6570\u4ed3\u4fa7\u843d\u5730\u65b9\u6848\uff5c\u5f97\u7269\u6280\u672f<\/a><\/p>\n<p>4.<a href=\"https:\/\/segmentfault.com\/a\/1190000047765568\" target=\"_blank\" rel=\"noopener noreferrer\">BP Claw \u7834\u89e3 AI \u7f16\u7801\u8f93\u5165\u96be\u9898 \u2014\u2014FlinkSpec \u9700\u6c42\u667a\u80fd\u5316\u5b9e\u8df5\uff5c\u5f97\u7269\u6280\u672f<\/a><\/p>\n<p>5.<a href=\"https:\/\/segmentfault.com\/a\/1190000047749452\" target=\"_blank\" rel=\"noopener noreferrer\">\u57fa\u4e8e Harness + SDD + \u591a\u4ed3\u7ba1\u7406\u6a21\u5f0f\u7684 AI \u5168\u6808\u5f00\u53d1\u5b9e\u8df5\uff5c\u5f97\u7269\u6280\u672f<\/a><\/p>\n<h2>\u6587 \/\u6674\u5929<\/h2>\n<p>\u5173\u6ce8\u5f97\u7269\u6280\u672f\uff0c\u6bcf\u5468\u56db\u66f4\u65b0\u6280\u672f\u5e72\u8d27<\/p>\n<p>\u8981\u662f\u89c9\u5f97\u6587\u7ae0\u5bf9\u4f60\u6709\u5e2e\u52a9\u7684\u8bdd\uff0c\u6b22\u8fce\u8bc4\u8bba\u8f6c\u53d1\u70b9\u8d5e\uff5e<\/p>\n<p>\u672a\u7ecf\u5f97\u7269\u6280\u672f\u8bb8\u53ef\u4e25\u7981\u8f6c\u8f7d\uff0c\u5426\u5219\u4f9d\u6cd5\u8ffd\u7a76\u6cd5\u5f8b\u8d23\u4efb\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047842952\">https:\/\/segmentfault.com\/a\/1190000047842952<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u80cc\u666f \u6bcf\u6b21\u6253\u5f00 Claude Code \u5f00\u59cb\u65b0\u5bf9\u8bdd\uff0c\u5b83\u90fd\u662f\u4e00\u5f20\u767d\u7eb8\u3002\u6628\u5929\u4f60\u82b1\u4e86 10 \u5206\u949f\u89e3\u91ca\u7684\u9879\u76ee\u67b6\u6784\u3001 [&hellip;]<\/p>\n","protected":false},"author":7,"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-10021388","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\/10021388","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021388"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021388\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}