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


