📦帮你从 iFlow CLI ⚡ 无缝迁移到OpenCode 🔲——第一弹(模型配置,skills,subagent,项目,mcp,通知,使用习惯,主题,新特性,常见问题等)

对,oc的plan也是个agent,和build并列的,可能这么设计的好处是简单?只要控制agent的能力和权限就好,然后交互上也通用一些吧,iflow定制的比较深,但交互上的小问题也一直没优化完…

对的.
iflow是哪怕没有字.也提醒一次.
反正我踩坑了.

用了omo.
感觉好起来了.
但忍不住吐槽. 起的这些名字真的很傻

1 个赞

是的。他把主agent叫做西西弗斯。那玩意不是推石头上山的吗。:rofl:
我理解它需要高级感,但如果要我命名,我会用最简单的英文,比如Planner/Builder/Researcher这种。

就是取得这个寓意,一直推一直推,就是它一直执行,长任务

1 个赞

我们叫,愚公? :rofl:

似乎是有,但只有一点点的样子

在vscode里安装opencode插件,启动opencode插件,打开文件或选中文件某些行,然后win下是按快捷键ctrl+alt+k

然后你就看到,它把这个文件和行@到对话框里了

所以我说,有,但只有一点点 :rofl:

感谢老哥,不过这也太诡异了,
我这里直接 alt ctrl k 不行。
尝试了半天,以为是输入法,或者快捷键冲突。
然后我突然发现必须要这样才行:
选择代码,点击右键弹出菜单,但别管这个菜单,此时再alt ctrl k就可以了。
必须右键一下才好。
我不清楚这些软件的逻辑,所以完全不知道这是啥原因。但是凑合用吧。:face_with_peeking_eye:

明天我去公司试试的~

更新了外部编辑器的说明,更新到1.3.3版本后,之前win下切外部编辑器后,opencode卡住的问题解决了

大佬,我这试了下木有问题

opencode_selection

1 个赞

才发现,OpenCode的通知,是通过插件来实现的,而且有现成的插件了,支持跨平台win/mac/Linux,开箱即用,不需要自己写hooks了~

插件地址:GitHub - mohak34/opencode-notifier: OpenCode plugin for desktop notifications and sounds on permission, completion, and error events. · GitHub

支持非常多的配置项

感谢大佬分享。oc好像有language命令,支持中文。

已升级到1.3.4版本,木有啊

已经1.3.5了 这更新速度….

也是没有

这更新频率也太快了 :rofl:

学习和适应中,让oc给我出了一个学习教程,我们俩互动了解彼此。

1 个赞

1.3.5是个小更新,主要针对GPT模型的提示词进行了调整,看来老外也嫌GPT有点啰嗦 :rofl:

1.3.5更新内容

  • Fix plugin hooks to properly handle async operations
    修复插件钩子以正确处理异步操作
  • Adjust GPT prompt to be more minimal and fix file reference annoyances
    调整 GPT 提示词以更简洁,并修复文件引用问题

1.3.4 更新内容

Core 核心

  • Add prompt slot feature
    添加提示词插槽功能
  • Update opencode-gitlab-auth to 2.0.1 (@vglafirov)
    更新 opencode-gitlab-auth 至 2.0.1 ()
  • Refactored session processor to use effect-based architecture
    重构会话处理器以采用基于效果的架构
  • Use AppFileSystem instead of raw Filesystem for better abstraction
    使用 AppFileSystem 而非原始 Filesystem 以获得更好的抽象
  • Upgrade OpenTUI to version 0.1.91
    将 OpenTUI 升级至版本 0.1.91
  • Adjust bash tool description to increase cache hit rates between projects
    调整 bash 工具描述以提高项目间的缓存命中率
  • Update Effect to version 4.0.0-beta.42
    将 Effect 更新至版本 4.0.0-beta.42
  • Refactor session compaction service to use Effect
    重构会话压缩服务以使用 Effect
  • Add single target plugin entrypoints
    添加单目标插件入口点
  • Use ChildProcessSpawner instead of Process.spawn for formatting
    格式化时使用 ChildProcessSpawner 替代 Process.spawn
  • Move more responsibility to workspace routing
    将更多职责移至工作区路由
  • Refactor Session service to use Effect-based architecture
    重构会话服务以使用基于效果的架构
  • Add support for AI SDK v6
    添加对 AI SDK v6 的支持
  • Add additional overflow error patterns to error handling
    在错误处理中添加额外的溢出错误模式
  • Fix flaky plugin tests by removing mock.module which is not supported in Bun
    通过移除 Bun 不支持的 mock.module 来修复不稳定的插件测试
  • Split out instance and route through workspaces
    将实例分离并通过工作区进行路由
  • Effectify Plugin service internals
    Effectify 插件服务内部机制
  • Effectify Skill service internals
    Effectify 技能服务内部机制
  • Add TUI plugins support
    添加 TUI 插件支持
  • Refactor tool registry to yield Config and Plugin services using Effect.forEach
    重构工具注册表,使用 Effect.forEach 产生配置和插件服务
  • Ignore generated models snapshot files
    忽略生成的模型快照文件
  • Replace async git() with ChildProcessSpawner in VCS module
    在 VCS 模块中用 ChildProcessSpawner 替换异步 git()
  • Yield services instead of promise facades in Effect refactor
    在 Effect 重构中提供服务而非承诺外观
  • Fixed web UI bundle build on Windows
    修复了 Windows 上的 Web UI 打包构建问题
  • Improve app startup performance
    提升应用启动性能
  • Close MCP transport on failed or timed-out connections
    在连接失败或超时时关闭 MCP transport
  • Use cachedInvalidateWithTTL for config and bump Effect to beta.37
    对配置使用 cachedInvalidateWithTTL 并将 Effect 升级至 beta.37
  • Refactor Config service to use Effect
    重构配置服务以使用 Effect
  • Remove workspace server and WorkspaceContext, improve routing architecture
    移除工作区服务器和 WorkspaceContext,改进路由架构
  • Add GPT prompt so non-Codex GPT models have their own system prompt modeled after Codex CLI
    添加 GPT 提示词,使非 Codex GPT 模型拥有模仿 Codex CLI 的自有系统提示词
  • Refactor LSP service with InstanceState using Effect
    使用 Effect 重构带 InstanceState 的 LSP 服务

TUI

  • Use theme color for prompt placeholder
    对提示符占位符使用主题色
  • Add dialog variant menu and improve subagent functionality
    添加对话框变体菜单并改进子代理功能
  • Open dialog for model variant selection instead of cycling
    打开对话框进行模型变体选择,而非循环切换
  • Check KV theme before falling back to default theme
    在回退到默认主题前检查 KV 主题
  • Add top spacing to session view and remove obsolete documentation prompt
    为会话视图添加上间距并移除过时的文档提示
  • Restore subagent footer and fix style guide violations
    恢复子代理页脚并修复样式指南违规
  • Add model variant selection dialog
    添加模型变体选择对话框
  • Remove variant cycle display from footer
    从页脚移除变体周期显示
  • Move session context into prompt footer
    将会话上下文移至提示页脚

这个方式很棒

subagent迁移部分更新了模式说明,避免迁移过来后,tab键列表过多导致无法快速在plan和build之前切换的问题