Browse Source

Author preset

Alvin Unreal 1 month ago
parent
commit
ed4edd0cbe
3 changed files with 113 additions and 30 deletions
  1. 10 10
      README.zh-CN.md
  2. 101 18
      docs/authors-preset.md
  3. 2 2
      docs/session-management.md

+ 10 - 10
README.zh-CN.md

@@ -55,7 +55,7 @@ bunx oh-my-opencode-slim@beta install --background-subagents=yes
 
 ### 入门指南
 
-安装程序会同时生成 OpenAI 和 OpenCode Go 的预设(Preset),默认启用 OpenAI 预设。OpenAI 使用 `openai/gpt-5.5` 作为具备高级判断力智能体的模型,并使用 `openai/gpt-5.4-mini` 作为响应更快速、针对具体任务智能体的模型。若要在安装过程中激活 OpenCode Go 预设,请运行 `bunx oh-my-opencode-slim@latest install --preset=opencode-go` 或在安装后修改 `~/.config/opencode/oh-my-opencode-slim.json` 文件中的默认预设名称。
+安装程序会同时生成 OpenAI 和 OpenCode Go 的预设(Preset),默认启用 OpenAI 预设。OpenAI 使用变体感知路由:`openai/gpt-5.5` (medium) 作为工作流管理器/调度模型,`openai/gpt-5.5` (high) 作为 Oracle 模型,`openai/gpt-5.5` (low) 作为 Fixer 模型,并使用 `openai/gpt-5.4-mini` 变体模型作为响应更快速、针对具体任务的智能体模型。若要在安装过程中激活 OpenCode Go 预设,请运行 `bunx oh-my-opencode-slim@latest install --preset=opencode-go` 或在安装后修改 `~/.config/opencode/oh-my-opencode-slim.json` 文件中的默认预设名称。
 
 然后:
 
