安裝
這一頁是實際設定步驟。完成後,倉庫可以在一般 git commit 中記錄 Agent Note data,並在 GitHub 上發布 PR Report。
-
在倉庫中執行
init。Terminal window npx agent-note init --agent claude其他 agent:
- Codex CLI:
npx agent-note init --agent codex - Cursor:
npx agent-note init --agent cursor - Gemini CLI:
npx agent-note init --agent gemini - 多個 agent:
npx agent-note init --agent claude cursor
同時啟用 Dashboard:
Terminal window npx agent-note init --agent claude --dashboard - Codex CLI:
-
提交產生的檔案。
Terminal window git add .claude/settings.json .github/workflows/agentnote-pr-report.ymlgit commit -m "chore: enable agent-note"git pushCodex CLI 會加入
.codex/config.toml和.codex/hooks.json。Cursor 會加入.cursor/hooks.json。Gemini CLI 會加入.gemini/settings.json。使用--dashboard時,也要提交.github/workflows/agentnote-dashboard.yml。 -
像平常一樣使用 agent 寫程式。 產生的 git hooks 安裝後,一般
git commit就足夠了。
每個 clone
Section titled “每個 clone”git hooks 位於 .git/ 中,不會被 commit。每位開發者在 git clone 後都需要執行一次 init。
git clone <repository-url>cd <repository-dir>npx agent-note init --agent claudenpx agent-note statusnpx agent-note show如果 PR Report 是空的,或 prompt 看起來過短,請查看 Troubleshooting。