@zhushanwen/pi-cw-tool
Pi extension for cw 2.0: a read-only cw_query tool (status / frontier / tree / report passthrough) + the pi-cw skill (runner practical guide for multi-unit tasks: background run, monitoring, escalation, merge back).
Package details
Install @zhushanwen/pi-cw-tool from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@zhushanwen/pi-cw-tool- Package
@zhushanwen/pi-cw-tool- Version
0.5.5- Published
- Sep 18, 2026
- Downloads
- 827/mo · 91/wk
- Author
- zhushanwen321
- License
- MIT
- Types
- extension, skill
- Size
- 40.5 KB
- Dependencies
- 1 dependency · 3 peers
Pi manifest JSON
{
"skills": [
"./skills"
],
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@zhushanwen/pi-cw-tool
cw 2.0 的 pi extension 薄封装:
- cw_query 工具:只读查询透传(
status/frontier/tree/report,参数面--unit/--root/--json按 cw 2.0 修正)。写命令(create / evidence submit / review submit / verify / run)不在工具面——经 bash 调cw,用法以 cw-cli skill 为 SSOT。 - pi-cw skill:runner 实操指南(多 unit 任务
cw run --spawn pi的后台运行、监控、escalation 处置、收尾回流)。
编排智能收在 cw 2.0 引擎(runner + 账本 gate),「层主不能自审」由账本层硬保证。
环境要求
全局安装 @zhushanwen/coding-workflow@2.x(PATH 上有 cw)。账本按 cwd 定位(~/.cw/<encoded-cwd>/),工具在哪个目录调用就查哪个项目的状态。
开发
pnpm typecheck # tsc --noEmit(含 test 配置)
pnpm test # vitest run
变更经 taiji 仓的 extensions 流程校验(pnpm extensions:typecheck && pnpm extensions:lint && pnpm extensions:test)。