git + annotate — Sub-line commenting for Markdown files in GitHub PR reviews.
Gitnotate lets you comment on specific words and phrases within a line — not just the whole line — directly in GitHub Pull Request reviews. It ships as a Chrome/Edge browser extension and a VSCode extension, both enhancing GitHub's native commenting with sub-line precision.
GitHub PR reviews only support line-level comments. When reviewing Markdown documents (specs, proposals, plans), you often want to comment on a specific phrase like "revenue growth exceeded expectations" — not the entire line. Word and Google Docs do this well; GitHub doesn't.
Gitnotate uses a lightweight approach: it embeds sub-line metadata directly in standard GitHub PR comments. This means:
- Works without the extension — comments show a quoted text fallback, fully readable by anyone
- Zero extra files — no sidecar files or infrastructure needed
- All GitHub features — threading, resolve, @mentions, reactions, notifications work out of the box
See ROADMAP.md for the full architecture, research, and implementation plan.
- Search "Gitnotate" in the Extensions view (
Ctrl+Shift+X) or visit the VS Code Marketplace page - Click Install
- Open a repo with an active PR — sign in to GitHub when prompted
- Select text in a Markdown file and right-click → Gitnotate: Add Comment
- Visit the Gitnotate page on Chrome Web Store
- Click Add to Chrome
- Visit the Gitnotate page on Edge Add-ons
- Click Get to install
- Download
gitnotate-v0.1.0.zipfrom the latest release - Extract the zip to a folder on your computer
- Open
chrome://extensions(oredge://extensions) - Enable "Developer mode" (toggle in the top-right corner)
- Click "Load unpacked" → select the extracted folder
- The Gitnotate icon should appear in your toolbar
Note: Manually installed extensions show a "Developer mode" warning on browser startup. Installing from the store removes this.
To update: download the new zip, extract to the same folder, then click the reload ↻ button on the extension card.
- Clone the repo:
git clone https://github.com/pedrofuentes/gitnotate.git - Install dependencies:
pnpm install - Build:
pnpm build - Open
chrome://extensions(oredge://extensions) - Enable "Developer mode"
- Click "Load unpacked" → select
packages/browser-extension/dist/
- Click the Gitnotate icon in your toolbar
- Visit any PR → click "Enable" on the opt-in banner
- Select text in a diff to start commenting
The VSCode extension brings sub-line commenting directly into your editor for GitHub PR reviews.
- Sub-line comment threads — native VSCode comment threads anchored to exact character ranges in PR diffs
- Comments sidebar — all PR comments grouped by file with click-to-navigate
- Reply & resolve — full threading and resolution via GitHub's review API
- Live polling — auto-refresh comments via ETag-based conditional requests (configurable interval)
- Side-aware diffs — comments placed on the correct side (old/new) in diff views
- Diff-aware anchoring — comment threads follow text through local edits
Search "Gitnotate" in VSCode's Extensions view or install from the VS Code Marketplace.
- Open a repository with an active PR
- Sign in to GitHub when prompted (uses VSCode's built-in GitHub auth)
- Open a Markdown file from the PR — comment threads appear automatically
- Select text and right-click → "Gitnotate: Add Comment" to post a sub-line comment
🚀 v0.1.0 — Browser extension for Chrome/Edge and VSCode extension — all live.