imavinash92 downloadsCopy a citation with file link, line numbers, and a custom prompt for AI agents.
An Obsidian plugin that copies a formatted note reference to the clipboard — ready to paste into any AI agent chat.
Place your cursor on a line, or select a range of lines.
Press Ctrl+Alt+I (or run Copy agentic citation from the command palette).
A picker appears — type to filter, arrow keys or mouse to choose:
The formatted citation is copied to the clipboard.
Press Ctrl+Alt+I while in Reading mode and the same picker appears.
Go to Settings → Agentic Note References.
Controls how {{filename}} resolves in every template:
| Option | Example |
|---|---|
| File name only (default) | My Note |
| Relative to vault root | folder/My Note.md |
| Absolute filesystem path | /home/user/vault/folder/My Note.md |
The template used by the built-in Default ref mode in the picker.
Default value:
[[{{filename}}]] — Lines {{from}}–{{to}}
Here is the referenced section:
The template used by the built-in Reading mode option in the picker.
Default value: [[{{filename}}]]
Click Add ref mode to create a new mode. Each mode has:
Use the ↑ / ↓ buttons to reorder modes. Their order in Settings is the order they appear among the ref modes in the picker.
| Placeholder | Expands to | Available in |
|---|---|---|
{{filename}} |
File reference per path format | All modes |
{{from}} |
Starting line number (1-indexed) | Ref modes only |
{{to}} |
Ending line number (1-indexed) | Ref modes only |
{{lines}} |
Line 5 or Lines 3–7 |
Ref modes only |
In the Reading mode template, {{from}}, {{to}}, and {{lines}} are not available — use only {{filename}}.
Use \n for explicit newlines in any template.
git clone <repo> ~/.obsidian/plugins/agentic-note-references
cd ~/.obsidian/plugins/agentic-note-references
npm install && npm run build
Enable Agentic Note References in Settings → Community Plugins.
Build and sync to your vault in one step:
./sync.sh
Options:
-n, --no-build Skip npm build (copy existing main.js)
-v, --vault <path> Target vault root (default: ~/obsidian/notes)
-s, --src <path> Plugin source dir (default: ~/github/obsidian-agentic-note-references)
After syncing, reload the plugin in Obsidian: Settings → Community Plugins → toggle off/on.