README file from
GithubAgentic Note References
An Obsidian plugin that copies a citation with file link, line numbers, and a custom prompt — ready to paste into any AI agent chat.
How it works
-
Select text in any note (or just place your cursor on a line).
-
Press Ctrl+I (or run the command Copy agentic citation from the palette).
-
The plugin copies a formatted citation to your clipboard, e.g.:
[[My Note]] — Lines 47–52 Here is the referenced section:When only a single line is selected:
[[My Note]] — Line 5 Here is the referenced section: -
Paste it into your agent chat. The agent knows exactly which file and lines you mean.
Customizing the citation
Go to Settings → Agentic Note References to edit the citation template and path format.
Path format
Choose how the file is referenced in the citation:
- File name only (default) — e.g.
My Note - Relative to vault root — e.g.
folder/My Note.md - Absolute filesystem path — e.g.
/home/user/vault/folder/My Note.md
Template placeholders
{{filename}}— the file reference, according to your Path format setting{{from}}— starting line number (1-indexed){{to}}— ending line number (1-indexed){{lines}}— human-friendly line range (e.g.Line 5orLines 47–52)
Use \n for explicit newlines in the template.
Installation
- Clone or download this repo into your vault's
.obsidian/plugins/agentic-note-references/folder. - Run
npm install && npm run build. - Enable Agentic Note References in Obsidian's Community Plugins settings.