Skip to content

GitHub Action

This page is for the PR Report that appears inside GitHub Pull Requests. If you only want the local CLI setup, finish Installation first; come back here when you want reviewers to see the Agent Note summary.

Run this once in your repository:

Terminal window
npx agent-note init --agent claude

That creates the PR Report workflow for you:

.github/workflows/agentnote-pr-report.yml
name: Agent Note PR Report
on:
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
pull-requests: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: wasabeef/AgentNote@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

That’s it. Every PR gets an AI session report.

InputDefaultDescription
basePR base branchBase branch to compare against
pr_outputdescriptionPR Report destination: description, comment, or none
prompt_detailcompactPrompt history detail in PR Report: compact keeps the report focused, full shows every stored prompt
dashboardfalseRun Dashboard Mode instead of PR Report Mode. Usually generated by agent-note init --dashboard
- uses: wasabeef/AgentNote@v1
with:
pr_output: comment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Terminal window
npx agent-note init --agent claude --dashboard
OutputTypeDescription
overall_ai_rationumberPR-wide AI Ratio (0-100)
overall_methodstringline, file, mixed, or none
tracked_commitsnumberCommits with agent-note data
total_commitsnumberTotal commits in PR
total_promptsnumberTotal prompts across all commits
jsonstringFull structured report
markdownstringRendered markdown report
should_deployboolean stringDashboard Mode output that tells the caller workflow whether Pages should publish
- uses: wasabeef/AgentNote@v1
id: agent-note
with:
base: main
- run: echo "Total AI Ratio: ${{ steps.agent-note.outputs.overall_ai_ratio }}%"

The PR Report includes:

  • HeaderTotal AI Ratio with a progress bar, plus a separate plain-text Model line
  • Reviewer Context — a hidden Markdown comment for AI Review tools, built from generic changed-area groups, review focus, and the latest relevant author intent signals
  • Table — per-commit AI Ratio, prompt count, and files with attribution
  • Prompts — collapsible section with per-commit 📝 Context, 🧑 Prompt, and 🤖 Response entries

The Reviewer Context block is stored as a hidden Markdown comment in the PR body. Human reviewers see the normal report, while tools that read the raw PR description can use the extra context.

That context is deterministic. It summarizes changed areas, review focus, and the latest relevant author intent signals from Agent Note data. Tools such as Copilot, CodeRabbit, Devin, and Greptile can use it to understand why the PR changed before they review the diff.

It is still guidance, not proof. Review tools should compare the context with the actual diff, tests, and code.

The action fetches refs/notes/agentnote from the remote. The pre-push git hook installed by agent-note init auto-pushes notes on every git push — no manual push needed.

If you want a shared Pages view for open and merged PR history, continue to the Dashboard guide.

If the report is empty or prompts look shorter than expected, see Troubleshooting.