git commit でそのまま記録できます。prompt / response は hook から復元され、attribution は既定で line-level です。このページは実際のセットアップ手順です。完了すると、通常の git commit で Agent Note data を記録し、GitHub の Pull Request に PR Report を表示できます。
repository で init を実行します。
npx agent-note init --agent claudeCodex CLI の場合:
npx agent-note init --agent codexCursor の場合:
npx agent-note init --agent cursorGemini CLI の場合:
npx agent-note init --agent gemini複数 agent を同時に:
npx agent-note init --agent claude cursorAgent Note は次を設定します:
.claude/settings.json、Codex CLI では .codex/config.toml と .codex/hooks.json、Cursor では .cursor/hooks.json、Gemini CLI では .gemini/settings.json)prepare-commit-msg, post-commit, pre-push).github/workflows/agentnote-pr-report.yml)共有 Dashboard も使いたい場合:
npx agent-note init --agent claude --dashboardこの場合は .github/workflows/agentnote-dashboard.yml も追加されます。
生成された file を commit します。
git add .claude/settings.json .github/workflows/agentnote-pr-report.yml# --dashboard を使った場合は .github/workflows/agentnote-dashboard.yml も追加git commit -m "chore: enable agent-note"git pushCodex CLI では .codex/config.toml、.codex/hooks.json、.github/workflows/agentnote-pr-report.yml を commit します。
Cursor では .cursor/hooks.json と .github/workflows/agentnote-pr-report.yml を commit します。
Gemini CLI では .gemini/settings.json と .github/workflows/agentnote-pr-report.yml を commit します。
--dashboard を使った場合は .github/workflows/agentnote-dashboard.yml も commit します。
agent と一緒に開発を始めます。
生成された git hook が入っていれば、通常の git commit をそのまま使えます。
各 developer は clone 後に一度 init を実行し、local git hook を入れます。
git clone <repository-url>cd <repository-dir>npx agent-note init --agent claudeセットアップ後は、現在の session に Agent Note data がある場合、通常の git commit で次が行われます。
Agentnote-Session trailer を commit message に追加git push 時に notes も remote に送信Cursor では response hook または local transcript から prompt / response も復元されます。
npx agent-note showcommit: 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 👤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: は repository-local git hook の状態、commit: は通常の git commit が主経路かどうかを示します。
| Flag | 説明 |
|---|---|
--agent <name...> | 1 つ以上の agent adapter を選びます: claude, codex, cursor, gemini |
--dashboard | 共有 Dashboard 用の .github/workflows/agentnote-dashboard.yml も作成 |
--no-hooks | agent hook 設定を skip |
--no-git-hooks | git hook install を skip |
--no-action | workflow 作成を skip |
--no-notes | auto-fetch 設定を skip |
--hooks | agent hook だけ install |
--action | workflow だけ作成 |
詳細な取得範囲と attribution 条件は エージェント対応 を参照してください。
git commit でそのまま記録できます。prompt / response は hook から復元され、attribution は既定で line-level です。
git commit でそのまま記録できます。prompt / response は local transcript から復元され、transcript の patch 行数が commit と一致したときだけ line-level に上がります。
git commit でそのまま記録できます。prompt / response は response hook または local transcript から復元され、edit 数が一致し、committed file が最後の AI edit と一致した file だけ line-level に昇格します。
git commit でそのまま記録できます。prompt / response は BeforeAgent / AfterAgent hook から復元され、attribution は現状 file-level のままです。