@@ -84,12 +84,12 @@ bunx oh-my-opencode-slim@beta install --background-subagents=yes
   "preset": "openai",
   "presets": {
     "openai": {
-      "orchestrator": { "model": "openai/gpt-5.5", "skills": ["*"], "mcps": ["*", "!context7"] },
+      "orchestrator": { "model": "openai/gpt-5.5", "variant": "medium", "skills": ["*"], "mcps": ["*", "!context7"] },
       "oracle": { "model": "openai/gpt-5.5", "variant": "high", "skills": ["simplify"], "mcps": [] },
       "librarian": { "model": "openai/gpt-5.4-mini", "variant": "low", "skills": [], "mcps": ["websearch", "context7", "gh_grep"] },
       "explorer": { "model": "openai/gpt-5.4-mini", "variant": "low", "skills": [], "mcps": [] },
       "designer": { "model": "openai/gpt-5.4-mini", "variant": "medium", "skills": [], "mcps": [] },
-      "fixer": { "model": "openai/gpt-5.4-mini", "variant": "low", "skills": [], "mcps": [] }
+      "fixer": { "model": "openai/gpt-5.5", "variant": "low", "skills": [], "mcps": [] }
     },
     "opencode-go": {
       "orchestrator": { "model": "opencode-go/glm-5.1", "skills": [ "*" ], "mcps": [ "*", "!context7" ] },
@@ -165,12 +165,12 @@ ping all agents
   </tr>
   <tr>
     <td colspan="2">
-      <b>默认模型:</b> <code>openai/gpt-5.5</code>
+      <b>默认模型:</b> <code>openai/gpt-5.5 (medium)</code>
     </td>
   </tr>
   <tr>
     <td colspan="2">
-      <b>推荐模型:</b> <code>openai/gpt-5.5</code> <code>anthropic/claude-opus-4.6</code>
+      <b>推荐模型:</b> <code>openai/gpt-5.5 (medium)</code> <code>anthropic/claude-opus-4.6</code>
     </td>
   </tr>
   <tr>
@@ -211,12 +211,12 @@ ping all agents
   </tr>
   <tr>
     <td colspan="2">
-      <b>推荐模型:</b> <code>cerebras/zai-glm-4.7</code> <code>fireworks-ai/accounts/fireworks/routers/kimi-k2p5-turbo</code> <code>openai/gpt-5.4-mini</code>
+      <b>推荐模型:</b> <i>无</i>
     </td>
   </tr>
   <tr>
     <td colspan="2">
-      <b>模型选用指南:</b> 选择快速、低成本的模型。Explorer 处理宽泛的侦察工作,因此速度效率通常比使用最强推理模型更重要。
+      <b>模型选用指南:</b> 选择快速、低成本的模型。Explorer 处理宽泛的侦察工作,因此速度 and 效率通常比使用最强推理模型更重要。
     </td>
   </tr>
 </table>
@@ -342,7 +342,7 @@ ping all agents
   </tr>
   <tr>
     <td colspan="2">
-      <b>推荐模型:</b> <code>cerebras/zai-glm-4.7</code> <code>fireworks-ai/accounts/fireworks/routers/kimi-k2p5-turbo</code> <code>openai/gpt-5.4-mini</code>
+      <b>推荐模型:</b> <i>无</i>
     </td>
   </tr>
   <tr>
@@ -419,12 +419,12 @@ ping all agents
   </tr>
   <tr>
     <td colspan="2">
-      <b>默认模型:</b> <code>openai/gpt-5.4-mini</code>
+      <b>默认模型:</b> <code>openai/gpt-5.5 (low)</code>
     </td>
   </tr>
   <tr>
     <td colspan="2">
-      <b>推荐模型:</b> <code>cerebras/zai-glm-4.7</code> <code>fireworks-ai/accounts/fireworks/routers/kimi-k2p5-turbo</code> <code>openai/gpt-5.4-mini</code>
+      <b>推荐模型:</b> <code>openai/gpt-5.5 (low)</code>
     </td>
   </tr>
   <tr>

+ 101 - 18
docs/authors-preset.md

@@ -8,30 +8,113 @@ This is the exact configuration the author runs day-to-day.
 
 ```jsonc
 {
+  "$schema": "https://unpkg.com/oh-my-opencode-slim@latest/oh-my-opencode-slim.schema.json",
   "preset": "openai",
+  "showStartupToast": false,
+  "companion": {
+    "enabled": true,
+    "position": "bottom-left",
+    "size": "small"
+  },
   "presets": {
-    "openai": { "orchestrator": { "model": "openai/gpt-5.5-fast", "skills": [ "*" ], "mcps": [ "*", "!context7"] },
-        "oracle": { "model": "openai/gpt-5.5-fast", "variant": "high", "skills": [], "mcps": [] },
-        "council": { "model": "openai/gpt-5.5-fast" },
-        "librarian": { "model": "openai/gpt-5.3-codex-spark", "variant": "low", "skills": [], "mcps": [ "websearch", "context7", "gh_grep" ] },
-        "explorer": { "model": "openai/gpt-5.3-codex-spark", "variant": "low", "skills": [], "mcps": [] },
-        "designer": { "model": "github-copilot/gemini-3.1-pro-preview", "skills": [], "mcps": [] },
-        "fixer": { "model": "openai/gpt-5.3-codex-spark", "variant": "low", "skills": [], "mcps": [] }
+    "openai": {
+      "orchestrator": {
+        "model": "openai/gpt-5.5-fast",
+        "skills": [
+          "*",
+          "!make-interfaces-feel-better"
+        ],
+        "mcps": [
+          "*",
+          "!context7",
+          "!gh_app",
+          "!websearch"
+        ]
+      },
+      "oracle": {
+        "model": "openai/gpt-5.5-fast",
+        "variant": "high",
+        "skills": [
+          "ce-brainstorm",
+          "workers-best-practices",
+          "web-perf"
+        ],
+        "mcps": [
+          "codegraph",
+          "searxng",
+          "crawl4ai"
+        ]
+      },
+      "librarian": {
+        "model": "openai/gpt-5.3-codex-spark",
+        "variant": "low",
+        "skills": [
+          "customer-research"
+        ],
+        "mcps": [
+          "websearch",
+          "context7",
+          "gh_app",
+          "searxng",
+          "crawl4ai"
+        ]
+      },
+      "explorer": {
+        "model": "openai/gpt-5.3-codex-spark",
+        "variant": "low",
+        "skills": [],
+        "mcps": [
+          "codegraph"
+        ]
+      },
+      "designer": {
+        "model": "omniroute/antigravity/gemini-3-flash-agent",
+        "skills": [
+          "make-interfaces-feel-better",
+          "better-icons",
+          "vue",
+          "nuxt",
+          "motion",
+          "image",
+          "marketing-psychology",
+          "video"
+        ],
+        "mcps": [
+          "codegraph"
+        ]
+      },
+      "fixer": {
+        "model": "omniroute/antigravity/gemini-3-flash-agent",
+        "variant": "low",
+        "skills": [
+          "vitest",
+          "pnpm",
+          "vite",
+          "tsdown"
+        ],
+        "mcps": [
+          "codegraph",
+          "searxng",
+          "crawl4ai"
+        ]
+      }
+    }
+  },
+  "agents": {
+    "fast-generic": {
+      "model": "openai/gpt-5.3-codex-spark",
+      "variant": "low",
+      "prompt": "You are a fast generic execution agent for routine mechanical command work. Run requested shell commands, inspect results, and report concise outcomes. For git commits or pushes, inspect git status, git diff, and recent log first; stage only intended files; avoid secrets; preserve repository commit-message style; never amend, rebase, reset --hard, clean, force-push, delete branches, or perform destructive history operations unless the user explicitly requested that exact operation. Do not edit code or make architecture/design decisions.",
+      "orchestratorPrompt": "Delegate to @fast-generic for routine mechanical command work: git status/diff/log reconnaissance, normal commit preparation, creating commits, pushing commits, and no-edit command validation such as lint, typecheck, static verification, tests, builds, or package-manager equivalents. Ask it to inspect diffs before committing, stage only intended files, avoid secrets, preserve repository commit-message style, and report final commit hashes or push results. Do not use it for code edits, design work, architecture, debugging strategy, docs research, or destructive git history operations such as amend, rebase, reset --hard, clean, force-push, or deleting branches unless the user explicitly requested that exact operation.",
+      "skills": [],
+      "mcps": []
     }
   },
-  "multiplexer": {
-    "type": "auto",
+  "tmux": {
+    "enabled": true,
     "layout": "main-vertical",
     "main_pane_size": 60
-  },
-  "council": {
-    "presets": {
-      "default": {
-        "alpha":  { "model": "github-copilot/claude-sonnet-4.6", "variant": "high" },
-        "beta": { "model": "github-copilot/gemini-3.1-pro-preview", "variant": "high" },
-        "gamma": { "model": "fireworks-ai/accounts/fireworks/routers/kimi-k2p5-turbo" }
-      }
-    }
   }
 }
+
 ```

+ 2 - 2
docs/session-management.md

@@ -97,9 +97,9 @@ That means the generated starter config can stay clean:
   "preset": "openai",
   "presets": {
     "openai": {
-      "orchestrator": { "model": "openai/gpt-5.5" },
+      "orchestrator": { "model": "openai/gpt-5.5", "variant": "medium" },
       "explorer": { "model": "openai/gpt-5.4-mini" },
-      "fixer": { "model": "openai/gpt-5.4-mini" }
+      "fixer": { "model": "openai/gpt-5.5", "variant": "low" }
     }
   }
 }