Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Agentic Note References

imavinashimavinash333 downloads

Copy a citation with file link, line numbers, and a custom prompt for AI agents.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates10

An Obsidian plugin that copies a formatted note reference to the clipboard — ready to paste into any AI agent chat.

How it works

Editor mode (Live Preview / Source)

  1. Place your cursor on a line, or select a range of lines.

  2. Press Ctrl+Alt+I (or run Copy agentic citation from the command palette).

  3. A picker appears — type to filter, arrow keys or mouse to choose:

    • Default — built-in ref mode; uses the Default citation template from Settings
    • Custom modes — ref modes you define in Settings, in the order you set
    • Reading mode — built-in preset read mode; uses the Reading mode template
  4. The formatted citation is copied to the clipboard.

Reading mode

Press Ctrl+Alt+I while in Reading mode and the same picker appears.

  • Reading mode is listed first and uses the Reading mode template.
  • Ref modes remain available too; when selected, they use the note's current editor cursor/selection for line numbers.

Settings

Go to Settings → Agentic Note References.

Path format

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

Editor mode — Default citation template

The template used by the built-in Default ref mode in the picker.

Default value:

[[{{filename}}]] — Lines {{from}}–{{to}}

Here is the referenced section:

Reading mode template

The template used by the built-in Reading mode option in the picker.

Default value: [[{{filename}}]]

Custom ref modes

Click Add ref mode to create a new mode. Each mode has:

  • Name — shown in the picker list
  • Template — the text that gets copied

Use the ↑ / ↓ buttons to reorder modes. Their order in Settings is the order they appear among the ref modes in the picker.

Template placeholders

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.


Installation

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.

Development

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.

HealthExcellent
ReviewPassed
About
Copy a citation with file link, line numbers, and a custom prompt ready to paste into any AI agent chat. Select text or place the cursor to capture the referenced lines to the clipboard using a configurable citation template and file path format with placeholders for filename and line numbers.
AILinksTemplating
Details
Current version
1.4.1
Last updated
4 weeks ago
Created
3 months ago
Updates
10 releases
Downloads
333
Compatible with
Obsidian 1.2.3+
Platforms
Desktop, Mobile
License
AGPL-3.0
Report bugRequest featureReport plugin
Author
imavinashimavinashavinashkanaujiya
GitHubavinashkanaujiya
  1. Community
  2. Plugins
  3. AI
  4. Agentic Note References

Related plugins

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Smart Templates

AI powered templates for generating structured content. Works with Local Models, Anthropic Claude, Gemini, OpenAI & more.

Whisper

Speech-to-text using OpenAI Whisper.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Advanced URI

Control everything with URI.

Copilot

Your AI Copilot: Chat with Your Second Brain, Learn Faster, Work Smarter.

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.