{"id":96732,"date":"2026-08-28T09:24:36","date_gmt":"2026-08-28T01:24:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/96732.html"},"modified":"2026-08-28T09:24:36","modified_gmt":"2026-08-28T01:24:36","slug":"deepseek-harness%e6%9e%b6%e6%9e%84%e6%b7%b1%e5%ba%a6%e8%a7%a3%e6%9e%90%ef%bc%9a%e4%b8%80%e5%88%87%e7%9a%86%e6%8f%92%e4%bb%b6%e5%a6%82%e4%bd%95%e9%87%8d%e6%9e%84agent%e8%bf%90%e8%a1%8c%e6%97%b6","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/96732.html","title":{"rendered":"DeepSeek Harness\u67b6\u6784\u6df1\u5ea6\u89e3\u6790\uff1a\u4e00\u5207\u7686\u63d2\u4ef6\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6"},"content":{"rendered":"<h2 style=\"margin-left:0;margin-right:0\"><\/h2>\n<p style=\"margin-left:0;margin-right:0\">2026\u5e748\u670813\u65e5&#xff0c;DeepSeek\u4ee5MIT\u8bb8\u53ef\u8bc1\u5f00\u6e90\u4e86DeepSeek Harness&#xff08;\u7b80\u79f0dsh&#xff09;&#xff0c;\u4e00\u4e2a\u57fa\u4e8eCordis\u5fae\u5185\u6838\u7684Agent\u8fd0\u884c\u65f6\u6846\u67b6\u3002\u5b83\u7684\u67b6\u6784\u5ba3\u8a00\u53ea\u6709\u4e00\u53e5\u8bdd&#xff1a;Everything is a Plugin\u3002\u6a21\u578b\u9002\u914d\u5668\u3001\u5de5\u5177\u6ce8\u518c\u8868\u3001\u4f1a\u8bdd\u65e5\u5fd7\u3001Agent Loop\u672c\u8eab\u751a\u81f3Web\u524d\u7aef&#xff0c;\u5168\u90e8\u662f\u5730\u4f4d\u5e73\u7b49\u7684\u63d2\u4ef6\u3002\u8fd9\u4e0d\u662f\u53c8\u4e00\u4e2aAPI\u804a\u5929\u5ba2\u6237\u7aef&#xff0c;\u800c\u662f\u4e00\u5957\u7528\u4e8e\u7ec4\u88c5Agent\u7684\u5f00\u6e90\u57fa\u7840\u8bbe\u65bd\u3002\u672c\u6587\u4eceCordis\u63d2\u4ef6\u6811\u3001\u4e8b\u4ef6\u6e90\u4f1a\u8bdd\u3001\u5de5\u5177\u5b89\u5168\u6d41\u6c34\u7ebf\u3001\u56db\u79cd\u8fd0\u884c\u6a21\u5f0f\u3001\u591aAgent\u7f16\u6392\u548c\u6a2a\u5411\u9009\u578b\u7b49\u7ef4\u5ea6&#xff0c;\u6df1\u5ea6\u89e3\u6790DeepSeek Harness\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6\u3002<\/p>\n<h2 style=\"margin-left:0;margin-right:0\">\u4e00\u3001Agent\u7ade\u4e89\u7684\u91cd\u5fc3\u8f6c\u79fb&#xff1a;\u4ece\u6a21\u578b\u5230Harness<\/h2>\n<h3 style=\"margin-left:0;margin-right:0\">1.1 \u4e3a\u4ec0\u4e482026\u5e74Harness\u6210\u4e3a\u4e3b\u89d2<\/h3>\n<p style=\"margin-left:0;margin-right:0\">\u65e9\u671fLLM\u5e94\u7528\u7684\u5178\u578b\u5f62\u6001\u662f\u7cfb\u7edf\u63d0\u793a\u8bcd\u52a0\u804a\u5929\u5386\u53f2\u518d\u52a0\u4e00\u6b21API\u8bf7\u6c42\u3002\u5de5\u5177\u8c03\u7528\u51fa\u73b0\u540e&#xff0c;\u5e94\u7528\u9700\u8981\u5728\u6a21\u578b\u548c\u73b0\u5b9e\u4e16\u754c\u4e4b\u95f4\u53cd\u590d\u5faa\u73af&#xff1a;\u8bfb\u6587\u4ef6\u3001\u6267\u884c\u547d\u4ee4\u3001\u68c0\u67e5\u8f93\u51fa\u3001\u4fee\u6539\u4ee3\u7801\u3001\u8dd1\u6d4b\u8bd5&#xff0c;\u76f4\u5230\u4efb\u52a1\u7ed3\u675f\u3002\u6b64\u65f6\u51b3\u5b9a\u6210\u8d25\u7684\u4e0d\u518d\u53ea\u662f\u4e00\u6bb5\u63d0\u793a\u8bcd&#xff0c;\u800c\u662f\u4e00\u5957\u8fd0\u884c\u65f6\u5236\u5ea6\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u6f14\u8fdb\u9636\u6bb5<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5e94\u7528\u91cd\u5fc3<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u6838\u5fc3\u95ee\u9898<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">Harness<\/span><span style=\"color:black\">\u7684\u56de\u7b54<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5355\u8f6e\u5bf9\u8bdd<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Prompt\u4e0e\u751f\u6210\u8d28\u91cf<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5982\u4f55\u8bf4\u6e05\u9700\u6c42<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7cfb\u7edf\u63d0\u793a\u8bcd\u6a21\u677f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5de5\u5177\u8c03\u7528<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u4e0eAPI\u5bf9\u63a5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5982\u4f55\u8c03\u7528\u3001\u91cd\u8bd5\u548c\u89e3\u6790<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5de5\u5177\u6ce8\u518c\u8868\u4e0eAgent Loop<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u957f\u7a0b\u4efb\u52a1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8de8\u591a\u6b65\u4fdd\u6301\u72b6\u6001<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0a\u4e0b\u6587\u6ea2\u51fa\u3001\u4e2d\u65ad\u3001\u6062\u590d<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e8b\u4ef6\u65e5\u5fd7\u3001\u538b\u7f29\u4e0e\u6301\u4e45\u5316<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u591aAgent\u534f\u4f5c<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5206\u5de5\u3001\u56de\u62a5\u4e0e\u5ba1\u6838<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u961f\u5217\u3001\u8eab\u4efd\u3001\u8d44\u6e90\u548c\u53d6\u6d88<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5b50\u4ee3\u7406\u8fd0\u884c\u65f6\u4e0eWorkflow<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u751f\u4ea7\u5316<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5b89\u5168\u3001\u89c2\u6d4b\u548c\u7ec4\u7ec7\u7b56\u7565<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Agent\u80fd\u78b0\u4ec0\u4e48\u3001\u51fa\u9519\u5982\u4f55\u8ffd\u8d23<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5ba1\u6279\u3001\u6c99\u7bb1\u3001\u56de\u653e\u4e0e\u9065\u6d4b<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"margin-left:0;margin-right:0\">1.2 DeepSeek Harness\u7684\u5173\u952e\u65f6\u95f4\u7ebf<\/h3>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u65f6\u95f4\u8282\u70b9<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u4e8b\u4ef6<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5de5\u7a0b\u542b\u4e49<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">2026\u5e745\u6708<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">DeepSeek\u5b98\u65b9\u62db\u8058Agent Harness\u56e2\u961f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u76ee\u6807\u4e0d\u662f\u7ef4\u62a4API Demo&#xff0c;\u800c\u662f\u6253\u901a\u6a21\u578b\u3001\u4ea7\u54c1\u53cd\u9988\u548cAgent\u7814\u7a76<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">2026\u5e748\u670813\u65e5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">deepseek-ai\/deepseek-harness\u516c\u5f00&#xff0c;MIT\u8bb8\u53ef\u8bc1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">DeepSeek\u9009\u62e9\u5f00\u653eHarness\u5c42&#xff0c;\u8ba9\u793e\u533a\u80fd\u66ff\u6362\u6a21\u578b\u3001\u5de5\u5177\u3001\u6c99\u7bb1\u548c\u524d\u7aef<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">2026\u5e748\u670819\u65e5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7248\u672c\u8fed\u4ee3\u81f3v0.1.0-rc.8&#xff0c;12,940\u6b21\u63d0\u4ea4<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u63d2\u4ef6\u751f\u6001\u5feb\u901f\u6269\u5f20&#xff0c;25\u4f4d\u8d21\u732e\u8005\u53c2\u4e0e\u5f00\u53d1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">2026\u5e748\u670820\u65e5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u793e\u533a\u63d2\u4ef6\u751f\u6001\u542f\u52a8&#xff0c;dsh-plugin\u8bdd\u9898\u5f00\u653e<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e09\u65b9\u63d2\u4ef6\u53ef\u901a\u8fc7GitHub Topic\u88ab\u53d1\u73b0\u548c\u5b89\u88c5<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0\">DeepSeek\u6a21\u578b\u539f\u672c\u5c31\u80fd\u901a\u8fc7OpenAI\u6216Anthropic\u517c\u5bb9\u534f\u8bae\u63a5\u5165Claude Code\u3001OpenCode\u7b49\u4e09\u65b9\u5de5\u5177&#xff0c;\u56e0\u6b64\u80fd\u7528DeepSeek\u5199\u4ee3\u7801\u4e0d\u662f\u4ea7\u54c1\u7a7a\u767d\u3002\u771f\u6b63\u7f3a\u5931\u7684\u662f\u5bf9Harness\u81ea\u8eab\u7684\u63a7\u5236\u6743&#xff1a;\u6a21\u578b\u770b\u5230\u4ec0\u4e48\u4e0a\u4e0b\u6587\u3001\u5982\u4f55\u7f16\u6392\u5b50\u4ee3\u7406\u3001\u4ec0\u4e48\u53cd\u9988\u53ef\u4ee5\u56de\u6d41\u8bc4\u6d4b\u4e0e\u8bad\u7ec3\u3002dsh\u7684\u76ee\u6807\u5c31\u662f\u586b\u8865\u8fd9\u4e00\u5c42\u3002<\/p>\n<h2 style=\"margin-left:0;margin-right:0\">\u4e8c\u3001Cordis\u5fae\u5185\u6838&#xff1a;\u4e0d\u8bbe\u7279\u6743\u5185\u6838\u7684\u63d2\u4ef6\u6811<\/h2>\n<h3 style=\"margin-left:0;margin-right:0\">2.1 \u67b6\u6784\u5168\u666f&#xff1a;\u4e94\u5c42\u63d2\u4ef6\u5806\u53e0<\/h3>\n<p style=\"margin-left:0;margin-right:0\">DeepSeek Harness\u57fa\u4e8eCordis\u6846\u67b6\u6784\u5efa\u3002Cordis\u6e90\u81eaKoishi\u751f\u6001&#xff0c;\u5176\u8bbe\u8ba1\u601d\u60f3\u6765\u81ea\u8bba\u6587A Programming Paradigm for Spatiotemporal Composability\u3002Cordis\u53ea\u505a\u4e09\u4ef6\u4e8b&#xff1a;\u63d2\u4ef6\u7684\u52a0\u8f7d\u3001\u5378\u8f7d\u548c\u4f9d\u8d56\u7ba1\u7406\u3002\u5b83\u672c\u8eab\u4e0d\u627f\u8f7d\u4efb\u4f55Agent\u80fd\u529b&#xff0c;\u50cf\u4e2a\u4e50\u9ad8\u5e95\u5ea7\u677f&#xff0c;\u53ea\u63d0\u4f9b\u63d2\u53e3\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\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\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u4ea7\u54c1\u5165\u53e3\u5c42\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0 Web UI \u00b7 Headless \u00b7 SDK \u00b7 API Gateway\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u251c\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\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Agent\u8fd0\u884c\u5c42\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0 Agent Loop \u00b7 Session \u00b7 Prompt \u00b7 Scope \u00b7 Compaction \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u251c\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\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u80fd\u529b\u4e0e\u7b56\u7565\u5c42\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0 Tools \u00b7 Skills \u00b7 MCP \u00b7 LSP \u00b7 Subagent \u00b7 Approval \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u251c\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\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u6267\u884c\u4e0e\u5b58\u50a8\u5c42\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0 FS \u00b7 Shell \u00b7 PTY \u00b7 Sandbox \u00b7 SQLite\/JSONL \u00b7 OTel \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u251c\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\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u6a21\u578b\u9002\u914d\u5c42\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u2502\u00a0 DeepSeek \u00b7 OpenAI \u00b7 Anthropic \u00b7 \u81ea\u5b9a\u4e49\u517c\u5bb9\u7aef\u70b9\u00a0\u00a0 \u2502<\/p>\n<p style=\"margin-left:0;margin-right:0\">\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\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u6bcf\u4e00\u5c42\u90fd\u901a\u8fc7Cordis\u63d2\u4ef6\u7ec4\u5408<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u8fd9\u79cd\u67b6\u6784\u7684\u8981\u70b9\u4e0d\u662f\u63d2\u4ef6\u6570\u91cf\u591a&#xff0c;\u800c\u662f\u6838\u5fc3\u5faa\u73af\u4e5f\u6ca1\u6709\u7279\u6743\u3002\u5982\u679c\u4e00\u4e2a\u56e2\u961f\u5e0c\u671b\u628a\u672c\u5730\u6587\u4ef6\u7cfb\u7edf\u548c\u8fdb\u7a0b\u6267\u884c\u66ff\u6362\u4e3a\u8fdc\u7a0b\u6c99\u7bb1&#xff0c;\u53ef\u4ee5\u66ff\u6362\u5bf9\u5e94Service Provider&#xff1b;\u4f9d\u8d56\u8fd9\u4e24\u9879\u670d\u52a1\u7684Bash\u3001PTY\u548cLSP\u4e5f\u4f1a\u968f\u4e4b\u8f6c\u79fb&#xff0c;\u800c\u4e0d\u9700\u8981\u590d\u5236\u4e00\u5957Agent Loop\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0\">2.2 Profile\u3001Bundle\u4e0ePatch&#xff1a;\u63d2\u4ef6\u7ec4\u5408\u7684\u4e09\u5c42\u914d\u7f6e<\/h3>\n<p style=\"margin-left:0;margin-right:0\">\u8fd0\u884c\u4e2d\u7684dsh\u662f\u4e00\u68f5\u6309\u5e8f\u53e0\u52a0\u7684\u63d2\u4ef6\u6811\u3002profile\u662f\u5177\u540d\u7ec4\u88c5&#xff0c;bundle\u662f\u53ef\u5206\u53d1\u7684\u63d2\u4ef6\u914d\u7f6e\u5305&#xff0c;cordis.patch.yml\u8d1f\u8d23\u8986\u76d6\u6216\u63d2\u5165\u914d\u7f6e\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u7ec4\u5408\u5bf9\u8c61<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u804c\u8d23<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5b98\u65b9\u9ed8\u8ba4<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">dsh-base<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u3001\u5de5\u5177\u3001\u6301\u4e45\u5316\u3001\u6c99\u7bb1\u3001\u5ba1\u6279\u3001\u51ed\u636e\u3001\u9065\u6d4b<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6240\u6709profile\u7684\u5e95\u5ea7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">dsh-web-app<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Web\u670d\u52a1\u5668\u4e0e\u6d4f\u89c8\u5668\u754c\u9762<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">web profile<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">dsh-headless<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e00\u6b21\u6027\u6267\u884c\u5668&#xff0c;\u4e0d\u542f\u52a8\u670d\u52a1\u5668<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">headless profile<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">profile patch<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u67d0\u4e2a\u7ec4\u88c5\u7684\u672c\u5730\u5dee\u5f02<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5b89\u88c5\u7b2c\u4e09\u65b9\u63d2\u4ef6\u3001\u66ff\u6362\u5b9e\u73b0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">home patch \/ &#8211;patch<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7528\u6237\u7ea7\u6216\u672c\u6b21\u542f\u52a8\u8986\u76d6<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u73af\u5883\u7b56\u7565\u548c\u5b9e\u9a8c\u914d\u7f6e<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0\">\u540c\u4e00\u5957\u6838\u5fc3\u53ef\u4ee5\u88ab\u7ec4\u88c5\u4e3aWeb Agent\u3001\u65e0\u5934CI\u4efb\u52a1\u6267\u884c\u5668\u3001\u7279\u5b9a\u4f01\u4e1a\u73af\u5883\u7684\u53d7\u9650Agent&#xff0c;\u6216\u5b8c\u5168\u4e0d\u540c\u7684\u524d\u7aef\u4ea7\u54c1\u3002\u5f00\u53d1\u8005\u53ef\u7528\u547d\u4ee4\u67e5\u770b\u6700\u7ec8\u7ec4\u88c5\u7ed3\u679c&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0\">dsh &#8211;profile web &#8211;dump-config<\/p>\n<h3 style=\"margin-left:0;margin-right:0\">2.3 Capability Seam&#xff1a;\u53ef\u66ff\u6362\u80fd\u529b\u7684\u4e09\u4e2a\u89d2\u8272<\/h3>\n<p style=\"margin-left:0;margin-right:0\">DeepSeek Harness\u628a\u53ef\u66ff\u6362\u80fd\u529b\u79f0\u4e3aseam&#xff0c;\u5e76\u62c6\u6210\u4e09\u4e2a\u89d2\u8272\u3002\u8fd9\u79cd\u62c6\u5206\u6bd4\u628a\u6240\u6709\u529f\u80fd\u90fd\u505a\u6210\u4e00\u4e2a\u5de5\u5177\u63d2\u4ef6\u66f4\u4e25\u683c&#xff0c;\u8981\u6c42\u5f00\u53d1\u8005\u5148\u660e\u786e\u80fd\u529b\u8fb9\u754c&#xff0c;\u518d\u5206\u522b\u5904\u7406\u5b9e\u73b0\u4e0e\u66b4\u9732\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u89d2\u8272<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u542b\u4e49<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u4ee5\u6587\u4ef6\u7cfb\u7edf\u4e3a\u4f8b<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Service Definition<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7a33\u5b9a\u63a5\u53e3\u548c\u9886\u57df\u8bcd\u6c47<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">ctx.fs\u5b9a\u4e49\u8bfb\u5199\u80fd\u529b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Service Provider<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5177\u4f53\u6267\u884c\u73af\u5883<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u672c\u5730FS\u3001\u6c99\u7bb1FS\u6216E2B\u8fdc\u7a0bFS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Consumer<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9762\u5411\u6a21\u578b\u6216\u7528\u6237\u7684\u5165\u53e3<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8bfb\u6587\u4ef6\u3001\u7f16\u8f91\u6587\u4ef6\u5de5\u5177<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"margin-left:0;margin-right:0\">\u4e09\u3001\u56db\u79cd\u8fd0\u884c\u6a21\u5f0f\u6df1\u5ea6\u62c6\u89e3<\/h2>\n<p style=\"margin-left:0;margin-right:0\">DeepSeek Harness\u63d0\u4f9b\u56db\u79cd\u8fd0\u884c\u6a21\u5f0f&#xff0c;\u6bcf\u79cd\u6a21\u5f0f\u5bf9\u5e94\u4e0d\u540c\u7684\u63d2\u4ef6\u7ec4\u5408\u548c\u5de5\u5177\u96c6&#xff0c;\u8986\u76d6\u4ece\u5168\u529f\u80fd\u7f16\u7801\u5230\u57fa\u51c6\u6d4b\u8bd5\u7684\u5b8c\u6574\u573a\u666f\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u8fd0\u884c\u6a21\u5f0f<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5de5\u5177\u96c6<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5178\u578b\u573a\u666f<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:88.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u6838\u5fc3\u7279\u5f81<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Standard\u6a21\u5f0f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6587\u4ef6\u7f16\u8f91\u3001Shell\u3001\u6587\u4ef6\u641c\u7d22\u3001Web\u641c\u7d22\u3001Skills\u3001\u89c4\u5212\u3001\u76ee\u6807\u3001\u5b50\u4ee3\u7406\u3001\u5de5\u4f5c\u6d41<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e5\u5e38\u7f16\u7801\u4e0e\u590d\u6742\u4efb\u52a1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:88.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5168\u5de5\u5177\u96c6&#xff0c;\u6700\u901a\u7528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Code\u6a21\u5f0f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Standard\u5168\u90e8\u80fd\u529b &#043; Code Mode SDK<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u591a\u6b65\u9aa4\u5de5\u5177\u7f16\u6392<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:88.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u751f\u6210TypeScript\u7a0b\u5e8f\u7f16\u6392\u591a\u8f6e\u64cd\u4f5c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Minimal\u6a21\u5f0f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4ec5Shell &#043; str_replace_editor<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u57fa\u51c6\u6d4b\u8bd5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:88.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6700\u5c0f\u73af\u5883&#xff0c;\u4e24\u5de5\u5177\u7f16\u7801Agent<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Creator\u6a21\u5f0f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:180.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Standard\u5168\u90e8\u80fd\u529b &#043; \u8fd0\u884c\u65f6\u68c0\u67e5 &#043; \u63d2\u4ef6\u5b9e\u9a8c<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u81ea\u5b9a\u4e49Agent\u9884\u8bbe<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:88.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u68c0\u67e5\u8fd0\u884c\u65f6\u3001\u5185\u5b58\u4e2d\u6d4b\u8bd5Cordis\u63d2\u4ef6<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0\">Minimal\u6a21\u5f0f\u7684\u8bbe\u8ba1\u610f\u56fe\u5c24\u4e3a\u503c\u5f97\u5173\u6ce8\u3002\u5b83\u53ea\u4fdd\u7559\u4e24\u4e2a\u5de5\u5177\u2014\u2014\u6301\u4e45\u5316bash\u548cstr_replace_editor\u2014\u2014\u4e13\u95e8\u7528\u4e8e\u5728\u6700\u5c0f\u73af\u5883\u4e2d\u8bc4\u4f30\u6a21\u578b\u7684\u771f\u5b9e\u7f16\u7801\u80fd\u529b&#xff0c;\u6392\u9664\u4e30\u5bcc\u5de5\u5177\u96c6\u5e26\u6765\u7684\u6027\u80fd\u504f\u5dee\u3002\u8fd9\u5bf9\u6a21\u578b\u8bc4\u6d4b\u548c\u9009\u578b\u5177\u6709\u76f4\u63a5\u5de5\u7a0b\u4ef7\u503c\u3002<\/p>\n<h2 style=\"margin-left:0;margin-right:0\">\u56db\u3001\u4e8b\u4ef6\u6e90\u4f1a\u8bdd&#xff1a;\u6a21\u578b\u53ef\u89c1\u5373\u5df2\u8bb0\u5f55<\/h2>\n<h3 style=\"margin-left:0;margin-right:0\">4.1 Turn\u3001Step\u4e0eTool Call\u7684\u7cbe\u786e\u5b9a\u4e49<\/h3>\n<p style=\"margin-left:0;margin-right:0\">DeepSeek Harness\u5bf9\u4e00\u6b21\u4efb\u52a1\u7684\u5b9a\u4e49\u6781\u5176\u7cbe\u786e&#xff1a;\u4e00\u4e2astep\u662f\u4e00\u6b21\u6a21\u578b\u8bf7\u6c42\u53ca\u5176\u89e6\u53d1\u7684\u5de5\u5177\u8c03\u7528&#xff1b;\u4e00\u4e2aturn\u5305\u542b\u96f6\u4e2a\u6216\u591a\u4e2astep&#xff0c;\u76f4\u5230\u7cfb\u7edf\u4e0d\u518d\u6b20\u4efb\u4f55\u5f85\u5904\u7406\u5de5\u4f5c\u624d\u7ed3\u675f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7528\u6237\u8f93\u5165\u8fdb\u5165 inbox<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">turn\/start<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">agent\/pre-step&#xff1a;\u6539\u5199\u3001\u62d2\u7edd\u6216\u653e\u884c\u672c\u6b21\u8f93\u5165<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">step\/start \u2192 \u7ec4\u88c5 Prompt \u4e0e Tool Schema<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">agent\/request \u2192 llm\/stream \u2192 assistant\/message<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">tool\/call \u2192 \u5ba1\u6279\/\u5b88\u536b\/\u6267\u884c\/\u540e\u5904\u7406 \u2192 tool\/result<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">step\/end<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0 \u251c\u2500 \u8fd8\u6709\u5de5\u5177\u7ed3\u679c\u6216\u65b0\u8f93\u5165 \u2192 \u4e0b\u4e00\u4e2a step<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0 \u2514\u2500 \u6ca1\u6709\u5f85\u529e \u2192 turn\/end<\/p>\n<p style=\"margin-left:0;margin-right:0\">agent\/pre-step\u3001agent\/request\u3001llm\/stream\u548c\u5de5\u5177\u524d\u540e\u5904\u7406\u90fd\u662f\u53ef\u88ab\u63d2\u4ef6\u62e6\u622a\u7684waterfall\u4e8b\u4ef6\u3002\u63d2\u4ef6\u53ef\u4ee5\u8c03\u7528next()\u59d4\u6258\u7ed9\u4e0b\u6e38&#xff0c;\u4e5f\u53ef\u4ee5\u77ed\u8def\u5e76\u8fd4\u56de\u81ea\u5df1\u7684\u51b3\u7b56\u3002\u56e0\u6b64&#xff0c;\u538b\u7f29\u7b56\u7565\u3001\u8bf7\u6c42\u91cd\u5199\u3001\u6743\u9650\u68c0\u67e5\u548c\u9065\u6d4b\u4e0d\u9700\u8981\u4fee\u6539Agent Loop\u6e90\u7801\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0\">4.2 \u4e8b\u4ef6\u57df\u4e0e\u6301\u4e45\u5316\u7b56\u7565<\/h3>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:140.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u4e8b\u4ef6\u57df<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u662f\u5426\u6301\u4e45\u5316<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u7528\u9014<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:140.0pt\">\n<p style=\"margin-left:0;margin-right:0\">turn\/*\u3001step\/*<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u662f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u91cd\u5efa\u4efb\u52a1\u4e0e\u6b65\u9aa4\u8fb9\u754c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:140.0pt\">\n<p style=\"margin-left:0;margin-right:0\">user\/message\u3001assistant\/*<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u662f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6062\u590d\u6a21\u578b\u53ef\u89c1\u5bf9\u8bdd\u4e0e\u6d41\u5f0f\u8f93\u51fa<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:140.0pt\">\n<p style=\"margin-left:0;margin-right:0\">tool\/call\u3001tool\/result<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u662f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u91cd\u653e\u5de5\u5177\u8f68\u8ff9\u3001\u6821\u9a8c\u8c03\u7528\u7ed3\u679c\u914d\u5bf9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:140.0pt\">\n<p style=\"margin-left:0;margin-right:0\">agent\/*<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5426&#xff08;\u5b9e\u65f6&#xff09;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\">inbox\u3001\u72b6\u6001\u3001\u4e2d\u9014\u5f15\u5bfc\u3001\u91cd\u8bd5\u548c\u7eed\u8dd1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:140.0pt\">\n<p style=\"margin-left:0;margin-right:0\">fs\/*\u3001tools\/*\u7b49\u80fd\u529b\u4e8b\u4ef6<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6309\u4e8b\u4ef6\u5b9a\u4e49<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u628a\u7b56\u7565\u6302\u5728\u80fd\u529b\u8fb9\u754c\u4e0a<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0\">\u4e8b\u4ef6\u6e90\u6bd4\u6bcf\u8f6e\u628a\u6574\u4e2a\u4f1a\u8bddJSON\u8986\u76d6\u4e00\u6b21\u590d\u6742&#xff0c;\u4f46\u5b83\u89e3\u51b3\u4e86Agent\u957f\u7a0b\u8fd0\u884c\u4e2d\u6700\u96be\u7684\u53ef\u89c2\u6d4b\u6027\u95ee\u9898&#xff1a;\u754c\u9762\u4e0a\u770b\u5230\u7684\u8f93\u51fa\u3001\u6a21\u578b\u5b9e\u9645\u6536\u5230\u7684\u4e0a\u4e0b\u6587\u4e0e\u78c1\u76d8\u4e0a\u6062\u590d\u7684\u72b6\u6001&#xff0c;\u7406\u8bba\u4e0a\u6765\u81ea\u540c\u4e00\u4efd\u4e8b\u5b9e\u3002Resume\u3001fork\u3001search\u548creplay\u90fd\u64cd\u4f5c\u5728\u540c\u4e00\u6761\u4e8b\u4ef6\u6d41\u4e0a\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0\">4.3 \u4e0a\u4e0b\u6587\u538b\u7f29&#xff1a;\u539f\u59cb\u4e8b\u5b9e\u4e0d\u53d8&#xff0c;\u53ef\u89c1\u6295\u5f71\u53ef\u53d8<\/h3>\n<p style=\"margin-left:0;margin-right:0\">\u957f\u4efb\u52a1\u7ec8\u5c06\u78b0\u5230\u4e0a\u4e0b\u6587\u7a97\u53e3\u3002dsh-compaction-basic\u4e0d\u76f4\u63a5\u6539\u5199\u65e7\u65e5\u5fd7&#xff0c;\u800c\u662f\u8bb0\u5f55compaction\/start\u3001\u6458\u8981\u3001\u88ab\u906e\u853d\u8303\u56f4\u548ccompaction\/end&#xff0c;\u518d\u7528\u4e00\u6761\u65b0\u7684user\/message\u66ff\u6362\u6a21\u578b\u53ef\u89c1\u8868\u5c42\u7684\u67d0\u4e00\u6bb5\u3002\u5b8c\u6574\u5386\u53f2\u4ecd\u7136\u53ef\u7528\u4e8e\u5ba1\u8ba1&#xff0c;\u6a21\u578b\u5219\u770b\u5230\u538b\u7f29\u540e\u7684\u8868\u5c42\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u538b\u7f29\u7ef4\u5ea6<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u4f20\u7edf\u505a\u6cd5<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:130.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">dsh<\/span><span style=\"color:black\">\u505a\u6cd5<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:128.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5de5\u7a0b\u4f18\u52bf<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5386\u53f2\u4fdd\u5b58<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8986\u76d6\u65e7messages<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:130.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4ec5\u8ffd\u52a0compaction\u4e8b\u4ef6<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:128.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u539f\u59cb\u4e8b\u5b9e\u53ef\u5ba1\u8ba1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u53ef\u89c1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u88c1\u526a\u540e\u7684\u5217\u8868<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:130.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u538b\u7f29\u540e\u7684\u8868\u5c42\u6295\u5f71<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:128.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0a\u4e0b\u6587\u7a97\u53e3\u53ef\u63a7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6062\u590d\u65b9\u5f0f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4ece\u6700\u7ec8\u72b6\u6001\u91cd\u542f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:130.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4ece\u4e8b\u4ef6\u6d41\u4efb\u610f\u70b9fork<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:128.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u652f\u6301\u5206\u652f\u63a2\u7d22<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5de5\u5177\u7ed3\u679c<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u76f4\u63a5\u622a\u65ad<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:130.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u53ef\u9009\u526a\u679d\u8fc7\u5927\u7ed3\u679c<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:128.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u51cf\u5c11\u4fe1\u606f\u635f\u5931<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"margin-left:0;margin-right:0\">\u4e94\u3001\u5de5\u5177\u5b89\u5168\u6d41\u6c34\u7ebf&#xff1a;\u4ecetool\/call\u5230tool\/result<\/h2>\n<h3 style=\"margin-left:0;margin-right:0\">5.1 \u516d\u5c42\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf<\/h3>\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u751f\u6210\u4e00\u4e2atool call\u540e&#xff0c;DeepSeek Harness\u4e0d\u4f1a\u7acb\u5373\u8c03\u7528\u5de5\u5177\u51fd\u6570\u3002\u4e00\u6b21\u8c03\u7528\u4f1a\u901a\u8fc7\u524d\u7f6e\u7b56\u7565\u3001\u5355\u8c03\u5b88\u536b\u3001\u5ba1\u6279\u3001\u6267\u884c\u5305\u88c5\u3001\u540e\u7f6e\u91cd\u5199\u548c\u7ed3\u679c\u5f52\u4e00\u5316&#xff0c;\u6700\u540e\u624d\u4f5c\u4e3a\u552f\u4e00\u6a21\u578b\u53ef\u89c1\u7ed3\u679c\u5199\u5165\u4f1a\u8bdd\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">tool\/call \u5df2\u8bb0\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">tools\/pre-execute<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0 \u251c\u2500 deny\u00a0\u00a0\u00a0 \u2192 \u8df3\u8fc7\u5de5\u5177\u4e3b\u4f53<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0 \u251c\u2500 ask\u00a0\u00a0\u00a0\u00a0 \u2192 \u4e00\u6b21\u6027\u7528\u6237\u5ba1\u6279<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0 \u2514\u2500 allow<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5355\u8c03\u5b88\u536b&#xff1a;\u53ea\u80fd\u52a0\u4e25&#xff0c;\u4e0d\u80fd\u7ed5\u8fc7\u65e2\u6709\u62d2\u7edd<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">tools\/execute&#xff1a;\u8d85\u65f6\u3001\u91cd\u8bd5\u3001\u6307\u6807 \u2192 \u5de5\u5177\u4e3b\u4f53<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">tools\/post-execute&#xff1a;\u63a5\u53d7\u3001\u5c4f\u853d\u3001\u66ff\u6362\u6216\u9644\u52a0\u4e0a\u4e0b\u6587<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u7ed3\u679c\u5e8f\u5217\u5316\u4e0e\u4e0d\u53d8\u5f0f\u68c0\u67e5<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0 \u2193<\/p>\n<p style=\"margin-left:0;margin-right:0\">tool\/result \u5df2\u8bb0\u5f55<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u5355\u8c03\u5b88\u536b\u662f\u4e00\u4e2a\u5173\u952e\u8bbe\u8ba1&#xff1a;\u591a\u4e2a\u7b56\u7565\u53e0\u52a0\u65f6&#xff0c;\u540e\u52a0\u7684\u63d2\u4ef6\u4e0d\u5e94\u628a\u524d\u9762\u7684\u62d2\u7edd\u91cd\u65b0\u6539\u6210\u5141\u8bb8\u3002\u5426\u5219&#xff0c;\u4e00\u4e2a\u8bbe\u7f6e\u987a\u5e8f\u5c31\u53ef\u80fd\u628a\u5b89\u5168\u7b56\u7565\u53d8\u6210\u5076\u7136\u884c\u4e3a\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0\">5.2 \u5b89\u5168\u5c42\u5bf9\u6bd4\u77e9\u9635<\/h3>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5b89\u5168\u5c42<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u89e3\u51b3\u7684\u95ee\u9898<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u4ecd\u9700\u6ce8\u610f\u7684\u98ce\u9669<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Tool Schema<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u53c2\u6570\u7c7b\u578b\u4e0e\u7ed3\u679c\u683c\u5f0f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Schema\u6b63\u786e\u4e0d\u7b49\u4e8e\u64cd\u4f5c\u5b89\u5168<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Approval<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9ad8\u98ce\u9669\u52a8\u4f5c\u662f\u5426\u7ecf\u4eba\u786e\u8ba4<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9891\u7e41\u5f39\u7a97\u4f1a\u9020\u6210\u5ba1\u6279\u75b2\u52b3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Guard&#xff08;\u5355\u8c03\u5b88\u536b&#xff09;<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7ec4\u7ec7\u7b56\u7565\u4e0e\u7ec8\u6001\u62d2\u7edd<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9700\u6d4b\u8bd5\u63d2\u4ef6\u7ec4\u5408\u540e\u7684\u5b9e\u9645\u884c\u4e3a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Sandbox<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9650\u5236\u8fdb\u7a0b\u5bf9\u6587\u4ef6\u548c\u7cfb\u7edf\u7684\u5f71\u54cd<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5e73\u53f0\u540e\u7aef\u7684\u5f3a\u5236\u80fd\u529b\u5e76\u4e0d\u5b8c\u5168\u76f8\u540c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Event Log<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8ffd\u8e2a\u6a21\u578b\u8bf4\u4e86\u4ec0\u4e48\u3001\u8c03\u4e86\u4ec0\u4e48<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u53ef\u8ffd\u8d23\u4e0d\u7b49\u4e8e\u4e8b\u524d\u9632\u62a4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Result Normalization<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9632\u6b62\u5f02\u5e38\u8f93\u51fa\u6c61\u67d3\u4e0a\u4e0b\u6587<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:188.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5f52\u4e00\u5316\u89c4\u5219\u9700\u4e0e\u4e1a\u52a1\u5bf9\u9f50<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"margin-left:0;margin-right:0\">5.3 \u6c99\u7bb1\u5931\u8d25\u5373\u5173\u95ed\u539f\u5219<\/h3>\n<p style=\"margin-left:0;margin-right:0\">Harness\u7684\u6c99\u7bb1\u5c42\u628a\u7b56\u7565\u548c\u540e\u7aef\u5206\u5f00\u3002\u7b56\u7565\u63cf\u8ff0\u5de5\u4f5c\u533a\u8fb9\u754c\u548c\u6267\u884c\u6a21\u5f0f&#xff0c;\u540e\u7aef\u5219\u628a\u547d\u4ee4\u5305\u88c5\u4e3a\u5177\u4f53\u5e73\u53f0\u7684\u53d7\u9650\u8fdb\u7a0b\u3002\u5bf9\u4e8e\u58f0\u660e\u4e3a\u53d7\u9650\u7684\u6267\u884c&#xff0c;\u5982\u679c\u6ca1\u6709\u53ef\u7528\u540e\u7aef&#xff0c;\u7cfb\u7edf\u5fc5\u987b\u62a5SANDBOX_UNAVAILABLE&#xff0c;\u4e0d\u5141\u8bb8\u9759\u9ed8\u9000\u5316\u4e3a\u65e0\u6c99\u7bb1\u8fd0\u884c\u3002\u8fd9\u662f\u5b89\u5168\u8bbe\u8ba1\u4e2d\u7684\u5931\u8d25\u5b89\u5168\u539f\u5219\u3002<\/p>\n<h2 style=\"margin-left:0;margin-right:0\">\u516d\u3001\u591aAgent\u7f16\u6392&#xff1a;Skills\u3001Subagent\u4e0eWorkflow<\/h2>\n<h3 style=\"margin-left:0;margin-right:0\">6.1 Skills&#xff1a;\u6309\u9700\u52a0\u8f7d\u7684\u8fc7\u7a0b\u77e5\u8bc6<\/h3>\n<p style=\"margin-left:0;margin-right:0\">dsh\u652f\u6301\u4ece\u9879\u76ee\u7ea7.dsh\/skills\u3001.agents\/skills\u3001\u7528\u6237\u76ee\u5f55\u3001\u81ea\u5b9a\u4e49\u76ee\u5f55\u548c\u7ed1\u5b9a\u8d44\u6e90\u4e2d\u53d1\u73b0Skill\u3002\u6a21\u578b\u521d\u59cb\u53ea\u770b\u5230\u540d\u79f0\u548c\u63cf\u8ff0&#xff0c;\u9700\u8981\u65f6\u518d\u8bfb\u53d6\u5b8c\u6574SKILL.md&#xff0c;\u907f\u514d\u628a\u6240\u6709\u64cd\u4f5c\u624b\u518c\u4e00\u6b21\u6027\u585e\u8fdb\u4e0a\u4e0b\u6587\u3002\u9879\u76ee\u7ea7Skill\u53ef\u8986\u76d6\u7528\u6237\u7ea7\u540c\u540dSkill&#xff0c;\u6bcf\u4e2a\u5019\u9009\u9879\u90fd\u8bb0\u5f55\u6765\u6e90\u548cProvider&#xff0c;\u76ee\u5f55\u53d8\u5316\u4f1a\u4f7f\u7f13\u5b58\u5931\u6548\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">Skill<\/span><span style=\"color:black\">\u7279\u5f81<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5de5\u7a0b\u4ef7\u503c<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5bf9\u6bd4\u4f20\u7edf<\/span><span style=\"color:black\">Prompt<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6309\u9700\u52a0\u8f7d<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u521d\u59cb\u53ea\u66b4\u9732\u540d\u79f0\u548c\u63cf\u8ff0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u907f\u514d\u4e0a\u4e0b\u6587\u81a8\u80c0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5206\u5c42\u8986\u76d6<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9879\u76ee\u7ea7\u8986\u76d6\u7528\u6237\u7ea7\u540c\u540dSkill<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u652f\u6301\u73af\u5883\u5dee\u5f02\u5316<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6765\u6e90\u8ffd\u8e2a<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6bcf\u4e2a\u5019\u9009\u9879\u8bb0\u5f55Provider<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u53ef\u5ba1\u8ba1\u3001\u53ef\u56de\u6eaf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7f13\u5b58\u5931\u6548<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u76ee\u5f55\u53d8\u5316\u81ea\u52a8\u5237\u65b0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:208.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4fdd\u8bc1Skill\u65f6\u6548\u6027<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"margin-left:0;margin-right:0\">6.2 Subagent&#xff1a;\u591a\u79cd\u540e\u7aef\u7684\u5b50\u4ee3\u7406\u8fd0\u884c\u65f6<\/h3>\n<p style=\"margin-left:0;margin-right:0\">ctx.subagents\u540e\u9762\u53ef\u540c\u65f6\u6ce8\u518c\u591a\u79cdProvider\u3002\u5b98\u65b9\u4ee3\u7801\u5305\u5df2\u5305\u542b\u8fdb\u7a0b\u5185spawn\u3001\u7ee7\u627f\u7236\u5386\u53f2\u7684fork\u3001ACP\u3001Codex\u3001Claude Code\u548cdsh SDK\u7b49\u540e\u7aef\u3002\u8fd9\u610f\u5473\u7740\u534f\u8c03\u8005\u53ef\u4ee5\u628a\u4efb\u52a1\u4ea4\u7ed9\u53e6\u4e00\u4e2adsh Agent&#xff0c;\u4e5f\u53ef\u4ee5\u628aCodex\u6216Claude Code\u5f53\u4f5c\u5916\u90e8\u5b50\u4ee3\u7406\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5b50\u4ee3\u7406\u80fd\u529b<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:318.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5de5\u7a0b\u4ef7\u503c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e00\u6b21\u6027\u5b50\u4ee3\u7406<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:318.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u628a\u8fb9\u754c\u6e05\u6670\u7684\u7814\u7a76\u3001\u5b9e\u73b0\u6216\u5ba1\u67e5\u4efb\u52a1\u72ec\u7acb\u6267\u884c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u53ef\u7ee7\u7eed\u5b50\u4ee3\u7406<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:318.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4fdd\u7559\u5b50\u4f1a\u8bddID&#xff0c;\u53ef\u591a\u8f6e\u8ffd\u52a0\u6d88\u606f\u6216\u51b7\u6062\u590d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Persona\u4e0eTool Filter<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:318.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9650\u5b9a\u5b50\u4ee3\u7406\u89d2\u8272\u4e0e\u53ef\u89c1\u5de5\u5177&#xff0c;\u51cf\u5c11\u8bef\u7528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7ed3\u6784\u5316\u8f93\u51fa<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:318.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8ba9\u4e0a\u5c42\u7f16\u6392\u83b7\u53d6\u7a33\u5b9aJSON&#xff0c;\u800c\u975e\u4ece\u81ea\u7136\u8bed\u8a00\u4e2d\u731c\u6d4b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u76f4\u63a5\u7236\u7ea7\u6388\u6743<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:318.0pt\">\n<p style=\"margin-left:0;margin-right:0\">followup\u3001interrupt\u548creport\u56f4\u7ed5\u6301\u4e45\u5316\u8c31\u7cfb\u6821\u9a8c<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"margin-left:0;margin-right:0\">6.3 Workflow&#xff1a;\u6a21\u578b\u751f\u6210\u7684\u53d7\u9650\u7f16\u6392\u7a0b\u5e8f<\/h3>\n<p style=\"margin-left:0;margin-right:0\">Workflow seam\u5141\u8bb8\u6a21\u578b\u751f\u6210JavaScript\u7f16\u6392\u811a\u672c&#xff0c;\u518d\u7531Worker Thread\u4e2d\u7684VM\u6267\u884c\u3002\u811a\u672c\u53ef\u4e32\u884c\u6216\u5e76\u884c\u542f\u52a8\u5b50\u4ee3\u7406&#xff0c;\u4e0a\u62a5\u9636\u6bb5\u548c\u8fdb\u5ea6&#xff0c;\u5e76\u8fd4\u56de\u7eafJSON\u7ed3\u679c\u3002\u5f15\u64ce\u53ef\u9650\u5236\u603b\u5b50\u4ee3\u7406\u6570&#xff0c;\u53d6\u6d88\u540e\u4f1a\u5728\u6709\u754c\u5bbd\u9650\u671f\u5185\u7ec8\u6b62\u811a\u672c\u5e76\u7b49\u5f85child\u6e05\u7406\u3002\u6838\u5fc3\u4e0d\u662f\u8ba9\u6a21\u578b\u968f\u4fbf\u5199\u6bb5JS&#xff0c;\u800c\u662f\u628a\u590d\u6742\u7f16\u6392\u4ece\u4e00\u8fde\u4e32\u81ea\u7136\u8bed\u8a00tool call\u8f6c\u6362\u4e3a\u53ef\u8868\u8fbe\u5e76\u884c\u3001\u7ba1\u9053\u548c\u9519\u8bef\u5904\u7406\u7684\u7a0b\u5e8f\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0\">6.4 MCP\u3001ACP\u4e0eLSP\u7684\u8fb9\u754c\u5212\u5206<\/h3>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u534f\u8bae<\/span><span style=\"color:black\">\/<\/span><span style=\"color:black\">\u80fd\u529b<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5728<\/span><span style=\"color:black\">dsh<\/span><span style=\"color:black\">\u4e2d\u7684\u4f4d\u7f6e<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:218.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u89e3\u51b3\u4ec0\u4e48\u8fb9\u754c<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">MCP<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u63a5\u5165\u5916\u90e8\u5de5\u5177\u4e0e\u8d44\u6e90<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:218.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6269\u5927Agent\u80fd\u505a\u4ec0\u4e48<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">ACP<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8fde\u63a5\u5916\u90e8Agent\u8fd0\u884c\u65f6<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:218.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u53ef\u4f5c\u4e3a\u5b50\u4ee3\u7406\u4f20\u8f93<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">LSP<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4ece\u7f16\u7a0b\u8bed\u8a00\u670d\u52a1\u5668\u83b7\u53d6\u4fe1\u606f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:218.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5b9a\u4e49\u3001\u5f15\u7528\u548c\u8bca\u65ad<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Skill<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6309\u9700\u52a0\u8f7d\u4efb\u52a1\u65b9\u6cd5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:218.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9886\u57df\u77e5\u8bc6\u548c\u89c4\u5219<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Plugin<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6539\u53d8Harness\u672c\u8eab<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:218.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u670d\u52a1\u3001\u7b56\u7565\u3001\u5de5\u5177\u6216UI<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"margin-left:0;margin-right:0\">\u4e03\u3001Python\u5b9e\u6218&#xff1a;dsh\u4f1a\u8bdd\u65e5\u5fd7\u89e3\u6790\u4e0eMCP\u5de5\u5177\u670d\u52a1<\/h2>\n<p style=\"margin-left:0;margin-right:0\">DeepSeek Harness\u7684\u4f1a\u8bdd\u65e5\u5fd7\u91c7\u7528\u4ec5\u8ffd\u52a0\u7684JSONL\u683c\u5f0f&#xff0c;\u6bcf\u4e2aSessionEvent\u90fd\u662f\u4e00\u6761\u72ec\u7acbJSON\u8bb0\u5f55\u3002\u4ee5\u4e0bPython\u4ee3\u7801\u5b9e\u73b0\u4e86dsh\u4f1a\u8bdd\u65e5\u5fd7\u7684\u89e3\u6790\u3001\u5de5\u5177\u8c03\u7528\u8f68\u8ff9\u63d0\u53d6\u548cToken\u6d88\u8017\u5206\u6790&#xff0c;\u53ef\u7528\u4e8eCI\/CD\u6d41\u6c34\u7ebf\u4e2d\u7684Agent\u884c\u4e3a\u5ba1\u8ba1\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0\">7.1 dsh\u4f1a\u8bdd\u65e5\u5fd7\u89e3\u6790\u5668<\/h3>\n<p style=\"margin-left:0;margin-right:0\">import json<\/p>\n<p style=\"margin-left:0;margin-right:0\">from pathlib import Path<\/p>\n<p style=\"margin-left:0;margin-right:0\">from collections import defaultdict<\/p>\n<p style=\"margin-left:0;margin-right:0\">from dataclasses import dataclass, field<\/p>\n<p style=\"margin-left:0;margin-right:0\">from typing import Optional<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">&#064;dataclass<\/p>\n<p style=\"margin-left:0;margin-right:0\">class ToolCallRecord:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 tool_name: str<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 step_index: int<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 turn_index: int<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 duration_ms: Optional[float] &#061; None<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 success: bool &#061; True<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 input_summary: str &#061; &#034;&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 output_summary: str &#061; &#034;&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">&#064;dataclass<\/p>\n<p style=\"margin-left:0;margin-right:0\">class SessionAnalysis:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 total_turns: int &#061; 0<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 total_steps: int &#061; 0<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 total_tool_calls: int &#061; 0<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 tool_calls: list &#061; field(default_factory&#061;list)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 compaction_events: int &#061; 0<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 error_count: int &#061; 0<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 token_usage: dict &#061; field(default_factory&#061;lambda: defaultdict(int))<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">class DSHSessionParser:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 &#034;&#034;&#034;\u89e3\u6790dsh\u4ec5\u8ffd\u52a0\u4f1a\u8bdd\u65e5\u5fd7(JSONL\u683c\u5f0f)\u7684\u89e3\u6790\u5668&#034;&#034;&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 EVENT_TYPES &#061; {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;turn\/start&#034;: &#034;turn&#034;, &#034;turn\/end&#034;: &#034;turn&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;step\/start&#034;: &#034;step&#034;, &#034;step\/end&#034;: &#034;step&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;tool\/call&#034;: &#034;tool&#034;, &#034;tool\/result&#034;: &#034;tool&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;compaction\/start&#034;: &#034;compaction&#034;, &#034;compaction\/end&#034;: &#034;compaction&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;assistant\/message&#034;: &#034;message&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;user\/message&#034;: &#034;message&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 }<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 def __init__(self, log_path: str):<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.log_path &#061; Path(log_path)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 self.events &#061; self._load_events()<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 def _load_events(self) -&gt; list:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 events &#061; []<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 with open(self.log_path, &#034;r&#034;, encoding&#061;&#034;utf-8&#034;) as f:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for line in f:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 line &#061; line.strip()<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if line:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 events.append(json.loads(line))<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return events<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 def analyze(self) -&gt; SessionAnalysis:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 analysis &#061; SessionAnalysis()<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 turn_idx &#061; 0<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 step_idx &#061; 0<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pending_tool_calls &#061; {}<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for event in self.events:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 etype &#061; event.get(&#034;type&#034;, &#034;&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 category &#061; self.EVENT_TYPES.get(etype, &#034;&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if etype &#061;&#061; &#034;turn\/start&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 turn_idx &#043;&#061; 1<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif etype &#061;&#061; &#034;step\/start&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 step_idx &#043;&#061; 1<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif etype &#061;&#061; &#034;tool\/call&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tool_name &#061; event.get(&#034;tool&#034;, &#034;unknown&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 call_id &#061; event.get(&#034;callId&#034;, str(len(pending_tool_calls)))<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pending_tool_calls[call_id] &#061; ToolCallRecord(<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 tool_name&#061;tool_name,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 step_index&#061;step_idx,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 turn_index&#061;turn_idx,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 input_summary&#061;str(event.get(&#034;input&#034;, &#034;&#034;))[:200],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 )<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif etype &#061;&#061; &#034;tool\/result&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 call_id &#061; event.get(&#034;callId&#034;, &#034;&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 record &#061; pending_tool_calls.pop(call_id, None)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if record:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 record.output_summary &#061; str(event.get(&#034;output&#034;, &#034;&#034;))[:200]<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 record.success &#061; not event.get(&#034;error&#034;, False)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 record.duration_ms &#061; event.get(&#034;durationMs&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 analysis.tool_calls.append(record)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif etype &#061;&#061; &#034;compaction\/start&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 analysis.compaction_events &#043;&#061; 1<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif etype &#061;&#061; &#034;assistant\/message&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 usage &#061; event.get(&#034;usage&#034;, {})<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for key in [&#034;prompt_tokens&#034;, &#034;completion_tokens&#034;]:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if key in usage:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 analysis.token_usage[key] &#043;&#061; usage[key]<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 analysis.total_turns &#061; turn_idx<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 analysis.total_steps &#061; step_idx<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 analysis.total_tool_calls &#061; len(analysis.tool_calls)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 analysis.error_count &#061; sum(1 for tc in analysis.tool_calls if not tc.success)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return analysis<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 def generate_report(self, analysis: SessionAnalysis) -&gt; str:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines &#061; [&#034;&#061;&#034; * 60, &#034;DeepSeek Harness Session Analysis Report&#034;, &#034;&#061;&#034; * 60]<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(f&#034;Total Turns:\u00a0\u00a0\u00a0\u00a0\u00a0 {analysis.total_turns}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(f&#034;Total Steps:\u00a0\u00a0\u00a0\u00a0\u00a0 {analysis.total_steps}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(f&#034;Tool Calls:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {analysis.total_tool_calls}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(f&#034;Failed Calls:\u00a0\u00a0\u00a0\u00a0 {analysis.error_count}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(f&#034;Compaction Events: {analysis.compaction_events}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(&#034;&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(&#034;Token Usage:&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for key, val in analysis.token_usage.items():<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(f&#034;\u00a0 {key}: {val}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(&#034;&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(&#034;Tool Call Trace:&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for tc in analysis.tool_calls:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 status &#061; &#034;OK&#034; if tc.success else &#034;FAIL&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 lines.append(f&#034;\u00a0 [T{tc.turn_index}\/S{tc.step_index}] {tc.tool_name} ({status})&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return &#034;\\\\n&#034;.join(lines)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u8fd9\u6bb5\u4ee3\u7801\u5c06dsh\u7684JSONL\u4f1a\u8bdd\u65e5\u5fd7\u89e3\u6790\u4e3a\u7ed3\u6784\u5316\u7684SessionAnalysis\u5bf9\u8c61&#xff0c;\u652f\u6301\u5de5\u5177\u8c03\u7528\u8f68\u8ff9\u8ffd\u8e2a\u3001Token\u6d88\u8017\u7edf\u8ba1\u548c\u538b\u7f29\u4e8b\u4ef6\u8ba1\u6570\u3002\u5728CI\/CD\u6d41\u6c34\u7ebf\u4e2d&#xff0c;\u53ef\u7528\u5b83\u751f\u6210Agent\u884c\u4e3a\u5ba1\u8ba1\u62a5\u544a&#xff0c;\u5b9a\u4f4d\u5931\u8d25\u7684\u5de5\u5177\u8c03\u7528\u548c\u5f02\u5e38\u7684Token\u6d88\u8017\u6a21\u5f0f\u3002<\/p>\n<h3 style=\"margin-left:0;margin-right:0\">7.2 Python MCP\u5de5\u5177\u670d\u52a1&#xff1a;\u4e3adsh\u6269\u5c55\u81ea\u5b9a\u4e49\u5de5\u5177<\/h3>\n<p style=\"margin-left:0;margin-right:0\">dsh\u901a\u8fc7MCP\u534f\u8bae\u63a5\u5165\u5916\u90e8\u5de5\u5177\u3002\u4ee5\u4e0bPython\u4ee3\u7801\u5b9e\u73b0\u4e86\u4e00\u4e2aMCP\u5de5\u5177\u670d\u52a1&#xff0c;\u4e3adsh\u63d0\u4f9b\u4ee3\u7801\u8d28\u91cf\u68c0\u67e5\u80fd\u529b&#xff0c;\u5c55\u793a\u4e86\u5982\u4f55\u7528Python\u4e3adsh\u6269\u5c55\u81ea\u5b9a\u4e49\u5de5\u5177\u96c6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">import asyncio<\/p>\n<p style=\"margin-left:0;margin-right:0\">import json<\/p>\n<p style=\"margin-left:0;margin-right:0\">import subprocess<\/p>\n<p style=\"margin-left:0;margin-right:0\">from pathlib import Path<\/p>\n<p style=\"margin-left:0;margin-right:0\">from typing import Any<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">class MCPToolServer:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 &#034;&#034;&#034;\u4e3aDeepSeek Harness\u63d0\u4f9bMCP\u534f\u8bae\u5de5\u5177\u670d\u52a1\u7684Python\u5b9e\u73b0&#034;&#034;&#034;<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 TOOLS_SCHEMA &#061; {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;check_code_quality&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;description&#034;: &#034;Run linter and type checker on a Python file&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;parameters&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;type&#034;: &#034;object&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;properties&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;file_path&#034;: {&#034;type&#034;: &#034;string&#034;, &#034;description&#034;: &#034;Path to Python file&#034;},<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;checks&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;type&#034;: &#034;array&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;items&#034;: {&#034;type&#034;: &#034;string&#034;, &#034;enum&#034;: [&#034;ruff&#034;, &#034;mypy&#034;, &#034;pylint&#034;]},<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;default&#034;: [&#034;ruff&#034;, &#034;mypy&#034;],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;required&#034;: [&#034;file_path&#034;],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;run_test_suite&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;description&#034;: &#034;Execute pytest with coverage for a directory&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;parameters&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;type&#034;: &#034;object&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;properties&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;test_dir&#034;: {&#034;type&#034;: &#034;string&#034;, &#034;description&#034;: &#034;Test directory path&#034;},<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;coverage&#034;: {&#034;type&#034;: &#034;boolean&#034;, &#034;default&#034;: True},<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;parallel&#034;: {&#034;type&#034;: &#034;boolean&#034;, &#034;default&#034;: False},<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;required&#034;: [&#034;test_dir&#034;],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;analyze_dependencies&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;description&#034;: &#034;Parse import statements and build dependency graph&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;parameters&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;type&#034;: &#034;object&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;properties&#034;: {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;root_dir&#034;: {&#034;type&#034;: &#034;string&#034;, &#034;description&#034;: &#034;Project root directory&#034;},<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;required&#034;: [&#034;root_dir&#034;],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 },<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 }<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 async def handle_tool_call(self, tool_name: str, args: dict) -&gt; dict:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if tool_name &#061;&#061; &#034;check_code_quality&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return await self._check_quality(args)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif tool_name &#061;&#061; &#034;run_test_suite&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return await self._run_tests(args)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 elif tool_name &#061;&#061; &#034;analyze_dependencies&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return await self._analyze_deps(args)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return {&#034;error&#034;: f&#034;Unknown tool: {tool_name}&#034;}<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 async def _check_quality(self, args: dict) -&gt; dict:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 file_path &#061; Path(args[&#034;file_path&#034;])<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 checks &#061; args.get(&#034;checks&#034;, [&#034;ruff&#034;, &#034;mypy&#034;])<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 results &#061; {}<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for checker in checks:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cmd &#061; self._build_checker_cmd(checker, file_path)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 proc &#061; await asyncio.create_subprocess_exec(<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 *cmd, stdout&#061;asyncio.subprocess.PIPE, stderr&#061;asyncio.subprocess.PIPE<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 )<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 stdout, stderr &#061; await proc.communicate()<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 results[checker] &#061; {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;exit_code&#034;: proc.returncode,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;output&#034;: stdout.decode()[:2000],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;errors&#034;: stderr.decode()[:2000] if stderr else &#034;&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return {&#034;file&#034;: str(file_path), &#034;results&#034;: results}<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 async def _run_tests(self, args: dict) -&gt; dict:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 test_dir &#061; args[&#034;test_dir&#034;]<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cmd &#061; [&#034;python&#034;, &#034;-m&#034;, &#034;pytest&#034;, test_dir]<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if args.get(&#034;coverage&#034;):<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cmd.extend([&#034;&#8211;cov&#034;, &#034;&#8211;cov-report&#061;term-missing&#034;])<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if args.get(&#034;parallel&#034;):<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cmd.append(&#034;-n&#034;, )<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 proc &#061; await asyncio.create_subprocess_exec(<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 *cmd, stdout&#061;asyncio.subprocess.PIPE, stderr&#061;asyncio.subprocess.PIPE<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 )<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 stdout, stderr &#061; await proc.communicate()<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;exit_code&#034;: proc.returncode,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;summary&#034;: stdout.decode()[-1000:],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;errors&#034;: stderr.decode()[:1000] if stderr else &#034;&#034;,<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 async def _analyze_deps(self, args: dict) -&gt; dict:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 root &#061; Path(args[&#034;root_dir&#034;])<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 graph &#061; {}<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for py_file in root.rglob(&#034;*.py&#034;):<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 imports &#061; self._extract_imports(py_file)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if imports:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 graph[str(py_file.relative_to(root))] &#061; imports<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return {&#034;dependency_graph&#034;: graph, &#034;total_files&#034;: len(graph)}<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 def _build_checker_cmd(self, checker: str, file_path: Path) -&gt; list:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 commands &#061; {<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;ruff&#034;: [&#034;ruff&#034;, &#034;check&#034;, str(file_path)],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;mypy&#034;: [&#034;mypy&#034;, str(file_path)],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#034;pylint&#034;: [&#034;pylint&#034;, str(file_path)],<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return commands.get(checker, [])<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 def _extract_imports(self, file_path: Path) -&gt; list:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 imports &#061; []<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 with open(file_path, &#034;r&#034;, encoding&#061;&#034;utf-8&#034;) as f:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for line in f:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 line &#061; line.strip()<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if line.startswith(&#034;import &#034;) or line.startswith(&#034;from &#034;):<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 imports.append(line)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return imports<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0\">if __name__ &#061;&#061; &#034;__main__&#034;:<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 server &#061; MCPToolServer()<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 print(&#034;MCP Tool Server ready for dsh integration&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u00a0\u00a0\u00a0 print(f&#034;Available tools: {list(server.TOOLS_SCHEMA.keys())}&#034;)<\/p>\n<p style=\"margin-left:0;margin-right:0\">\u8fd9\u4e2aMCP\u5de5\u5177\u670d\u52a1\u5b9e\u73b0\u4e86\u4ee3\u7801\u8d28\u91cf\u68c0\u67e5\u3001\u6d4b\u8bd5\u5957\u4ef6\u6267\u884c\u548c\u4f9d\u8d56\u5206\u6790\u4e09\u4e2a\u5de5\u5177\u3002dsh\u901a\u8fc7MCP\u534f\u8bae\u63a5\u5165\u540e&#xff0c;\u6a21\u578b\u53ef\u4ee5\u5728Agent Loop\u4e2d\u76f4\u63a5\u8c03\u7528\u8fd9\u4e9b\u5de5\u5177&#xff0c;\u5b9e\u73b0\u7f16\u7801\u8d28\u91cf\u95e8\u7981\u7684\u81ea\u52a8\u5316\u3002\u5173\u952e\u8bbe\u8ba1\u662f\u5c06\u5de5\u5177\u7684\u6267\u884c\u903b\u8f91\u4e0eSchema\u58f0\u660e\u5206\u79bb&#xff0c;\u4fbf\u4e8e\u5728dsh\u7684tools\/pre-execute\u548ctools\/post-execute\u6d41\u6c34\u7ebf\u4e2d\u63d2\u5165\u5b89\u5168\u7b56\u7565\u3002<\/p>\n<h2 style=\"margin-left:0;margin-right:0\">\u516b\u3001\u6a2a\u5411\u5bf9\u6bd4\u77e9\u9635&#xff1a;dsh vs Claude Code vs Codex vs OpenCode<\/h2>\n<h3 style=\"margin-left:0;margin-right:0\">8.1 \u67b6\u6784\u7ef4\u5ea6\u5bf9\u6bd4<\/h3>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5bf9\u6bd4\u7ef4\u5ea6<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">DeepSeek Harness (dsh)<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">Claude Code<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">Codex CLI<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">OpenCode<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5f00\u6e90\u8bb8\u53ef<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">MIT<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u00a0proprietary<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">MIT<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Apache 2.0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u67b6\u6784\u54f2\u5b66<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e00\u5207\u7686\u63d2\u4ef6<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e00\u4f53\u5316\u8bbe\u8ba1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5de5\u5177\u94fe\u96c6\u6210<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u5757\u5316\u8bbe\u8ba1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5fae\u5185\u6838<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Cordis<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u63d2\u4ef6\u4f53\u7cfb<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5168\u80fd\u529b\u53ef\u66ff\u6362<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">MCP\u5de5\u5177\u6269\u5c55<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u914d\u7f6e\u6269\u5c55<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u63d2\u4ef6\u7cfb\u7edf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f1a\u8bdd\u6a21\u578b<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e8b\u4ef6\u6e90(append-only)<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6d88\u606f\u5217\u8868<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6d88\u606f\u5217\u8868<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6d88\u606f\u5217\u8868<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0a\u4e0b\u6587\u538b\u7f29<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0d\u6539\u539f\u59cb\u65e5\u5fd7<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u622a\u65ad\u5386\u53f2<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u622a\u65ad\u5386\u53f2<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6458\u8981\u66ff\u6362<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6c99\u7bb1\u7b56\u7565<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5931\u8d25\u5373\u5173\u95ed<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5185\u7f6e\u9650\u5236<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Docker\u9694\u79bb<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8fdb\u7a0b\u9650\u5236<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5b50\u4ee3\u7406<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u591a\u540e\u7aef(dsh\/Codex\/Claude)<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0d\u652f\u6301<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0d\u652f\u6301<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6709\u9650\u652f\u6301<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u7ed1\u5b9a<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0d\u7ed1\u5b9a(\u591aprovider)<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7ed1\u5b9aAnthropic<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7ed1\u5b9aOpenAI<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u591aprovider<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:90.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8bed\u8a00\u6784\u6210<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">TypeScript 97.1%<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">TypeScript<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Rust<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:108.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Go<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"margin-left:0;margin-right:0\">8.2 \u80fd\u529b\u7ef4\u5ea6\u5bf9\u6bd4<\/h3>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u80fd\u529b\u7ef4\u5ea6<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">dsh<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">Claude Code<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">Codex<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">OpenCode<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8fd0\u884c\u6a21\u5f0f\u6570<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">4\u79cd(Standard\/Code\/Minimal\/Creator)<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">1\u79cd<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">1\u79cd<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">2\u79cd<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Workflow\u7f16\u6392<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u751f\u6210JS\u811a\u672c<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Skills\u6309\u9700\u52a0\u8f7d<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u652f\u6301(\u5206\u5c42\u8986\u76d6)<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6709\u9650<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f1a\u8bdd\u56de\u653e<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e8b\u4ef6\u6d41fork\/replay<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u51ed\u636e\u7ba1\u7406<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8131\u654f\u5b58\u50a8&#043;\u5f15\u7528<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u73af\u5883\u53d8\u91cf<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u73af\u5883\u53d8\u91cf<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u914d\u7f6e\u6587\u4ef6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9065\u6d4b\u96c6\u6210<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">OTel\u539f\u751f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6709\u9650<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Profile\u7cfb\u7edf<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Profile&#043;Bundle&#043;Patch<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">MCP\u652f\u6301<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u539f\u751f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u652f\u6301<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u652f\u6301<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">ACP\u652f\u6301<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u539f\u751f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:110.0pt\">\n<p style=\"margin-left:0;margin-right:0\">LSP\u96c6\u6210<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u539f\u751f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:70.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:138.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u65e0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"margin-left:0;margin-right:0\">8.3 \u5dee\u5f02\u5316\u5b9a\u4f4d\u5206\u6790<\/h3>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u7ef4\u5ea6<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">dsh<\/span><span style=\"color:black\">\u771f\u6b63\u7684\u5dee\u5f02\u70b9<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5de5\u7a0b\u542b\u4e49<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u63d2\u4ef6\u5316\u6df1\u5ea6<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8fdeAgent Loop\u548c\u4f1a\u8bdd\u65e5\u5fd7\u90fd\u662f\u63d2\u4ef6<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6269\u5c55\u4e0d\u9700\u8981\u4fee\u6539\u6e90\u7801<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e8b\u4ef6\u6e90\u4f1a\u8bdd<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u53ef\u89c1\u5373\u5df2\u8bb0\u5f55<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u53ef\u5ba1\u8ba1\u3001\u53ef\u56de\u653e\u3001\u53ef\u5206\u652f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5355\u8c03\u5b88\u536b<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5b89\u5168\u7b56\u7565\u53ea\u80fd\u52a0\u4e25\u4e0d\u80fd\u653e\u677e<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9632\u6b62\u63d2\u4ef6\u7ec4\u5408\u5bfc\u81f4\u5b89\u5168\u964d\u7ea7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u591a\u540e\u7aef\u5b50\u4ee3\u7406<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u53ef\u8c03\u5ea6Codex\u548cClaude Code\u4f5c\u4e3a\u5b50\u4ee3\u7406<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8de8\u6846\u67b6\u7f16\u6392\u80fd\u529b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Profile\u7ec4\u5408<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:160.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u540c\u4e00\u6838\u5fc3\u53ef\u7ec4\u88c5\u4e3a\u4e0d\u540c\u4ea7\u54c1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:158.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e00\u5957\u4ee3\u7801\u591a\u79cd\u90e8\u7f72\u5f62\u6001<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"margin-left:0;margin-right:0\">\u4e5d\u3001\u4f01\u4e1a\u843d\u5730\u8def\u5f84\u4e0e\u98ce\u9669\u8fb9\u754c<\/h2>\n<h3 style=\"margin-left:0;margin-right:0\">9.1 \u4f01\u4e1a\u91c7\u7eb3\u7684\u56db\u4e2a\u9636\u6bb5<\/h3>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u9636\u6bb5<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u76ee\u6807<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5173\u952e\u52a8\u4f5c<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:118.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u98ce\u9669\u63a7\u5236<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8bc4\u4f30\u671f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7406\u89e3dsh\u67b6\u6784\u4e0e\u80fd\u529b\u8fb9\u754c<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Minimal\u6a21\u5f0f\u8dd1\u57fa\u51c6\u6d4b\u8bd5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:118.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9694\u79bb\u73af\u5883\u8fd0\u884c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u8bd5\u70b9\u671f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5728\u975e\u6838\u5fc3\u9879\u76ee\u4e2d\u9a8c\u8bc1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Standard\u6a21\u5f0f&#043;\u81ea\u5b9a\u4e49Skill<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:118.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5ba1\u6279\u7b56\u7565\u5168\u5f00<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u96c6\u6210\u671f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u63a5\u5165\u4f01\u4e1a\u5de5\u5177\u94fe<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5f00\u53d1MCP\u5de5\u5177\u670d\u52a1&#043;Profile\u914d\u7f6e<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:118.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f9b\u5e94\u94fe\u5ba1\u67e5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:80.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u751f\u4ea7\u671f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u89c4\u6a21\u5316\u90e8\u7f72\u4e0e\u76d1\u63a7<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:150.0pt\">\n<p style=\"margin-left:0;margin-right:0\">OTel\u9065\u6d4b&#043;\u4e8b\u4ef6\u6d41\u5ba1\u8ba1<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:118.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6c99\u7bb1\u5f3a\u5236&#043;\u51ed\u636e\u9694\u79bb<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"margin-left:0;margin-right:0\">9.2 \u98ce\u9669\u77e9\u9635<\/h3>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u98ce\u9669\u7c7b\u522b<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:170.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u5177\u4f53\u98ce\u9669<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:198.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u7f13\u89e3\u7b56\u7565<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4f9b\u5e94\u94fe\u98ce\u9669<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:170.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u7b2c\u4e09\u65b9\u63d2\u4ef6\u53ef\u80fd\u4f4d\u4e8e\u51ed\u636e\u548c\u547d\u4ee4\u7684\u5173\u952e\u8def\u5f84\u4e0a<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:198.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u56fa\u5b9a\u7248\u672c\u3001\u4fdd\u7559\u7269\u6599\u6e05\u5355\u3001\u5ba1\u67e5\u6743\u9650\u58f0\u660e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u517c\u5bb9\u6027\u98ce\u9669<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:170.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5f00\u53d1\u8005\u9884\u89c8\u9636\u6bb5\u6709\u7834\u574f\u6027\u53d8\u66f4<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:198.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u9501\u5b9arc\u7248\u672c&#xff0c;\u5efa\u7acb\u5347\u7ea7\u56de\u5f52\u6d4b\u8bd5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5b89\u5168\u914d\u7f6e\u98ce\u9669<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:170.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u63d2\u4ef6\u7ec4\u5408\u53ef\u80fd\u5bfc\u81f4\u5b89\u5168\u7b56\u7565\u88ab\u7ed5\u8fc7<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:198.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6d4b\u8bd5\u5355\u8c03\u5b88\u536b\u884c\u4e3a&#xff0c;\u5ba1\u8ba1tools\/pre-execute\u94fe<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6c99\u7bb1\u9003\u9038\u98ce\u9669<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:170.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5e73\u53f0\u540e\u7aef\u5f3a\u5236\u80fd\u529b\u4e0d\u5b8c\u5168\u76f8\u540c<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:198.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u751f\u4ea7\u73af\u5883\u5f3a\u5236SANDBOX_UNAVAILABLE\u5931\u8d25\u5373\u5173\u95ed<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:100.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0a\u4e0b\u6587\u7ba1\u7406\u98ce\u9669<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:170.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u538b\u7f29\u7b56\u7565\u53ef\u80fd\u4e22\u5931\u5173\u952e\u4fe1\u606f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:198.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5ba1\u8ba1compaction\u4e8b\u4ef6&#xff0c;\u9a8c\u8bc1\u6a21\u578b\u53ef\u89c1\u6295\u5f71<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"margin-left:0;margin-right:0\">9.3 \u751f\u4ea7\u5316\u90e8\u7f72\u5efa\u8bae<\/h3>\n<ul>\n<li>\u51ed\u636e\u8fb9\u754c&#xff1a;DSH_HOME\u76ee\u5f55\u6743\u9650\u9650\u5236\u4e3a600&#xff0c;.credentials.yaml\u52a0\u5bc6\u5b58\u50a8&#xff0c;\u8bbe\u7f6e\u5c42\u53ea\u4fdd\u7559\u5f15\u7528<\/li>\n<li>\u6c99\u7bb1\u7b56\u7565&#xff1a;\u751f\u4ea7\u73af\u5883\u58f0\u660e\u6240\u6709\u6267\u884c\u4e3a\u53d7\u9650\u6a21\u5f0f&#xff0c;\u914d\u7f6elandlock\u6216Docker\u540e\u7aef&#xff0c;\u7981\u6b62SANDBOX_UNAVAILABLE\u9759\u9ed8\u964d\u7ea7<\/li>\n<li>\u9065\u6d4b\u63a5\u5165&#xff1a;\u542f\u7528OTel\u5bfc\u51fa&#xff0c;\u5c06turn\/step\/tool\u4e8b\u4ef6\u6d41\u63a5\u5165\u4f01\u4e1a\u53ef\u89c2\u6d4b\u6027\u5e73\u53f0<\/li>\n<li>\u63d2\u4ef6\u4f9b\u5e94\u94fe&#xff1a;\u5efa\u7acb\u63d2\u4ef6\u7269\u6599\u6e05\u5355(CBOM)&#xff0c;\u7248\u672c\u56fa\u5b9a&#043;\u7b7e\u540d\u9a8c\u8bc1&#043;\u5b9a\u671f\u5b89\u5168\u626b\u63cf<\/li>\n<li>Profile\u7ba1\u7406&#xff1a;\u4f7f\u7528cordis.patch.yml\u7ba1\u7406\u4f01\u4e1a\u7b56\u7565&#xff0c;\u4e0d\u4fee\u6539dsh-base\u6e90\u7801<\/li>\n<li>\u4f1a\u8bdd\u5ba1\u8ba1&#xff1a;\u5b9a\u671f\u5206\u6790JSONL\u4f1a\u8bdd\u65e5\u5fd7&#xff0c;\u4f7f\u7528\u89e3\u6790\u5668\u63d0\u53d6\u5de5\u5177\u8c03\u7528\u8f68\u8ff9\u548cToken\u6d88\u8017\u6a21\u5f0f<\/li>\n<\/ul>\n<h2 style=\"margin-left:0;margin-right:0\">\u5341\u3001\u603b\u7ed3<\/h2>\n<table border=\"1\" cellspacing=\"0\" style=\"width:100.0%\">\n<tbody>\n<tr>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u7ef4\u5ea6<\/span><\/p>\n<\/td>\n<td style=\"background-color:#d5e8f0;border-color:#cccccc;width:348.0pt\">\n<p style=\"margin-left:0;margin-right:0\"><span style=\"color:black\">\u6838\u5fc3\u8981\u70b9<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4ea7\u54c1\u5b9a\u4f4d<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:348.0pt\">\n<p style=\"margin-left:0;margin-right:0\">dsh\u662f\u5f00\u6e90Agent\u8fd0\u884c\u65f6&#xff0c;\u4e0d\u662fAPI\u5c01\u88c5\u6216\u7f16\u7a0b\u5ba2\u6237\u7aef<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u67b6\u6784\u6838\u5fc3<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:348.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Cordis\u5c06Agent Loop\u3001Session\u3001Tool\u3001\u6a21\u578b\u9002\u914d\u5668\u548cUI\u7ec4\u88c5\u4e3a\u53ef\u66ff\u6362\u63d2\u4ef6\u6811<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u72b6\u6001\u6a21\u578b<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:348.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4ec5\u8ffd\u52a0\u4e8b\u4ef6\u65e5\u5fd7\u4f5c\u4e3a\u4f1a\u8bdd\u771f\u76f8\u6765\u6e90&#xff0c;\u538b\u7f29\u6539\u53d8\u53ef\u89c1\u6295\u5f71\u800c\u4e0d\u5220\u9664\u539f\u59cb\u4e8b\u5b9e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5b89\u5168\u8def\u5f84<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:348.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u5de5\u5177\u8c03\u7528\u7ecf\u8fc7\u5ba1\u6279\u3001\u5355\u8c03\u5b88\u536b\u3001\u6c99\u7bb1\u3001\u524d\u540e\u7f6e\u7b56\u7565\u548c\u7ed3\u679c\u5f52\u4e00\u5316<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u591aAgent\u7f16\u6392<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:348.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Skills\u6309\u9700\u52a0\u8f7d\u3001Subagent\u591a\u540e\u7aef\u3001Workflow\u6a21\u578b\u751f\u6210JS\u7f16\u6392<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u6a21\u578b\u65e0\u5173<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:348.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u4e0d\u7ed1\u5b9aDeepSeek&#xff0c;\u652f\u6301OpenAI\/Anthropic\/\u81ea\u5b9a\u4e49\u517c\u5bb9\u7aef\u70b9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u56db\u79cd\u6a21\u5f0f<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:348.0pt\">\n<p style=\"margin-left:0;margin-right:0\">Standard\/Code\/Minimal\/Creator\u8986\u76d6\u5168\u573a\u666f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-color:#cccccc;vertical-align:top;width:120.0pt\">\n<p style=\"margin-left:0;margin-right:0\">\u751f\u6001\u9636\u6bb5<\/p>\n<\/td>\n<td style=\"vertical-align:top;width:348.0pt\">\n<p style=\"margin-left:0;margin-right:0\">MIT\u8bb8\u53ef\u8bc1\u5f00\u53d1\u8005\u9884\u89c8&#xff0c;12,940\u6b21\u63d0\u4ea4&#xff0c;25\u4f4d\u8d21\u732e\u8005\u6d3b\u8dc3\u8fed\u4ee3<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0\">DeepSeek Harness\u7684\u771f\u6b63\u8d4c\u6ce8\u4e0d\u662f\u505a\u4e00\u4e2a\u66f4\u597d\u7684Claude Code&#xff0c;\u800c\u662f\u5f00\u653e\u6a21\u578b\u4e4b\u5916\u7684\u5b9e\u9a8c\u5ba4\u3002\u5f53\u6a21\u578b\u3001\u5de5\u5177\u3001\u6c99\u7bb1\u3001\u4f1a\u8bdd\u65e5\u5fd7\u548cAgent Loop\u90fd\u53ef\u4ee5\u88ab\u66ff\u6362\u548c\u91cd\u7ec4\u65f6&#xff0c;DeepSeek\u628aAgent\u5de5\u7a0b\u7684\u6838\u5fc3\u77db\u76fe\u2014\u2014\u80fd\u529b\u4e0a\u9650\u7531\u6a21\u578b\u51b3\u5b9a&#xff0c;\u4f46\u80fd\u529b\u4e0b\u9650\u7531\u8fd0\u884c\u65f6\u51b3\u5b9a\u2014\u2014\u6446\u5728\u4e86\u53f0\u9762\u4e0a\u3002\u5bf9\u4e8e\u4f01\u4e1aAI\u56e2\u961f\u6765\u8bf4&#xff0c;dsh\u503c\u5f97\u5728\u8bc4\u4f30\u671f\u8ba4\u771f\u5bf9\u5f85&#xff1a;\u5373\u4f7f\u4e0d\u5728\u751f\u4ea7\u4e2d\u4f7f\u7528\u5b83&#xff0c;\u5b83\u7684\u67b6\u6784\u8bbe\u8ba1\u4e5f\u4e3a\u81ea\u5efaAgent\u8fd0\u884c\u65f6\u63d0\u4f9b\u4e86\u9ad8\u4ef7\u503c\u7684\u53c2\u8003\u6846\u67b6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0\">\n<p style=\"margin-left:0;margin-right:0;text-align:right\"><span style=\"color:#aaaaaa\">\u7d2b\u5bb8\u7b56<\/span><span style=\"color:#aaaaaa\"> | GEO<\/span><span style=\"color:#aaaaaa\">\u54a8\u8be2\u4e0e\u4f01\u4e1a<\/span><span style=\"color:#aaaaaa\">AI<\/span><span style=\"color:#aaaaaa\">\u843d\u5730\u5b9e\u8df5<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:right\"><span style=\"color:#aaaaaa\">\u516c\u4f17\u53f7&#xff1a;\u7d2b\u5bb8\u7b56<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2026\u5e748\u670813\u65e5&#xff0c;DeepSeek\u4ee5MIT\u8bb8\u53ef\u8bc1\u5f00\u6e90\u4e86DeepSeek Harness&#xff08;\u7b80\u79f0dsh&#xff09;&#xff0c;\u4e00\u4e2a\u57fa\u4e8eCordis\u5fae\u5185\u6838\u7684Agent\u8fd0\u884c\u65f6\u6846\u67b6\u3002\u5b83\u7684\u67b6\u6784\u5ba3\u8a00\u53ea\u6709\u4e00\u53e5\u8bdd&#xff1a;Everything is a Plugin\u3002\u6a21\u578b\u9002\u914d\u5668\u3001\u5de5\u5177\u6ce8\u518c\u8868\u3001\u4f1a\u8bdd\u65e5\u5fd7\u3001Agent Loop\u672c\u8eab\u751a\u81f3Web\u524d\u7aef&#xff0c;\u5168\u90e8\u662f\u5730\u4f4d\u5e73\u7b49\u7684\u63d2\u4ef6\u3002\u8fd9\u4e0d\u662f\u53c8\u4e00\u4e2aAPI\u804a\u5929\u5ba2\u6237\u7aef&#xff0c;\u800c\u662f\u4e00\u5957\u7528\u4e8e\u7ec4\u88c5Agent\u7684\u5f00<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10187,50,323],"topic":[],"class_list":["post-96732","post","type-post","status-publish","format-standard","hentry","category-server","tag-codingplan","tag-50","tag-323"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DeepSeek Harness\u67b6\u6784\u6df1\u5ea6\u89e3\u6790\uff1a\u4e00\u5207\u7686\u63d2\u4ef6\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/96732.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DeepSeek Harness\u67b6\u6784\u6df1\u5ea6\u89e3\u6790\uff1a\u4e00\u5207\u7686\u63d2\u4ef6\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"2026\u5e748\u670813\u65e5&#xff0c;DeepSeek\u4ee5MIT\u8bb8\u53ef\u8bc1\u5f00\u6e90\u4e86DeepSeek Harness&#xff08;\u7b80\u79f0dsh&#xff09;&#xff0c;\u4e00\u4e2a\u57fa\u4e8eCordis\u5fae\u5185\u6838\u7684Agent\u8fd0\u884c\u65f6\u6846\u67b6\u3002\u5b83\u7684\u67b6\u6784\u5ba3\u8a00\u53ea\u6709\u4e00\u53e5\u8bdd&#xff1a;Everything is a Plugin\u3002\u6a21\u578b\u9002\u914d\u5668\u3001\u5de5\u5177\u6ce8\u518c\u8868\u3001\u4f1a\u8bdd\u65e5\u5fd7\u3001Agent Loop\u672c\u8eab\u751a\u81f3Web\u524d\u7aef&#xff0c;\u5168\u90e8\u662f\u5730\u4f4d\u5e73\u7b49\u7684\u63d2\u4ef6\u3002\u8fd9\u4e0d\u662f\u53c8\u4e00\u4e2aAPI\u804a\u5929\u5ba2\u6237\u7aef&#xff0c;\u800c\u662f\u4e00\u5957\u7528\u4e8e\u7ec4\u88c5Agent\u7684\u5f00\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/96732.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-28T01:24:36+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/96732.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/96732.html\",\"name\":\"DeepSeek Harness\u67b6\u6784\u6df1\u5ea6\u89e3\u6790\uff1a\u4e00\u5207\u7686\u63d2\u4ef6\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-28T01:24:36+00:00\",\"dateModified\":\"2026-08-28T01:24:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/96732.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/96732.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/96732.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DeepSeek Harness\u67b6\u6784\u6df1\u5ea6\u89e3\u6790\uff1a\u4e00\u5207\u7686\u63d2\u4ef6\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DeepSeek Harness\u67b6\u6784\u6df1\u5ea6\u89e3\u6790\uff1a\u4e00\u5207\u7686\u63d2\u4ef6\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/96732.html","og_locale":"zh_CN","og_type":"article","og_title":"DeepSeek Harness\u67b6\u6784\u6df1\u5ea6\u89e3\u6790\uff1a\u4e00\u5207\u7686\u63d2\u4ef6\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"2026\u5e748\u670813\u65e5&#xff0c;DeepSeek\u4ee5MIT\u8bb8\u53ef\u8bc1\u5f00\u6e90\u4e86DeepSeek Harness&#xff08;\u7b80\u79f0dsh&#xff09;&#xff0c;\u4e00\u4e2a\u57fa\u4e8eCordis\u5fae\u5185\u6838\u7684Agent\u8fd0\u884c\u65f6\u6846\u67b6\u3002\u5b83\u7684\u67b6\u6784\u5ba3\u8a00\u53ea\u6709\u4e00\u53e5\u8bdd&#xff1a;Everything is a Plugin\u3002\u6a21\u578b\u9002\u914d\u5668\u3001\u5de5\u5177\u6ce8\u518c\u8868\u3001\u4f1a\u8bdd\u65e5\u5fd7\u3001Agent Loop\u672c\u8eab\u751a\u81f3Web\u524d\u7aef&#xff0c;\u5168\u90e8\u662f\u5730\u4f4d\u5e73\u7b49\u7684\u63d2\u4ef6\u3002\u8fd9\u4e0d\u662f\u53c8\u4e00\u4e2aAPI\u804a\u5929\u5ba2\u6237\u7aef&#xff0c;\u800c\u662f\u4e00\u5957\u7528\u4e8e\u7ec4\u88c5Agent\u7684\u5f00","og_url":"https:\/\/www.wsisp.com\/helps\/96732.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-28T01:24:36+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"9 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/96732.html","url":"https:\/\/www.wsisp.com\/helps\/96732.html","name":"DeepSeek Harness\u67b6\u6784\u6df1\u5ea6\u89e3\u6790\uff1a\u4e00\u5207\u7686\u63d2\u4ef6\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-28T01:24:36+00:00","dateModified":"2026-08-28T01:24:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/96732.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/96732.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/96732.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"DeepSeek Harness\u67b6\u6784\u6df1\u5ea6\u89e3\u6790\uff1a\u4e00\u5207\u7686\u63d2\u4ef6\u5982\u4f55\u91cd\u6784Agent\u8fd0\u884c\u65f6"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/96732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=96732"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/96732\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=96732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=96732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=96732"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=96732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}