@shelken/pi-co-authored-by
v0.2.8
Published
agent 执行 git commit 时自动追加 Co-Authored-By / Generated-By trailer
Readme
pi-co-authored-by
agent 用 bash 跑 git commit 时,自动追加 trailer:
Co-Authored-By: <model> <[email protected]>
Generated-By: pi <version>实现:session 级临时 core.hooksPath + prepare-commit-msg;结束时清理。
初始 fork 自 bruno-garcia/pi-co-authored-by。
功能
- 只挂钩
bash工具调用 - 模型名取当前 session;没有则
unknown - 与仓库已有 hook 兼容(先跑临时 hook,再链式原 hook)
安装
pi install npm:@shelken/pi-co-authored-by装好后 /reload。之后 agent 提交即可,无需额外命令。
配置
无配置文件。
验证
bun --filter @shelken/pi-co-authored-by test