{"id":27372,"date":"2025-03-02T20:57:06","date_gmt":"2025-03-02T12:57:06","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=27372"},"modified":"2025-03-02T20:57:06","modified_gmt":"2025-03-02T12:57:06","slug":"ai-coding-bianjiqi","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/ai-coding-bianjiqi\/","title":{"rendered":"AI Coding \u7f16\u8f91\u5668\uff1a\u63ed\u79d8 Cline \u7684\u5de5\u4f5c\u539f\u7406"},"content":{"rendered":"<p>\u8fd1\u5e74\u6765\uff0c\u4eba\u5de5\u667a\u80fd\uff08AI\uff09\u6280\u672f\u5728\u7f16\u7a0b\u9886\u57df\u5f15\u53d1\u4e86\u4e00\u573a\u6df1\u523b\u7684\u53d8\u9769\u3002\u4ece v0\u3001bolt.new\uff0c\u5230\u96c6\u6210 Agent \u6280\u672f\u7684\u7f16\u7a0b\u5de5\u5177\u5982 <a href=\"https:\/\/www.kdjingpai.com\/de\/cursoryuaigongtong\/\">Cursor<\/a> \u548c Windsurf\uff0cAI Coding \u5c55\u73b0\u51fa\u4e86\u5728\u8f6f\u4ef6\u5f00\u53d1\u6d41\u7a0b\u4e2d\u626e\u6f14\u5173\u952e\u89d2\u8272\u7684\u5de8\u5927\u6f5c\u529b\uff0c\u5c24\u5176\u662f\u5728\u5feb\u901f\u539f\u578b\u5f00\u53d1\u548c\u6982\u5ff5\u9a8c\u8bc1\u9636\u6bb5\u3002\u4ece\u6700\u521d\u7684 AI \u8f85\u52a9\u7f16\u7801\u53d1\u5c55\u5230\u5982\u4eca\u7684\u76f4\u63a5\u9879\u76ee\u751f\u6210\uff0c\u80cc\u540e\u7684\u6280\u672f\u539f\u7406\u7a76\u7adf\u662f\u600e\u6837\u7684\uff1f<\/p>\n<p><img decoding=\"async\" title=\"AI \u7f16\u7a0b\u7f16\u8f91\u5668\u63ed\u79d8\uff1aCline \u539f\u7406\u89e3\u6790-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/f536386c17acfa0.jpg\" alt=\"AI \u7f16\u7a0b\u7f16\u8f91\u5668\u63ed\u79d8\uff1aCline \u539f\u7406\u89e3\u6790-1\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u672c\u6587\u5c06\u4ee5\u5f00\u6e90\u9879\u76ee <a href=\"https:\/\/www.kdjingpai.com\/de\/claude-dev\/\">Cline<\/a> \u4e3a\u4f8b\uff0c\u6df1\u5165\u5256\u6790\u5f53\u524d AI Coding \u4ea7\u54c1\u7684\u5b9e\u73b0\u601d\u8def\uff0c\u5e2e\u52a9\u8bfb\u8005\u4e86\u89e3\u5176\u6df1\u5c42\u539f\u7406\uff0c\u4ece\u800c\u66f4\u597d\u5730\u5e94\u7528 AI \u7f16\u8f91\u5668\u63d0\u5347\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<blockquote><p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e0d\u540c\u7684 AI Coding \u7f16\u8f91\u5668\u5728\u5177\u4f53\u5b9e\u73b0\u4e0a\u53ef\u80fd\u5b58\u5728\u5dee\u5f02\u3002\u6b64\u5916\uff0c\u672c\u6587\u6682\u4e0d\u6df1\u5165\u63a2\u8ba8 Tool Use\uff08\u5de5\u5177\u8c03\u7528\uff09\u7684\u5177\u4f53\u5b9e\u73b0\u7ec6\u8282\u3002<\/p><\/blockquote>\n<h2>Cline \u7684\u5de5\u4f5c\u6d41\u7a0b\u6982\u89c8<\/h2>\n<p>\u4e3a\u4e86\u66f4\u6e05\u6670\u5730\u5c55\u793a Cline \u7684\u8fd0\u4f5c\u65b9\u5f0f\uff0c\u6211\u4eec\u5148\u6765\u770b\u4e00\u4e0b\u5176\u5de5\u4f5c\u6d41\u7a0b\u7684\u793a\u610f\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" title=\"AI \u7f16\u7a0b\u7f16\u8f91\u5668\u63ed\u79d8\uff1aCline \u539f\u7406\u89e3\u6790-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/1f3ab929dd6d198.png\" alt=\"AI \u7f16\u7a0b\u7f16\u8f91\u5668\u63ed\u79d8\uff1aCline \u539f\u7406\u89e3\u6790-1\" \/><\/p>\n<p>Cline \u7684\u6838\u5fc3\u673a\u5236\u662f\u6709\u6548\u5229\u7528\u7cfb\u7edf\u63d0\u793a\u8bcd (System Prompt) \u548c\u5927\u8bed\u8a00\u6a21\u578b (LLM) \u7684\u6307\u4ee4\u9075\u5faa\u80fd\u529b\u3002\u5728\u542f\u52a8\u7f16\u7a0b\u4efb\u52a1\u65f6\uff0cCline \u4f1a\u6536\u96c6\u5305\u62ec\u7cfb\u7edf\u63d0\u793a\u8bcd\u3001\u7528\u6237\u81ea\u5b9a\u4e49\u63d0\u793a\u3001\u7528\u6237\u8f93\u5165\u4ee5\u53ca\u9879\u76ee\u73af\u5883\u4fe1\u606f\uff08\u4f8b\u5982\u9879\u76ee\u6587\u4ef6\u5217\u8868\u3001\u5f53\u524d\u6253\u5f00\u7684\u7f16\u8f91\u5668\u6807\u7b7e\u9875\u7b49\uff09\u5728\u5185\u7684\u6240\u6709\u76f8\u5173\u4fe1\u606f\uff0c\u5e76\u5c06\u8fd9\u4e9b\u4fe1\u606f\u6574\u5408\u540e\u63d0\u4ea4\u7ed9 LLM\u3002<\/p>\n<p>LLM \u63a5\u6536\u5230\u8fd9\u4e9b\u4fe1\u606f\u540e\uff0c\u4f1a\u6839\u636e\u6307\u4ee4\u751f\u6210\u76f8\u5e94\u7684\u89e3\u51b3\u65b9\u6848\u548c\u64cd\u4f5c\u6307\u4ee4\u3002Cline \u968f\u540e\u89e3\u6790 LLM \u8fd4\u56de\u7684\u64cd\u4f5c\u6307\u4ee4\uff0c\u4f8b\u5982\u00a0<code>&lt;execute_command \/&gt;<\/code>\u00a0(\u6267\u884c\u547d\u4ee4) \u548c\u00a0<code>&lt;read_file \/&gt;<\/code>\u00a0(\u8bfb\u53d6\u6587\u4ef6) \u7b49\uff0c\u5e76\u8c03\u7528\u9884\u5148\u7f16\u5199\u597d\u7684 Tool Use\uff08\u5de5\u5177\u8c03\u7528\uff09\u80fd\u529b\u6765\u6267\u884c\u8fd9\u4e9b\u64cd\u4f5c\uff0c\u5e76\u5c06\u64cd\u4f5c\u7ed3\u679c\u53cd\u9988\u7ed9 LLM \u8fdb\u884c\u540e\u7eed\u5904\u7406\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cCline \u5728\u5b8c\u6210\u5355\u6b21\u7f16\u7a0b\u4efb\u52a1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u901a\u5e38\u9700\u8981\u591a\u6b21\u4e0e LLM \u8fdb\u884c\u4ea4\u4e92\uff0c\u901a\u8fc7\u591a\u8f6e\u5bf9\u8bdd\u9010\u6b65\u5b8c\u6210\u590d\u6742\u4efb\u52a1\u3002<\/p>\n<h2>\u7cfb\u7edf\u63d0\u793a\u8bcd (System Prompt) \u7684\u4f5c\u7528<\/h2>\n<p>Cline \u7684\u7cfb\u7edf\u63d0\u793a\u8bcd\u8bbe\u8ba1\u501f\u9274\u4e86 v0 \u7684\u601d\u8def\uff0c\u5e76\u91c7\u7528 Markdown \u548c XML \u683c\u5f0f\u7f16\u5199\u3002\u7cfb\u7edf\u63d0\u793a\u8bcd\u7684\u6838\u5fc3\u4f5c\u7528\u662f\u8be6\u7ec6\u5b9a\u4e49 LLM \u7684 Tool Use\uff08\u5de5\u5177\u8c03\u7528\uff09\u89c4\u5219\u548c\u4f7f\u7528\u793a\u4f8b\uff0c\u4ece\u800c\u6307\u5bfc LLM \u5982\u4f55\u6709\u6548\u5730\u5229\u7528\u5404\u79cd\u5de5\u5177\u6765\u5b8c\u6210\u7f16\u7a0b\u4efb\u52a1\u3002<\/p>\n<p>Cline \u7684\u7cfb\u7edf\u63d0\u793a\u8bcd\u4e2d\uff0c\u8be6\u7ec6\u89c4\u5b9a\u4e86 Tool Use \u7684\u683c\u5f0f\u89c4\u8303\uff1a<\/p>\n<pre><code># Tool Use Formatting\r\nTool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:\r\n&lt;tool_name&gt;\r\n&lt;parameter1_name&gt;value1&lt;\/parameter1_name&gt;\r\n&lt;parameter2_name&gt;value2&lt;\/parameter2_name&gt;\r\n...\r\n&lt;\/tool_name&gt;\r\nFor example:\r\n&lt;read_file&gt;\r\n&lt;path&gt;src\/main.js&lt;\/path&gt;\r\n&lt;\/read_file&gt;\r\nAlways adhere to this format for the tool use to ensure proper parsing and execution.\r\n# Tools\r\n## execute_command\r\n## write_to_file\r\n...\r\n## Example 4: Requesting to use an <a href=\"https:\/\/www.kdjingpai.com\/de\/model-context-protocol\/\">MCP<\/a> tool\r\n&lt;use_mcp_tool&gt;\r\n&lt;server_name&gt;weather-server&lt;\/server_name&gt;\r\n&lt;tool_name&gt;get_forecast&lt;\/tool_name&gt;\r\n\t&lt;arguments&gt;\r\n{\r\n\"city\": \"San Francisco\",\r\n\"days\": 5\r\n}\r\n&lt;\/arguments&gt;\r\n&lt;\/use_mcp_tool&gt;\r\n<\/code><\/pre>\n<p><strong>\u6b64\u5916\uff0c\u7cfb\u7edf\u63d0\u793a\u8bcd\u4e2d\u8fd8\u4f1a\u6ce8\u5165 MCP (Model Context Protocol) \u670d\u52a1\u5668\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u4ee5\u4fbf LLM \u80fd\u591f\u5229\u7528 MCP \u670d\u52a1\u5668\u63d0\u4f9b\u7684\u989d\u5916\u5de5\u5177\u548c\u8d44\u6e90\uff0c\u6269\u5c55\u81ea\u8eab\u7684\u80fd\u529b\u3002<\/strong><\/p>\n<pre><code>MCP SERVERS\r\nThe <a href=\"https:\/\/www.kdjingpai.com\/de\/model-context-protocol\/\">Model Context Protocol<\/a> (MCP) enables communication between the system and locally running MCP servers that provide additional tools and resources to extend your capabilities.\r\n# Connected MCP Servers\r\n...\r\n<\/code><\/pre>\n<p><strong>\u7528\u6237\u8fd8\u53ef\u4ee5\u901a\u8fc7\u00a0.clinerules\u00a0\u6587\u4ef6\u5c06\u81ea\u5b9a\u4e49\u6307\u4ee4\u6ce8\u5165\u5230\u7cfb\u7edf\u63d0\u793a\u8bcd\u4e2d\uff0c\u4ece\u800c\u8fdb\u4e00\u6b65\u5b9a\u5236 Cline \u7684\u884c\u4e3a\u3002<\/strong><\/p>\n<blockquote><p><strong>\u7531\u6b64\u53ef\u4ee5\u63a8\u6d4b\uff0cCursor \u548c WindSurf \u7b49 AI Coding \u7f16\u8f91\u5668\u53ef\u80fd\u4e5f\u91c7\u7528\u4e86\u7c7b\u4f3c\u7684\u673a\u5236\uff0c\u901a\u8fc7\u00a0.cursorrules\u00a0\u7b49\u914d\u7f6e\u6587\u4ef6\u6765\u6ce8\u5165\u7528\u6237\u81ea\u5b9a\u4e49\u6307\u4ee4\u3002<\/strong><\/p><\/blockquote>\n<p><strong>\u53ef\u4ee5\u770b\u51fa\uff0cCline \u7684\u6838\u5fc3\u662f\u4f9d\u8d56 LLM \u7684\u6307\u4ee4\u9075\u5faa\u80fd\u529b\u6765\u5b8c\u6210\u7f16\u7a0b\u4efb\u52a1\u3002\u56e0\u6b64\uff0c\u4e3a\u4e86\u786e\u4fdd LLM \u8f93\u51fa\u7ed3\u679c\u7684\u51c6\u786e\u6027\u548c\u4e00\u81f4\u6027\uff0cCline \u5c06\u6a21\u578b\u7684 temperature \u53c2\u6570\u8bbe\u7f6e\u4e3a\u00a00\u3002Temperature \u53c2\u6570\u63a7\u5236\u7740 LLM \u8f93\u51fa\u7684\u968f\u673a\u6027\uff0c\u8bbe\u7f6e\u4e3a 0 \u610f\u5473\u7740 LLM \u5c06\u59cb\u7ec8\u9009\u62e9\u6700\u6709\u53ef\u80fd\u7684\u8f93\u51fa\u7ed3\u679c\uff0c\u4ece\u800c\u4fdd\u8bc1\u4efb\u52a1\u6267\u884c\u7684\u786e\u5b9a\u6027\u3002<\/strong><\/p>\n<pre><code>const stream = await this.client.chat.completions.create({\r\nmodel: this.options.openAiModelId ?? \"\",\r\nmessages: openAiMessages,\r\ntemperature: 0, \/\/ \u88ab\u8bbe\u7f6e\u6210\u4e86 0\r\nstream: true,\r\nstream_options: { include_usage: true },\r\n})\r\n<\/code><\/pre>\n<h2>\u7b2c\u4e00\u8f6e\u8f93\u5165\uff1a\u6536\u96c6\u7528\u6237\u610f\u56fe\u548c\u73af\u5883\u4fe1\u606f<\/h2>\n<p><strong>\u7528\u6237\u5411 Cline \u63d0\u4f9b\u7684\u8f93\u5165\u4fe1\u606f\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u79cd\u7c7b\u578b\uff1a<\/strong><\/p>\n<ul>\n<li><strong>\u76f4\u63a5\u8f93\u5165\u7684\u6587\u672c\u6307\u4ee4<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u81ea\u7136\u8bed\u8a00\u63cf\u8ff0\u7684\u7f16\u7a0b\u4efb\u52a1\u9700\u6c42\uff0cCline \u4f1a\u5c06\u8fd9\u4e9b\u6587\u672c\u6307\u4ee4\u7528\u00a0\u6807\u7b7e\u5305\u88f9\u8d77\u6765\u3002<\/li>\n<li><strong>\u901a\u8fc7\u00a0@\u00a0\u7b26\u53f7\u6307\u5b9a\u7684\u6587\u4ef6\u8def\u5f84\u3001\u6587\u4ef6\u548c URL<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u00a0<strong>@<\/strong>\u00a0\u7b26\u53f7\u6765\u5f15\u7528\u9879\u76ee\u4e2d\u7684\u6587\u4ef6\u3001\u76ee\u5f55\u6216\u5916\u90e8 URL\u3002Cline \u80fd\u591f\u89e3\u6790\u8fd9\u4e9b\u5f15\u7528\uff0c\u5e76\u83b7\u53d6\u76f8\u5e94\u7684\u5185\u5bb9\u3002\u5bf9\u4e8e\u6587\u4ef6\u76ee\u5f55\uff0cCline \u4f1a\u5217\u51fa\u76ee\u5f55\u7ed3\u6784\uff1b\u5bf9\u4e8e\u6587\u4ef6\uff0cCline \u4f1a\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff1b\u5bf9\u4e8e URL\uff0cCline \u5219\u4f1a\u4f7f\u7528 Puppeteer \u7b49\u5de5\u5177\u6293\u53d6\u7f51\u9875\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<p><strong>\u4f8b\u5982\uff0c\u4e00\u4e2a\u5178\u578b\u7684\u7528\u6237\u8f93\u5165\u53ef\u80fd\u5982\u4e0b\u6240\u793a\uff1a<\/strong><\/p>\n<pre><code>&lt;task&gt;\u5b9e\u73b0\u4e00\u4e2a\u592a\u9633\u7cfb\u7684 3D \u73af\u7ed5\u6548\u679c 'app\/page.tsx' (see below for file content)  'https:\/\/stackoverflow.com\/questions\/23673275\/orbital-mechanics-for-a-solar-system-visualisation-in-three-js-x-y-z-for-planet' (see below for site content)\r\n&lt;\/task&gt;\r\n&lt;file_content path=\"app\/page.tsx\"&gt;\r\nimport Image from \"next\/image\";\r\nexport default function Home() {...}\r\n&lt;\/file_content\r\n&lt;site_content&gt;\r\n...\r\n&lt;\/site_content&gt;\r\n<\/code><\/pre>\n<p><strong>\u9664\u4e86\u7528\u6237\u76f4\u63a5\u8f93\u5165\u7684\u4fe1\u606f\u5916\uff0cCline \u8fd8\u4f1a\u81ea\u52a8\u6536\u96c6\u9879\u76ee\u73af\u5883\u4fe1\u606f\uff0c\u4f8b\u5982\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u7684\u6587\u4ef6\u5217\u8868\u3001VS Code \u7f16\u8f91\u5668\u4e2d\u6253\u5f00\u7684\u6807\u7b7e\u9875\u7b49\u3002\u8fd9\u4e9b\u73af\u5883\u4fe1\u606f\u53ef\u4ee5\u5e2e\u52a9 LLM \u66f4\u597d\u5730\u7406\u89e3\u9879\u76ee context\uff0c\u4ece\u800c\u751f\u6210\u66f4\u8d34\u5408\u5b9e\u9645\u9700\u6c42\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/strong><\/p>\n<p><strong>\u4e00\u4e2a\u5305\u542b\u73af\u5883\u4fe1\u606f\u7684\u5b8c\u6574\u8f93\u5165\u793a\u4f8b\u5982\u4e0b\uff1a<\/strong><\/p>\n<pre><code>&lt;task&gt;\r\n\u5b9e\u73b0\u4e00\u4e2a\u592a\u9633\u7cfb\u7684 3D \u73af\u7ed5\u6548\u679c\r\n&lt;\/task&gt;\r\n&lt;environment_details&gt;\r\n# VSCode Visible Files\r\n(No visible files)\r\n# VSCode Open Tabs\r\n(No open tabs)\r\n# Current Time\r\n1\/23\/2025, 4:41:03 PM (Asia\/Shanghai, UTC+8:00)\r\n# Current Working Directory (\/Users\/nazha\/nazha-all\/cline-dev\/nazha) Files\r\n.gitignore\r\neslint.config.mjs\r\nnext.config.ts\r\npackage-lock.json\r\npackage.json\r\npostcss.config.mjs\r\nREADME.md\r\ntailwind.config.ts\r\ntsconfig.json\r\napp\/\r\napp\/favicon.ico\r\napp\/globals.css\r\napp\/layout.tsx\r\napp\/page.tsx\r\npublic\/\r\npublic\/file.svg\r\npublic\/globe.svg\r\npublic\/next.svg\r\npublic\/vercel.svg\r\npublic\/window.svg\r\n# Current Mode\r\nACT MODE\r\n&lt;\/environment_details&gt;\r\n<\/code><\/pre>\n<blockquote><p><strong>\u4ece Cline \u5bf9\u9879\u76ee\u4fe1\u606f\u7684\u5904\u7406\u65b9\u5f0f\u53ef\u4ee5\u770b\u51fa\uff0c\u5176\u4ed6 AI Coding \u7f16\u8f91\u5668\uff08\u4f8b\u5982 Cursor\uff09\u53ef\u80fd\u91c7\u7528\u4e86\u66f4\u9ad8\u7ea7\u7684\u4ee3\u7801\u5e93\u7d22\u5f15\u6280\u672f (Codebase Indexing)\uff0c\u4f8b\u5982 Embedding\uff0c\u4ee5\u4fbf\u66f4\u9ad8\u6548\u5730\u68c0\u7d22\u548c\u5229\u7528\u4ee3\u7801\u5e93\u4e2d\u7684\u4fe1\u606f\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cCline \u7684\u65b9\u6cd5\u5219\u663e\u5f97\u76f8\u5bf9\u76f4\u63a5\u548c &#8220;\u7c97\u66b4&#8221;\u3002<\/strong><\/p><\/blockquote>\n<h2>\u7b2c\u4e00\u8f6e\u8fd4\u56de\uff1aLLM \u7684\u601d\u8003\u4e0e\u64cd\u4f5c\u6307\u4ee4<\/h2>\n<p><strong>\u5728\u63a5\u6536\u5230\u6574\u5408\u540e\u7684\u8f93\u5165\u4fe1\u606f\u540e\uff0cLLM \u4f1a\u6839\u636e\u7cfb\u7edf\u63d0\u793a\u8bcd\u548c\u7528\u6237\u6307\u4ee4\u8fdb\u884c\u5206\u6790\u548c\u601d\u8003\uff0c\u5e76\u8fd4\u56de\u5305\u542b\u00a0(\u601d\u8003\u8fc7\u7a0b) \u548c\u64cd\u4f5c\u6307\u4ee4\u4e24\u90e8\u5206\u7684\u7ed3\u679c\u3002\u4f8b\u5982\uff0c\u9488\u5bf9\u4e0a\u8ff0 \u201c\u5b9e\u73b0\u592a\u9633\u7cfb 3D \u73af\u7ed5\u6548\u679c\u201d \u7684\u4efb\u52a1\uff0cLLM \u53ef\u80fd\u8fd4\u56de\u5982\u4e0b\u5185\u5bb9\uff1a<\/strong><\/p>\n<pre><code>&lt;thinking&gt;\r\n\u5206\u6790\u4efb\u52a1\u9700\u6c42:\r\n1. \u9700\u8981\u521b\u5efa\u4e00\u4e2a3D\u592a\u9633\u7cfb\u73af\u7ed5\u6548\u679c\r\n2. \u5f53\u524d\u9879\u76ee\u662f\u4e00\u4e2aNext.js\u9879\u76ee\uff08\u6839\u636enext.config.ts\u548capp\u76ee\u5f55\u7ed3\u6784\u5224\u65ad\uff09\r\n3. \u9700\u8981\u6dfb\u52a03D\u529f\u80fd\uff0c\u53ef\u4ee5\u4f7f\u7528Three.js\u5e93\r\n4. \u9700\u8981\u521b\u5efa\u65b0\u7684\u7ec4\u4ef6\u6765\u5c55\u793a3D\u6548\u679c\r\n\u4e0b\u4e00\u6b65\u884c\u52a8\uff1a\r\n1. \u5b89\u88c5Three.js\u4f9d\u8d56\r\n2. \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7ec4\u4ef6\u6765\u5c55\u793a3D\u592a\u9633\u7cfb\r\n3. \u5728\u9875\u9762\u4e2d\u5f15\u5165\u8be5\u7ec4\u4ef6\r\n&lt;\/thinking&gt;\r\n&lt;execute_command&gt;\r\n&lt;command&gt;npm install three @types\/three&lt;\/command&gt;\r\n&lt;requires_approval&gt;false&lt;\/requires_approval&gt;\r\n&lt;\/execute_command&gt;\r\n<\/code><\/pre>\n<p><strong>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cLLM \u9996\u5148\u8fdb\u884c\u4e86\u4efb\u52a1\u5206\u6790\uff0c\u660e\u786e\u4e86\u4efb\u52a1\u9700\u6c42\u548c\u9879\u76ee\u73af\u5883\uff0c\u5e76\u5236\u5b9a\u4e86\u521d\u6b65\u7684\u6267\u884c\u8ba1\u5212\u3002\u968f\u540e\uff0cLLM \u8f93\u51fa\u4e86\u00a0&lt;execute_command&gt;\u00a0\u6307\u4ee4\uff0c\u6307\u793a Cline \u6267\u884c\u00a0npm install three @types\/three\u00a0\u547d\u4ee4\u6765\u5b89\u88c5 Three.js \u5e93\u3002<\/strong><\/p>\n<p><strong>Cline \u901a\u8fc7\u89e3\u6790 LLM \u8fd4\u56de\u7684\u6307\u4ee4\uff0c\u53ef\u4ee5\u8c03\u7528\u5404\u79cd\u9884\u8bbe\u7684\u7cfb\u7edf\u64cd\u4f5c\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a<\/strong><\/p>\n<ul>\n<li><strong>\u6267\u884c\u7cfb\u7edf\u547d\u4ee4 (execute_command)<\/strong><\/li>\n<li><strong>\u8bfb\u5199\u6587\u4ef6 (read_file, write_to_file)<\/strong><\/li>\n<li><strong>\u641c\u7d22\u7f51\u7edc\u5185\u5bb9 (search)<\/strong><\/li>\n<li><strong>MCP \u64cd\u4f5c (use_mcp_tool)<\/strong><\/li>\n<\/ul>\n<p><strong>\u5728\u6267\u884c\u8fd9\u4e9b\u64cd\u4f5c\u7684\u8fc7\u7a0b\u4e2d\uff0cCline \u4f1a\u6536\u96c6\u64cd\u4f5c\u7684\u6267\u884c\u72b6\u6001\u548c\u7ed3\u679c\uff0c\u4ee5\u4fbf\u5728\u540e\u7eed\u7684\u4ea4\u4e92\u4e2d\u53cd\u9988\u7ed9 LLM\u3002<\/strong><\/p>\n<h2>\u7b2c\u4e8c\u8f6e\u8f93\u5165\uff1a\u878d\u5165\u64cd\u4f5c\u7ed3\u679c\u7684\u4e0a\u4e0b\u6587\u4fe1\u606f<\/h2>\n<p><strong>\u63a5\u4e0b\u6765\uff0cCline \u4f1a\u5c06\u4e0a\u4e00\u6b65\u64cd\u4f5c\u7684\u6267\u884c\u7ed3\u679c\u3001\u64cd\u4f5c\u72b6\u6001\u4fe1\u606f\uff0c\u4ee5\u53ca\u4e4b\u524d\u7684\u7cfb\u7edf\u63d0\u793a\u8bcd\u3001\u7528\u6237\u8f93\u5165\u7b49\u4fe1\u606f\u518d\u6b21\u6574\u5408\uff0c\u5e76\u4f5c\u4e3a\u65b0\u7684\u8f93\u5165\u63d0\u4ea4\u7ed9 LLM\uff0c\u8bf7\u6c42 LLM \u7ed9\u51fa\u4e0b\u4e00\u6b65\u7684\u6267\u884c\u6307\u5bfc\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4f1a\u5faa\u73af\u5f80\u590d\u8fdb\u884c\uff0c\u76f4\u5230\u4efb\u52a1\u5b8c\u6210\u3002<\/strong><\/p>\n<p><strong>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u66f4\u5b8c\u6574\u7684\u5bf9\u8bdd\u793a\u4f8b\uff0c\u5c55\u793a\u4e86 Cline \u5982\u4f55\u901a\u8fc7\u591a\u8f6e\u5bf9\u8bdd\u4e0e LLM \u534f\u540c\u5b8c\u6210\u4efb\u52a1\uff1a<\/strong><\/p>\n<pre><code>role: system\r\ncontent: [...\u7701\u7565\u7cfb\u7edf\u63d0\u793a\u8bcd\u5185\u5bb9...]\r\nrole: user\r\ncontent: [\r\n{\r\ntype: 'text',\r\ntext: '&lt;task&gt;\\n\u5b9e\u73b0\u4e00\u4e2a\u592a\u9633\u7cfb\u7684 3D \u73af\u7ed5\u6548\u679c\\n&lt;\/task&gt;'\r\n},\r\n{\r\ntype: 'text',\r\ntext: \"&lt;environment_details&gt;...&lt;environment_details&gt;\"\r\n}\r\n]\r\nrole: 'assistant',\r\ncontent: '&lt;thinking&gt;\\n\u5206\u6790\u4efb\u52a1\u9700\u6c42\uff1a\\n1. \u9700\u8981\u521b\u5efa\u4e00\u4e2a3D\u592a\u9633\u7cfb\u73af\u7ed5\u6548\u679c\\n2. \u5f53\u524d\u9879\u76ee\u662f\u4e00\u4e2aNext.js\u9879\u76ee\uff08\u6839\u636enext.config.ts\u548capp\u76ee\u5f55\u7ed3\u6784\u5224\u65ad\uff09\\n3. \u9700\u8981\u6dfb\u52a03D\u529f\u80fd\uff0c\u53ef\u4ee5\u4f7f\u7528Three.js\u5e93\\n4. \u9700\u8981\u521b\u5efa\u65b0\u7684\u7ec4\u4ef6\u6765\u5c55\u793a3D\u6548\u679c\\n\\n\u4e0b\u4e00\u6b65\u884c\u52a8\uff1a\\n1. \u5b89\u88c5Three.js\u4f9d\u8d56\\n2. \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7ec4\u4ef6\u6765\u5c55\u793a3D\u592a\u9633\u7cfb\\n3. \u5728\u9875\u9762\u4e2d\u5f15\u5165\u8be5\u7ec4\u4ef6\\n&lt;\/thinking&gt;\\n\\n&lt;execute_command&gt;\\n&lt;command&gt;npm install three @types\/three&lt;\/command&gt;\\n&lt;requires_approval&gt;false&lt;\/requires_approval&gt;\\n&lt;\/execute_command&gt;'\r\nrole: 'user',\r\ncontent: [\r\n{\r\ntype: 'text',\r\ntext: '[execute_command for 'npm install three @types\/three'] Result:'\r\n},\r\n{\r\ntype: 'text',\r\ntext: '<a href=\"https:\/\/www.kdjingpai.com\/de\/cohere\/\">Command<\/a> executed.\\nOutput:\\n\u2819\u2839\u2838\u283c\u2834\u2826\u2827\u2807\u280f\u280b\u2819\u2839\u2838\u283c\u2834\u2826\u2827\u2807\u280f\u280b\u2819\u2839\u2838\u283c\u2834\u2826\u2827\u2807\u280f\u280b\u2819\u2839\u2838\u283c\u2834\u2826\u2827\u2807\u280f\u280b\u2819\u2839\u2838\u283c\u2834\u2826\u2827\u2807\u280f\u280b\u2819\u2839\u2838\u283c\u2834\u2826\u2827\u2807\u280f\\nadded 9 packages and audited 385 packages in 5s\\n\u280f\\n\u280f142 packages are looking for funding\\n\u280f  run `npm fund` for details\\n\u280f\\nfound 0 vulnerabilities\\n\u280f'\r\n},\r\n{\r\ntype: 'text',\r\ncontent: '&lt;environment_details&gt;\\n# VSCode Visible Files\\n(No visible files)\\n\\n# VSCode Open Tabs\\n(No open tabs)\\n\\n# Current Time\\n1\/23\/2025, 10:01:33 PM (Asia\/Shanghai, UTC+8:00)\\n\\n# Current Mode\\nACT MODE\\n&lt;\/environment_details&gt;'\r\n}]\r\n<\/code><\/pre>\n<p>\u4ece\u8fd9\u4e2a\u5bf9\u8bdd\u793a\u4f8b\u53ef\u4ee5\u770b\u51fa\uff0c\u5b8c\u6210\u4e00\u4e2a\u7b80\u5355\u7684\u7f16\u7a0b\u4efb\u52a1\uff0cCline \u9700\u8981\u591a\u6b21\u5faa\u73af\u8c03\u7528 LLM\uff0c\u901a\u8fc7\u4e0d\u65ad\u5730\u4e0e LLM \u8fdb\u884c\u4ea4\u4e92\uff0c\u9010\u6b65\u7ec6\u5316\u4efb\u52a1\u76ee\u6807\u5e76\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\uff0c\u76f4\u81f3\u6700\u7ec8\u5b8c\u6210\u4efb\u52a1\u3002<\/p>\n<p>\u6b64\u5916\uff0cCline \u5728\u5904\u7406\u4efb\u52a1\u65f6\uff0c\u57fa\u672c\u4e0a\u662f\u5c06\u6240\u6709\u76f8\u5173\u4fe1\u606f\u90fd &#8220;\u4e00\u80a1\u8111&#8221; \u5730\u585e\u7ed9 LLM\uff0c\u8fd9\u5bfc\u81f4\u5355\u6b21\u4efb\u52a1\u7684 <a href=\"https:\/\/www.kdjingpai.com\/de\/tokenization\/\">Token<\/a> \u6d88\u8017\u91cf\u975e\u5e38\u9ad8\u3002\u540c\u65f6\uff0c\u8fd9\u79cd\u65b9\u5f0f\u4e5f\u5f88\u5bb9\u6613\u89e6\u53ca LLM \u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\u9650\u5236\u3002\u4e3a\u4e86\u5e94\u5bf9\u4e0a\u4e0b\u6587\u7a97\u53e3\u9650\u5236\u95ee\u9898\uff0cCline \u91c7\u53d6\u4e86\u4e00\u79cd\u76f8\u5bf9\u7b80\u5355\u76f4\u63a5\u7684\u5904\u7406\u7b56\u7565\uff0c\u5373\u66b4\u529b\u622a\u65ad\u8f93\u5165\u5185\u5bb9\uff0c\u8d85\u51fa\u7a97\u53e3\u9650\u5236\u7684\u90e8\u5206\u5c06\u88ab\u76f4\u63a5\u4e22\u5f03\u3002<\/p>\n<blockquote><p>\u8fd9\u53ef\u80fd\u4e5f\u662f\u5176\u4ed6 AI Coding \u7f16\u8f91\u5668\u6240\u91c7\u7528\u7684\u901a\u7528\u5904\u7406\u65b9\u6cd5\u3002\u5728\u4f7f\u7528 <a href=\"https:\/\/www.kdjingpai.com\/de\/codeium\/\">Windsurf<\/a> \u7b49 AI \u7f16\u8f91\u5668\u65f6\uff0c\u7528\u6237\u53ef\u80fd\u4f1a\u611f\u5230\u7591\u60d1\uff0c\u4e3a\u4ec0\u4e48 AI \u4f3c\u4e4e\u4e0d\u53d7 LLM \u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u9650\u5236\uff0c\u80fd\u591f\u5904\u7406\u770b\u4f3c\u8d85\u51fa\u7a97\u53e3\u957f\u5ea6\u7684\u4efb\u52a1\u3002\u7136\u800c\uff0c\u5728\u540e\u7eed\u7684\u4ea4\u4e92\u95ee\u7b54\u4e2d\uff0cAI \u53c8\u53ef\u80fd\u4f1a\u51fa\u73b0\u91cd\u590d\u4e4b\u524d\u56de\u7b54\u7684\u60c5\u51b5\uff0c\u8fd9\u6216\u8bb8\u5c31\u4e0e\u4e0a\u4e0b\u6587\u622a\u65ad\u673a\u5236\u6709\u5173\u3002<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd1\u5e74\u6765\uff0c\u4eba\u5de5\u667a\u80fd\uff08AI\uff09\u6280\u672f\u5728\u7f16\u7a0b\u9886\u57df\u5f15\u53d1\u4e86\u4e00\u573a\u6df1\u523b\u7684\u53d8\u9769\u3002\u4ece v0\u3001bolt.new\uff0c\u5230\u96c6\u6210 Agent \u6280\u672f\u7684\u7f16\u7a0b\u5de5\u5177\u5982 Cursor \u548c Windsurf\uff0cAI Coding \u5c55\u73b0\u51fa\u4e86\u5728\u8f6f\u4ef6\u5f00\u53d1\u6d41\u7a0b\u4e2d\u626e\u6f14\u5173\u952e\u89d2\u8272\u7684\u5de8\u5927\u6f5c\u529b\uff0c\u5c24\u5176\u662f\u5728\u5feb&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-27372","post","type-post","status-publish","format-standard","hentry","category-knowledge"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/27372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/comments?post=27372"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/27372\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=27372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=27372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=27372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}