HanaAgent 插件,为 Agent 的 Git 提交自动添加 Co-authored-by 署名。
默认情况下,文件被修改后提交,无法区分修改者是 Agent 还是用户。使用此插件后,Agent 提交时自动带上署名。
- 注册
git_commit工具,Agent 提交时自动追加Co-authored-bytrailer - 拦截
exec_command中的git commit,提示Agent使用git_commit工具,防止绕过
irm https://fastly.jsdelivr.net/gh/svier0/hanako-gitcoauthor/install.ps1 | iex下载
https://github.com/svier0/hanako-gitcoauthor/archive/refs/tags/v1.0.1.zip
国内网络使用代理镜像
https://ghfast.top/https://github.com/svier0/hanako-gitcoauthor/archive/refs/tags/v1.0.1.zip
解压压缩包中子目录下的文件至
%USERPROFILE%\.hanako\plugins\hanako-gitcoauthor\
重启 Hana。



