[en] [ja] [fr] [de] [it] [es] [ko] [zh-CN] [zh-TW] [ru] [id] [pt-BR]
Понимайте, почему код изменился, а не только что изменилось.
Agent Note сохраняет разговор с AI и изменённые файлы для каждого Commit. Когда данных достаточно, он также показывает практическую оценку того, какая часть изменения была сделана AI.
Думайте об этом как о git log плюс разговор с AI за изменением.
- Сохранять промпты, ответы, изменённые файлы и AI Ratio для каждого Commit, сделанного с помощью AI.
- Продолжать пользоваться обычным
git commit; Agent Note записывает контекст в фоне. - Давать людям-ревьюерам и инструментам AI-ревью PR Report с видимой сводкой и скрытым Reviewer Context.
- Открывать общий Dashboard или запускать
agent-note why <file:line>, чтобы перейти от строки к разговору Commit. - Хранить всё Git-native в
refs/notes/agentnote— без Hosted Service и Telemetry.
- Git
- Node.js 20 или новее
- Поддерживаемый Coding Agent, установленный и авторизованный
- Включите Agent Note для вашего Coding Agent.
npx agent-note init --agent claude
# или: codex / cursor / geminiКаждый разработчик должен выполнить это один раз локально после Clone.
Можно включить несколько Agents в одном Repository:
npx agent-note init --agent claude cursorЕсли вам также нужен shared Dashboard на GitHub Pages:
npx agent-note init --agent claude --dashboard- Закоммитьте созданные файлы и Push.
git add .github/workflows/agentnote-pr-report.yml .claude/settings.json
# замените .claude/settings.json на config вашего agent ниже
# с --dashboard также добавьте .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.tomlи.codex/hooks.json - Cursor: Commit
.cursor/hooks.json - Gemini CLI: Commit
.gemini/settings.json
- Продолжайте использовать обычный
git commitWorkflow.
С установленными Git Hooks Agent Note автоматически записывает обычные git commit Commits.
Если ваш AI Agent поддерживает GitHub Agent Skills, установите Agent Note Skill, чтобы просить задачи Agent Note на естественном языке.
gh skill install wasabeef/AgentNote agent-note --agent codex --scope userДля gh skill install выберите подходящий идентификатор agent: codex, claude-code, cursor or gemini-cli. Skill обычно направляет agent только к шести публичным командам: init, deinit, status, log, show и why.
Agent Note сохраняет Commit Story:
-
Разговор: запрос и ответ AI, которые привели к изменению
-
Контекст: короткие заметки, которые показываются как
📝 Context, когда одного запроса недостаточно
-
Файлы: изменённые файлы и факт участия AI в редактировании
-
AI Ratio: общая оценка в процентах, а также строки, когда Agent Note может их оценить
Temporary Session Data находятся в .git/agentnote/. Permanent Record находится в refs/notes/agentnote и распространяется через git push.
Если закоммиченные bundles или generated outputs должны оставаться видимыми, но не влиять на AI Ratio, добавьте их в файл .agentnoteignore в корне репозитория:
packages/cli/dist/**
packages/pr-report/dist/**Эти файлы всё равно отображаются в Notes, PR Report и Dashboard. Они исключаются только из знаменателя AI Ratio.
| Agent | Status | Prompt | Response | Files | AI Ratio | Line Estimate |
|---|---|---|---|---|---|---|
| Claude Code | Full support | Да | Да | Да | Да | По умолчанию |
| Codex CLI | Supported | Да | Да | Да | Да | Когда история patch в Codex совпадает с итоговым Commit |
| Cursor | Supported | Да | Да | Да | Да | Когда счётчики edit совпадают и итоговый файл всё ещё соответствует последнему AI edit |
| Gemini CLI | Preview | Да | Да | Да | Да | Пока нет |
Files означает, что Agent Note может показать, какие commit-файлы были затронуты Agent. Line Estimate означает, что он также может оценить строки, написанные AI, а не только считать файлы.
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: показывает включенные Agent Adapters. capture: резюмирует, что собирают Hooks активного Agent. git: показывает, установлены ли Managed Repository-Local Git Hooks. commit: показывает, является ли обычный git commit основным Tracking Path.
$ 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По умолчанию GitHub Action публикует AI Session Report в PR Description:
Блок agentnote-reviewer-context сохраняется в PR body как hidden comment. AI Review tools, которые читают raw PR description, например Copilot, CodeRabbit, Devin и Greptile, могут использовать его как дополнительный intent и review focus.
## 🧑💬🤖 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>Отправляете Prompt своему Coding Agent
│
▼
Hooks записывают разговор и Session information
│
▼
Agent редактирует файлы
│
▼
Hooks или Local Transcripts записывают, какие файлы изменились
│
▼
Запускаете `git commit`
│
▼
Agent Note записывает Git Note для этого Commit
│
▼
Запускаете `git push`
│
▼
`refs/notes/agentnote` отправляется вместе с BranchПодробный Flow, способ оценки работы AI и сохранённая Schema описаны в разделе Как это работает.
| Command | Что делает |
|---|---|
agent-note init |
Настраивает Hooks, Workflow, Git Hooks и notes auto-fetch |
agent-note deinit |
Удаляет hooks и config Agent Note |
agent-note status |
Показывает Tracking state |
agent-note log [n] |
Список Recent Commits с AI Ratio |
agent-note show [commit] |
Показывает AI Session за HEAD или Commit SHA |
agent-note why <target> |
Показывает контекст Agent Note для строки или диапазона файла |
У root action есть два режима:
- PR Report Mode обновляет Pull Request description или публикует comment.
- Dashboard Mode собирает данные общего Dashboard и публикует
/dashboard/через GitHub Pages.
PR Report Mode используется по умолчанию:
- uses: wasabeef/AgentNote@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}Задайте prompt_detail как compact или full, если хотите сфокусированную или полную историю Prompts. По умолчанию используется compact: он оставляет отчёт читаемым и показывает Prompts, которые объясняют Commit, а full показывает все сохранённые Prompts.
Dashboard Mode использует ту же action с dashboard: true:
- uses: wasabeef/AgentNote@v1
with:
dashboard: true
prompt_detail: compactДля большинства репозиториев не нужно писать Workflow вручную. Сгенерируйте его через init:
npx agent-note init --agent claude --dashboardЗатем закоммитьте .github/workflows/agentnote-pr-report.yml и .github/workflows/agentnote-dashboard.yml, включите GitHub Pages с Source GitHub Actions и откройте /dashboard/.
Если у вас уже есть GitHub Pages Site, безопасная комбинированная настройка описана в Dashboard Docs.
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 }}%"Что сохраняется
$ 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. Core CLI работает без Hosted Service.
- Temporary Session Data хранится внутри репозитория в
.git/agentnote/. - Permanent Record хранится в
refs/notes/agentnote, а не в Tracked Source Files. - Для Agents с локальными журналами разговоров Agent Note читает эти файлы из Data Directory самого Agent.
- CLI не отправляет Telemetry.
- Commit Tracking Best-effort. Если Agent Note падает во время Hook, ваш
git commitвсе равно успешен.
Zero runtime dependencies · Git notes storage · Never breaks git commit · No telemetry · Agent-agnostic architecture
Contributing guide → · Code of Conduct →
MIT — LICENSE

