1
0
forked from agents/opencode

Compare commits

..

42 Commits

Author SHA1 Message Date
mdy 9ef85a6e34 Reapply "chore: 将 Claude Opus 升级至 4-8"
This reverts commit 4d4abb2641.
2026-06-06 11:50:37 +08:00
mdy 4d4abb2641 Revert "chore: 将 Claude Opus 升级至 4-8"
This reverts commit 8f9dd3d8e1.
2026-05-31 15:18:17 +08:00
mdy 8f9dd3d8e1 chore: 将 Claude Opus 升级至 4-8 2026-05-31 14:41:19 +08:00
mdy d3b7567d68 merge upstream 2026-05-25 02:51:41 +00:00
imbytecat 23fc72fd56 chore: 将 ai-gateway provider 重命名为 furtherverse 2026-05-23 19:25:46 +08:00
mdy b6d2f4b183 Merge remote-tracking branch 'upstream/main'
# Conflicts:
#	oh-my-openagent.claude.jsonc
2026-05-18 12:25:42 +08:00
imbytecat 82cf48c092 chore: 将 hephaestus 变体升级至 high 2026-05-16 02:48:04 +08:00
mdy 44859d4a49 merge upstream 2026-05-15 03:34:29 +00:00
imbytecat bb82839bc5 chore: 将核心 agent 变体切换为 high 2026-05-15 00:44:32 +08:00
mdy b57614f0b1 merge upstream 2026-05-14 03:44:49 +00:00
imbytecat 40807570ee chore: 更新 OpenCode 模型配置 2026-05-14 04:17:06 +08:00
mdy 8bfb872238 merge upstream 2026-05-08 08:07:45 +00:00
imbytecat 4f8e7911e0 chore: 将 kimi-k2p5-turbo 和 sonnet-4-6 替换为 kimi-k2.6 2026-05-07 22:17:04 +08:00
mdy c2847df421 merge upstream 2026-04-27 02:13:09 +00:00
imbytecat b410705fd7 chore: 将剩余 gpt-5.4 配置升级至 gpt-5.5 并移除 gpt-5.4 模型 2026-04-25 12:35:19 +08:00
mdy ce4994d952 merge upstream 2026-04-24 20:05:06 +08:00
imbytecat 564c1934a6 chore: 将 glm-5 替换为 kimi-k2.6 并移除 kimi-k2.5 2026-04-24 14:57:49 +08:00
imbytecat 4516384f0e docs: 合并 .env.example 到 README 2026-04-24 14:31:56 +08:00
imbytecat ff94c77eb1 chore: 添加 GPT-5.5 模型配置 2026-04-24 14:26:28 +08:00
imbytecat 3facc31494 chore: 将 hephaestus、oracle 和 deep 升级至 gpt-5.5 2026-04-24 14:10:26 +08:00
mdy 3129cd0b58 merge upstream 2026-04-23 04:39:45 +00:00
imbytecat b9af5f6389 chore: 将 librarian 和 explore 切换至 gpt-5.4-mini 2026-04-22 22:45:03 +08:00
mdy 360064eff9 merge upstream 2026-04-22 09:02:46 +00:00
imbytecat 6c821b65c5 chore: 移除 gemini-3.1-pro-preview 模型配置 2026-04-22 14:01:25 +08:00
mdy ac6a3f58d1 merge upstream 2026-04-22 05:33:48 +00:00
imbytecat 561a3961c1 chore: 启用 Google provider 并切换 Gemini 至 google 前缀 2026-04-22 12:57:34 +08:00
mdy 1772732d47 merge upstream 2026-04-17 22:23:06 +08:00
imbytecat 0c812192ec chore: 将 TUI 主题切换为 catppuccin 2026-04-17 22:12:04 +08:00
imbytecat 92c25d63ca chore: 将 agent 模型升级到 Claude Opus 4.7 2026-04-17 18:27:28 +08:00
mdy bd53dfd30f chore: 应用 Claude Opus 4.7 到西西弗斯 2026-04-17 15:08:39 +08:00
mdy 090df9bed0 chore: 应用 Claude Opus 4.7 模型配置 2026-04-17 14:51:04 +08:00
mdy 9c03325aa3 merge upstream 2026-04-17 03:09:21 +00:00
imbytecat d1a4744d31 chore: 添加 Claude Opus 4.7 模型配置 2026-04-17 09:52:34 +08:00
mdy a235b88659 Merge branch 'main' of git-ssh.furtherverse.com:mdy/opencode-config 2026-04-10 19:40:37 +08:00
mdy 680e052744 merge upstream 2026-04-10 19:34:18 +08:00
imbytecat 3b623a3db8 docs: 补充多配置切换说明 2026-04-10 16:13:17 +08:00
imbytecat 071e61ff3d chore: 在 .gitignore 中忽略旧配置文件名 2026-04-10 15:58:29 +08:00
imbytecat e2ba6e9bd0 chore: 拆分配置文件为 Claude 和 GPT 两个变体 2026-04-10 15:58:24 +08:00
mdy d7e0e577a5 merge upstream 2026-04-10 06:47:24 +00:00
imbytecat 536a5f6e05 chore: 切换核心 agent 模型至 Anthropic Claude 并移除备份文件 2026-04-10 11:18:04 +08:00
mdy ff280ee23d merge upstream 2026-04-09 13:33:20 +00:00
imbytecat a288a50fb2 chore: 切换 sisyphus 模型并停用 Google provider 2026-04-09 19:04:07 +08:00
7 changed files with 127 additions and 126 deletions
-10
View File
@@ -1,10 +0,0 @@
# Provider
AI_GATEWAY_BASE_URL=https://ai-gateway.furtherverse.com
AI_GATEWAY_API_KEY=
# MCP
EXA_API_KEY=
CONTEXT7_API_KEY=
# Windows
OPENCODE_GIT_BASH_PATH=%USERPROFILE%\scoop\apps\git\current\bin\bash.exe
+3
View File
@@ -5,4 +5,7 @@ bun.lock
.DS_Store .DS_Store
Thumbs.db Thumbs.db
oh-my-openagent.json
oh-my-openagent.jsonc
.env .env
+21 -4
View File
@@ -18,14 +18,31 @@
git clone <repo-url> ~/.config/opencode git clone <repo-url> ~/.config/opencode
``` ```
3. 参考 `.env.example` 将以下环境变量配置到系统中 3. 将以下环境变量配置到系统中
| 变量 | 必填 | 说明 | | 变量 | 必填 | 说明 |
|------|------|------| |------|------|------|
| `AI_GATEWAY_BASE_URL` | 是 | 模型服务端点 | | `AI_GATEWAY_BASE_URL` | 是 | 模型服务端点,例如 `https://ai-gateway.furtherverse.com` |
| `AI_GATEWAY_API_KEY` | 是 | 模型服务密钥 | | `AI_GATEWAY_API_KEY` | 是 | 模型服务密钥 |
| `EXA_API_KEY` | 否 | [Exa](https://exa.ai) 搜索,提供联网能力,不配则使用默认额度 | | `EXA_API_KEY` | 否 | [Exa](https://exa.ai) 搜索,提供联网能力,不配则使用默认额度 |
| `CONTEXT7_API_KEY` | 否 | [Context7](https://context7.com) 文档查询,提供库文档检索,不配则使用默认额度 | | `CONTEXT7_API_KEY` | 否 | [Context7](https://context7.com) 文档查询,提供库文档检索,不配则使用默认额度 |
| `OPENCODE_GIT_BASH_PATH` | 否 | Windows 用户需指定 Git Bash 路径,否则工具调用可能异常 | | `OPENCODE_GIT_BASH_PATH` | 否 | Windows 用户需指定 Git Bash 路径,否则工具调用可能异常,例如 `%USERPROFILE%\scoop\apps\git\current\bin\bash.exe` |
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`
@@ -1,27 +1,27 @@
{ {
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json",
"agents": { "agents": {
"sisyphus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, "sisyphus": { "model": "anthropic/claude-opus-4-8", "variant": "max" },
"hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" }, "hephaestus": { "model": "openai/gpt-5.5", "variant": "high" },
"oracle": { "model": "openai/gpt-5.4", "variant": "high" }, "oracle": { "model": "openai/gpt-5.5", "variant": "high" },
"librarian": { "model": "ai-gateway/minimax-m2.7" }, "librarian": { "model": "openai/gpt-5.4-mini" },
"explore": { "model": "ai-gateway/minimax-m2.7" }, "explore": { "model": "openai/gpt-5.4-mini" },
"multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" }, "multimodal-looker": { "model": "openai/gpt-5.5", "variant": "medium" },
"prometheus": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, "prometheus": { "model": "anthropic/claude-opus-4-8", "variant": "max" },
"metis": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, "metis": { "model": "anthropic/claude-opus-4-8", "variant": "max" },
"momus": { "model": "openai/gpt-5.4", "variant": "xhigh" }, "momus": { "model": "openai/gpt-5.5", "variant": "xhigh" },
"atlas": { "model": "anthropic/claude-sonnet-4-6" }, "atlas": { "model": "furtherverse/kimi-k2.6" },
"sisyphus-junior": { "model": "anthropic/claude-sonnet-4-6" } "sisyphus-junior": { "model": "furtherverse/kimi-k2.6" }
}, },
"categories": { "categories": {
"visual-engineering": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, "visual-engineering": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
"ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" }, "ultrabrain": { "model": "openai/gpt-5.5", "variant": "xhigh" },
"deep": { "model": "openai/gpt-5.4", "variant": "medium" }, "deep": { "model": "openai/gpt-5.5", "variant": "medium" },
"artistry": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, "artistry": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
"quick": { "model": "openai/gpt-5.4-mini" }, "quick": { "model": "openai/gpt-5.4-mini" },
"unspecified-low": { "model": "anthropic/claude-sonnet-4-6" }, "unspecified-low": { "model": "furtherverse/kimi-k2.6" },
"unspecified-high": { "model": "anthropic/claude-opus-4-6", "variant": "max" }, "unspecified-high": { "model": "anthropic/claude-opus-4-8", "variant": "max" },
"writing": { "model": "ai-gateway/kimi-k2p5-turbo" } "writing": { "model": "furtherverse/kimi-k2.6" }
}, },
"experimental": { "experimental": {
"disable_omo_env": true, "disable_omo_env": true,
+64
View File
@@ -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.5", "variant": "high" },
"hephaestus": { "model": "openai/gpt-5.5", "variant": "high" },
"oracle": { "model": "openai/gpt-5.5", "variant": "high" },
"librarian": { "model": "openai/gpt-5.4-mini" },
"explore": { "model": "openai/gpt-5.4-mini" },
"multimodal-looker": { "model": "openai/gpt-5.5", "variant": "medium" },
"prometheus": { "model": "openai/gpt-5.5", "variant": "high" },
"metis": { "model": "openai/gpt-5.5", "variant": "high" },
"momus": { "model": "openai/gpt-5.5", "variant": "xhigh" },
"atlas": { "model": "furtherverse/kimi-k2.6" },
"sisyphus-junior": { "model": "furtherverse/kimi-k2.6" }
},
"categories": {
"visual-engineering": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
"ultrabrain": { "model": "openai/gpt-5.5", "variant": "xhigh" },
"deep": { "model": "openai/gpt-5.5", "variant": "medium" },
"artistry": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
"quick": { "model": "openai/gpt-5.4-mini" },
"unspecified-low": { "model": "furtherverse/kimi-k2.6" },
"unspecified-high": { "model": "openai/gpt-5.5", "variant": "high" },
"writing": { "model": "furtherverse/kimi-k2.6" }
},
"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"
}
}
-64
View File
@@ -1,64 +0,0 @@
{
"$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" },
"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"
}
}
+21 -30
View File
@@ -2,18 +2,19 @@
"$schema": "https://opencode.ai/config.json", "$schema": "https://opencode.ai/config.json",
"plugin": ["oh-my-openagent@latest"], "plugin": ["oh-my-openagent@latest"],
"autoupdate": false, "autoupdate": false,
"model": "anthropic/claude-opus-4-6", "model": "anthropic/claude-opus-4-8",
"small_model": "openai/gpt-5.4-mini", "small_model": "openai/gpt-5.4-mini",
"provider": { "provider": {
"anthropic": { "anthropic": {
"name": "Anthropic",
"npm": "@ai-sdk/anthropic", "npm": "@ai-sdk/anthropic",
"options": { "options": {
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1", "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
"apiKey": "{env:AI_GATEWAY_API_KEY}" "apiKey": "{env:AI_GATEWAY_API_KEY}"
}, },
"models": { "models": {
"claude-opus-4-6": { "claude-opus-4-8": {
"name": "Claude Opus 4.6", "name": "Claude Opus 4.8",
"reasoning": true, "reasoning": true,
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }, "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"limit": { "context": 1000000, "output": 128000 } "limit": { "context": 1000000, "output": 128000 }
@@ -33,17 +34,18 @@
} }
}, },
"openai": { "openai": {
"name": "OpenAI",
"npm": "@ai-sdk/openai", "npm": "@ai-sdk/openai",
"options": { "options": {
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1", "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
"apiKey": "{env:AI_GATEWAY_API_KEY}" "apiKey": "{env:AI_GATEWAY_API_KEY}"
}, },
"models": { "models": {
"gpt-5.4": { "gpt-5.5": {
"name": "GPT-5.4", "name": "GPT-5.5",
"reasoning": true, "reasoning": true,
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }, "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"limit": { "context": 1050000, "input": 922000, "output": 128000 } "limit": { "context": 1050000, "input": 920000, "output": 130000 }
}, },
"gpt-5.4-mini": { "gpt-5.4-mini": {
"name": "GPT-5.4 mini", "name": "GPT-5.4 mini",
@@ -54,6 +56,7 @@
} }
}, },
"google": { "google": {
"name": "Google",
"npm": "@ai-sdk/google", "npm": "@ai-sdk/google",
"options": { "options": {
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1beta", "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1beta",
@@ -74,43 +77,31 @@
} }
} }
}, },
"ai-gateway": { "furtherverse": {
"name": "AI Gateway", "name": "Furtherverse",
"npm": "@ai-sdk/openai-compatible", "npm": "@ai-sdk/openai-compatible",
"options": { "options": {
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1", "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
"apiKey": "{env:AI_GATEWAY_API_KEY}" "apiKey": "{env:AI_GATEWAY_API_KEY}"
}, },
"models": { "models": {
"gemini-3.1-pro-preview": {
"name": "Gemini 3.1 Pro",
"reasoning": true,
"modalities": { "input": ["text", "image"], "output": ["text"] },
"limit": { "context": 128000, "output": 128000 } // github copilot only has a 128k context size
},
"glm-5.1": { "glm-5.1": {
"name": "GLM-5.1", "name": "GLM-5.1",
"reasoning": true, "reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] }, "modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 } "limit": { "context": 202752, "output": 32768 }
}, },
"glm-5": { "kimi-k2.6": {
"name": "GLM-5", "name": "Kimi K2.6",
"reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 }
},
"kimi-k2p5-turbo": {
"name": "Kimi K2.5 Turbo",
"reasoning": true,
"modalities": { "input": ["text", "image"], "output": ["text"] },
"limit": { "context": 256000, "output": 256000 }
},
"kimi-k2.5": {
"name": "Kimi K2.5",
"reasoning": true, "reasoning": true,
"modalities": { "input": ["text", "image", "video"], "output": ["text"] }, "modalities": { "input": ["text", "image", "video"], "output": ["text"] },
"limit": { "context": 262144, "output": 262144 } "limit": { "context": 262144, "output": 65536 }
},
"kimi-k2.6-turbo": {
"name": "Kimi K2.6 Turbo",
"reasoning": true,
"modalities": { "input": ["text", "image"], "output": ["text"] },
"limit": { "context": 262000, "output": 262000 }
}, },
"minimax-m2.7": { "minimax-m2.7": {
"name": "MiniMax M2.7", "name": "MiniMax M2.7",