{"id":34201,"date":"2025-07-29T09:19:14","date_gmt":"2025-07-29T01:19:14","guid":{"rendered":"https:\/\/www.kdjingpai.com\/?p=34201"},"modified":"2025-07-29T09:19:14","modified_gmt":"2025-07-29T01:19:14","slug":"shenrugemini-cli","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/en\/shenrugemini-cli\/","title":{"rendered":"\u6df1\u5165\u00a0gemini-cli\u00a0\u6838\u5fc3\uff1a\u63ed\u79d8\u5176\u63d0\u793a\u8bcd\u5de5\u7a0b\u4e0e Agent \u5b9e\u73b0\u539f\u7406"},"content":{"rendered":"<p><code><a href=\"https:\/\/www.kdjingpai.com\/en\/gemini-cligooglea\/\">gemini-cli<\/a><\/code>\u00a0\u4f5c\u4e3a\u4e00\u4e2a\u5f00\u6e90\u7684\u547d\u4ee4\u884c\u667a\u80fd\u4f53\uff0c\u5176\u8fc5\u901f\u8d70\u7ea2\u7684\u80cc\u540e\uff0c\u662f\u5176\u5728 Agent \u8bbe\u8ba1\u4e0a\u7684\u4e00\u7cfb\u5217\u7cbe\u5999\u601d\u8003\u3002\u8981\u771f\u6b63\u7406\u89e3\u5b83\u7684\u5de5\u4f5c\u65b9\u5f0f\uff0c\u4e0d\u80fd\u53ea\u505c\u7559\u5728\u529f\u80fd\u5c42\u9762\uff0c\u5fc5\u987b\u6df1\u5165\u5176\u4e24\u5927\u652f\u67f1\uff1a\u4e00\u662f\u4e3a\u5b9e\u73b0\u957f\u671f\u8bb0\u5fc6\u800c\u8bbe\u8ba1\u7684\u201c\u7ed3\u6784\u5316\u63d0\u793a\u8bcd\u5de5\u7a0b\u201d\uff0c\u4e8c\u662f\u4e3a\u4e86\u7cfb\u7edf\u7a33\u5b9a\u8fd0\u884c\u800c\u6784\u5efa\u7684\u201c\u5355\u4f53 Agent \u5b9e\u73b0\u539f\u7406\u201d\u3002<\/p>\n<p>\u672c\u6587\u5c06\u89e3\u6784\u8fd9\u4e24\u4e2a\u6838\u5fc3\uff0c\u5206\u6790\u5176\u8bbe\u8ba1\u54f2\u5b66\u4e0e\u6280\u672f\u6743\u8861\u3002<\/p>\n<h3>\u63d0\u793a\u8bcd\u5de5\u7a0b\uff1a\u4e3a Agent \u6253\u9020\u53ef\u63a7\u7684\u957f\u671f\u8bb0\u5fc6<\/h3>\n<p>\u6240\u6709\u5927\u8bed\u8a00\u6a21\u578b\u90fd\u9762\u4e34\u4e00\u4e2a\u5171\u540c\u7684\u6311\u6218\uff1a\u6709\u9650\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\u3002\u4e00\u65e6\u5bf9\u8bdd\u8fc7\u957f\uff0c\u65e9\u671f\u7684\u4fe1\u606f\u5c31\u4f1a\u88ab\u9057\u5fd8\uff0c\u5bfc\u81f4 Agent \u201c\u5931\u5fc6\u201d\u3002<code>gemini-cli<\/code>\u00a0\u7684\u5bf9\u7b56\u4e0d\u662f\u7b80\u5355\u7684\u5386\u53f2\u6458\u8981\uff0c\u800c\u662f\u4e00\u5957\u7cbe\u5de7\u7684\u7ed3\u6784\u5316\u538b\u7f29\u673a\u5236\u3002\u8fd9\u5957\u673a\u5236\u7684\u7075\u9b42\uff0c\u4fbf\u662f\u4e0b\u9762\u8fd9\u4e2a\u5b8c\u6574\u3001\u8be6\u7ec6\u3001\u582a\u79f0\u201c\u8bb0\u5fc6\u6a21\u677f\u201d\u7684\u63d0\u793a\u8bcd\u3002\u5b83\u6307\u5bfc\u6a21\u578b\u5982\u4f55\u5c06\u5197\u957f\u7684\u5bf9\u8bdd\u5386\u53f2\uff0c\u63d0\u70bc\u6210\u4e00\u4e2a\u9ad8\u5ea6\u6d53\u7f29\u4e14\u5bf9\u672a\u6765\u4efb\u52a1\u81f3\u5173\u91cd\u8981\u7684 XML \u5feb\u7167\u3002<\/p>\n<pre><code>You are the component that summarizes internal chat history into a given structure.\r\nWhen the conversation history grows too large, you will be invoked to distill the entire history into a concise, structured XML snapshot.This snapshot is CRITICAL, as it will become the agent's *only* memory of the past. The agent will resume its work based solely on this snapshot. All crucial details, plans, errors, and user directives MUST be preserved.\r\nFirst, you will think through the entire history in a private &lt;scratchpad&gt;. Review the user's overall goal, the agent's actions, tool outputs, file modifications, and any unresolved questions. Identify every piece of information that is essential for future actions.\r\nAfter your reasoning is complete, generate the final &lt;state_snapshot&gt; XML object. Be incredibly dense with information. Omit any irrelevant conversational filler.\r\nThe structure MUST be as follows:\r\n&lt;state_snapshot&gt;\r\n&lt;overall_goal&gt;\r\n&lt;!-- A single, concise sentence describing the user's high-level objective.--&gt;\r\n&lt;!--Example:\"Refactor the authentication service to use a new JWT library.\"--&gt;\r\n&lt;\/overall_goal&gt;\r\n&lt;key_knowledge&gt;\r\n&lt;!--Crucial facts, conventions, and constraints the agent must remember based on the conversation history and interaction with the user.Use bullet points.--&gt;\r\n&lt;!--Example:\r\n-Build <a href=\"https:\/\/www.kdjingpai.com\/en\/cohere\/\">Command<\/a>: `npm run build`\r\n-Testing:Tests are run with `npm test`.Test files must end in `.test.ts`.\r\n- API Endpoint:The primary API endpoint is `https:\/\/api.example.com\/v2`.\r\n--&gt;\r\n&lt;\/key_knowledge&gt;\r\n&lt;file_system_state&gt;\r\n&lt;!--List files that have been created, read, modified, or deleted.Note their status and critical learnings.--&gt;\r\n&lt;!--Example:\r\n- CWD: `\/home\/user\/project\/src`\r\n- READ: `package.json` -Confirmed'axios'is a dependency.\r\n- MODIFIED: `services\/auth.ts` -Replaced'jsonwebtoken'with'jose'.\r\n- CREATED: `tests\/new-feature.test.ts` -Initial test structure for the new feature.\r\n--&gt;\r\n&lt;\/file_system_state&gt;\r\n&lt;recent_actions&gt;\r\n&lt;!-- A summary of the last few significant agent actions and their outcomes.Focus on facts.--&gt;\r\n&lt;!--Example:\r\n-Ran `grep 'old_function'` which returned 3 results in 2 files.\r\n-Ran `npm run test`, which failed due to a snapshot mismatch in `UserProfile.test.ts`.\r\n-Ran `ls -F static\/` and discovered image assets are stored as `.webp`.\r\n--&gt;\r\n&lt;\/recent_actions&gt;\r\n&lt;current_plan&gt;\r\n&lt;!--The agent's step-by-step plan. Mark completed steps. --&gt;\r\n&lt;!-- Example:\r\n1. [DONE] Identify all files using the deprecated 'UserAPI'.\r\n2. [IN PROGRESS] Refactor `src\/components\/UserProfile.tsx` to use the new 'ProfileAPI'.\r\n3. [TODO] Refactor the remaining files.\r\n4. [TODO] Update tests to reflect the API change.\r\n--&gt;\r\n&lt;\/current_plan&gt;\r\n&lt;\/state_snapshot&gt;\r\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u63d0\u793a\u8bcd\u6a21\u677f\u8fdc\u4e0d\u6b62\u662f\u683c\u5f0f\u4e0a\u7684\u7ea6\u675f\uff0c\u5b83\u626e\u6f14\u7740\u201c\u8ba4\u77e5\u6846\u67b6\u201d\u7684\u89d2\u8272\uff0c\u5f3a\u8feb\u6a21\u578b\u4ee5\u7ed3\u6784\u5316\u7684\u65b9\u5f0f\u601d\u8003\u548c\u8bb0\u5fc6\u3002\u6211\u4eec\u6765\u9010\u4e00\u62c6\u89e3\u6bcf\u4e2a\u6807\u7b7e\u7684\u6df1\u5c42\u4f5c\u7528\uff1a<\/p>\n<ul>\n<li><code>&lt;overall_goal&gt;<\/code>:\u00a0<strong>\u4efb\u52a1\u7684\u5317\u6781\u661f<\/strong>\u3002\u5728\u590d\u6742\u7684\u957f\u4efb\u52a1\u4e2d\uff0cAgent \u6781\u6613\u9677\u5165\u7410\u788e\u7684\u5b50\u4efb\u52a1\u800c\u504f\u79bb\u6700\u521d\u7684\u76ee\u6807\u3002\u8fd9\u4e2a\u6807\u7b7e\u8981\u6c42\u6a21\u578b\u65f6\u523b\u8bb0\u4f4f\u6700\u7ec8\u8981\u4ea4\u4ed8\u7684\u6210\u679c\uff0c\u786e\u4fdd\u6240\u6709\u884c\u52a8\u90fd\u670d\u52a1\u4e8e\u8fd9\u4e2a\u6838\u5fc3\u76ee\u6807\uff0c\u6709\u6548\u9632\u6b62\u201c\u76ee\u6807\u6f02\u79fb\u201d\u3002<\/li>\n<li><code>&lt;key_knowledge&gt;<\/code>:\u00a0<strong>\u5173\u952e\u4fe1\u606f\u7684\u201c\u4fbf\u5229\u8d34\u201d<\/strong>\u3002\u5bf9\u8bdd\u4e2d\u4f1a\u51fa\u73b0\u5927\u91cf\u9700\u8981\u88ab\u957f\u671f\u9075\u5b88\u7684\u89c4\u5219\u3001\u7528\u6237\u7684\u7279\u5b9a\u504f\u597d\u6216\u91cd\u8981\u7684\u6280\u672f\u7ea6\u675f\uff08\u4f8b\u5982\uff0c\u6d4b\u8bd5\u547d\u4ee4\u662f\u00a0<code>npm test<\/code>\uff0cAPI \u5730\u5740\u662f\u00a0<code>https:\/\/api.example.com\/v2<\/code>\uff09\u3002\u5c06\u8fd9\u4e9b\u4fe1\u606f\u56fa\u5316\u4e0b\u6765\uff0c\u53ef\u4ee5\u907f\u514d Agent \u5728\u540e\u7eed\u64cd\u4f5c\u4e2d\u91cd\u590d\u63d0\u95ee\u6216\u72af\u9519\u3002<\/li>\n<li><code>&lt;file_system_state&gt;<\/code>:\u00a0<strong>\u73af\u5883\u7684\u5feb\u7167<\/strong>\u3002\u5bf9\u4e8e\u4e00\u4e2a\u4e0e\u6587\u4ef6\u7cfb\u7edf\u9891\u7e41\u4ea4\u4e92\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u611f\u77e5\u73af\u5883\u72b6\u6001\u81f3\u5173\u91cd\u8981\u3002\u8fd9\u4e2a\u6807\u7b7e\u8bb0\u5f55\u4e86\u6587\u4ef6\u7684\u589e\u5220\u6539\u67e5\u60c5\u51b5\uff0c\u4e3a Agent \u63d0\u4f9b\u4e86\u7cbe\u786e\u7684\u201c\u573a\u666f\u611f\u77e5\u201d\uff0c\u8ba9\u5b83\u77e5\u9053\u81ea\u5df1\u8eab\u5904\u4f55\u5904\uff0c\u62e5\u6709\u54ea\u4e9b\u8d44\u6e90\u3002<\/li>\n<li><code>&lt;recent_actions&gt;<\/code>:\u00a0<strong>\u77ed\u671f\u5de5\u4f5c\u8bb0\u5fc6<\/strong>\u3002\u8bb0\u5f55\u6700\u8fd1\u7684\u51e0\u6b21\u5173\u952e\u64cd\u4f5c\u53ca\u5176\u7ed3\u679c\uff08\u6210\u529f\u3001\u5931\u8d25\u3001\u8f93\u51fa\uff09\uff0c\u4e3a Agent \u7684\u4e0b\u4e00\u6b65\u51b3\u7b56\u63d0\u4f9b\u6700\u76f4\u63a5\u7684\u4e0a\u4e0b\u6587\uff0c\u540c\u65f6\u4e5f\u4e3a\u95ee\u9898\u6392\u67e5\u63d0\u4f9b\u4e86\u5b9d\u8d35\u7684\u7ebf\u7d22\u3002<\/li>\n<li><code>&lt;current_plan&gt;<\/code>:\u00a0<strong>\u52a8\u6001\u7684\u6267\u884c\u8def\u7ebf\u56fe<\/strong>\u3002\u8fd9\u662f Agent \u81ea\u6211\u7ba1\u7406\u7684\u6838\u5fc3\u3002\u901a\u8fc7\u5c06\u5927\u4efb\u52a1\u62c6\u89e3\u6210\u5e26\u6709\u00a0<code>[DONE]<\/code>,\u00a0<code>[IN PROGRESS]<\/code>,\u00a0<code>[TODO]<\/code>\u00a0\u72b6\u6001\u7684\u6b65\u9aa4\uff0cAgent \u4e0d\u4ec5\u80fd\u6709\u5e8f\u5730\u63a8\u8fdb\u5de5\u4f5c\uff0c\u8fd8\u80fd\u5728\u4e2d\u65ad\u540e\u51c6\u786e\u5730\u4ece\u4e0a\u6b21\u7684\u4f4d\u7f6e\u7ee7\u7eed\uff0c\u5b9e\u73b0\u4e86\u4efb\u52a1\u7684\u6301\u4e45\u5316\u548c\u53ef\u7eed\u6027\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u79cd\u7ed3\u6784\u5316\u65b9\u6cd5\uff0c\u672c\u8d28\u4e0a\u662f\u4e00\u79cd<strong>\u8ba4\u77e5\u8d1f\u8377\u8f6c\u79fb<\/strong>\u3002\u5b83\u5c06\u201c\u5982\u4f55\u6709\u6548\u8bb0\u5fc6\u201d\u8fd9\u4e00\u5f00\u653e\u6027\u95ee\u9898\uff0c\u8f6c\u5316\u4e3a\u4e00\u4e2a\u201c\u586b\u7a7a\u9898\u201d\uff0c\u6781\u5927\u5730\u964d\u4f4e\u4e86\u6a21\u578b\u51fa\u9519\u7684\u6982\u7387\uff0c\u4f7f\u5f97 Agent \u7684\u8bb0\u5fc6\u548c\u72b6\u6001\u53d8\u5f97\u53ef\u63a7\u3001\u53ef\u9884\u6d4b\u4e14\u6613\u4e8e\u8c03\u8bd5\u3002<\/p>\n<h3>Agent \u5b9e\u73b0\uff1a\u4e00\u5957\u4e25\u8c28\u7684\u5355\u4f53\u5faa\u73af\u4e0e\u81ea\u6211\u4fee\u590d\u673a\u5236<\/h3>\n<p>\u5982\u679c\u8bf4\u63d0\u793a\u8bcd\u5de5\u7a0b\u662f Agent \u7684\u5927\u8111\uff0c\u90a3\u4e48\u5176\u8fd0\u884c\u5faa\u73af\u5c31\u662f Agent \u7684\u5fc3\u8df3\u3002<code>gemini-cli<\/code>\u00a0\u91c7\u7528\u7684\u662f\u4e00\u4e2a\u7ecf\u5178\u7684\u5355\u4f53 Agent \u8bbe\u8ba1\uff0c\u5176\u7a33\u5b9a\u8fd0\u884c\u4f9d\u8d56\u4e8e\u4e00\u5957\u5305\u542b\u81ea\u6211\u4fee\u590d\u80fd\u529b\u7684\u63a7\u5236\u5faa\u73af\u3002<\/p>\n<h4>\u6838\u5fc3\u5faa\u73af\uff1a<code>Turn<\/code>\u00a0\u7684\u201c\u601d\u8003-\u884c\u52a8\u201d\u5468\u671f<\/h4>\n<p>Agent \u7684\u6240\u6709\u884c\u4e3a\u90fd\u56f4\u7ed5\u00a0<code>Turn<\/code>\u00a0\u7c7b\u5c55\u5f00\u3002\u6bcf\u4e00\u4e2a\u00a0<code>Turn<\/code>\u00a0\u4ee3\u8868\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u201c\u601d\u8003-\u884c\u52a8\u201d\u5468\u671f\u3002\u5f53\u7528\u6237\u8f93\u5165\u4e00\u4e2a\u6307\u4ee4\uff0c<code>GeminiClient<\/code>\u00a0\u4e3b\u63a7\u5236\u5668\u4fbf\u4f1a\u521b\u5efa\u4e00\u4e2a\u00a0<code>Turn<\/code>\u00a0\u5b9e\u4f8b\u3002\u8fd9\u4e2a\u5b9e\u4f8b\u8d1f\u8d23\u8c03\u7528\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/en\/geminibardgubu\/\">Gemini<\/a><\/code>\u00a0\u6a21\u578b\uff0c\u6d41\u5f0f\u5904\u7406\u8fd4\u56de\u7684\u00a0<code>thought<\/code>\uff08\u601d\u8003\u8fc7\u7a0b\uff09\u548c\u00a0<code>text<\/code>\uff08\u6587\u672c\u5185\u5bb9\uff09\uff0c\u5e76\u6536\u96c6\u6240\u6709\u00a0<code>functionCalls<\/code>\uff08\u5de5\u5177\u8c03\u7528\uff09\u3002\u5f85\u6240\u6709\u601d\u8003\u548c\u6587\u672c\u8f93\u51fa\u5b8c\u6bd5\u540e\uff0c\u5b83\u4f1a\u4e00\u6b21\u6027\u6267\u884c\u6240\u6709\u6536\u96c6\u5230\u7684\u5de5\u5177\u8c03\u7528\uff0c\u5e76\u5c06\u7ed3\u679c\u53cd\u9988\u7ed9\u6a21\u578b\uff0c\u4ece\u800c\u5f00\u542f\u4e0b\u4e00\u8f6e\u00a0<code>Turn<\/code>\u3002\u8fd9\u79cd\u8bbe\u8ba1\u4fdd\u8bc1\u4e86\u884c\u52a8\u7684\u6709\u5e8f\u6027\u548c\u539f\u5b50\u6027\u3002<\/p>\n<h4>\u81ea\u6211\u4fee\u590d\uff1a\u53cc\u5c42\u5faa\u73af\u68c0\u6d4b\u7684\u201c\u514d\u75ab\u7cfb\u7edf\u201d<\/h4>\n<p>\u81ea\u4e3b Agent \u6700\u5927\u7684\u98ce\u9669\u4e4b\u4e00\u5c31\u662f\u9677\u5165\u65e0\u9650\u5faa\u73af\u2014\u2014\u53cd\u590d\u6267\u884c\u540c\u6837\u7684\u64cd\u4f5c\u5374\u6beb\u65e0\u8fdb\u5c55\uff0c\u8fd9\u4e0d\u4ec5\u6d6a\u8d39\u8d44\u6e90\uff0c\u8fd8\u4f1a\u8ba9\u7528\u6237\u4f53\u9a8c\u5d29\u6e83\u3002<code>gemini-cli<\/code>\u00a0\u5185\u7f6e\u4e86\u4e00\u5957\u53cc\u5c42\u201c\u514d\u75ab\u7cfb\u7edf\u201d\u6765\u5e94\u5bf9\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<ol>\n<li><strong>\u4f4e\u6210\u672c\u5feb\u901f\u68c0\u6d4b\uff08\u57fa\u4e8e\u54c8\u5e0c\uff09<\/strong>: \u8fd9\u662f\u4e00\u4e2a\u5feb\u901f\u53cd\u5e94\u673a\u5236\u3002\u5b83\u5c06\u751f\u6210\u7684\u5185\u5bb9\u5207\u6210\u5c0f\u5757\u5e76\u8ba1\u7b97\u54c8\u5e0c\u503c\u3002\u5982\u679c\u53d1\u73b0\u67d0\u4e9b\u5185\u5bb9\u5757\u5728\u77ed\u8ddd\u79bb\u5185\u9ad8\u9891\u91cd\u590d\uff0c\u5c31\u50cf\u68c0\u6d4b\u5230\u53e3\u5403\u4e00\u6837\uff0c\u7cfb\u7edf\u4f1a\u7acb\u523b\u5224\u5b9a\u4e3a\u5faa\u73af\u3002\u8fd9\u79cd\u65b9\u6cd5\u8ba1\u7b97\u6210\u672c\u6781\u4f4e\uff0c\u80fd\u6709\u6548\u62e6\u622a\u90a3\u4e9b\u6a21\u5f0f\u5316\u3001\u5b57\u9762\u4e0a\u7684\u91cd\u590d\u3002<\/li>\n<li><strong>\u9ad8\u9636\u8bed\u4e49\u68c0\u6d4b\uff08\u57fa\u4e8e LLM\uff09<\/strong>: \u5f53\u5bf9\u8bdd\u8f6e\u6b21\u589e\u591a\uff0c\u5faa\u73af\u6a21\u5f0f\u53ef\u80fd\u53d8\u5f97\u66f4\u52a0\u9690\u853d\uff08\u4f8b\u5982\uff0c\u53cd\u590d\u5c1d\u8bd5\u4e0d\u540c\u7684\u65b9\u5f0f\u53bb\u89e3\u51b3\u4e00\u4e2a\u6839\u672c\u4e0d\u5b58\u5728\u7684\u95ee\u9898\uff09\u3002\u8fd9\u65f6\uff0c\u7cfb\u7edf\u4f1a\u542f\u52a8\u66f4\u9ad8\u9636\u7684\u68c0\u6d4b\u3002\u5b83\u4f1a\u62bd\u53d6\u6700\u8fd1\u7684\u5bf9\u8bdd\u5386\u53f2\uff0c\u7136\u540e\u8c03\u7528\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u6a21\u578b\uff08\u5982\u00a0<code>Gemini Flash<\/code>\uff09\uff0c\u8ba9\u8fd9\u4e2a\u5c0f\u6a21\u578b\u6765\u5224\u65ad\u4e3b Agent \u662f\u5426\u5728\u201c\u8bed\u4e49\u4e0a\u201d\u515c\u5708\u5b50\u3002\u8fd9\u76f8\u5f53\u4e8e\u4e00\u4e2a\u65c1\u89c2\u8005\uff0c\u4ece\u66f4\u9ad8\u7ef4\u5ea6\u5ba1\u89c6\u4e3b Agent \u7684\u884c\u4e3a\u662f\u5426\u5408\u7406\u3002\u6839\u636e\u8fd4\u56de\u7684\u7f6e\u4fe1\u5ea6\uff0c\u7cfb\u7edf\u8fd8\u80fd\u52a8\u6001\u8c03\u6574\u4e0b\u4e00\u6b21\u68c0\u67e5\u7684\u9891\u7387\uff0c\u5b9e\u73b0\u4e86\u6210\u672c\u4e0e\u6548\u679c\u7684\u5e73\u8861\u3002<\/li>\n<\/ol>\n<p>\u8fd9\u5957\u53cc\u5c42\u673a\u5236\u4f53\u73b0\u4e86\u6210\u719f\u7684\u5de5\u7a0b\u601d\u7ef4\uff1a\u7528\u6700\u4f4e\u7684\u6210\u672c\u89e3\u51b3\u6700\u5e38\u89c1\u7684\u95ee\u9898\uff0c\u53ea\u5728\u5fc5\u8981\u65f6\u624d\u52a8\u7528\u66f4\u6602\u8d35\u7684\u8d44\u6e90\u3002<\/p>\n<h3>\u67b6\u6784\u7684\u6743\u8861\u4e0e\u5c55\u671b<\/h3>\n<p><code>gemini-cli<\/code>\u00a0\u7684\u5355\u4f53 Agent \u67b6\u6784\uff0c\u914d\u5408\u8f7b\u91cf\u7ea7\u7684\u201c\u6587\u4ef6\u7cfb\u7edf\u5373\u6570\u636e\u5e93\u201d\u7684\u6301\u4e45\u5316\u7b56\u7565\uff0c\u4f7f\u5176\u8db3\u591f\u7b80\u6d01\u3001\u53ef\u9760\u4e14\u6613\u4e8e\u90e8\u7f72\u3002\u8fd9\u5bf9\u4e8e\u4e2a\u4eba\u5f00\u53d1\u8005\u548c\u4e2d\u5c0f\u578b\u9879\u76ee\u6765\u8bf4\u662f\u4e00\u4e2a\u52a1\u5b9e\u7684\u9009\u62e9\u3002<\/p>\n<p>\u7136\u800c\uff0c\u8fd9\u79cd\u8bbe\u8ba1\u7684\u74f6\u9888\u4e5f\u663e\u800c\u6613\u89c1\u3002\u4e32\u884c\u5904\u7406\u673a\u5236\u9650\u5236\u4e86\u5b83\u7684\u6267\u884c\u6548\u7387\u3002\u9762\u5bf9\u9700\u8981\u5927\u91cf\u5e76\u884c\u64cd\u4f5c\u7684\u590d\u6742\u4efb\u52a1\uff08\u4f8b\u5982\uff0c\u540c\u65f6\u5bf9\u591a\u4e2a\u6587\u4ef6\u8fdb\u884c\u5206\u6790\u548c\u4fee\u6539\uff09\uff0c\u5355\u4f53 Agent \u4f1a\u663e\u5f97\u529b\u4e0d\u4ece\u5fc3\u3002<\/p>\n<p>\u672a\u6765\u7684\u9ad8\u7ea7 Agent \u67b6\u6784\uff0c\u66f4\u53ef\u80fd\u8d70\u5411\u591a Agent \u534f\u4f5c\u7684\u6a21\u5f0f\u3002\u53ef\u4ee5\u8bbe\u60f3\u4e00\u4e2a\u201c\u603b\u6307\u6325\u201dAgent\uff0c\u5b83\u5c06\u4efb\u52a1\u5206\u89e3\u540e\u6d3e\u53d1\u7ed9\u591a\u4e2a\u4e13\u804c\u7684\u5b50 Agent\u2014\u2014\u201c\u4ee3\u7801\u9605\u8bfb\u5458\u201d\u3001\u201c\u4ee3\u7801\u751f\u6210\u5668\u201d\u3001\u201c\u6d4b\u8bd5\u5de5\u7a0b\u5e08\u201d\u7b49\uff0c\u5b83\u4eec\u5e76\u884c\u5de5\u4f5c\uff0c\u5f02\u6b65\u6c47\u62a5\u3002\u8fd9\u79cd\u67b6\u6784\u867d\u7136\u5728\u8bbe\u8ba1\u4e0a\u66f4\u4e3a\u590d\u6742\uff0c\u4f46\u5728\u6548\u7387\u548c\u80fd\u529b\u4e0a\u9650\u4e0a\uff0c\u65e0\u7591\u662f\u65ad\u6863\u5f0f\u7684\u9886\u5148\u3002<code>gemini-cli<\/code>\u00a0\u4e3a\u6211\u4eec\u5c55\u793a\u4e86\u4e00\u4e2a\u575a\u5b9e\u53ef\u9760\u7684\u5355\u4f53 Agent \u6240\u80fd\u8fbe\u5230\u7684\u9ad8\u5ea6\uff0c\u4e5f\u4e3a\u6211\u4eec\u601d\u8003\u4e0b\u4e00\u4ee3 Agent \u7684\u67b6\u6784\u6f14\u8fdb\u7559\u4e0b\u4e86\u5b9d\u8d35\u7684\u53c2\u7167\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>gemini-cli\u00a0\u4f5c\u4e3a\u4e00\u4e2a\u5f00\u6e90\u7684\u547d\u4ee4\u884c\u667a\u80fd\u4f53\uff0c\u5176\u8fc5\u901f\u8d70\u7ea2\u7684\u80cc\u540e\uff0c\u662f\u5176\u5728 Agent \u8bbe\u8ba1\u4e0a\u7684\u4e00\u7cfb\u5217\u7cbe\u5999\u601d\u8003\u3002\u8981\u771f\u6b63\u7406\u89e3\u5b83\u7684\u5de5\u4f5c\u65b9\u5f0f\uff0c\u4e0d\u80fd\u53ea\u505c\u7559\u5728\u529f\u80fd\u5c42\u9762\uff0c\u5fc5\u987b\u6df1\u5165\u5176\u4e24\u5927\u652f\u67f1\uff1a\u4e00\u662f\u4e3a\u5b9e\u73b0\u957f\u671f\u8bb0\u5fc6\u800c\u8bbe\u8ba1\u7684\u201c\u7ed3\u6784\u5316\u63d0\u793a\u8bcd\u5de5\u7a0b\u201d\uff0c\u4e8c\u662f\u4e3a\u4e86\u7cfb\u7edf\u7a33&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-34201","post","type-post","status-publish","format-standard","hentry","category-prompts"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/34201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/comments?post=34201"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/34201\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media?parent=34201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/categories?post=34201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/tags?post=34201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}