README file from
GithubObsidian Inline Review Comments
Collaborate with AI agents directly in your Obsidian notes. Leave instructions beside a passage, ask questions, and exchange feedback through comment threads that stay with the text you're working on.

Inline Review Comments turns Obsidian's %% comments %% into review cards in
the right margin in Reading view, Live Preview, and Source mode.
You use the cards to communicate; an agent with access to your note's Markdown
can read your comments and write replies into the same file.
Comments stay in your Markdown files, so they remain editable even if you disable or uninstall the plugin. Obsidian hides them in Reading view when the plugin is disabled.
Collaborate with an agent
Use comments to ask an agent to revise a paragraph, check a claim, explain a change, or discuss an idea. Because the conversation is stored as plain text in the note, an agent that can read and edit Markdown files can participate using the same comment format.
- Configure your agent with access to the notes you want to work on. The plugin provides the comment interface in Obsidian; you set up and run the agent separately.
- Select a passage and insert a comment with your instruction or question.
- Ask the agent to read the note, address your comments, and add replies using
%% ::Agent:: Reply text %%directly after each relevant comment. - Read its replies in the margin cards and use Reply… to continue the conversation. Ask the agent to read the note again for your next round of feedback.
- When you're happy with the result, resolve the thread to remove its comments from the note.
For example, this Markdown appears as one conversation in a margin card:
This guide explains how to review a draft.
%% ::You:: Can you add a practical example to this introduction? %%
%% ::Agent:: Who is the example for: new writers or experienced editors? %%
%% ::You:: New writers. Show how to ask for feedback on their first draft. %%
You can give your agent an instruction like:
Read the review comments in this note. Use
%% ::Agent:: ... %%for your replies, placing each reply immediately after the comment you're answering, with no blank line between them. Preserve existing comments and explain any changes you make in a reply. Leave the threads in place for me to review.
This keeps requests, questions, and explanations beside the relevant passage throughout the review.
Supercharge agentic workflows in combination with AI Overview plugin

