v1.1.48:Skills 可作为斜杠命令调用
发布日期:2026年01月31日
一句话总结
这次更新让 Skills 可以直接作为斜杠命令调用,还支持自定义模型配置文件路径,大幅提升了灵活性。
新功能:Skills 作为斜杠命令
这次更新了什么?
现在你可以在 TUI 中直接通过斜杠命令调用 Skills,不需要再手动输入 "加载 skill xxx"。
Skills 是什么?
Skills 是 OpenCode 的技能系统,可以让 AI 获得特定领域的专业知识和工作流程。比如代码审计、翻译、文档生成等。
如何使用?
在 TUI 中输入 / 后,你会看到所有可用的 Skills 列表。选择一个 Skill 即可直接调用。
示例:
/zhiliang # 调用代码质量审计 Skill
/anquan # 调用安全审计 Skill
/fanyi # 调用翻译 Skill👉 相关教程:Skill 基础
新功能:自定义模型配置文件路径
这次更新了什么?
现在可以通过环境变量 OPENCODE_MODELS_PATH 指定自定义的模型配置文件路径。
有什么用?
- 团队可以共享统一的模型配置
- 方便在不同环境使用不同的模型配置
- 支持版本控制模型配置
如何使用?
bash
# 设置自定义模型配置路径
export OPENCODE_MODELS_PATH=/path/to/your/models.json
# 启动 OpenCode
opencode新功能:Copilot 推理 Token 支持
这次更新了什么?
为 Copilot 添加了专门的 Provider,可以正确处理 Copilot 的推理 Token(reasoning tokens)。
有什么好处?
- Copilot 用户可以更准确地追踪 Token 使用情况
- 推理 Token 的统计更加精确
改进:Grep 默认不跟随符号链接
之前的情况
grep 和 ripgrep 操作默认会跟随符号链接,可能导致搜索结果包含意外的文件。
现在的情况
默认不再跟随符号链接,搜索结果更加可预测。如果需要跟随符号链接,可以手动指定。
问题修复
OpenAI 兼容 API 的 thinking 参数
修复了使用 OpenAI 兼容 API 时 thinking 参数的格式问题,现在使用 snake_case(thinking)而不是 camelCase。
Bash 权限处理
修复了 bash 权限检查中对重定向语句的处理问题。
Devstral 模型排序
确保 Mistral 的排序修复也适用于 Devstral 模型。
要不要升级?
| 情况 | 建议 |
|---|---|
| 想用斜杠命令调用 Skills | ✅ 强烈推荐 |
| 使用 Copilot | ✅ 推荐升级 |
| 需要自定义模型配置 | ✅ 推荐升级 |
| 用得好好的 | 可以等下次 |
升级命令:
bash
opencode upgrade技术细节(可跳过)
点击展开完整更新列表
Core
- Sync changes
- Allow specifying custom models file path via OPENCODE_MODELS_PATH environment variable
- Ensure models configuration is not empty before loading
- Make skills invokable as slash commands in the TUI
- Don't follow symbolic links by default in grep and ripgrep operations
- Prevent parallel test runs from contaminating environment variables
- Ensure Mistral ordering fixes also apply to Devstral
- Add Copilot-specific provider to properly handle reasoning tokens (@SteffenDE)
- Respect OPENCODE_MODELS_URL environment variable in build process (@bbartels)
- Use snake_case for thinking parameter with OpenAI-compatible APIs (@Chesars)
- Bump AI SDK packages
- Ensure ask question tool isn't included when using acp
- Handle redirected statement treesitter node in bash permissions (@pschiel)
- Remove special case handling for Google Vertex Anthropic provider in response generation (@MichaelYochpaz)
- Exclude chat models from textVerbosity setting
Desktop
- Revert transitions, spacing, scroll fade, and prompt area updates
- Add session actions tests (@neriousy)
- Refactored tests and added project tests (@neriousy)
Thank you to 7 community contributors:
@neriousy:
- refactor(app): refactored tests + added project tests (#11349)
- test(app): session actions (#11386)
@MichaelYochpaz:
- refactor(provider): remove google-vertex-anthropic special case in ge… (#10743)
@pschiel:
- fix: handle redirected_statement treesitter node in bash permissions (#6737)
@IdrisGit:
- docs: update agents options section to include color and top_p options (#11355)
@Chesars:
- fix(provider): use snake_case for thinking param with OpenAI-compatible APIs (#10109)
@bbartels:
- feat(build): respect OPENCODE_MODELS_URL env var (#11384)
@SteffenDE:
- feat(opencode): add copilot specific provider to properly handle copilot reasoning tokens (#8900)

