@walke/opencode-pm-workflow
v2.1.5
Published
A production-oriented OpenCode workflow plugin for agent orchestration, gates, diagnostics, and controlled automation.
Maintainers
Readme
@walke/opencode-pm-workflow
English
@walke/opencode-pm-workflow is a production-oriented OpenCode plugin for
multi-agent orchestration, workflow gates, controlled continuation, diagnostics,
and release-oriented execution.
Current package version: 2.1.5.
Requirements
- OpenCode
^1.18.10 - Node.js
22.22.2+,24.15.0+, or26+
Install
npm install @walke/opencode-pm-workflowRegister the same package in both OpenCode configuration files.
opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@walke/opencode-pm-workflow"]
}tui.json:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["@walke/opencode-pm-workflow"]
}Run the read-only environment check:
pmw self-check --jsonInside OpenCode, /pm-workflow loads the bundled skill and runs the same
read-only self-check. The report also warns when a user/global
skills/pm-workflow/SKILL.md shadows the bundled package skill, including old
Windows-hostile bash .../scripts/check.sh instructions. Apply repairs only
after reviewing the reported plan:
pmw self-check --apply --jsonCross-platform discovery
The plugin does not hardcode drive letters, usernames, or installation paths. It resolves the effective environment from verified sources in this order:
- OpenCode environment overrides such as
OPENCODE_CONFIG_DIRand XDG paths. - The executable hosting the current OpenCode process.
- Explicit installation variables and entries in
PATH. - OpenCode's standard user installation directory.
Every discovered executable must exist and is queried with --version.
Arbitrary full-disk scanning is intentionally excluded because it is slow,
ambiguous, and cannot identify which installation OpenCode actually selected.
OpenCode command files are loaded from:
- Global:
<effective-config-dir>/commands/ - Project:
.opencode/commands/
With the default configuration root, the global location is
~/.config/opencode/commands/.
Agents and workflows
The six built-in semantic IDs remain stable:
commander, advisor, backendcoder, designer, fixer, and writer.
The built-in sanguo theme uses these display names:
| Agent ID | Display name |
| --- | --- |
| commander | 孙权 |
| advisor | 诸葛亮 |
| backendcoder | 吕布 |
| designer | 貂蝉 |
| fixer | 赵云 |
| writer | 陈琳 |
OpenCode custom agents are not restricted by this list. A project workflow can
reference any valid OpenCode subagent or all agent. pm-workflow validates
the resolved registry, DAG, mode, disabled state, permission.task, and the
existing workflow gates without taking ownership of the custom agent's model,
prompt, or permissions.
Model examples use OpenCode's canonical provider/model-id format, such as
openai/<model-id> or anthropic/<model-id>. The plugin does not prefer or
document private routing providers. Portable aliases are resolved only when
they match exactly one model in the user's own OpenCode provider registry.
Release verification
npm run verify-releaseThe command runs type checking, build, API and documentation checks, coverage, smoke tests, and an npm pack dry run.
简体中文
@walke/opencode-pm-workflow 是一个可发布的 OpenCode 插件包,用于把项目任务从"长期停留在需求层"推进到可验证的开发执行闭环。
当前发布版本:2.1.5。
适用场景
本工具有两种使用模式,请按你的需求选择:
| 模式 | 何时用 | 提供的能力 | 不提供的能力 |
| --- | --- | --- | --- |
| OpenCode 内(在线) | 你已装 OpenCode,想用多 agent 分派 + 自动续跑 + 模型降级编排开发 | 全部能力:dispatch / Auto-continue / ForegroundFallback / 量化分派 / 声明式路由 / Gate / Permission / 健康检查 | — |
| OpenCode 外(离线 CLI) | CI、服务器、没装 OpenCode 的环境,只需要诊断 / 审计 / 配置工具 | pmw self-check / doctor / state / history / report / review / agents create/describe/list/promote/doctor / docs check / models init / verify | dispatch / Auto-continue / 任何依赖 LLM 的能力 |
关键边界:真实多 agent 分派必须在 OpenCode 进程里运行。pm-workflow 本身不实现 LLM runtime / tool 协议 / 子进程编排,这些都来自 OpenCode。
pmwCLI 提供"独立可用的诊断与审计工具子集",不能脱离 OpenCode 完成 dispatch。
项目定位
pm-workflow 不只是一个提示词 Skill,而是一个 OpenCode 扩展运行时。它提供:
- 状态与阶段机:自动判断项目当前所处阶段(idea/spec/plan/dev/review/release)
- Gate 系统:约束不安全推进,确保必要的 spec/plan/review 不被跳过
- 智能调度:按任务特征自动分派到合适的专业 agent
- 执行编排:PM 主协调,handoff 压缩,结果评估,受控自动续跑
- 长任务续接:OpenCode 压缩 session 时保留当前工作流状态与下一步
- 诊断与工具:跨平台环境发现、统一自检、状态查询、执行回执、权限管理
Command Lanes
插件提供 4 条 Command Lane 入口,用于不同审慎级别的调度预览:
| Lane | 用途 |
| --- | --- |
| pm-quick | 低风险快速推进 |
| pm-medium | 标准实现建议 |
| pm-full | 高审慎完整执行 |
| pm-debug | 排障优先建议 |
核心工作流原则
pm-workflow 采用**"稳定任务域 + 外部 agent 定义绑定"**的双层模型:
commander是统一主协调入口- command lanes 是 UX facade,不是第二套 runtime
- Analyzer 负责语义判断,Registry 负责 agent 定义绑定,Runtime 负责执行编排
- 新增 agent 不等于新增语义角色
核心流转:
需求压缩 → 开发实现 → 测试验证 → 发布摘要OpenCode 自定义 agent 工作流
六个固定 ID 只是 pm-workflow 的内置语义角色,不限制 OpenCode 自身的 agent 扩展。项目可在 OpenCode 中定义任意 subagent / all agent,再由 .pm-workflow/config.json 的 workflows 引用真实 agent ID。插件从 OpenCode config hook 的解析后 agent 注册表读取 mode/disable/permission,不复制或接管自定义 agent 的 model、prompt、permission。
例如,纯聊天、无工具但可使用模型自身联网能力的 researcher 由 OpenCode 管理:
{
"agent": {
"commander": {
"mode": "primary",
"permission": {
"task": {
"*": "deny",
"advisor": "allow",
"backendcoder": "allow",
"designer": "allow",
"fixer": "allow",
"writer": "allow",
"researcher": "allow"
}
}
},
"researcher": {
"mode": "subagent",
"model": "your-provider/your-research-model",
"permission": {
"*": "deny"
}
}
}
}项目工作流只声明编排:
{
"workflows": {
"external-research": {
"description": "检索外部资料并复核结论",
"triggers": ["最新资料", "外部网络调研"],
"action": "collect-spec",
"steps": [
{
"id": "research",
"agent": "researcher",
"mission": "检索权威来源并总结证据"
},
{
"id": "review",
"agent": "advisor",
"mission": "复核来源与不确定性",
"depends_on": ["research"]
}
]
}
}
}插件严格校验字段、DAG、agent 是否存在/启用/可被 Task 调用、commander permission.task 和对应 action 的 Gate。使用 pmw workflows list|validate 做离线配置检查;运行时使用 pm-list-custom-workflows / pm-get-custom-workflow-plan 检查真实 OpenCode agent 注册表。
安装
需要 OpenCode ^1.18.10。Node.js 需满足 22.22.2+、24.15.0+ 或 26+。
npm install @walke/opencode-pm-workflowOpenCode 接入
OpenCode 1.18.10 将 server plugin 与 TUI plugin 分开配置。两处必须使用同一个包引用:
opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@walke/opencode-pm-workflow"]
}tui.json:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["@walke/opencode-pm-workflow"]
}官方 tuple 形式也受支持,例如 ["@walke/opencode-pm-workflow", {"health": {"minTools": 5}}]。项目配置按 OpenCode 优先级覆盖全局配置,后出现的同包引用生效。pmw self-check --json 会统一检查 server/TUI 引用、CLI、cache、skill、agent 与工作流配置。
server plugin 会通过 OpenCode 1.18.10 的 skills.paths 注册包内 skills/pm-workflow/,不会复制或改写 ~/.config/opencode/skills。skill 与 npm 包同版本,扩展升级后直接加载新包内 skill;用户在配置中显式声明的 skill path 排在包内路径之后,可按 OpenCode 的后加载规则覆盖同名 skill。
插件启动时会自动发现当前系统、OpenCode 配置/cache/data 目录、可用 CLI、插件引用和 agent 库,并把只读自检摘要写入 OpenCode 日志。用户也可在 OpenCode 内显式触发:
/pm-workflow该命令先加载包内 pm-workflow skill,再调用只读 pm-self-check。它不会自动更新包、重启 OpenCode、改写自定义 agent 或清理 cache。
插件生成的 host agent 权限采用显式默认拒绝:commander 只允许委派五个固定 subagent,所有 subagent 的 permission.task["*"] 均为 deny。默认全局配置来自 $XDG_CONFIG_HOME/opencode;设置 OPENCODE_CONFIG_DIR 时,OpenCode 会在默认全局与项目来源之后加载该自定义目录,pm-workflow 写入目标也使用该目录。
初次模型配置
推荐通过 pm-workflow.models.example.json 的便携模型别名配置角色。模板不绑定或偏好任何私有 provider;pmw 会从用户自己的 OpenCode 全局 provider.*.models 清单精确解析别名,并只把唯一命中的完整 provider/model-id 写入 opencode.json.agent.<id>.model。同一别名命中多个 provider 时会停止并列出候选,不会静默选择。
pmw models apply --defaults默认便携映射为:commander/advisor=gpt-5.6-sol、backendcoder/fixer=gpt-5.6-terra、designer=gemini-3.5-flash、writer=gpt-5.6-luna。这些只是待解析的便携模型名;用户未配置唯一对应模型时命令会返回 blocker,不会写入无效配置。
当前文档结构
本项目的现行文档已收敛为 README + 5 篇主文档:
| 文档 | 内容 |
| --- | --- |
| README.md | 项目入口、安装接入、发布验证 |
| docs/01-技术架构.md | 核心任务域、分层职责、调度语义、agent 定义来源、架构图 |
| docs/02-业务功能与任务流转.md | 阶段模型、dispatch、lane 业务语义、auto-continue、业务流程图 |
| docs/03-使用与运维手册.md | 安装接入、配置、常用工具、诊断、发布、FAQ |
| docs/04-待办与演进清单.md | 当前状态、已完成能力、边界约束、后续演进方向 |
| docs/05-公开-API-参考.md | 公开导出、SemVer 边界与 API 快照流程 |
发布前验证
npm run verify-release发布
npm version patch --no-git-tag-version
npm run verify-release
npm publish --access public发布后确认:
npm view @walke/opencode-pm-workflow version统一自检与受控修复
OpenCode 1.18.10 把 npm plugin 缓存在 $XDG_CACHE_HOME/opencode/packages/<package-spec>/node_modules/,未设置 XDG 时使用 ~/.cache/opencode/packages/。先运行只读自检:
pmw self-check --json确认报告中的修复计划后,再显式执行:
pmw self-check --apply --json自检只处理当前配置选中的 OpenCode 官方 XDG packages cache,不扫描 Kilo、其它 tag、顶层 node_modules 或平台私有缓存。配置发现从 OpenCode 当前会话目录开始:server 按 1.18.10 在真实 Git worktree 根停止,TUI 按其独立 loader 继续向上;两者分别合并本地可观察的默认全局、显式文件、项目文件、.opencode 与自定义目录,server 还处理 OPENCODE_CONFIG_CONTENT。OpenCode well-known、active organization 与 managed/MDM 配置层需要宿主运行时求值,自检固定报告 configuration-coverage warning,运行时解析后的 registry 才是最终事实源。损坏的本地来源会形成带路径 blocker,但不会让诊断入口失效。--apply 只会对齐 server/TUI 引用、备份当前目标的失配 cache、迁移已明确移除的工作流字段,以及恢复经过路径、symlink/junction 和内容 hash 校验的中断 agent 创建事务。文件/cache 修复和事务恢复都注册逆向操作,任一步失败会恢复本轮此前变更;不会静默更新 npm 包、覆盖自定义 agent/model、复制全局 skill 或重启 OpenCode。
2.1.0 不在读取时迁移 state、旧配置或旧项目文件。其它修复仍必须显式执行,并在改写前生成备份:
pmw repair state
pmw repair state --reset
pmw repair config --scope global
pmw repair config --scope project
pmw repair artifacts
pmw history validate
pmw history repair插件只接受 OpenCode 提供的绝对、非根项目路径;无效路径、未知/错误类型配置、损坏 state、未满足的健康阈值和缺失 permission.task 授权都会直接返回明确错误,不会写入 home、临时目录、自动重置或默认放行。
Review marker 可通过 CLI 显式管理:
pmw review status
pmw review reset
pmw review complete如果升级后角色列表、旧角色名或模型 ID 仍然混乱,可运行:
pmw repair agents --scope global该命令会备份旧版 agent/ 目录残留和 pm_lead 等旧 ID 文件,重建 6 个新版 agent md,并移除 md 内旧 model / fallback_models,让模型只走 OpenCode 官方 opencode.json.agent 配置。
局部主题与模型配置
三国主题默认展示名为:commander=孙权、advisor=诸葛亮、backendcoder=吕布、designer=貂蝉、fixer=赵云、writer=陈琳。语义 ID 始终保持不变。
只改少数 agent 的展示名,不重渲染整套主题:
pmw agents theme override --scope global --names commander=孙权,advisor=诸葛亮,writer=陈琳把模型写入 OpenCode 官方 opencode.json.agent:
pmw models set --agent commander,advisor,writer,explore --model "openai/<model-id>"
pmw models apply --map "commander=openai/<model-id>,advisor=anthropic/<model-id>,writer=openai/<model-id>"
pmw models apply --defaults自定义 Agent 管理
可创建任意符合 OpenCode ID 规则的 agent,不要求加入 pm-workflow 固定语义角色。模型会写入 OpenCode 官方 opencode.json.agent.<id>.model,agent 定义写入项目或全局 agents/:
pmw agents create researcher \
--description "检索外部资料并总结证据" \
--profile research \
--model your-provider/your-research-model \
--scope project \
--mode subagentchat profile 会禁用全部工具;research 仅开放读取和网络检索;worker 使用受控写入权限。完整 provider/model-id 会直接保留;省略 provider 的别名会在默认全局、worktree 祖先、逐级 .opencode、~/.opencode、OPENCODE_CONFIG_DIR、OPENCODE_CONFIG 与 OPENCODE_CONFIG_CONTENT 构成的本地可观察来源链中精确查找,只有唯一命中才展开。create 用同一本地来源链检查 agent/、agents/ 和 config agent 定义,不覆盖任何同名 ID;well-known、active organization 与 managed/MDM 层不能由离线 CLI 求值,命令会明确 warning,并要求以运行时 agent registry 复核。同步写 model 与 Markdown 时使用 proper-lockfile 原子目录 lease、提交前配置内容/权限复验、不可覆盖的原子 agent 提交和严格 journal;journal 记录 agent/config hash,create、自检恢复及 server/TUI 配置修复使用同一组锁,过期 lease 可回收,替换已有配置与恢复快照时保留原权限位。该锁只协调 pm-workflow 写入者,不宣称能对不遵守此锁的外部编辑器提供文件系统级 CAS。进程中断后由自检或下一次同 scope 显式 create 恢复。只修改 OpenCode 官方展示描述时使用:
pmw agents describe researcher --description "外部资料研究员" --scope project文件型 config 中的唯一 agent 定义可以修改;OPENCODE_CONFIG_CONTENT 属于运行时只读来源,describe 会明确阻断,不会猜测写入位置。
describe 可更新唯一命中的 Markdown 或 inline config 定义;发现多个实际定义时拒绝猜测目标。
Change Log
| 日期 | 版本 | 变更 |
| --- | --- | --- |
| 2026-07-31 | 2.1.5 | 修复包内 check.sh/upgrade.sh/diagnostic-data.mjs CRLF 行尾;增加 .gitattributes 与 LF-only 回归 |
| 2026-07-31 | 2.1.4 | 升级迁移兼容:旧 docs 只读兼容、state -1 迁移、legacy fallback map 清理、migrate-config 命令、日志窗口过滤 |
| 2026-07-31 | 2.1.3 | 根目录/bootstrap 实例静默降级为 debug;PATH CLI 按 engines.opencode 诊断;启动期 latest/cache 降噪 |
| 2026-07-31 | 2.1.2 | 修复 repair config dry-run 写盘;self-check 覆盖 legacy global config;迁移历史主题 ID |
| 2026-07-31 | 2.1.1 | self-check 增加全局 skill 覆盖/旧 bash 诊断指令提示;package 增加 repository/bugs 入口 |
| 2026-07-31 | 2.1.0 | npm/GitHub 文案改为英文优先双语;路径发现使用可信来源;更新三国主题名并移除私有 provider 示例 |
| 2026-07-30 | 2.1.0 | 对齐 OpenCode 1.18.10;新增跨平台环境发现、启动只读自检、/pm-workflow、受控修复与自定义 agent 创建/描述 |
| 2026-07-30 | 2.0.0 | 严格对齐 OpenCode 1.18.9;新增 OpenCode 原生自定义 agent 工作流、DAG/Task/Gate 严格校验与运行时计划工具 |
| 2026-07-30 | 1.1.9 | 对齐 OpenCode 1.18.9;增加 compaction 续接、Windows/CRLF 兼容、Node 诊断 helper、review CLI 与环境失败隔离 |
| 2026-07-19 | 1.1.8 | 新增自动更新检测:首次激活时 npm registry 对比版本,自动更新桌面端缓存 |
| 2026-06-18 | 1.1.5 | 旧版 pm_* agent ID 自动迁移与白名单过滤;插件激活时自动补齐缺失 agent .md |
| 2026-06-11 | 1.1.4 | 对齐 OpenCode 1.17:升级 @opencode-ai/plugin 到 ^1.17.3,agent 主题改为 permission-only,不再生成 deprecated tools |
| 2026-06-09 | 1.1.3 | 规范化 package.json 的 bin.pmw 路径,消除 npm publish 自动修正 warning |
| 2026-06-09 | 1.1.2 | 将 commander OpenCode 原生 steps 上限从 5 调整为 20,减少复杂分派时过早触发最大步骤数提示 |
| 2026-06-04 | 1.1.1 | 修复 pmw doctor 将可选 preferred_session_id 当作 hard failure 的问题;dispatch prompt 明确默认流程文档写入 .pm-workflow/docs/* |
| 2026-05-30 | 1.1.0 | 新增 pmw repair agents:备份旧 agent 残留、重建 6 个新版 agent md,并清理 md 内旧 model/fallback_models,避免升级用户角色与模型配置混乱 |
| 2026-05-28 | 1.0.3 | 新增 pmw agents theme override 局部覆盖 display_name;新增 pmw models set/apply 写入 OpenCode 官方 opencode.json.agent.<id>.model 并校验模型 ID;agents list/doctor 显示真实模型来源,避免 model=(default) 误导 |
| 2026-05-28 | 1.0.2 | 新增 pmw repair opencode-cache:自动检测并备份 OpenCode/Kilo 中旧版或损坏的 pm-workflow npm plugin 缓存,解决旧缓存导致插件启动前崩溃、无法显示 /pm-workflow 入口的问题 |
| 2026-05-25 | 1.0.1 | 修复 commander stream 7 分钟超时:实测 commander 不真调 task tool,而在 stream 里"演戏"假装多角色对话直到 stream 累积过长被 OpenCode 服务端 terminated(log 显示 +428449ms)。1.0.1 给 commander 加 steps: 5 强制最多 5 步内部迭代后必须收敛输出,逼 LLM 真调 task 而不是写长 stream。AgentThemeRoleSkin 类型新增 steps?: number 字段,渲染时写入 frontmatter |
| 2026-05-25 | 1.0.0 | 首个正式版。从 0.3.1 走到 1.0.0 经过 23 个 RC 验证 |
| 2026-05-25 | 1.0.0-rc.23 | 修复 advisor bash 漏洞:审计 6 个 agent permission 时发现 advisor 可以用 bash 绕过 tools.write/edit: false;rc.23 改 advisor.permission.bash 为 21 条只读白名单 |
| 2026-05-25 | 1.0.0-rc.22 | 修复 writer bash 白名单太严:rc.6 起白名单只放 4 条命令,writer 写文档前无法 ls/find/cat 收集材料;rc.22 扩展到 17 条只读命令 |
| 2026-05-24 | 1.0.0-rc.21 | 清理 0.x 死代码与冗余:删除 commands/ 4 个 OpenCode 命令文件;删除 src/tui/agent-theme-banner.ts;修 e2e-checklist / workflow-flow.svg / config.example.json 残留旧 agent ID |
| 2026-05-24 | 1.0.0-rc.20 | commander 强约束加固:rc.12 的 tools.write/edit: false + permission.edit: deny 实测被 LLM 用 bash 的 cat/echo 绕过;rc.20 收紧 tools.bash: false + permission.bash: deny,body 加任务路由对照表 |
| 2026-05-23 | 1.0.0-rc.19 | model.md 新增基于用户当前 provider registry 的模型配置指引 |
| 2026-05-23 | 1.0.0-rc.18 | model.md 新增 5 个常见错误诊断(E1 ProviderModelNotFoundError / E2 用户 UI 手选覆盖 / E3 fallback 不触发 / E4 路由器 503 熔断 / E5 JSON 语法错误) |
| 2026-05-23 | 1.0.0-rc.17 | 修复 banner 不显示真因:rc.16 的 banner 调用在 plugin first activation 期间发出,早于 OpenCode TUI server 启动,client.tui.showToast() HTTP 调用永远不 resolve 让 plugin 流程挂起;rc.17 改用 setTimeout(2s) 异步触发 + Promise.race 3 秒兜底超时,banner 失败不卡 plugin |
| 2026-05-23 | 1.0.0-rc.16 | agent 主题 banner 改走 server 侧 SDK 调用:rc.14/rc.15 试图用 TUI plugin 注册 banner 但 OpenCode 1.15 不支持外部 TUI plugin;rc.16 改用 server client.tui.showToast() |
| 2026-05-23 | 1.0.0-rc.15 | 修复 TUI plugin 不加载:在 package.json 加 oc-plugin: ["server", "tui"] 字段——事后实测 OpenCode 1.15 不读这个字段,rc.16 改走 server 侧调用 |
| 2026-05-23 | 1.0.0-rc.14 | TUI agent 主题名 banner(实验):弥补 OpenCode UI 切换器只显示文件名(designer)不显示 frontmatter display_name(貂蝉)的限制 |
| 2026-05-23 | 1.0.0-rc.13 | 修复 skill 引导漏洞:rc.7-rc.12 的 model.md 错误教 AI 把模型配置写到 pm-workflow.config.json(OpenCode 不读,无效);rc.13 改为明确教 AI 写到 opencode.json 的 agent 段(OpenCode 唯一权威位置) |
| 2026-05-23 | 1.0.0-rc.12 | commander 强制分派:tools.write/edit=false + permission.edit=deny + body 加强制约束段,物理上阻止 commander 自己写代码 |
| 2026-05-23 | 1.0.0-rc.11 | skill 子目录组织(OpenCode/Claude Code 标准):reference/ workflows/ troubleshooting/ scripts/ 4 个子目录,SKILL.md 仅做导航 |
| 2026-05-23 | 1.0.0-rc.10 | 3 个 skill 合并为单一 pm-workflow skill:之前 rc.9 有 3 个独立 skill 冗余且分散触发词,rc.10 合并为唯一入口;7 个顶层 .md 文件 |
| 2026-05-23 | 1.0.0-rc.9 | 新增 pm-workflow-config skill:插件全场景帮手;含 4 个支持文件 + 4 个可执行脚本(check.sh / upgrade.sh / reset-agents.sh / full-clean.sh);脚本输出详细过程日志;skill auto-install 升级为递归同步 supporting files 与 scripts/ 子目录 |
| 2026-05-23 | 1.0.0-rc.8 | agent md 完全符合 OpenCode 规范:新增 temperature / tools / permission 字段;body 重写为完整系统 prompt(≥60 行);不写 model 字段(让 pmw models init 单独管) |
| 2026-05-23 | 1.0.0-rc.7 | 修复 OpenCode skill 规范:rc.3-rc.6 错误地把 SKILL.md 复制成扁平 <id>.md(OpenCode 不识别),rc.7 改为正确的子目录结构 <id>/SKILL.md;同时补全 skill frontmatter name 字段(OpenCode 必填);agent-theme-config skill 内容更新对齐 6 个新 agent ID + mode 字段约束 |
| 2026-05-23 | 1.0.0-rc.6 | 6 个固定 agent 重命名 + 角色合并/拆分:commander / advisor / backendcoder / designer / fixer / writer 替代旧 ID;advisor 合并旧 advisor + researcher;designer 合并旧 frontend + 新增设计/原型/图像生成;fixer 合并旧 reviewer 测试侧 + 新增 deployer 职责;writer 独立为文档撰写专门 agent。修复 OpenCode UI bug:主题渲染强制写 mode 字段(commander=primary,其他=subagent),切换列表只显示 commander |
| 2026-05-23 | 1.0.0-rc.5 | 跨平台兼容性修复:fallback 路径从硬编码 /tmp 改为 Node os.tmpdir()(macOS/Linux/Windows 自动适配);从 process.env.HOME \|\| process.env.USERPROFILE 改为 os.homedir();getConfigDir 在 Windows 上改用 %USERPROFILE%\.config\opencode 与 OpenCode 官方规范对齐(不再用 %APPDATA%) |
| 2026-05-23 | 1.0.0-rc.4 | 修复 OpenCode 启动时插件加载失败:getProjectDir 在 OpenCode server 进程(cwd === "/")下返回 "/" 导致 mkdir('/.pm-workflow') ENOENT 让插件 abort;新增 resolveSafeProjectDir 跳过空字符串 / "/" / "",回退到 ~/.cache/pm-workflow/global;plugin 入口 try/catch 兜底 bootstrap;skill auto-install 移到激活判断之外;TUI plugin 与 28 处 tool 入口同步使用安全兜底 |
| 2026-05-23 | 1.0.0-rc.3 | Skill auto-install:插件首次激活时自动把包内 skills/<id>/SKILL.md 同步到 ~/.config/opencode/skills/<id>.md,无需用户手动复制;用户改过的目标文件不覆盖 |
| 2026-05-23 | 1.0.0-rc.2 | 新增 Agent 主题(agent-theme):5 套内置主题(default/sanguo/xiyou/marvel/workplace)+ pmw agents theme list/preview/apply CLI + 对话式入口模板/skill;修复 agent-registry 测试漏跑、Node 22+ 覆盖率守门假失败、SVG 三国残留 |
| 2026-05-23 | 1.0.0-rc.1 | 顶部新增"适用场景"段:明确 OpenCode 内(dispatch/Auto-continue 等需 OpenCode 进程)与 OpenCode 外(pmw CLI 诊断/审计/配置子集)两种使用模式 |
| 2026-05-23 | 1.0.0-rc.0 | 真实环境端到端验收框架(docs/sandbox/e2e-checklist.md + scripts/e2e-headless.mjs);1.0.0 路线第 3 步 |
| 2026-05-23 | 0.13.0 | node_modules 从 git track 移除;测试覆盖率守门工具(Node 22 内置,6 个关键模块 ≥ 85%)(1.0.0 路线第 2 步) |
| 2026-05-23 | 0.12.0 | 公开 API 锁定(120 个符号快照)+ docs/05 公开 API 参考 + prepare-publish 集成 api-snapshot 与 docs check(1.0.0 路线第 1 步) |
| 2026-05-23 | 0.11.4 | 模型配置模板支持关键词数组与 provider 优先级;用户填关键词,AI 解析展开后用户确认再写入 |
| 2026-05-23 | 0.11.3 | 模型配置模板补全 agent 角色画像(agent_profiles),AI 校验时按 traits 给候选不静默替换 |
| 2026-05-23 | 0.11.2 | 新增模型配置模板,推荐用户填模板后由 AI 读取并自动合并配置 |
| 2026-05-23 | 0.11.1 | 新增 pmw models init,初次使用时可一次性配置 agent 主模型与回退模型 |
| 2026-05-23 | 0.11.0 | 新增 pmw docs check 文档治理检查,自动校验版本同步、主文档数量、Change Log 与旧路径引用 |
| 2026-05-22 | 0.10.1 | README 对齐当前版本、5 篇文档结构与 OpenCode npm plugin 接入方式 |
| 2026-05-09 | 0.2.0 | Agent 命名简化:弃用三国角色名,统一为通用短名称;合并 QA+Writer 为 fixer;移除硬编码模型 ID |
| 2026-05-09 | 0.1.18 | 文档收敛:将 30+ 篇分散文档合并为 5 篇主文档,删除历史 spec/plan/migration 文档,统一流程图到主文档正文 |
| 2026-05-08 | 0.1.17 | 新增 researcher 路由、Agent Definition Registry、compact handoff、mode-aware dispatch |
