Troubleshooting
Start here when Agent Note does not show the data you expected. Most issues come from one of three places: local git hooks, missing git notes, or GitHub Pages deploy settings.
Quick Checks
Section titled “Quick Checks”-
Check local setup:
Terminal window npx agent-note status -
Confirm the commit has a note:
Terminal window npx agent-note show -
Confirm notes were pushed:
Terminal window git fetch origin refs/notes/agentnote:refs/notes/agentnotegit notes --ref=agentnote show HEAD
Start From The Symptom
Section titled “Start From The Symptom”| Symptom | Start here |
|---|---|
| PR Report is empty | Confirm notes were pushed and the workflow fetched full git history |
| A prompt you expected is not shown | Compare compact and full prompt detail |
| Dashboard opens but the PR has no data | Check whether that PR’s notes have been published |
Plain git commit does not create notes | Re-run init and inspect the git: line in status |
| Line Estimate is missing | Check whether the agent can provide enough edit evidence |
PR Report Is Empty
Section titled “PR Report Is Empty”Check these first:
- The PR branch was pushed after Agent Note was enabled.
refs/notes/agentnoteexists on the remote.- The workflow uses
actions/checkoutwithfetch-depth: 0. - The PR contains commits with AI-authored files.
Agent Note skips commits where it cannot find any committed file touched by the agent. That keeps human-only commits from looking AI-generated.
If the header says Total AI Ratio: — and Agent Note data: No tracked commits, the PR has commits but no Agent Note data was found for them. That is different from a real 0% AI Ratio.
Prompts Look Missing
Section titled “Prompts Look Missing”Prompt selection is scoped to the commit window, not the whole chat session.
compactkeeps the report focused by showing the prompts that explain the commit.fullshows every stored prompt.- Older task prompts are trimmed when this commit already has its own explanation.
- Short prompts can get
📝 Contextwhen Agent Note finds file names or code identifiers that explain what the prompt refers to.
To see everything stored for a PR Report, set:
with: prompt_detail: fullDashboard Shows No Data
Section titled “Dashboard Shows No Data”Check the Dashboard workflow run and Pages settings.
- GitHub Pages source should be GitHub Actions.
- The workflow must run with
dashboard: true. - The first successful deploy creates the shared
/dashboard/URL. - If GitHub environment protection blocks PR deploys, open PR data appears after merge.
Dashboard Opens the Wrong PR
Section titled “Dashboard Opens the Wrong PR”The Dashboard home should show the shared history without forcing a ?pr= redirect. PR Report links add the matching ?pr=<number> so reviewers land on the current PR.
If an older Pages deploy still redirects, rerun the Dashboard workflow or wait for the next successful deploy from main.
Plain git commit Is Not Tracked
Section titled “Plain git commit Is Not Tracked”Run status and check the git: line.
npx agent-note statusIf git hooks are missing, run init again:
npx agent-note init --agent claudeGit hooks live inside .git/, so every clone needs local setup even when the agent config files are committed.
Line Estimate Is Not Available
Section titled “Line Estimate Is Not Available”This is usually expected.
- Claude Code usually provides enough edit evidence for Line Estimate.
- Codex CLI can estimate lines only when transcript patch counts match the final commit diff.
- Cursor can estimate lines only when edit counts match and the final file still matches the latest AI edit.
- Gemini CLI currently reports file-level AI Ratio only.
When evidence is incomplete, Agent Note falls back instead of guessing.