記錄 AI 參與的變更
查看哪些提交和檔案得到了 AI 協助。證據足夠時,Agent Note 也會估算 AI 編寫的行數。
半年前我重新閱讀了 AI 幫我寫的程式碼,卻無法回答「為什麼要這樣做?」。git log 裡只有 diff。提示詞、回應——全都消失了。
於是我開始把 AI 對話附加到每一個 commit 上。

記錄 AI 參與的變更
查看哪些提交和檔案得到了 AI 協助。證據足夠時,Agent Note 也會估算 AI 編寫的行數。
提示詞和回應一併儲存
模型名稱和工具使用情況也一起——全部與變更捆綁存入 git notes。
自動產生 PR 報告
AI Ratio、提示詞數量、commit 雜湊值,以及供 AI Review 工具讀取的隱藏補充內容。
僅寫入 git notes
分支保持乾淨。push / fetch 與團隊共享,也可以在 GitHub Pages 上發佈可選的靜態 Dashboard。
| 如果你想… | 閱讀 |
|---|---|
| 安裝前先了解 Agent Note 會加入什麼 | 快速開始 |
| 在倉庫中安裝 Agent Note | 安裝 |
| 加入 PR 中顯示的報告 | GitHub Action |
| 發布團隊共享的歷史頁面 | Dashboard |
| 查看每個 agent 能記錄什麼 | Agent 支援 |
| 了解會保存什麼、誰能看到 | Data & Privacy |
| 修復缺失的 notes、prompt 或 Dashboard 資料 | Troubleshooting |
在儲存庫中執行 init
npx agent-note init --agent claudenpx agent-note init --agent codexnpx agent-note init --agent cursornpx agent-note init --agent gemininpx agent-note init --agent claude cursor提交產生的檔案
git add .claude/settings.json .github/workflows/agentnote-pr-report.ymlgit commit -m "chore: enable agent-note"git push.codex/config.toml 與 .codex/hooks.json.cursor/hooks.json.gemini/settings.json用 AI 編寫程式碼。
安裝產生的 git hook 後,直接繼續使用普通 git commit 即可。
npx agent-note statusagent-note v1.x.x
agent: active (cursor)capture: cursor(prompt, response, edits, shell)git: active (prepare-commit-msg, post-commit, pre-push)commit: tracked via git hookssession: a1b2c3d4…agent: cursorlinked: 3/20 recent commitsagent: 顯示已啟用的 adapter,capture: 彙總目前 hook 收集的內容,git: 顯示受管理的 git hook 是否已安裝,commit: 顯示普通 git commit 是否為主路徑。
commit: ce941f7 feat: add JWT auth middlewaresession: a1b2c3d4-5678-4abc-8def-111122223333
ai: 60% (45/75 lines) [█████░░░]model: claude-sonnet-4-20250514agent: claudefiles: 3 changed, 2 by AI
src/middleware/auth.ts 🤖 src/types/token.ts 🤖 CHANGELOG.md 👤ce941f7 feat: add auth [a1b2c3d4… | 🤖60% | 2p]326a568 test: add tests [a1b2c3d4… | 🤖100% | 1p]ba091be fix: update deps## 🧑💬🤖 Agent Note
**Total AI Ratio:** ████████ 73%**Model:** `claude-sonnet-4-20250514`
| Commit | AI Ratio | Prompts | Files ||---|---|---|---|| ce941f7 feat: add auth | ████░ 73% | 2 | auth.ts 🤖 |詳情請查看 Agent 支援。