With the AI Overview
plugin enabled on desktop, set Settings → AI Overview → Agent name tag to
the name tag you want to call your agent with (e.g. Byte).
Submit a comment or reply containing @Byte, for example:
@Byte Explain this paragraph@Byte Update this note with the agreed action items
The configured agent responds in the same thread. While it works, that thread shows a three-dot typing animation with the latest streamed activity beneath it in very small, muted text. The agent performs requested work directly using its CLI's configured permissions, tools and integrations, then reports the outcome. The plugin does not grant additional access or apply proposed edits itself.
Comments typed directly into Markdown start only after you leave the completed comment. Existing mentions stay dormant when a note opens or the integration is enabled. Editing an answered comment does not rerun it; send a new mention reply. Failed requests offer Retry. Stop cancels active execution; previous file changes and external effects remain. Execution retries can repeat actions, so the agent receives the previous failure and must inspect current state. Publication retries only post the saved reply. Interrupted requests require an explicit retry.
Mentions also work in table headers and cells, lists, blockquotes, callouts and
footnotes. Replies stay in the same thread and Markdown container. Inside table
comments, line breaks and pipes are stored as <br> and \| so multiline replies
do not split rows or create extra columns. Mentions inside code examples or quoted
text within a comment remain ignored.
The integration is optional. Without compatible, enabled AI Overview and a nonempty name tag, the comment plugins retain their existing appearance, settings, shortcuts and behavior. They remain usable on mobile; agent execution requires desktop. Each plugin can be installed and updated independently.
See agent mention behavior and compatibility for the CLI permissions, compatibility and recovery details.
Installation
Minimum Obsidian version: 1.13.0, as declared in the plugin manifest.
From Community plugins
Once the plugin is listed in Obsidian's Community plugins directory:
- Open Settings → Community plugins and turn on community plugins if needed.
- Select Browse and search for Inline Review Comments.
- Select Install, then Enable.
Manual installation
- Download
main.js,manifest.json, andstyles.cssfrom a GitHub release. If no release is available yet, follow the development instructions below to buildmain.jsand use the other two files from this repository. - Create
<vault>/.obsidian/plugins/inline-review-comment/and place all three files directly inside it. If your vault uses a custom configuration folder, replace.obsidianwith that folder's name. - Reload Obsidian and enable Inline Review Comments under Settings → Community plugins.
Add your first comment
- The first time you comment in a vault on a device, you are asked for your name. It is stored on that device only, so people sharing the vault through git or Sync keep their own names. Choose Comment anonymously to leave it out, or change it later under Settings → Inline Review Comments.
- Place the cursor where you want feedback, or select a passage to quote.
- Run Inline Review Comments: Insert comment at cursor from the command palette. The new card opens a Write a comment… box and focuses it.
- Type your feedback and press Cmd+Enter / Ctrl+Enter, or click the send button, to post it. Enter and Shift+Enter add newlines.
With a selection, the command leaves the original text in place and inserts a comment after it containing a copy of the passage. The quoted passage appears above your feedback in the card; it does not update when the original text changes.
You can assign a hotkey to the command in Settings → Hotkeys.
Enabled by default: the plugin makes Obsidian's built-in Toggle comment
command insert a review comment instead of toggling comment markers around text.
Its existing shortcut (usually Cmd+/ on macOS or Ctrl+/ on Windows/Linux)
uses this behavior. Turn off Use “Toggle comment” shortcut (Cmd/Ctrl+/) in
the plugin settings to restore Obsidian's normal toggle behavior.
Typing %% also creates a comment and focuses its card's text box by default.
Turn off Auto-insert author when typing %% if you prefer to type comment
markers manually.
Unposted text stays in memory while you switch notes or close and reopen tabs. Escape returns focus to the note and keeps your draft. Draft text is lost when Obsidian closes or the plugin reloads; its empty comment placeholder remains in the note. When review cards are disabled, the insert command keeps the cursor inside the Markdown comment for typing directly in the note.
Write comments manually
Use Obsidian's normal comment syntax for an anonymous comment:
This claim needs a source. %% Add a citation here. %%
Add ::name:: at the start to display an author:
This claim needs a source. %% ::Jane Doe:: Add a citation here. %%
Comments can also span multiple lines:
%% ::Jane Doe::
Please expand this section.
Include an example for new readers.
%%
Comments without an author are labeled Comment. Comment bodies render Markdown, including emphasis and links. The parser ignores comment markers inside inline code and fenced code blocks.
Review and reply
- Read: cards appear beside the comment's line in editing modes, or beside the corresponding or nearest preceding rendered block in Reading view. Nearby cards stack vertically to avoid overlapping.
- Edit: click a message's pencil button to edit its text in the card. Press Cmd+Enter / Ctrl+Enter or click Save to update it. Cancel discards the edit; Escape returns focus to the note while keeping unfinished text. Editing preserves the original author and quoted passage and does not submit a new agent request. You can also edit the Markdown directly in the note. Compact author markers stay visible in Live Preview, including inactive table cells, and throughout Reading view. Live Preview reveals the comment source when the cursor enters it; Source mode keeps the text visible. In rendered content, markers appear at the comment’s position when it can be mapped reliably, otherwise at the end of its containing block or cell.
- Reply: type in the card's Reply… box and press Cmd+Enter /
Ctrl+Enter, or click the send button. Enter and Shift+Enter add newlines.
Escape returns focus to the note while keeping your draft. Replies are
saved as additional
%% ... %%comments in the note, using your configured author name. - Delete: click × to remove one comment from the note.
- Resolve: click the checkmark to remove every comment in that thread from the note. Resolving deletes the thread; there is no resolved-comment archive.
Adjacent comments form one thread when separated only by whitespace and at most one line break. A blank line or other text between comments starts a new thread. Edit, reply, delete, and resolve actions work in all three view modes.
On desktop, the status bar shows 0 threads, 1 thread, or N threads for the active note, including unsaved edits in Source mode and Live Preview. Replies count as part of their existing thread. Empty comment placeholders already inserted into the note count too; typing in a card's composer alone does not add a thread. The count stays visible when Show review comments is off and hides when you switch to a non-Markdown view. Hover over it to see which note is being counted. Custom status bar items are unavailable on mobile.
Settings
Open Settings → Inline Review Comments to configure:
| Setting | Default | What it does |
|---|---|---|
| Show review comments | On | Shows margin cards and inline indicators, and enables automatic expansion when typing %%. Turning it off does not disable the insert command or restore the Toggle comment command. |
| Show review threads in File Explorer | Off | Marks saved notes containing a review thread, including unopened notes. |
| Comment author name | Asked on first comment | Adds your name to newly inserted comments and replies. Stored on this device for this vault only, not in the plugin's data.json. Existing author names remain unchanged. |
| Use “Toggle comment” shortcut (Cmd/Ctrl+/) | On | Makes the built-in Toggle comment command insert a review comment. Turn off to restore its normal behavior. |
| Auto-insert author when typing %% | On | Creates a comment when you type %%, with your name if configured, and focuses its card's text box. |
| Hide comment markers in Live Preview | On | Collapses the whole comment to an inline indicator until the cursor enters it. Source mode keeps the text visible. |
| Card width | 240 px | Sets the card width from 180 to 360 px, in steps of 10 px. |
| Gravatar email | Blank | Select Apply to use Gravatar on markers and cards whose author matches your name. |
Cards reserve space on the right when a note contains comments. If the writing area feels cramped, widen the note pane or reduce Card width.
Storage and privacy
Comments, author names, quoted passages, and replies are stored directly in the note's Markdown. Anyone with access to that file can read them. Author names are plain text labels and do not require an account.
Your own name is kept in Obsidian's local storage for that vault on that device,
not in data.json, so it is not shared through git or Sync. To suggest a name
the first time you comment, the plugin reads user.name from the vault's
.git/config and, on desktop only, from ~/.gitconfig and
~/.config/git/config, which are outside the vault. Nothing else in those files
is used and nothing is sent anywhere.
If you set Gravatar email, the email is stored on this device for this vault. The plugin sends a SHA-256 hash of the email to Gravatar over HTTPS to retrieve the image. Apply a blank value to use initials. Initials also appear while the photo loads or when it is unavailable.
The plugin has no telemetry or external comment service. Card content is rendered through Obsidian's Markdown renderer; remote images and other embeds may load external content, and clicking external links opens them in your browser. How an agent processes your notes depends on the agent and its configuration.
Feedback
Report bugs or suggest improvements in GitHub Issues. For display problems, include your Obsidian version, theme, view mode, and a small example note that reproduces the issue.
Development
Requires npm and Node.js 24.15.0 or newer. .nvmrc selects Node.js 24,
which is also used by GitHub Actions.
npm ci
npm run lint # official Obsidian checks
npm run typecheck:browser # browser declarations without ambient Node types
npm run dev # esbuild watch
npm run build # both type checks + production bundle
npm test # parser, renderer, integration and release tests
Obsidian and CodeMirror development dependencies are pinned to compatible versions.
The table-marker geometry suite launches a separate Obsidian process with a new, sentinel-verified disposable vault. It copies plugin assets and read-only theme/CSS inputs, without copying plugin settings or agent configuration:
OBSIDIAN_QA_INLINE_DIFF_DIR="/path/to/corrected/inline-diff-assets" \
OBSIDIAN_QA_OVERRIDE_FILE="/path/to/current/snippet.css" \
OBSIDIAN_QA_THEME_ROOT="/path/to/installed/themes" npm run test:obsidian:markers
It requires the desktop Obsidian executable (the macOS application path by default;
override with OBSIDIAN_EXECUTABLE) and the Primary, Minimal and Blue Topaz themes.
Private reports and screenshots remain in ignored .qa/. For a focused rerun, append
-- --suite=<name>, choosing matrix, compat, windows or runtime.
The default runs all suites. See the containment investigation
for the regression and acceptance criteria.
Builds write main.js to the repository root. manifest.json and styles.css
are already in that directory. To copy all three files into a test vault after
each build, set OBSIDIAN_VAULT_DIR to the vault root:
OBSIDIAN_VAULT_DIR="/path/to/test-vault" npm run dev
Automatic copying uses <vault>/.obsidian/plugins/inline-review-comment/.
For a custom configuration folder, copy the files manually. Reload the plugin
after JavaScript changes; restart Obsidian after changing manifest.json.
Versioning and releases
semantic-release manages semantic versions, CHANGELOG.md, and GitHub releases using Conventional Commits:
| Commit | Version change |
|---|---|
fix: correct comment positioning |
Patch, for example 1.0.0 → 1.0.1 |
feat: add a comment filter |
Minor, for example 1.0.0 → 1.1.0 |
feat!: change the comment format |
Major, for example 1.0.0 → 2.0.0 |
A BREAKING CHANGE: footer |
Major |
docs:, chore:, test:, or refactor: without breaking changes |
No release |
Use this format for commit messages. When squash-merging a pull request, use
a Conventional Commit as the squash commit's title and preserve any
BREAKING CHANGE: footer in its body. The highest required bump among commits
since the previous release determines the next version.
The CI and release GitHub Actions workflow tests and builds pull requests
and pushes to main. After checks pass on main, it:
- Calculates the next version and generates release notes and the changelog.
- Updates
package.json,package-lock.json,manifest.json, andversions.json, preserving compatibility entries for older versions. - Builds the plugin and commits the changelog and version files with
chore(release): <version> [skip ci]. - Creates a tag such as
1.0.0(without avprefix, as required by Obsidian) and publishes a GitHub release containingmain.js,manifest.json, andstyles.css. - Attests the final three assets, downloads them again, and verifies their bytes and GitHub provenance. Runs without a new release skip this step.
With no existing release tags, the first automated release is 1.0.0.
Subsequent releases use the published tags as their version baseline. Leave
version changes to the workflow; update minAppVersion in manifest.json
when a change requires a newer Obsidian version.
The workflow uses GitHub's built-in GITHUB_TOKEN; no npm token or additional
secret is needed. GitHub Actions must be enabled, and repository rules must
allow that token to push release commits and tags to main. If branch
protection requires all changes through pull requests, configure an allowed
release identity before enabling automated publishing.
You can rerun the workflow with Actions → CI and release → Run workflow
on main. To preview a release with repository push access and a GitHub token
in your environment:
npm run release:dry-run
Dry runs calculate versions and release notes without updating files or publishing a release. The plugin is distributed through GitHub releases; the package is private and the release configuration does not publish to npm.
Source layout
| File | Responsibility |
|---|---|
src/parser.ts |
Parses comments, authors, and quoted excerpts; groups threads and skips code. |
src/card.ts |
Builds thread cards with reply, delete, and resolve controls. |
src/card-layer.ts |
Positions and stacks cards in the margin. |
src/editor-extension.ts |
Renders cards and handles actions in Source mode and Live Preview. |
src/reading-view.ts |
Renders cards and handles actions in Reading view. |
src/comment-edit.ts |
Locates comments for deletion, replies, and thread resolution. |
src/hide-markers.ts |
Adds inline indicators and collapses comments in Live Preview. |
src/auto-comment.ts |
Expands typed comment markers into a template. |
src/render.ts |
Renders comment Markdown and handles links. |
src/settings.ts |
Defines settings, defaults, and the settings tab. |
src/main.ts |
Registers extensions, commands, and settings; manages the Toggle comment override. |
Searchable settings and linting
Settings are searchable from Obsidian's global settings search. Development uses the official Obsidian lint rules; the lint package's Obsidian dependency is overridden to match the API version used by this plugin.
License
MIT, copyright 2026 Deepal Jayasekara.