{"id":63310,"date":"2026-04-18T23:08:37","date_gmt":"2026-04-18T15:08:37","guid":{"rendered":"https:\/\/www.kdjingpai.com\/opencode-oh-my-opencode\/"},"modified":"2026-05-02T19:04:52","modified_gmt":"2026-05-02T11:04:52","slug":"opencode-oh-my-opencode","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/opencode-oh-my-opencode\/","title":{"rendered":"OpenCode + oh-my-opencode \u6700\u4f73\u5b9e\u8df5\u6307\u5357"},"content":{"rendered":"<p>\u9762\u5411\u6709 AI \u7f16\u7a0b\u52a9\u624b\u4f7f\u7528\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005\uff0c\u805a\u7126\u5b9e\u6218\uff0c\u57fa\u4e8e\u5b98\u65b9\u6700\u65b0\u6587\u6863\uff082026-04\uff09\u6574\u7406\u3002<\/p>\n<h2>\u4e00\u3001OpenCode \u662f\u4ec0\u4e48<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2026\/05\/e521d61fc1ec1f5.png\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>OpenCode \u662f\u8fd0\u884c\u5728\u7ec8\u7aef\u91cc\u7684\u5f00\u6e90 AI \u7f16\u7a0b Agent\uff0c\u652f\u6301 Claude\u3001GPT\u3001Gemini \u7b49 75+ \u6a21\u578b\uff0c\u63d0\u4f9b TUI \/ IDE \u63d2\u4ef6 \/ \u684c\u9762\u5e94\u7528\u4e09\u79cd\u5f62\u6001\u3002<\/p>\n<p>\u4e0e <a href=\"https:\/\/www.kdjingpai.com\/de\/claudeanquanfubai\/\">Claude<\/a> Code \u6700\u5927\u533a\u522b\uff1a<strong>\u4e0d\u9501\u5b9a\u6a21\u578b\uff0c\u5b8c\u5168\u5f00\u6e90\uff0cAgent \u4f53\u7cfb\u53ef\u6df1\u5ea6\u6269\u5c55\u3002<\/strong><\/p>\n<h2>\u4e8c\u3001\u5b89\u88c5\u4e0e\u914d\u7f6e<\/h2>\n<pre><code># \u65b9\u5f0f\u4e00\uff1a\u5b98\u65b9\u5b89\u88c5\u811a\u672c\uff08\u63a8\u8350\uff09\r\ncurl -fsSL &lt;https:\/\/opencode.ai\/install&gt; | bash\r\n# \u65b9\u5f0f\u4e8c\uff1aHomebrew\uff08\u6700\u65b0\u7248\u672c\uff09\r\nbrew install anomalyco\/tap\/opencode\r\n# \u65b9\u5f0f\u4e09\uff1aNode.js\r\nnpm install -g opencode-ai<\/code><\/pre>\n<p>\u914d\u7f6e API Key\uff1a<\/p>\n<pre><code>export\u00a0ANTHROPIC_API_KEY=\"sk-ant-...\"\r\n# \u6216\u5728 TUI \u91cc\u8fd0\u884c \/connect\uff0c\u6309\u63d0\u793a\u6388\u6743<\/code><\/pre>\n<h2>\u4e09\u3001OpenCode \u6838\u5fc3\u6982\u5ff5\uff1aAgent \u4f53\u7cfb<\/h2>\n<p>\u8fd9\u662f\u7406\u89e3 OpenCode \u7684\u5173\u952e\uff0c\u4e0e <a href=\"https:\/\/www.kdjingpai.com\/de\/claude-code\/\">Claude Code<\/a> \u7684\u5355\u4e00 Agent \u6a21\u5f0f\u4e0d\u540c\u3002<\/p>\n<h3>3.1 \u4e24\u7c7b Agent<\/h3>\n<p>OpenCode \u7684 Agent \u5206\u4e24\u79cd\uff1a<\/p>\n<p><strong>Primary Agent\uff08\u4e3b Agent\uff09<\/strong>\uff1a\u4f60\u76f4\u63a5\u5bf9\u8bdd\u7684\u5bf9\u8c61\uff0c\u7528\u00a0<code>Tab<\/code>\u00a0\u952e\u5728\u5b83\u4eec\u4e4b\u95f4\u5207\u6362\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"left\">\u5185\u7f6e\u4e3b Agent<\/th>\n<th align=\"left\">\u7279\u70b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><strong>Build<\/strong><\/p>\n<p>\uff08\u9ed8\u8ba4\uff09<\/td>\n<td align=\"left\">\u5168\u5de5\u5177\u6743\u9650\uff1a\u8bfb\u5199\u6587\u4ef6\u3001\u6267\u884c bash\uff0c\u65e5\u5e38\u5f00\u53d1\u4e3b\u529b<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>Plan<\/strong><\/td>\n<td align=\"left\">\u53d7\u9650\u6743\u9650\uff1a\u6587\u4ef6\u5199\u5165\u548c bash \u547d\u4ee4\u5747\u9700\u786e\u8ba4\uff0c\u7528\u4e8e\u5b89\u5168\u89c4\u5212<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Subagent\uff08\u5b50 Agent\uff09<\/strong>\uff1a\u4e3b Agent \u81ea\u52a8\u8c03\u5ea6\uff0c\u6216\u4f60\u624b\u52a8\u00a0<code>@mention<\/code>\u00a0\u8c03\u7528\u7684\u4e13\u7528\u52a9\u624b\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"left\">\u5185\u7f6e\u5b50 Agent<\/th>\n<th align=\"left\">\u7279\u70b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><strong>General<\/strong><\/td>\n<td align=\"left\">\u901a\u7528\u5b50\u4efb\u52a1\uff0c\u6709\u5b8c\u6574\u5de5\u5177\u6743\u9650\uff08\u65e0 todo\uff09\uff0c\u9002\u5408\u5e76\u884c\u591a\u5de5<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>Explore<\/strong><\/td>\n<td align=\"left\">\u53ea\u8bfb\u3001\u5feb\u901f\u4ee3\u7801\u5e93\u641c\u7d22\uff0c\u4e0d\u80fd\u4fee\u6539\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b89\u88c5 oh-my-opencode \u540e\uff0c\u4e3b Agent \u548c\u5b50 Agent \u5747\u5927\u5e45\u6269\u5c55\uff0c\u89c1\u7b2c\u4e94\u8282\u3002<\/p>\n<h3>3.2\u00a0<code>@<\/code>\u00a0\u7684\u4e24\u79cd\u7528\u6cd5<\/h3>\n<p><code>@<\/code>\u00a0\u662f TUI \u91cc\u6700\u91cd\u8981\u7684\u8f93\u5165\u7b26\u53f7\uff0c\u6709\u4e24\u79cd\u5b8c\u5168\u4e0d\u540c\u7684\u7528\u9014\uff1a<\/p>\n<p><strong>\u2460 \u5f15\u7528\u6587\u4ef6<\/strong>\uff08\u6a21\u7cca\u641c\u7d22\uff09<\/p>\n<pre><code>\u8fd9\u6bb5\u9274\u6743\u903b\u8f91\u6709\u6ca1\u6709\u95ee\u9898\uff1f@src\/middleware\/auth.ts<\/code><\/pre>\n<p>\u89e6\u53d1\u6a21\u7cca\u6587\u4ef6\u641c\u7d22\uff0c\u9009\u4e2d\u540e\u6587\u4ef6\u5185\u5bb9\u81ea\u52a8\u6ce8\u5165\u4e0a\u4e0b\u6587\u3002<\/p>\n<p><strong>\u2461 @mention \u5b50 Agent<\/strong>\uff08\u76f4\u63a5\u8c03\u7528\uff09<\/p>\n<pre><code>@explore \u627e\u51fa\u6240\u6709\u8c03\u7528\u4e86 sendEmail \u7684\u5730\u65b9\r\n@general \u5e2e\u6211\u5e76\u884c\u5904\u7406\u8fd9\u4e09\u4e2a\u6a21\u5757\u7684\u6587\u6863\u751f\u6210<\/code><\/pre>\n<p>\u4e3b Agent \u4e5f\u53ef\u4ee5\u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u81ea\u52a8 @mention \u5b50 Agent \u5b8c\u6210\u4e13\u9879\u4efb\u52a1\u3002<\/p>\n<p>\u4e24\u8005\u53ef\u4ee5\u5728\u540c\u4e00\u6761\u6d88\u606f\u91cc\u6df7\u7528\uff1a<\/p>\n<pre><code>@explore \u5206\u6790 @src\/api\/ \u76ee\u5f55\u4e0b\u6240\u6709\u63a5\u53e3\u7684\u7ed3\u6784<\/code><\/pre>\n<h3>3.3\u00a0<code>Tab<\/code>\u00a0\u952e\uff1a\u5207\u6362\u4e3b Agent<\/h3>\n<p><code>Tab<\/code>\u00a0\u952e\u5728\u6240\u6709<strong>\u4e3b Agent\uff08Primary Agent\uff09<\/strong>\u00a0\u4e4b\u95f4\u8f6e\u6362\uff0c<code>Shift+Tab<\/code>\u00a0\u53cd\u5411\u5207\u6362\u3002<\/p>\n<pre><code>Tab \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \u5207\u6362\u4e3b Agent\uff08Build \u2192 Plan \u2192 \u81ea\u5b9a\u4e49 Agent \u2192 ...\uff09\r\nShift+Tab \u00a0 \u00a0# \u53cd\u5411\u5207\u6362<\/code><\/pre>\n<p>\u26a0\ufe0f \u5e38\u89c1\u8bef\u89e3\uff1aTab \u4e0d\u662f&#8221;\u5207\u6362 Plan\/Build \u6a21\u5f0f&#8221;\uff0c\u800c\u662f\u5207\u6362\u4e24\u4e2a\u72ec\u7acb\u7684\u4e3b Agent\u3002<\/p>\n<p>Plan Agent \u7684\u672c\u8d28\u662f&#8221;\u6587\u4ef6\u5199\u5165\u548c bash \u547d\u4ee4\u9ed8\u8ba4\u8981\u6c42\u4eba\u5de5\u786e\u8ba4&#8221;\u7684\u53d7\u9650 Agent\u3002<\/p>\n<p><strong>\u5178\u578b\u7528\u6cd5\uff1a<\/strong><\/p>\n<pre><code># \u5148\u5207\u5230 Plan Agent \u89c4\u5212\uff0c\u53ea\u63d0\u65b9\u6848\u4e0d\u6539\u4ee3\u7801\r\nTab \u00a0\u2192 \u00a0\u63cf\u8ff0\u9700\u6c42\uff0c\u62ff\u5230\u65b9\u6848\u540e\u5ba1\u67e5\r\n# \u65b9\u6848\u786e\u8ba4\u540e\u5207\u56de Build Agent \u6267\u884c\r\nTab \u00a0\u2192 \u00a0\u597d\uff0c\u6309\u8ba1\u5212\u6267\u884c\u3002<\/code><\/pre>\n<h3>3.4 \u5feb\u6377\u952e\u901f\u67e5<\/h3>\n<table>\n<thead>\n<tr>\n<th align=\"left\">\u5feb\u6377\u952e<\/th>\n<th align=\"left\">\u529f\u80fd<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><code>Tab<\/code><\/td>\n<td align=\"left\">\u5207\u6362\u4e3b Agent\uff08\u524d\u5411\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Shift+Tab<\/code><\/td>\n<td align=\"left\">\u5207\u6362\u4e3b Agent\uff08\u540e\u5411\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+T<\/code><\/td>\n<td align=\"left\">\u5faa\u73af\u5207\u6362<strong>\u6a21\u578b\u53d8\u4f53<\/strong>\uff08\u5982\u5f00\u5173 Extended Thinking\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+P<\/code><\/td>\n<td align=\"left\">\u6253\u5f00\u547d\u4ee4\u5217\u8868\uff08\u6240\u6709\u00a0<code>\/<\/code>\u00a0\u547d\u4ee4\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+X A<\/code><\/td>\n<td align=\"left\">\u6253\u5f00 Agent \u5217\u8868<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+X M<\/code><\/td>\n<td align=\"left\">\u6253\u5f00\u6a21\u578b\u5217\u8868<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+X C<\/code><\/td>\n<td align=\"left\">\u538b\u7f29\u5f53\u524d\u4f1a\u8bdd\u4e0a\u4e0b\u6587<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+X U<\/code><\/td>\n<td align=\"left\">\u64a4\u9500\uff08\u7b49\u540c\u00a0<code>\/undo<\/code>\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+X R<\/code><\/td>\n<td align=\"left\">\u91cd\u505a\uff08\u7b49\u540c\u00a0<code>\/redo<\/code>\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+X N<\/code><\/td>\n<td align=\"left\">\u65b0\u5efa\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+X L<\/code><\/td>\n<td align=\"left\">\u4f1a\u8bdd\u5217\u8868 \/ \u5207\u6362\u5386\u53f2\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+X E<\/code><\/td>\n<td align=\"left\">\u5728\u5916\u90e8\u7f16\u8f91\u5668\u4e2d\u7f16\u8f91\u5f53\u524d\u6d88\u606f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Ctrl+X Down<\/code><\/td>\n<td align=\"left\">\u8fdb\u5165\u5b50 Agent \u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Right \/ Left<\/code><\/td>\n<td align=\"left\">\u5728\u5b50 Agent \u4f1a\u8bdd\u95f4\u5207\u6362<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>Up<\/code><\/td>\n<td align=\"left\">\u8fd4\u56de\u7236\u4f1a\u8bdd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Leader \u952e\u9ed8\u8ba4\u662f\u00a0<code>Ctrl+X<\/code>\uff0c\u53ef\u5728\u00a0<code>tui.json<\/code>\u00a0\u4e2d\u4fee\u6539\u3002<\/p>\n<h2>\u56db\u3001TUI \u5e38\u7528\u64cd\u4f5c<\/h2>\n<h3>4.1 \u521d\u59cb\u5316\u9879\u76ee<\/h3>\n<pre><code>cd\u00a0\/path\/to\/project\r\nopencode<\/code><\/pre>\n<p>TUI \u5185\u8fd0\u884c\uff1a<\/p>\n<pre><code>\/init<\/code><\/pre>\n<p>\u5206\u6790\u9879\u76ee\u7ed3\u6784\uff0c\u5728\u6839\u76ee\u5f55\u751f\u6210\u00a0<code>AGENTS.md<\/code>\u2014\u2014<strong>\u52a1\u5fc5\u63d0\u4ea4\u5230 Git<\/strong>\uff0c\u8fd9\u662f Agent \u7684\u9879\u76ee\u8bb0\u5fc6\u3002<\/p>\n<h3>4.2 \u6267\u884c Shell \u547d\u4ee4<\/h3>\n<p>\u6d88\u606f\u4ee5\u00a0<code>!<\/code>\u00a0\u5f00\u5934\uff0c\u76f4\u63a5\u8fd0\u884c shell \u547d\u4ee4\uff0c\u8f93\u51fa\u4f5c\u4e3a\u5de5\u5177\u7ed3\u679c\u6ce8\u5165\u4e0a\u4e0b\u6587\uff1a<\/p>\n<pre><code>!git log --oneline -20\r\n!npm test -- --coverage\r\n!cat package.json<\/code><\/pre>\n<h3>4.3 \u64a4\u9500 \/ \u91cd\u505a<\/h3>\n<pre><code>\/undo \u00a0 \u00a0# \u64a4\u9500\u6700\u8fd1\u4e00\u6b21\u4fee\u6539\uff08\u542b\u6587\u4ef6\u53d8\u66f4\uff09\uff0c\u53ef\u591a\u6b21\u6267\u884c\r\n\/redo \u00a0 \u00a0# \u91cd\u65b0\u5e94\u7528\u5df2\u64a4\u9500\u7684\u4fee\u6539<\/code><\/pre>\n<p>\u4f9d\u8d56 Git \u7ba1\u7406\u6587\u4ef6\u53d8\u66f4\uff0c<strong>\u9879\u76ee\u5fc5\u987b\u662f Git \u4ed3\u5e93<\/strong>\u3002<\/p>\n<h3>4.4 \u4e0a\u4e0b\u6587\u7ba1\u7406<\/h3>\n<pre><code>\/compact \u00a0 \u00a0# \u538b\u7f29\u5f53\u524d\u4f1a\u8bdd\uff0c\u4fdd\u7559\u5173\u952e\u4e0a\u4e0b\u6587\uff0c\u91ca\u653e token\uff08alias: \/summarize\uff09\r\n\/new \u00a0 \u00a0 \u00a0 \u00a0# \u5f00\u542f\u65b0\u4f1a\u8bdd\uff08alias: \/clear\uff09\r\n\/sessions \u00a0 # \u67e5\u770b\u5e76\u5207\u6362\u5386\u53f2\u4f1a\u8bdd\uff08alias: \/resume\uff09<\/code><\/pre>\n<h3>4.5 \u5176\u4ed6\u5e38\u7528\u547d\u4ee4<\/h3>\n<pre><code>\/share \u00a0 \u00a0 \u00a0# \u751f\u6210\u4f1a\u8bdd\u5206\u4eab\u94fe\u63a5\uff08\u590d\u5236\u5230\u526a\u8d34\u677f\uff09\r\n\/unshare \u00a0 \u00a0# \u53d6\u6d88\u5206\u4eab\r\n\/export \u00a0 \u00a0 # \u5bfc\u51fa\u4f1a\u8bdd\u4e3a Markdown\uff0c\u7528\u5916\u90e8\u7f16\u8f91\u5668\u6253\u5f00\r\n\/thinking \u00a0 # \u5207\u6362\u662f\u5426\u663e\u793a Extended Thinking \u5185\u5bb9\r\n\/models \u00a0 \u00a0 # \u5217\u51fa\u53ef\u7528\u6a21\u578b\r\n\/themes \u00a0 \u00a0 # \u5207\u6362\u4e3b\u9898<\/code><\/pre>\n<h2>\u4e94\u3001AGENTS.md \u4e0e\u81ea\u5b9a\u4e49\u6269\u5c55<\/h2>\n<h3>5.1 \u4e09\u4e2a\u751f\u6548\u4f4d\u7f6e<\/h3>\n<table>\n<thead>\n<tr>\n<th align=\"left\">\u4f4d\u7f6e<\/th>\n<th align=\"left\">\u4f5c\u7528\u57df<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><code>&lt;project_root&gt;\/AGENTS.md<\/code><\/td>\n<td align=\"left\">\u5f53\u524d\u9879\u76ee\uff0c<strong>\u63d0\u4ea4 Git \u4e0e\u56e2\u961f\u5171\u4eab<\/strong><\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>~\/.config\/opencode\/AGENTS.md<\/code><\/td>\n<td align=\"left\">\u5168\u5c40\uff0c\u6240\u6709\u9879\u76ee\u751f\u6548\uff0c\u5b58\u653e\u4e2a\u4eba\u504f\u597d<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5b50\u76ee\u5f55\u00a0<code>AGENTS.md<\/code><\/td>\n<td align=\"left\">oh-my-opencode \u589e\u5f3a\uff1a\u8bfb\u6587\u4ef6\u65f6\u81ea\u52a8\u5411\u4e0a\u6536\u96c6\u6240\u6709\u5c42\u7ea7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>OpenCode \u8fd8\u517c\u5bb9 Claude Code \u7684\u00a0<code>CLAUDE.md<\/code>\u00a0\u683c\u5f0f\uff08\u8fc1\u79fb\u65f6\u5f00\u7bb1\u5373\u7528\uff09\u3002<\/p>\n<h3>5.2 AGENTS.md \u5199\u4ec0\u4e48<\/h3>\n<pre><code># \u9879\u76ee\u540d\u79f0\r\n## \u6280\u672f\u6808\r\n-\u00a0\u540e\u7aef\uff1aJava 21 + Spring Boot 3.x\r\n-\u00a0\u6570\u636e\u5e93\uff1aPostgreSQL\uff08ORM \u7528 jOOQ\uff0c\u7981\u6b62\u4f7f\u7528 Hibernate\uff09\r\n-\u00a0API \u98ce\u683c\uff1aRESTful\uff0c\u54cd\u5e94\u7edf\u4e00\u7528 Result&lt;T&gt;\u00a0\u5305\u88c5\r\n## \u6784\u5efa\u4e0e\u6d4b\u8bd5\r\n-\u00a0\u6784\u5efa\uff1a`mvn clean package`\r\n-\u00a0\u5355\u5143\u6d4b\u8bd5\uff1a`mvn test`\r\n-\u00a0\u96c6\u6210\u6d4b\u8bd5\uff1a`mvn verify -P integration`\r\n## \u4ee3\u7801\u89c4\u8303\r\n-\u00a0\u6240\u6709 public \u65b9\u6cd5\u5fc5\u987b\u6709 Javadoc\r\n-\u00a0\u7981\u6b62\u5728\u5faa\u73af\u5185\u6267\u884c\u6570\u636e\u5e93\u67e5\u8be2\r\n-\u00a0\u5f02\u5e38\u7edf\u4e00\u901a\u8fc7 GlobalExceptionHandler \u5904\u7406\r\n## \u67b6\u6784\u8bf4\u660e\r\n-\u00a0\u8bf7\u6c42\u94fe\u8def\uff1aController \u2192 Service \u2192 Repository \u2192 DB\r\n-\u00a0\u8de8\u6a21\u5757\u53ea\u80fd\u901a\u8fc7 service \u5c42\u8c03\u7528\uff0c\u4e0d\u80fd\u8de8\u5c42\u8c03\u7528 repository<\/code><\/pre>\n<h3>5.3 \u81ea\u5b9a\u4e49 Agent<\/h3>\n<p>\u5728\u00a0<code>.opencode\/agents\/<\/code>\u00a0\u6216\u00a0<code>~\/.config\/opencode\/agents\/<\/code>\u00a0\u521b\u5efa\u00a0<code>.md<\/code>\u00a0\u6587\u4ef6\uff1a<\/p>\n<pre><code>---\r\ndescription: \u5b89\u5168\u5ba1\u8ba1\uff0c\u68c0\u67e5\u4ee3\u7801\u5b89\u5168\u6f0f\u6d1e\r\nmode: subagent\r\nmodel: anthropic\/claude-opus-4-6\r\ntemperature: 0.1\r\ntools:\r\n\u00a0 write: false\r\n\u00a0 edit: false\r\n\u00a0 bash: false\r\n---\r\n\u4f60\u662f\u4e00\u540d\u5b89\u5168\u4e13\u5bb6\uff0c\u4e13\u6ce8\u4ee5\u4e0b\u65b9\u9762\u7684\u4ee3\u7801\u5ba1\u8ba1\uff1a\r\n-\u00a0SQL \u6ce8\u5165\u3001XSS\u3001CSRF \u6f0f\u6d1e\r\n-\u00a0\u4e0d\u5b89\u5168\u7684\u53cd\u5e8f\u5217\u5316\r\n-\u00a0\u786c\u7f16\u7801\u7684\u5bc6\u94a5\u6216\u5bc6\u7801\r\n-\u00a0\u6743\u9650\u6821\u9a8c\u7f3a\u5931\r\n\u53ea\u63d0\u4f9b\u5206\u6790\u62a5\u544a\uff0c\u4e0d\u76f4\u63a5\u4fee\u6539\u4ee3\u7801\u3002<\/code><\/pre>\n<p>\u6587\u4ef6\u540d\u5373\u4e3a Agent \u540d\uff08\u5982\u00a0<code>security-auditor.md<\/code>\u00a0\u2192\u00a0<code>@security-auditor<\/code>\uff09\uff0c<code>mode: subagent<\/code>\u00a0\u8868\u793a\u53ef\u88ab\u00a0<code>@mention<\/code>\u00a0\u8c03\u7528\u3002<\/p>\n<h3>5.4 \u81ea\u5b9a\u4e49\u547d\u4ee4<\/h3>\n<p>\u5728\u00a0<code>.opencode\/commands\/<\/code>\u00a0\u6216\u00a0<code>~\/.config\/opencode\/commands\/<\/code>\u00a0\u521b\u5efa\u547d\u4ee4\u6587\u4ef6\uff1a<\/p>\n<pre><code>---\r\ndescription: Code Review\uff0c\u91cd\u70b9\u5173\u6ce8\u5b89\u5168\u548c\u6027\u80fd\r\nagent: build\r\n---\r\n\u8bf7\u5bf9\u4ee5\u4e0b\u4ee3\u7801\u8fdb\u884c Code Review\uff0c\u91cd\u70b9\u5173\u6ce8\uff1a\r\n1.\u00a0\u5b89\u5168\u6f0f\u6d1e\uff08\u6ce8\u5165\u3001\u6743\u9650\u3001\u52a0\u5bc6\uff09\r\n2.\u00a0\u6027\u80fd\u95ee\u9898\uff08N+1 \u67e5\u8be2\u3001\u5185\u5b58\u6cc4\u6f0f\uff09\r\n3.\u00a0\u8fb9\u754c\u6761\u4ef6\u548c\u5f02\u5e38\u5904\u7406\r\n4.\u00a0\u547d\u540d\u548c\u53ef\u8bfb\u6027\r\n\u6587\u4ef6\uff1a$ARGUMENTS<\/code><\/pre>\n<p>\u4f7f\u7528\uff1a<code>\/code-review src\/api\/OrderController.java<\/code><\/p>\n<p>\u547d\u4ee4\u652f\u6301\u00a0<code>$ARGUMENTS<\/code>\uff08\u6240\u6709\u53c2\u6570\uff09\u6216\u00a0<code>$1<\/code>\u3001<code>$2<\/code>\uff08\u4f4d\u7f6e\u53c2\u6570\uff09\uff0cfrontmatter \u4e2d\u53ef\u6307\u5b9a\u00a0<code>agent<\/code>\u3001<code>model<\/code>\u3002<\/p>\n<h2>\u516d\u3001oh-my-opencode\uff1a\u628a OpenCode \u53d8\u6210\u5f00\u53d1\u56e2\u961f<\/h2>\n<p>oh-my-opencode\uff08\u73b0\u66f4\u540d\u4e3a\u00a0<code>oh-my-openagent<\/code>\uff0cnpm \u5305\u540d\u4ecd\u4e3a\u00a0<code>oh-my-opencode<\/code>\uff09\u662f\u76ee\u524d\u6700\u5f3a\u7684 OpenCode \u63d2\u4ef6\u3002<\/p>\n<p>\u6838\u5fc3\u80fd\u529b\uff1a11 \u4e2a\u4e13\u4e1a Agent + \u5e76\u884c\u5b50 Agent +\u00a0<code>ulw<\/code>\u00a0\u4e00\u952e\u5168\u81ea\u52a8 + LSP\/AST-Grep \u5de5\u5177 + \u81ea\u52a8\u4e0a\u4e0b\u6587\u7ba1\u7406\u3002<\/p>\n<h3>6.1 \u5b89\u88c5<\/h3>\n<pre><code>bunx oh-my-opencode install<\/code><\/pre>\n<p>\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/p>\n<pre><code>cat\u00a0~\/.config\/opencode\/opencode.json\r\n# plugins \u6570\u7ec4\u4e2d\u5e94\u5305\u542b \"oh-my-opencode\"<\/code><\/pre>\n<h3>6.2 ulw\uff1a\u6700\u91cd\u8981\u7684\u4e00\u4e2a\u8bcd<\/h3>\n<p><strong><code>ulw<\/code>\uff08ultrawork \u7684\u7f29\u5199\uff09\u662f oh-my-opencode \u7684\u6838\u5fc3\u5173\u952e\u8bcd\u3002<\/strong><\/p>\n<p>\u63d0\u793a\u8bcd\u91cc\u53ea\u8981\u5305\u542b\u00a0<code>ulw<\/code>\u00a0\u6216\u00a0<code>ultrawork<\/code>\uff0c\u63d2\u4ef6\u81ea\u52a8\u89e6\u53d1&#8221;\u6700\u5f3a\u6a21\u5f0f&#8221;\uff1a<\/p>\n<ul>\n<li>\u2022 \u81ea\u4e3b\u63a2\u7d22\u4ee3\u7801\u5e93\uff0c\u7814\u7a76\u5b9e\u73b0\u6a21\u5f0f<\/li>\n<li>\u2022 \u8c03\u5ea6\u591a\u4e2a\u4e13\u4e1a Agent\u00a0<strong>\u5e76\u884c<\/strong>\u5de5\u4f5c<\/li>\n<li>\u2022 \u6301\u7eed\u6267\u884c\u76f4\u5230\u5b8c\u6210\uff0c\u4e2d\u9014\u4e0d\u505c\u4e0b\u6765\u7b49\u786e\u8ba4<\/li>\n<li>\u2022 \u81ea\u52a8\u8bca\u65ad\u9a8c\u8bc1\u7ed3\u679c<\/li>\n<\/ul>\n<p><strong>\u7528\u6cd5\u6781\u7b80\uff1a<\/strong><\/p>\n<pre><code>ulw \u7ed9 \/api\/orders \u63a5\u53e3\u589e\u52a0\u5206\u9875\u529f\u80fd\uff0c\u53c2\u8003 \/api\/products \u7684\u5b9e\u73b0\u65b9\u5f0f<\/code><\/pre>\n<pre><code>ulw \u627e\u51fa\u6240\u6709 N+1 \u67e5\u8be2\u95ee\u9898\u5e76\u4fee\u590d<\/code><\/pre>\n<pre><code>ulw \u5c06\u6574\u4e2a\u9879\u76ee\u7684\u9519\u8bef\u5904\u7406\u7edf\u4e00\u6539\u4e3a Result \u6a21\u5f0f<\/code><\/pre>\n<pre><code>ulw \u91cd\u6784 src\/payment\/ \u4e3a\u7b56\u7565\u6a21\u5f0f\uff0c\u73b0\u6709\u652f\u4ed8\u65b9\u5f0f\u4e09\u79cd\uff0c\u5bf9\u5916\u63a5\u53e3\u4e0d\u53d8<\/code><\/pre>\n<p><strong>\u539f\u5219<\/strong>\uff1a\u9047\u5230\u5927\u578b\u4efb\u52a1\u3001\u4e0d\u77e5\u4ece\u54ea\u4e0b\u624b\u65f6\uff0c\u76f4\u63a5\u00a0<code>ulw<\/code>\uff0c\u8ba9\u7cfb\u7edf\u81ea\u5df1\u51b3\u7b56\u3002<\/p>\n<p><strong>\u5173\u952e\u8bcd\u89e6\u53d1\u7684\u5176\u4ed6\u6a21\u5f0f\uff1a<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th align=\"left\">\u5173\u952e\u8bcd<\/th>\n<th align=\"left\">\u89e6\u53d1\u6a21\u5f0f<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><code>ulw<\/code><\/p>\n<p>\/\u00a0<code>ultrawork<\/code><\/td>\n<td align=\"left\">\u6700\u5f3a\u5168\u81ea\u52a8\uff0c\u5e76\u884c\u6267\u884c<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>search<\/code><\/p>\n<p>\/\u00a0<code>find<\/code><\/td>\n<td align=\"left\">\u5e76\u884c\u63a2\u7d22\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>analyze<\/code><\/p>\n<p>\/\u00a0<code>investigate<\/code><\/td>\n<td align=\"left\">\u6df1\u5ea6\u5206\u6790\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>ultrathink<\/code><\/p>\n<p>\/\u00a0<code>think deeply<\/code><\/td>\n<td align=\"left\">\u81ea\u52a8\u6fc0\u6d3b Extended Thinking<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>6.3 11 \u4e2a\u4e13\u4e1a Agent<\/h3>\n<p>\u5b89\u88c5\u540e\uff0c<code>Tab<\/code>\u00a0\u952e\u5728\u8fd9\u4e9b\u4e3b Agent \u95f4\u5207\u6362\uff08\u6309\u4f18\u5148\u7ea7\uff09\uff1a<\/p>\n<p><strong>\u4e3b Agent\uff08Tab \u5207\u6362\uff09\uff1a<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th align=\"left\">Agent<\/th>\n<th align=\"left\">\u89d2\u8272<\/th>\n<th align=\"left\">\u5178\u578b\u573a\u666f<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><strong>Sisyphus<\/strong><\/p>\n<p>\uff08\u9ed8\u8ba4\uff09<\/td>\n<td align=\"left\">\u7f16\u6392\u5668\uff0c\u8c03\u5ea6\u5b50 Agent \u5e76\u884c\u6267\u884c<\/td>\n<td align=\"left\">\u65e5\u5e38\u5f00\u53d1\u5165\u53e3\uff0culw \u7684\u6267\u884c\u6838\u5fc3<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>Hephaestus<\/strong><\/td>\n<td align=\"left\">\u6df1\u5ea6\u72ec\u7acb\u6267\u884c\uff0c\u7aef\u5bf9\u7aef\u4e0d\u6253\u65ad<\/td>\n<td align=\"left\">\u590d\u6742\u67b6\u6784\u4efb\u52a1\uff0c\u65e0\u9700\u624b\u628a\u624b<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>Prometheus<\/strong><\/td>\n<td align=\"left\">\u6218\u7565\u89c4\u5212\u5e08\uff0c\u9762\u8bd5\u5f0f\u9700\u6c42\u68b3\u7406<\/td>\n<td align=\"left\">\u5927\u578b\u529f\u80fd\u5f00\u59cb\u524d\u7684\u89c4\u5212<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>Atlas<\/strong><\/td>\n<td align=\"left\">\u4efb\u52a1\u7f16\u6392\u6267\u884c<\/td>\n<td align=\"left\">\u914d\u5408\u00a0<code>\/start-work<\/code>\u00a0\u6267\u884c\u8ba1\u5212<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u5b50 Agent\uff08@mention \u8c03\u7528\uff09\uff1a<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th align=\"left\">Agent<\/th>\n<th align=\"left\">\u89d2\u8272<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><code>@oracle<\/code><\/td>\n<td align=\"left\">\u53ea\u8bfb\u67b6\u6784\u987e\u95ee\uff0c\u4ee3\u7801\u5ba1\u67e5\uff0c\u903b\u8f91\u63a8\u7406<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>@metis<\/code><\/td>\n<td align=\"left\">\u68c0\u67e5 Prometheus \u8ba1\u5212\u7684\u9057\u6f0f\u70b9<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>@momus<\/code><\/td>\n<td align=\"left\">\u5bf9\u8ba1\u5212\u8fdb\u884c\u4e25\u82db\u8d28\u91cf\u628a\u5173<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>@explore<\/code><\/td>\n<td align=\"left\">\u5feb\u901f\u4ee3\u7801\u5e93 grep\uff0c\u6a21\u5f0f\u67e5\u627e<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>@librarian<\/code><\/td>\n<td align=\"left\">\u67e5 API \u6587\u6863\uff0cOSS \u6700\u4f73\u5b9e\u8df5\uff08\u542b websearch\uff09<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>@multimodal-looker<\/code><\/td>\n<td align=\"left\">\u622a\u56fe\u5206\u6790\uff0cUI \u89c6\u89c9\u8fd8\u539f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><code>@sisyphus-junior<\/code><\/td>\n<td align=\"left\">\u8f7b\u91cf\u5b50\u4efb\u52a1\uff0c\u7531 Sisyphus \u59d4\u6d3e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u5927\u591a\u6570\u573a\u666f\u4e0d\u9700\u8981\u624b\u52a8\u9009 Agent\uff0c<code>ulw<\/code>\u00a0\u4f1a\u81ea\u52a8\u8c03\u5ea6\u3002<\/strong><\/p>\n<h3>6.4 \/start-work\uff1a\u5927\u578b\u529f\u80fd\u5f00\u53d1\u5de5\u4f5c\u6d41<\/h3>\n<p>\u9002\u7528\u4e8e\u8de8\u6a21\u5757\u3001\u6709\u67b6\u6784\u51b3\u7b56\u7684\u5927\u578b\u529f\u80fd\u3002\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n<p><strong>\u7b2c\u4e00\u6b65\uff1aTab \u5207\u6362\u5230 Prometheus\uff0c\u63cf\u8ff0\u9700\u6c42<\/strong><\/p>\n<p>Prometheus \u50cf\u771f\u5b9e\u5de5\u7a0b\u5e08\u4e00\u6837\u53cd\u95ee\u7ec6\u8282\u3002\u56de\u7b54\u5b8c\u540e\uff1a<\/p>\n<pre><code>\u597d\uff0c\u751f\u6210\u8ba1\u5212\u3002<\/code><\/pre>\n<p>\u8ba1\u5212\u6587\u4ef6\u4fdd\u5b58\u5728\u00a0<code>.sisyphus\/plans\/*.md<\/code>\uff0c\u53ef\u4ee5\u9884\u89c8\u548c\u4fee\u6539\u3002<\/p>\n<p><strong>\u7b2c\u4e8c\u6b65\uff1a\u786e\u8ba4\u8ba1\u5212\u540e\u8fd0\u884c<\/strong><\/p>\n<pre><code>\/start-work<\/code><\/pre>\n<p>Atlas \u63a5\u7ba1\uff0c\u6309\u8ba1\u5212\u81ea\u52a8\u6267\u884c\uff0c\u4e2d\u9014\u65ad\u5f00\u4e5f\u80fd\u81ea\u52a8\u6062\u590d\uff08\u72b6\u6001\u5b58\u5728\u00a0<code>boulder.json<\/code>\uff09\u3002<\/p>\n<p>\u26a0\ufe0f\u00a0<strong>Prometheus \u548c Atlas \u5fc5\u987b\u914d\u5bf9\u4f7f\u7528<\/strong>\uff0c\u52ff\u76f4\u63a5\u5207\u6362\u5230 Atlas \u6267\u884c\u3002<\/p>\n<p><strong>\u4f55\u65f6\u7528 ulw\uff0c\u4f55\u65f6\u7528 \/start-work\uff1f<\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th align=\"left\">\u573a\u666f<\/th>\n<th align=\"left\">\u63a8\u8350\u65b9\u5f0f<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\">\u601d\u8def\u6e05\u6670\u7684\u5355\u4e00\u529f\u80fd<\/td>\n<td align=\"left\"><code>ulw<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u9700\u6c42\u6709\u6a21\u7cca\u70b9\uff0c\u60f3\u5148\u786e\u8ba4\u65b9\u6848\u518d\u52a8\u624b<\/td>\n<td align=\"left\"><code>Tab \u2192 Prometheus \u2192 \/start-work<\/code><\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u590d\u6742\u67b6\u6784\u4efb\u52a1\uff0c\u9700\u8981\u6df1\u5ea6\u72ec\u7acb\u6267\u884c<\/td>\n<td align=\"left\"><code>Tab \u2192 Hephaestus<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e03\u3001\u5178\u578b\u573a\u666f\u5b9e\u6218<\/h2>\n<h3>\u573a\u666f\u4e00\uff1a\u5feb\u901f\u7406\u89e3\u964c\u751f\u4ee3\u7801\u5e93<\/h3>\n<pre><code>@explore \u627e\u51fa\u6240\u6709 API \u5165\u53e3\u70b9\uff0c\u5217\u51fa\u8def\u7531\u548c\u5bf9\u5e94\u7684 Handler<\/code><\/pre>\n<pre><code>ulw \u5206\u6790\u8fd9\u4e2a\u9879\u76ee\u7684\u6574\u4f53\u67b6\u6784\uff0c\u91cd\u70b9\u662f\u8bf7\u6c42\u7684\u5b8c\u6574\u94fe\u8def\uff0c\r\n\u8f93\u51fa\u4e00\u4efd\u7ed9\u65b0\u4eba\u7684 onboarding \u6587\u6863<\/code><\/pre>\n<h3>\u573a\u666f\u4e8c\uff1a\u65b0\u529f\u80fd\u5f00\u53d1<\/h3>\n<p><strong>\u5c0f\u529f\u80fd\uff081-2 \u4e2a\u6587\u4ef6\uff09\uff1a\u76f4\u63a5 Build Agent<\/strong><\/p>\n<pre><code>\u5728 @src\/user\/UserService.java \u589e\u52a0\u624b\u673a\u53f7\u767b\u5f55\u65b9\u6cd5\uff0c\r\n\u53c2\u8003\u90ae\u7bb1\u767b\u5f55 @src\/user\/EmailLoginStrategy.java<\/code><\/pre>\n<p><strong>\u4e2d\u7b49\u529f\u80fd\uff08\u591a\u6587\u4ef6\u8054\u52a8\uff09\uff1aPlan \u2192 Build<\/strong><\/p>\n<pre><code>Tab\uff08\u5207\u6362\u5230 Plan Agent\uff09\r\n\u7ed9\u5220\u9664\u8ba2\u5355\u529f\u80fd\u52a0\u8f6f\u5220\u9664\uff1adeleted_at \u6807\u8bb0\u5220\u9664\u65f6\u95f4\uff0c\r\n\u65b0\u589e\u56de\u6536\u7ad9\u9875\u9762\u652f\u6301\u6062\u590d\u548c\u5f7b\u5e95\u5220\u9664\r\n\uff08\u5ba1\u67e5\u65b9\u6848\uff09\r\nTab\uff08\u5207\u56de Build Agent\uff09\r\n\u597d\uff0c\u6309\u8ba1\u5212\u6267\u884c\u3002<\/code><\/pre>\n<p><strong>\u5927\u578b\u529f\u80fd\uff08\u8de8\u6a21\u5757\uff09\uff1aulw \u6216 \/start-work<\/strong><\/p>\n<pre><code>ulw \u5b9e\u73b0\u5b8c\u6574\u7684\u4f18\u60e0\u5238\u7cfb\u7edf\uff1a\r\n\u56fa\u5b9a\u91d1\u989d\/\u767e\u5206\u6bd4\u4e24\u79cd\u6298\u6263\uff0c\u9650\u5236\u4f7f\u7528\u6b21\u6570\u548c\u6709\u6548\u671f\uff0c\u4e0e\u8d2d\u7269\u8f66\u96c6\u6210<\/code><\/pre>\n<h3>\u573a\u666f\u4e09\uff1a\u4ee3\u7801\u5ba1\u67e5\uff08\u4e0d\u4fee\u6539\u4ee3\u7801\uff09<\/h3>\n<pre><code>@explore \u5168\u91cf\u626b\u63cf src\/api\/ \u76ee\u5f55\uff0c\u627e\u51fa\u6240\u6709\u6ca1\u6709\u505a\u6743\u9650\u6821\u9a8c\u7684\u63a5\u53e3<\/code><\/pre>\n<pre><code>@oracle \u5bf9 @src\/payment\/PaymentService.java \u505a\u67b6\u6784\u5ba1\u67e5\uff0c\r\n\u91cd\u70b9\uff1a\u5e76\u53d1\u5b89\u5168\u3001\u5e42\u7b49\u6027\u3001\u5f02\u5e38\u8fb9\u754c<\/code><\/pre>\n<h3>\u573a\u666f\u56db\uff1a\u8c03\u8bd5\u590d\u6742 Bug<\/h3>\n<pre><code>ulw \u8ffd\u8e2a\u8fd9\u4e2a NPE \u7684\u6839\u672c\u539f\u56e0\uff0c\u4ece\u5806\u6808\u9876\u90e8\u5230\u6570\u636e\u6765\u6e90\u5168\u94fe\u8def\u5206\u6790\uff0c\r\n\u627e\u5230\u6839\u56e0\u540e\u7ed9\u51fa\u4fee\u590d\u65b9\u6848\u3002\u5806\u6808\uff1a\r\njava.lang.NullPointerException\r\n\u00a0 \u00a0 at com.example.OrderService.process(OrderService.java:142)\r\n\u00a0 \u00a0 ...<\/code><\/pre>\n<h3>\u573a\u666f\u4e94\uff1a\u5927\u8303\u56f4\u91cd\u6784<\/h3>\n<pre><code>ulw \u5c06 src\/payment\/ \u6a21\u5757\u91cd\u6784\u4e3a\u7b56\u7565\u6a21\u5f0f\uff0c\r\n\u73b0\u6709\u652f\u4ed8\u65b9\u5f0f\uff1a\u652f\u4ed8\u5b9d\u3001\u5fae\u4fe1\u3001\u4fe1\u7528\u5361\uff0c\r\n\u8981\u6c42\uff1a\u5bf9\u5916\u63a5\u53e3\u4e0d\u53d8\uff0c\u6240\u6709\u73b0\u6709\u6d4b\u8bd5\u7ee7\u7eed\u901a\u8fc7<\/code><\/pre>\n<h3>\u573a\u666f\u516d\uff1aUI \u8fd8\u539f\uff08\u8bbe\u8ba1\u7a3f\uff09<\/h3>\n<p>\u62d6\u62fd\u622a\u56fe\u5230\u7ec8\u7aef\u540e\uff1a<\/p>\n<pre><code>@multimodal-looker \u5206\u6790\u8fd9\u5f20\u8bbe\u8ba1\u7a3f\u7684\u5e03\u5c40\u548c\u6837\u5f0f\r\n\u6309\u7167\u56fe\u4e2d\u7684\u8bbe\u8ba1\u5b9e\u73b0 @src\/components\/Dashboard.tsx<\/code><\/pre>\n<h3>\u573a\u666f\u4e03\uff1a\u751f\u6210\u6587\u6863<\/h3>\n<pre><code>ulw \u4e3a src\/api\/ \u4e0b\u6240\u6709\u516c\u5f00\u63a5\u53e3\u751f\u6210 OpenAPI 3.0 \u89c4\u8303\uff0c\r\n\u8f93\u51fa\u5230 docs\/openapi.yaml\uff0c\u53c2\u8003 @docs\/openapi-sample.yaml \u7684\u683c\u5f0f<\/code><\/pre>\n<h2>\u516b\u3001\u914d\u7f6e\u901f\u67e5<\/h2>\n<h3>8.1 opencode.json<\/h3>\n<pre><code>{\r\n\u00a0 \"$schema\":\u00a0\"&lt;https:\/\/opencode.ai\/config.json&gt;\",\r\n\u00a0 \"model\":\u00a0\"anthropic\/claude-opus-4-6\",\r\n\u00a0 \"autoshare\":\u00a0false,\r\n\u00a0 \"plugins\":\u00a0[\"oh-my-opencode\"]\r\n}<\/code><\/pre>\n<h3>8.2 oh-my-opencode Agent \u914d\u7f6e<\/h3>\n<p><code>~\/.config\/opencode\/oh-my-opencode.json<\/code>\uff1a<\/p>\n<pre><code>{\r\n\u00a0 \"agents\":\u00a0{\r\n\u00a0 \u00a0 \"sisyphus\":\u00a0{\r\n\u00a0 \u00a0 \u00a0 \"model\":\u00a0\"anthropic\/claude-opus-4-6\"\r\n\u00a0 \u00a0 },\r\n\u00a0 \u00a0 \"oracle\":\u00a0{\r\n\u00a0 \u00a0 \u00a0 \"thinking\":\u00a0{\r\n\u00a0 \u00a0 \u00a0 \u00a0 \"type\":\u00a0\"enabled\",\r\n\u00a0 \u00a0 \u00a0 \u00a0 \"budgetTokens\":\u00a0200000\r\n\u00a0 \u00a0 \u00a0 }\r\n\u00a0 \u00a0 },\r\n\u00a0 \u00a0 \"explore\":\u00a0{\r\n\u00a0 \u00a0 \u00a0 \"textVerbosity\":\u00a0\"low\"\r\n\u00a0 \u00a0 }\r\n\u00a0 }\r\n}<\/code><\/pre>\n<h3>8.3 \u5185\u7f6e Skills\uff08oh-my-opencode\uff09<\/h3>\n<table>\n<thead>\n<tr>\n<th align=\"left\">Skill<\/th>\n<th align=\"left\">\u529f\u80fd<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><strong>playwright<\/strong><\/td>\n<td align=\"left\">\u6d4f\u89c8\u5668\u81ea\u52a8\u5316\u6d4b\u8bd5<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>git-master<\/strong><\/td>\n<td align=\"left\">\u539f\u5b50\u63d0\u4ea4\u3001rebase \u6574\u7406<\/td>\n<\/tr>\n<tr>\n<td align=\"left\"><strong>frontend-ui-ux<\/strong><\/td>\n<td align=\"left\">\u8bbe\u8ba1\u4f18\u5148\u7684 UI \u5b9e\u73b0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u81ea\u5b9a\u4e49 Skill \u8def\u5f84\uff1a<\/p>\n<pre><code>.opencode\/skills\/my-skill\/SKILL.md\r\n~\/.config\/opencode\/skills\/my-skill\/SKILL.md<\/code><\/pre>\n<h2>\u4e5d\u3001\u5e38\u89c1\u95ee\u9898<\/h2>\n<p><strong>Q\uff1a<code>@<\/code>\u00a0\u5f15\u7528\u6587\u4ef6\u548c\u00a0<code>@mention<\/code>\u00a0Agent \u5982\u4f55\u533a\u5206\uff1f<\/strong><\/p>\n<p>\u4e24\u8005\u5171\u7528\u00a0<code>@<\/code>\u00a0\u7b26\u53f7\uff0c\u533a\u5206\u903b\u8f91\uff1a\u8f93\u5165\u00a0<code>@<\/code>\u00a0\u540e\u5982\u679c\u5339\u914d\u7684\u662f\u6587\u4ef6\u8def\u5f84\u5219\u6ce8\u5165\u6587\u4ef6\u5185\u5bb9\uff1b\u5982\u679c\u8f93\u5165\u7684\u662f\u5df2\u6ce8\u518c\u7684 Agent \u540d\uff08\u5982\u00a0<code>@explore<\/code>\uff09\uff0c\u5219\u89e6\u53d1\u5b50 Agent \u8c03\u7528\u3002<\/p>\n<p><strong>Q\uff1a<code>Tab<\/code>\u00a0\u5207\u6362 Agent \u548c\u00a0<code>Ctrl+T<\/code>\u00a0\u5207\u6362\u6a21\u578b\u53d8\u4f53\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/strong><\/p>\n<p><code>Tab<\/code>\u00a0\u5207\u6362<strong>\u4e3b Agent<\/strong>\uff08\u89d2\u8272\u5207\u6362\uff0c\u8fde\u5e26\u5207\u6362\u8be5 Agent \u7684\u4e13\u5c5e\u6a21\u578b\u548c\u5de5\u5177\u6743\u9650\uff09\uff1b<code>Ctrl+T<\/code>\u00a0\u5207\u6362\u5f53\u524d Agent \u7684<strong>\u6a21\u578b\u53d8\u4f53<\/strong>\uff08\u5982\u540c\u4e00\u6a21\u578b\u7684\u6807\u51c6\u7248 vs Extended Thinking \u7248\uff09\u3002<\/p>\n<p><strong>Q\uff1aulw \u548c\u76f4\u63a5\u63cf\u8ff0\u9700\u6c42\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/strong><\/p>\n<p>\u76f4\u63a5\u63cf\u8ff0\u65f6\uff0cSisyphus \u5355\u7ebf\u7a0b\u6267\u884c\uff0c\u9047\u5230\u4e0d\u786e\u5b9a\u7684\u5730\u65b9\u53ef\u80fd\u505c\u4e0b\u6765\u95ee\u3002\u52a0\u00a0<code>ulw<\/code>\u00a0\u540e\u89e6\u53d1\u5168\u81ea\u52a8\u5e76\u884c\u6a21\u5f0f\uff1a\u591a\u4e2a\u5b50 Agent \u540c\u65f6\u5de5\u4f5c\uff0c\u81ea\u4e3b\u63a2\u7d22\u4ee3\u7801\u5e93\uff0c\u4e0d\u4e2d\u9014\u7b49\u786e\u8ba4\uff0c\u5b8c\u6210\u540e\u6301\u7eed\u9a8c\u8bc1\u76f4\u5230\u5f7b\u5e95\u5b8c\u6210\u3002<\/p>\n<p><strong>Q\uff1a\/start-work \u4e2d\u65ad\u4e86\u600e\u4e48\u529e\uff1f<\/strong><\/p>\n<p>\u91cd\u65b0\u8fd0\u884c\u00a0<code>\/start-work<\/code>\uff0c\u7cfb\u7edf\u4ece\u00a0<code>boulder.json<\/code>\u00a0\u6062\u590d\u8fdb\u5ea6\uff0c\u7ee7\u7eed\u672a\u5b8c\u6210\u7684\u4efb\u52a1\u3002<\/p>\n<p><strong>Q\uff1a\u4e0a\u4e0b\u6587\u5feb\u6ee1\u4e86\u600e\u4e48\u529e\uff1f<\/strong><\/p>\n<p>\u8fd0\u884c\u00a0<code>\/compact<\/code>\u00a0\u538b\u7f29\u5f53\u524d\u4f1a\u8bdd\uff0c\u5173\u952e\u4e0a\u4e0b\u6587\u4f1a\u88ab\u4fdd\u7559\u3002\u5927\u578b\u4efb\u52a1\u4f18\u5148\u4f7f\u7528\u00a0<code>\/start-work<\/code>\u00a0\u5de5\u4f5c\u6d41\uff0c\u5b50 Agent \u5206\u6563\u4e0a\u4e0b\u6587\u538b\u529b\u3002<\/p>\n<h2>\u53c2\u8003\u8d44\u6599<\/h2>\n<ul>\n<li>\u2022 OpenCode \u5b98\u65b9\u6587\u6863<\/li>\n<li>\u2022 OpenCode Agents \u6587\u6863<\/li>\n<li>\u2022 OpenCode Keybinds \u6587\u6863<\/li>\n<li>\u2022 oh-my-opencode GitHub<\/li>\n<li>\u2022 awesome-opencode \u63d2\u4ef6\u5408\u96c6<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u9762\u5411\u6709 AI \u7f16\u7a0b\u52a9\u624b\u4f7f\u7528\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005\uff0c\u805a\u7126\u5b9e\u6218\uff0c\u57fa\u4e8e\u5b98\u65b9\u6700\u65b0\u6587\u6863\uff082026-04\uff09\u6574\u7406\u3002 \u4e00\u3001OpenCode \u662f\u4ec0\u4e48 &nbsp; OpenCode \u662f\u8fd0\u884c\u5728\u7ec8\u7aef\u91cc\u7684\u5f00\u6e90 AI \u7f16\u7a0b Agent\uff0c\u652f\u6301 Claude\u3001GPT\u3001Gemini&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[182],"tags":[],"class_list":["post-63310","post","type-post","status-publish","format-standard","hentry","category-shicao"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/63310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/comments?post=63310"}],"version-history":[{"count":2,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/63310\/revisions"}],"predecessor-version":[{"id":63344,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/63310\/revisions\/63344"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=63310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=63310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=63310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}