23 lines
693 B
Markdown
23 lines
693 B
Markdown
|
|
# Agent Change Log Automation
|
|||
|
|
|
|||
|
|
这个目录提供 `agent-change-log` 的可执行部分。
|
|||
|
|
|
|||
|
|
## 手动写入一条日志
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
python3 tools/agent-change-log/update_change_log.py --event "manual"
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
## 安装提交后自动日志 hook
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
tools/agent-change-log/install_post_commit_hook.sh
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
安装后,每次 `git commit` 完成,`.githooks/post-commit` 会调用
|
|||
|
|
`update_change_log.py`,把最近提交、Git 双向提交检查和触发时间追加到
|
|||
|
|
`document/work-log/YYYY-MM-DD.md`。
|
|||
|
|
|
|||
|
|
注意:hook 只能覆盖“提交后自动记录”。没有提交的普通文件修改,仍需要执行代理在任务完成前按
|
|||
|
|
`AGENTS.md` 和 `agent-change-log` 主动记录。
|