Claude Code 插件 · CLIApache-2.0
Better Workflows
AI coding agent 的交付关卡:不能拿过期的绿灯测试宣称完成,也不能重复或叠加结果未知的外部操作。
agent runs npm test → passes
agent edits src/sum.ts → breaks it
agent "Done. Tests pass."
bw ✗ Stop blocked. test: last result was for an older tree; files changed since then.
agent git push origin main → times out after the push landed
agent git push origin main (retry)
bw ✗ Denied. git-push: the same action already succeeded at this commit.
Agent 必须与当前的文件状态,以及外部服务实际执行的操作保持一致;权限只来自 agent 无法修改的 policy 文件,不会来自提示词。V6 Core 目前是 alpha(6.0.0-alpha.2),以 Apache-2.0 发布,没有运行时依赖,先支持 Claude Code。
- 测试结果绑定当前的文件:测试通过后又改了文件,agent 想收尾时会被拦下、退回重做。
- 外部操作不会重复:push 超时但其实已经成功时,针对同一个 commit 的重试会被拒绝。
- 不用 Claude 也能试:通过 npm 全局安装后,几秒内就能跑完这两个演示场景。
安装
claude plugin marketplace add stephen-taipei/better-workflows
claude plugin install better-workflows-core@better-workflows --scope local
bw init


