From e5120f2690915b5bac4cc4878ff9cc2788b06e47 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Thu, 9 Apr 2026 11:18:01 +0800 Subject: [PATCH 1/8] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20package-lock.?= =?UTF-8?q?json=20=E5=88=B0=20.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 931fa36..07a2870 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules package.json +package-lock.json bun.lock .DS_Store From 5bc20fee604fd688a678cdbbb730900899e2c6d7 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Thu, 9 Apr 2026 11:18:08 +0800 Subject: [PATCH 2/8] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20agent=20?= =?UTF-8?q?=E5=92=8C=E7=B1=BB=E5=88=AB=E6=A8=A1=E5=9E=8B=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oh-my-openagent.jsonc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/oh-my-openagent.jsonc b/oh-my-openagent.jsonc index d4a0f38..93499b3 100644 --- a/oh-my-openagent.jsonc +++ b/oh-my-openagent.jsonc @@ -1,17 +1,17 @@ { "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", "agents": { - "sisyphus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, + "sisyphus": { "model": "ai-gateway/kimi-k2p5-turbo" }, "hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" }, "oracle": { "model": "openai/gpt-5.4", "variant": "high" }, "librarian": { "model": "ai-gateway/minimax-m2.7" }, "explore": { "model": "ai-gateway/minimax-m2.7" }, "multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" }, - "prometheus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, - "metis": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, + "prometheus": { "model": "openai/gpt-5.4", "variant": "high" }, + "metis": { "model": "openai/gpt-5.4", "variant": "high" }, "momus": { "model": "openai/gpt-5.4", "variant": "xhigh" }, - "atlas": { "model": "anthropic/claude-sonnet-4-6" }, - "sisyphus-junior": { "model": "anthropic/claude-sonnet-4-6" } + "atlas": { "model": "ai-gateway/kimi-k2p5-turbo" }, + "sisyphus-junior": { "model": "ai-gateway/kimi-k2p5-turbo" } }, "categories": { "visual-engineering": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, @@ -19,8 +19,8 @@ "deep": { "model": "openai/gpt-5.4", "variant": "medium" }, "artistry": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, "quick": { "model": "openai/gpt-5.4-mini" }, - "unspecified-low": { "model": "anthropic/claude-sonnet-4-6" }, - "unspecified-high": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, + "unspecified-low": { "model": "gpt-5.3-codex", "variant": "medium" }, + "unspecified-high": { "model": "openai/gpt-5.4", "variant": "high" }, "writing": { "model": "ai-gateway/kimi-k2p5-turbo" } }, "experimental": { From 725477f0cd6df9905aa5366bb0e1b9d5cad371fc Mon Sep 17 00:00:00 2001 From: imbytecat Date: Thu, 9 Apr 2026 11:18:38 +0800 Subject: [PATCH 3/8] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bak/oh-my-openagent.jsonc | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .bak/oh-my-openagent.jsonc diff --git a/.bak/oh-my-openagent.jsonc b/.bak/oh-my-openagent.jsonc new file mode 100644 index 0000000..d4a0f38 --- /dev/null +++ b/.bak/oh-my-openagent.jsonc @@ -0,0 +1,64 @@ +{ + "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", + "agents": { + "sisyphus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, + "hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" }, + "oracle": { "model": "openai/gpt-5.4", "variant": "high" }, + "librarian": { "model": "ai-gateway/minimax-m2.7" }, + "explore": { "model": "ai-gateway/minimax-m2.7" }, + "multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" }, + "prometheus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, + "metis": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, + "momus": { "model": "openai/gpt-5.4", "variant": "xhigh" }, + "atlas": { "model": "anthropic/claude-sonnet-4-6" }, + "sisyphus-junior": { "model": "anthropic/claude-sonnet-4-6" } + }, + "categories": { + "visual-engineering": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, + "ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" }, + "deep": { "model": "openai/gpt-5.4", "variant": "medium" }, + "artistry": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, + "quick": { "model": "openai/gpt-5.4-mini" }, + "unspecified-low": { "model": "anthropic/claude-sonnet-4-6" }, + "unspecified-high": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, + "writing": { "model": "ai-gateway/kimi-k2p5-turbo" } + }, + "experimental": { + "disable_omo_env": true, + "dynamic_context_pruning": { + "enabled": true, + "notification": "detailed", + "turn_protection": { + "enabled": true, + "turns": 3 + }, + "protected_tools": [ + "task", + "todowrite", + "todoread", + "lsp_rename", + "session_read", + "session_write", + "session_search" + ], + "strategies": { + "deduplication": { + "enabled": true + }, + "supersede_writes": { + "enabled": true, + "aggressive": false + }, + "purge_errors": { + "enabled": true, + "turns": 5 + } + } + } + }, + "git_master": { + "commit_footer": false, + "include_co_authored_by": false, + "git_env_prefix": "GIT_MASTER=1" + } +} From a288a50fb288258d98480f5648342537bc3c2cbe Mon Sep 17 00:00:00 2001 From: imbytecat Date: Thu, 9 Apr 2026 19:04:07 +0800 Subject: [PATCH 4/8] =?UTF-8?q?chore:=20=E5=88=87=E6=8D=A2=20sisyphus=20?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=B9=B6=E5=81=9C=E7=94=A8=20Google=20provid?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oh-my-openagent.jsonc | 2 +- opencode.jsonc | 42 +++++++++++++++++++++--------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/oh-my-openagent.jsonc b/oh-my-openagent.jsonc index 93499b3..f2df123 100644 --- a/oh-my-openagent.jsonc +++ b/oh-my-openagent.jsonc @@ -1,7 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", "agents": { - "sisyphus": { "model": "ai-gateway/kimi-k2p5-turbo" }, + "sisyphus": { "model": "openai/gpt-5.4", "variant": "medium" }, "hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" }, "oracle": { "model": "openai/gpt-5.4", "variant": "high" }, "librarian": { "model": "ai-gateway/minimax-m2.7" }, diff --git a/opencode.jsonc b/opencode.jsonc index cde8412..552c8cc 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -53,27 +53,27 @@ } } }, - "google": { - "npm": "@ai-sdk/google", - "options": { - "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1beta", - "apiKey": "{env:AI_GATEWAY_API_KEY}" - }, - "models": { - "gemini-3.1-pro-preview": { - "name": "Gemini 3.1 Pro", - "reasoning": true, - "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] }, - "limit": { "context": 1048576, "output": 65536 } - }, - "gemini-3-flash-preview": { - "name": "Gemini 3 Flash", - "reasoning": true, - "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] }, - "limit": { "context": 1048576, "output": 65536 } - } - } - }, + // "google": { + // "npm": "@ai-sdk/google", + // "options": { + // "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1beta", + // "apiKey": "{env:AI_GATEWAY_API_KEY}" + // }, + // "models": { + // "gemini-3.1-pro-preview": { + // "name": "Gemini 3.1 Pro", + // "reasoning": true, + // "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] }, + // "limit": { "context": 1048576, "output": 65536 } + // }, + // "gemini-3-flash-preview": { + // "name": "Gemini 3 Flash", + // "reasoning": true, + // "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] }, + // "limit": { "context": 1048576, "output": 65536 } + // } + // } + // }, "ai-gateway": { "name": "AI Gateway", "npm": "@ai-sdk/openai-compatible", From 536a5f6e050b21fd758eae965265b5f9ecff31bc Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 10 Apr 2026 11:18:04 +0800 Subject: [PATCH 5/8] =?UTF-8?q?chore:=20=E5=88=87=E6=8D=A2=E6=A0=B8?= =?UTF-8?q?=E5=BF=83=20agent=20=E6=A8=A1=E5=9E=8B=E8=87=B3=20Anthropic=20C?= =?UTF-8?q?laude=20=E5=B9=B6=E7=A7=BB=E9=99=A4=E5=A4=87=E4=BB=BD=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bak/oh-my-openagent.jsonc | 64 -------------------------------------- oh-my-openagent.jsonc | 14 ++++----- 2 files changed, 7 insertions(+), 71 deletions(-) delete mode 100644 .bak/oh-my-openagent.jsonc diff --git a/.bak/oh-my-openagent.jsonc b/.bak/oh-my-openagent.jsonc deleted file mode 100644 index d4a0f38..0000000 --- a/.bak/oh-my-openagent.jsonc +++ /dev/null @@ -1,64 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", - "agents": { - "sisyphus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, - "hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" }, - "oracle": { "model": "openai/gpt-5.4", "variant": "high" }, - "librarian": { "model": "ai-gateway/minimax-m2.7" }, - "explore": { "model": "ai-gateway/minimax-m2.7" }, - "multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" }, - "prometheus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, - "metis": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, - "momus": { "model": "openai/gpt-5.4", "variant": "xhigh" }, - "atlas": { "model": "anthropic/claude-sonnet-4-6" }, - "sisyphus-junior": { "model": "anthropic/claude-sonnet-4-6" } - }, - "categories": { - "visual-engineering": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, - "ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" }, - "deep": { "model": "openai/gpt-5.4", "variant": "medium" }, - "artistry": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, - "quick": { "model": "openai/gpt-5.4-mini" }, - "unspecified-low": { "model": "anthropic/claude-sonnet-4-6" }, - "unspecified-high": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, - "writing": { "model": "ai-gateway/kimi-k2p5-turbo" } - }, - "experimental": { - "disable_omo_env": true, - "dynamic_context_pruning": { - "enabled": true, - "notification": "detailed", - "turn_protection": { - "enabled": true, - "turns": 3 - }, - "protected_tools": [ - "task", - "todowrite", - "todoread", - "lsp_rename", - "session_read", - "session_write", - "session_search" - ], - "strategies": { - "deduplication": { - "enabled": true - }, - "supersede_writes": { - "enabled": true, - "aggressive": false - }, - "purge_errors": { - "enabled": true, - "turns": 5 - } - } - } - }, - "git_master": { - "commit_footer": false, - "include_co_authored_by": false, - "git_env_prefix": "GIT_MASTER=1" - } -} diff --git a/oh-my-openagent.jsonc b/oh-my-openagent.jsonc index f2df123..d4a0f38 100644 --- a/oh-my-openagent.jsonc +++ b/oh-my-openagent.jsonc @@ -1,17 +1,17 @@ { "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", "agents": { - "sisyphus": { "model": "openai/gpt-5.4", "variant": "medium" }, + "sisyphus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, "hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" }, "oracle": { "model": "openai/gpt-5.4", "variant": "high" }, "librarian": { "model": "ai-gateway/minimax-m2.7" }, "explore": { "model": "ai-gateway/minimax-m2.7" }, "multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" }, - "prometheus": { "model": "openai/gpt-5.4", "variant": "high" }, - "metis": { "model": "openai/gpt-5.4", "variant": "high" }, + "prometheus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, + "metis": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, "momus": { "model": "openai/gpt-5.4", "variant": "xhigh" }, - "atlas": { "model": "ai-gateway/kimi-k2p5-turbo" }, - "sisyphus-junior": { "model": "ai-gateway/kimi-k2p5-turbo" } + "atlas": { "model": "anthropic/claude-sonnet-4-6" }, + "sisyphus-junior": { "model": "anthropic/claude-sonnet-4-6" } }, "categories": { "visual-engineering": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, @@ -19,8 +19,8 @@ "deep": { "model": "openai/gpt-5.4", "variant": "medium" }, "artistry": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, "quick": { "model": "openai/gpt-5.4-mini" }, - "unspecified-low": { "model": "gpt-5.3-codex", "variant": "medium" }, - "unspecified-high": { "model": "openai/gpt-5.4", "variant": "high" }, + "unspecified-low": { "model": "anthropic/claude-sonnet-4-6" }, + "unspecified-high": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, "writing": { "model": "ai-gateway/kimi-k2p5-turbo" } }, "experimental": { From e2ba6e9bd0c1612c9830517e74c95c9a0fc8337f Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 10 Apr 2026 15:58:24 +0800 Subject: [PATCH 6/8] =?UTF-8?q?chore:=20=E6=8B=86=E5=88=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=BA=20Claude=20=E5=92=8C=20GPT?= =?UTF-8?q?=20=E4=B8=A4=E4=B8=AA=E5=8F=98=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...gent.jsonc => oh-my-openagent.claude.jsonc | 0 oh-my-openagent.gpt.jsonc | 64 +++++++++++++++++++ 2 files changed, 64 insertions(+) rename oh-my-openagent.jsonc => oh-my-openagent.claude.jsonc (100%) create mode 100644 oh-my-openagent.gpt.jsonc diff --git a/oh-my-openagent.jsonc b/oh-my-openagent.claude.jsonc similarity index 100% rename from oh-my-openagent.jsonc rename to oh-my-openagent.claude.jsonc diff --git a/oh-my-openagent.gpt.jsonc b/oh-my-openagent.gpt.jsonc new file mode 100644 index 0000000..f2df123 --- /dev/null +++ b/oh-my-openagent.gpt.jsonc @@ -0,0 +1,64 @@ +{ + "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", + "agents": { + "sisyphus": { "model": "openai/gpt-5.4", "variant": "medium" }, + "hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" }, + "oracle": { "model": "openai/gpt-5.4", "variant": "high" }, + "librarian": { "model": "ai-gateway/minimax-m2.7" }, + "explore": { "model": "ai-gateway/minimax-m2.7" }, + "multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" }, + "prometheus": { "model": "openai/gpt-5.4", "variant": "high" }, + "metis": { "model": "openai/gpt-5.4", "variant": "high" }, + "momus": { "model": "openai/gpt-5.4", "variant": "xhigh" }, + "atlas": { "model": "ai-gateway/kimi-k2p5-turbo" }, + "sisyphus-junior": { "model": "ai-gateway/kimi-k2p5-turbo" } + }, + "categories": { + "visual-engineering": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, + "ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" }, + "deep": { "model": "openai/gpt-5.4", "variant": "medium" }, + "artistry": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, + "quick": { "model": "openai/gpt-5.4-mini" }, + "unspecified-low": { "model": "gpt-5.3-codex", "variant": "medium" }, + "unspecified-high": { "model": "openai/gpt-5.4", "variant": "high" }, + "writing": { "model": "ai-gateway/kimi-k2p5-turbo" } + }, + "experimental": { + "disable_omo_env": true, + "dynamic_context_pruning": { + "enabled": true, + "notification": "detailed", + "turn_protection": { + "enabled": true, + "turns": 3 + }, + "protected_tools": [ + "task", + "todowrite", + "todoread", + "lsp_rename", + "session_read", + "session_write", + "session_search" + ], + "strategies": { + "deduplication": { + "enabled": true + }, + "supersede_writes": { + "enabled": true, + "aggressive": false + }, + "purge_errors": { + "enabled": true, + "turns": 5 + } + } + } + }, + "git_master": { + "commit_footer": false, + "include_co_authored_by": false, + "git_env_prefix": "GIT_MASTER=1" + } +} From 071e61ff3dc3e8c5fadf0497aa7cab85cdb6f3dd Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 10 Apr 2026 15:58:29 +0800 Subject: [PATCH 7/8] =?UTF-8?q?chore:=20=E5=9C=A8=20.gitignore=20=E4=B8=AD?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=E6=97=A7=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 07a2870..25ca110 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ bun.lock .DS_Store Thumbs.db + +oh-my-openagent.json +oh-my-openagent.jsonc From 3b623a3db8a0fd083221d08d7945c2f33d935afe Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 10 Apr 2026 16:13:17 +0800 Subject: [PATCH 8/8] =?UTF-8?q?docs:=20=E8=A1=A5=E5=85=85=E5=A4=9A?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=88=87=E6=8D=A2=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fa7f494..f54a29d 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,21 @@ | `CONTEXT7_API_KEY` | 否 | [Context7](https://context7.com) 文档查询,提供库文档检索,不配则使用默认额度 | | `OPENCODE_GIT_BASH_PATH` | 否 | Windows 用户需指定 Git Bash 路径,否则工具调用可能异常 | -4. 运行 `opencode` +4. 选择 oh-my-openagent 配置 + + 项目提供了多套 [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent) 预设配置,通过符号链接切换: + + | 文件 | 说明 | + |------|------| + | `oh-my-openagent.claude.jsonc` | 主力 agent 使用 Claude 系列模型 | + | `oh-my-openagent.gpt.jsonc` | 主力 agent 使用 GPT 系列模型 | + + ```bash + # 使用 Claude 配置(默认) + ln -sf oh-my-openagent.claude.jsonc oh-my-openagent.jsonc + + # 使用 GPT 配置 + ln -sf oh-my-openagent.gpt.jsonc oh-my-openagent.jsonc + ``` + +5. 运行 `opencode`