[en] [ja] [fr] [de] [it] [es] [ko] [zh-CN] [zh-TW] [ru] [id] [pt-BR]
Scopri perché il codice è cambiato, non solo cosa è cambiato.
Agent Note salva la conversazione con l'AI e i file modificati per ogni Commit. Quando ci sono dettagli sufficienti, mostra anche una stima pratica di quanta parte della modifica proviene dall'AI.
Pensalo come git log più la conversazione con l'AI dietro la modifica.
- Registra prompt, risposte, file modificati e AI Ratio per ogni Commit assistito dall'AI.
- Continua a usare il normale
git commit; Agent Note registra il contesto in background. - Dai ai reviewer umani e ai tool di AI review un PR Report con un riepilogo visibile e un Reviewer Context nascosto.
- Apri un Dashboard condiviso, oppure usa
agent-note why <file:line>per risalire da una riga alla conversazione del Commit. - Mantieni tutto Git-native in
refs/notes/agentnote— niente Hosted Service, niente Telemetry.
- Git
- Node.js 20 o superiore
- Un Coding Agent supportato, installato e autenticato
- Abilita Agent Note per il tuo Coding Agent.
npx agent-note init --agent claude
# oppure: codex / cursor / geminiOgni sviluppatore dovrebbe eseguirlo una volta in locale dopo il Clone.
Puoi abilitare più Agent nello stesso Repository:
npx agent-note init --agent claude cursorSe vuoi anche il Dashboard condiviso su GitHub Pages:
npx agent-note init --agent claude --dashboard- Fai Commit dei file generati e Push.
git add .github/workflows/agentnote-pr-report.yml .claude/settings.json
# sostituisci .claude/settings.json con la config del tuo agent qui sotto
# con --dashboard, aggiungi anche .github/workflows/agentnote-dashboard.yml
git commit -m "chore: enable agent-note"
git push- Claude Code: Commit
.claude/settings.json - Codex CLI: Commit
.codex/config.tomle.codex/hooks.json - Cursor: Commit
.cursor/hooks.json - Gemini CLI: Commit
.gemini/settings.json
- Continua a usare il normale Workflow
git commit.
Con i Git Hooks generati installati, Agent Note registra automaticamente i Commit fatti con git commit.
Se il tuo AI Agent supporta GitHub Agent Skills, installa lo Skill Agent Note per chiedere attività Agent Note in linguaggio naturale.
gh skill install wasabeef/AgentNote agent-note --agent codex --scope userPer gh skill install, scegli l'identificatore agent corretto: codex, claude-code, cursor or gemini-cli. Lo Skill guida normalmente l'agent verso solo sei comandi pubblici: init, deinit, status, log, show e why.
Agent Note salva la storia del Commit:
-
Conversazione: la richiesta e la risposta AI che hanno portato alla modifica
-
Contesto: brevi Note mostrate come
📝 Contextquando la richiesta da sola è troppo breve
-
File: file modificati e se l'AI ha aiutato a editarli
-
AI Ratio: una percentuale complessiva, più il conteggio delle linee quando Agent Note può stimarlo
I dati temporanei di sessione vivono sotto .git/agentnote/. Il Record permanente vive in refs/notes/agentnote ed è condiviso con git push.
Se bundle o generated output committati devono restare visibili ma non influenzare l’AI Ratio, aggiungili alla .agentnoteignore nella root del repository:
packages/cli/dist/**
packages/pr-report/dist/**Questi file restano visibili in Notes, PR Report e Dashboard. Vengono rimossi solo dal denominatore dell’AI Ratio.
| Agent | Stato | Prompt | Response | Files | AI Ratio | Line Estimate |
|---|---|---|---|---|---|---|
| Claude Code | Full support | Sì | Sì | Sì | Sì | Di default |
| Codex CLI | Supported | Sì | Sì | Sì | Sì | Quando la cronologia patch di Codex corrisponde al Commit finale |
| Cursor | Supported | Sì | Sì | Sì | Sì | Quando i conteggi degli edit coincidono e il file finale corrisponde ancora all'ultimo edit IA |
| Gemini CLI | Preview | Sì | Sì | Sì | Sì | Non ancora |
Files significa che Agent Note può mostrare quali file committati sono stati toccati dall'Agent. Line Estimate significa che può anche stimare le linee scritte dall'AI invece di contare solo i file.
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 hooks
session: a1b2c3d4…
agent: cursor
linked: 3/20 recent commits
agent: mostra gli adapter Agent abilitati. capture: riassume cosa raccolgono gli Hook dell'Agent attivo. git: mostra se i Git Hooks locali gestiti sono installati. commit: indica se git commit è il percorso di Tracking principale.
$ npx agent-note show
commit: ce941f7 feat: add JWT auth middleware
session: a1b2c3d4-5678-4abc-8def-111122223333
ai: 60% (45/75 lines) [█████░░░]
model: claude-sonnet-4-20250514
agent: claude
files: 3 changed, 2 by AI
src/middleware/auth.ts 🤖
src/types/token.ts 🤖
src/middleware/__tests__/auth.test.ts 🤖
CHANGELOG.md 👤
README.md 👤
prompts: 2
1. Implement JWT auth middleware with refresh token rotation
2. Add tests for expired token and invalid signature
$ npx agent-note log
ce941f7 feat: add JWT auth middleware [a1b2c3d4… | 🤖60% | 2p]
326a568 test: add auth tests [a1b2c3d4… | 🤖100% | 1p]
ba091be fix: update dependencies
Di default, la GitHub Action pubblica un report di sessione AI nella descrizione della PR:
Il blocco agentnote-reviewer-context viene salvato nel body della PR come hidden comment. Gli AI Review tools che leggono la raw PR description, come Copilot, CodeRabbit, Devin e Greptile, possono usarlo come intent e review focus aggiuntivi.
## 🧑💬🤖 Agent Note
**Total AI Ratio:** ████████ 73%
**Model:** `claude-sonnet-4-20250514`
<!-- agentnote-reviewer-context
Generated from Agent Note data. Use this as intent and review focus, not as proof that the implementation is correct.
Changed areas:
- Documentation: `README.md`, `docs/usage.md`
- Source: `src/auth.ts`
- Tests: `src/auth.test.ts`
Review focus:
- Check that docs and examples match the implemented behavior.
- Compare the stated intent with the changed source files and prompt evidence.
Author intent signals:
- Commit: feat: add auth
- Prompt: Add JWT authentication and update the PR docs
-->
| Commit | AI Ratio | Prompts | Files |
|---|---|---|---|
| ce941f7 feat: add auth | ████░ 73% | 2 | auth.ts 🤖, token.ts 🤖 |
<div align="right"><a href="https://OWNER.github.io/REPO/dashboard/?pr=123" target="_blank" rel="noopener noreferrer">Open Dashboard ↗</a></div>
Invii un Prompt al tuo Coding Agent
│
▼
Gli Hooks salvano la conversazione e le informazioni di Session
│
▼
L'Agent modifica i file
│
▼
Hooks o Local Transcripts registrano quali file sono cambiati
│
▼
Esegui `git commit`
│
▼
Agent Note scrive una Git Note per quel Commit
│
▼
Esegui `git push`
│
▼
`refs/notes/agentnote` viene pushato insieme al Branch
Per il Flow dettagliato, come Agent Note stima il lavoro scritto dall'AI e lo Schema salvato, vedi Come funziona.
| Command | Cosa fa |
|---|---|
agent-note init |
Configura Hooks, Workflow, Git Hooks e notes auto-fetch |
agent-note deinit |
Rimuove hook e configurazione di Agent Note |
agent-note status |
Mostra lo stato del Tracking |
agent-note log [n] |
Elenca Commit recenti con AI Ratio |
agent-note show [commit] |
Mostra la sessione AI dietro HEAD o un Commit SHA |
agent-note why <target> |
Mostra il contesto Agent Note dietro una riga o un intervallo di file |
La root action ha due mode:
- PR Report Mode aggiorna la Pull Request description o pubblica un comment.
- Dashboard Mode genera i dati del Dashboard condiviso e pubblica
/dashboard/tramite GitHub Pages.
PR Report Mode è il default:
- uses: wasabeef/AgentNote@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}Imposta prompt_detail su compact o full quando vuoi una cronologia dei Prompt mirata o completa. Il default è compact: mantiene leggibile il report mostrando i Prompt che spiegano il Commit, mentre full mostra tutti i Prompt salvati.
Dashboard Mode usa la stessa action con dashboard: true:
- uses: wasabeef/AgentNote@v1
with:
dashboard: true
prompt_detail: compactPer la maggior parte dei Repository non serve scrivere il Workflow a mano. Generalo con init:
npx agent-note init --agent claude --dashboardPoi fai Commit di .github/workflows/agentnote-pr-report.yml e .github/workflows/agentnote-dashboard.yml, abilita GitHub Pages con GitHub Actions come Source e apri /dashboard/.
Se hai già un sito GitHub Pages, consulta le Dashboard Docs per il Setup combinato sicuro.
Full example with outputs
- uses: wasabeef/AgentNote@v1
id: agent-note
with:
base: main
# Use structured outputs
- run: echo "Total AI Ratio: ${{ steps.agent-note.outputs.overall_ai_ratio }}%"Cosa viene salvato
$ git notes --ref=agentnote show ce941f7{
"v": 1,
"agent": "claude",
"session_id": "a1b2c3d4-...",
"timestamp": "2026-04-02T10:30:00Z",
"model": "claude-sonnet-4-20250514",
"interactions": [
{
"prompt": "Implement JWT auth middleware",
"contexts": [
{
"kind": "scope",
"source": "current_response",
"text": "I will create the JWT auth middleware and wire it into the request pipeline."
}
],
"selection": {
"schema": 1,
"source": "primary",
"signals": ["primary_edit_turn"]
},
"response": "I'll create the middleware...",
"files_touched": ["src/auth.ts"],
"tools": ["Edit"]
}
],
"files": [
{ "path": "src/auth.ts", "by_ai": true },
{ "path": "CHANGELOG.md", "by_ai": false }
],
"attribution": {
"ai_ratio": 60,
"method": "line",
"lines": { "ai_added": 45, "total_added": 75, "deleted": 3 }
}
}- Agent Note è Local-first. Il Core CLI funziona senza Hosted Service.
- I dati temporanei di sessione sono salvati sotto
.git/agentnote/nel tuo Repository. - Il Record permanente è salvato in
refs/notes/agentnote, non nei file sorgente tracciati. - Per gli Agent che mantengono log locali della conversazione, Agent Note legge quei file dalla Data Directory dell'Agent.
- Il CLI non invia Telemetry.
- Il Commit Tracking è Best-effort. Se Agent Note fallisce durante un Hook, il tuo
git commitriesce comunque.
Zero runtime dependencies · Git notes storage · Never breaks git commit · No telemetry · Agent-agnostic architecture
Contributing guide → · Code of Conduct →
MIT — LICENSE

