Compare commits

28 Commits

Author SHA1 Message Date
imbytecat 8400b997b7 chore: 添加 AGENTS 默认回复约束 2026-03-19 09:56:39 +08:00
imbytecat b3df515775 chore: sync JSONC config overrides 2026-03-19 09:51:55 +08:00
imbytecat d9f89b3b28 chore: migrate config files to jsonc 2026-03-18 09:57:50 +08:00
imbytecat cdabb9fd16 chore: 更新 GPT-5.4 mini 小模型配置 2026-03-18 09:49:14 +08:00
imbytecat caf20d861d chore: 调整 writing 代理模型分配 2026-03-17 14:59:36 +08:00
imbytecat b4569fa6a9 chore: 接入 LiteLLM 模型并更新轻量代理配置 2026-03-17 14:50:42 +08:00
imbytecat db8880c833 chore: 移除 experimental 动态上下文裁剪配置 2026-03-16 02:43:25 +08:00
imbytecat 681d8340cb feat: 升级至 GPT-5.4 并调整代理模型分配 2026-03-16 00:46:00 +08:00
imbytecat f8a349f478 chore: 调整 GPT-only 角色化模型分配 2026-03-04 23:54:56 +08:00
imbytecat 8fdfb38e84 chore: 精简配置格式并调整代理变体 2026-03-04 23:39:12 +08:00
imbytecat 9c768870e3 refactor: 从 CPA 换成 LiteLLM 2026-03-04 16:34:10 +08:00
imbytecat 8978eeb5de chore: 对齐分类文档链接并更新 artistry 模型参数 2026-02-26 11:09:52 +08:00
imbytecat 3a35190250 chore: 优化 GPT-only 配置以降低轻量任务成本 2026-02-26 10:24:53 +08:00
imbytecat b9650bfde8 chore: 调整代理模型配置并移除 glm-4.7 2026-02-26 09:33:35 +08:00
imbytecat 8573f89db7 feat: 更新代理模型参考链接并调整小模型配置
- 更新代理模型参考链接指向新的代理库存文档位置。
- 将小模型配置更新为使用cpa-openai/glm-4.7。
2026-02-24 14:46:39 +08:00
imbytecat 069684079a chore: 关闭粘贴摘要折叠以便预览完整文本 2026-02-16 00:36:52 +08:00
imbytecat 472294b787 chore: 合并 CPA OpenAI 提供商并统一模型前缀 2026-02-15 19:56:44 +08:00
imbytecat f087f34a96 chore: quick 分类切换为 gpt-5-nano 2026-02-15 19:26:13 +08:00
imbytecat cd4dd39670 chore: 调整 quick 模型为 glm-4.7 2026-02-15 03:40:44 +08:00
imbytecat 9de3f60156 chore: 调整 writing 模型配置为 glm-4.7 2026-02-15 03:36:44 +08:00
imbytecat 9384469551 chore: 调整 librarian 与 explore 模型配置 2026-02-15 03:26:35 +08:00
imbytecat 09407f9980 chore: 更新小模型配置并统一格式化 2026-02-15 03:14:30 +08:00
imbytecat 12d944efb4 chore: 调整检索与轻任务模型配置以提升性价比 2026-02-15 02:56:57 +08:00
imbytecat 8ca07bcdf5 feat: 提升规划编排模型并补齐 artistry 分类 2026-02-15 02:40:19 +08:00
imbytecat 8ea1baccf2 feat: 质量优先切换 librarian/explore/quick/writing 模型 2026-02-15 02:21:11 +08:00
imbytecat f4cc4c6f29 feat: 优化模型分层并新增 gpt-5.1-codex-mini 2026-02-15 02:07:05 +08:00
imbytecat 294451814e chore: 统一 explore 和 quick 模型使用 glm-4.7 2026-02-15 01:15:56 +08:00
imbytecat 0296ca6564 feat: 迁移至 Codex API 并添加 GLM Coding Plan 提供商 2026-02-15 01:05:03 +08:00
7 changed files with 48 additions and 284 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
# Provider
AI_GATEWAY_BASE_URL=https://ai-gateway.furtherverse.com
AI_GATEWAY_API_KEY=
LITELLM_BASE_URL=https://ai.furtherverse.com
LITELLM_API_KEY=
# MCP
EXA_API_KEY=
CONTEXT7_API_KEY=
# Windows
OPENCODE_GIT_BASH_PATH=%USERPROFILE%\scoop\apps\git\current\bin\bash.exe
OPENCODE_GIT_BASH_PATH=%USERPROFILE%\scoop\shims\bash.exe
-4
View File
@@ -1,10 +1,6 @@
node_modules
package.json
package-lock.json
bun.lock
.DS_Store
Thumbs.db
oh-my-openagent.json
oh-my-openagent.jsonc
-48
View File
@@ -1,48 +0,0 @@
# opencode-config
个人 [OpenCode](https://opencode.ai) 配置文件。
## 使用
1. 安装 OpenCode
```bash
npm i -g opencode-ai
# 或
bun add -g opencode-ai
```
2. 克隆配置到 `~/.config/opencode`
```bash
git clone <repo-url> ~/.config/opencode
```
3. 参考 `.env.example` 将以下环境变量配置到系统中
| 变量 | 必填 | 说明 |
|------|------|------|
| `AI_GATEWAY_BASE_URL` | 是 | 模型服务端点 |
| `AI_GATEWAY_API_KEY` | 是 | 模型服务密钥 |
| `EXA_API_KEY` | 否 | [Exa](https://exa.ai) 搜索,提供联网能力,不配则使用默认额度 |
| `CONTEXT7_API_KEY` | 否 | [Context7](https://context7.com) 文档查询,提供库文档检索,不配则使用默认额度 |
| `OPENCODE_GIT_BASH_PATH` | 否 | Windows 用户需指定 Git Bash 路径,否则工具调用可能异常 |
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`
-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": "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"
}
}
-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": "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"
}
}
+35
View File
@@ -0,0 +1,35 @@
{
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
"agents": {
"sisyphus": { "model": "openai/gpt-5.4", "variant": "medium" },
"hephaestus": { "model": "openai/gpt-5.3-codex", "variant": "medium" },
"oracle": { "model": "openai/gpt-5.4", "variant": "high" },
"librarian": { "model": "openai/gpt-5.4-mini" },
"explore": { "model": "openai/gpt-5.4-mini" },
"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": "openai/gpt-5.4", "variant": "medium" },
"sisyphus-junior": { "model": "openai/gpt-5.4", "variant": "medium" }
},
"categories": {
"visual-engineering": { "model": "openai/gpt-5.4", "variant": "medium" },
"ultrabrain": { "model": "openai/gpt-5.3-codex", "variant": "xhigh" },
"deep": { "model": "openai/gpt-5.3-codex", "variant": "medium" },
"artistry": { "model": "openai/gpt-5.4", "variant": "medium" },
"quick": { "model": "openai/gpt-5.4-mini" },
"unspecified-low": { "model": "openai/gpt-5.4", "variant": "medium" },
"unspecified-high": { "model": "openai/gpt-5.4", "variant": "high" },
"writing": { "model": "openai/gpt-5.4", "variant": "medium" }
},
"experimental": {
"dynamic_context_pruning": {
"enabled": true
}
},
"git_master": {
"commit_footer": false,
"include_co_authored_by": false
}
}
+10 -101
View File
@@ -1,42 +1,15 @@
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["oh-my-openagent@latest"],
"plugin": ["oh-my-opencode@latest"],
"autoupdate": false,
"model": "anthropic/claude-opus-4-6",
"model": "openai/gpt-5.4",
"small_model": "openai/gpt-5.4-mini",
"provider": {
"anthropic": {
"npm": "@ai-sdk/anthropic",
"options": {
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
"apiKey": "{env:AI_GATEWAY_API_KEY}"
},
"models": {
"claude-opus-4-6": {
"name": "Claude Opus 4.6",
"reasoning": true,
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"limit": { "context": 1000000, "output": 128000 }
},
"claude-sonnet-4-6": {
"name": "Claude Sonnet 4.6",
"reasoning": true,
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"limit": { "context": 200000, "output": 64000 }
},
"claude-haiku-4-5": {
"name": "Claude Haiku 4.5",
"reasoning": true,
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"limit": { "context": 200000, "output": 64000 }
}
}
},
"openai": {
"npm": "@ai-sdk/openai",
"options": {
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
"apiKey": "{env:AI_GATEWAY_API_KEY}"
"baseURL": "{env:LITELLM_BASE_URL}/v1",
"apiKey": "{env:LITELLM_API_KEY}"
},
"models": {
"gpt-5.4": {
@@ -45,6 +18,12 @@
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"limit": { "context": 1050000, "input": 922000, "output": 128000 }
},
"gpt-5.3-codex": {
"name": "GPT-5.3-Codex",
"reasoning": true,
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"limit": { "context": 400000, "input": 272000, "output": 128000 }
},
"gpt-5.4-mini": {
"name": "GPT-5.4 mini",
"reasoning": true,
@@ -52,77 +31,7 @@
"limit": { "context": 400000, "input": 272000, "output": 128000 }
}
}
},
// "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",
"options": {
"baseURL": "{env:AI_GATEWAY_BASE_URL}/v1",
"apiKey": "{env:AI_GATEWAY_API_KEY}"
},
"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": {
"name": "GLM-5.1",
"reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 }
},
"glm-5": {
"name": "GLM-5",
"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,
"modalities": { "input": ["text", "image", "video"], "output": ["text"] },
"limit": { "context": 262144, "output": 262144 }
},
"minimax-m2.7": {
"name": "MiniMax M2.7",
"reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 }
}
}
}
},
"permission": {
"*": "allow"
},
"experimental": {
"disable_paste_summary": true