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
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Smart Context

brianpetrobrianpetro18k downloads

Instantly copy folder contents or open notes—excluding specified headings—into your clipboard.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates16

Feed large language models better inputs, faster. Smart Context collects, cleans, and copies every note you need in a single click.

Build your Context Engineering workflow with Obsidian.

[!NOTE] Why does context matter? AI only answers as well as the context you provide. Smart Context helps aggregate scattered notes into templated snippets that can be quickly pasted into ChatGPT, so your prompts hit harder, your responses feel clairvoyant, and your flow state stays unbroken.

✔️ Zero-setup: works out-of-the-box 🔐 Local-first and privacy-preserving 🤖 Compatible with any AI workflow ⚔️ Mission-driven, community-supported

Learn the workflows in depth:

  • Getting started guide — copy folders, build sets, and grow them with links.
  • Builder guide — filter, save, and reopen contexts.
  • Clipboard workflows — copy folders, multi-select files, and export in one click.
  • Settings reference — adjust templates and output controls.

Install Smart Context

Quick start flows

  1. Copy a folder in one click — right click a folder in the file navigator and choose Copy contents to copy every note.
  2. Build and reuse a context — run Open Selector for New Context, add notes or blocks, then name and reopen the bundle later.
  3. Export with linked sources — send Smart Connections results to Smart Context, pick a link depth, and copy the full set.

Getting started

  1. Install Smart Context from Community plugins (or click Install above).
  2. Run Smart Context: Open Selector for New Context to open the Builder.
  3. Type to filter notes and press Enter to add them. Press → to select specific blocks when you only need sections of a note.
  4. Use Copy current to clipboard inside the Builder to export the selection, or name the context so you can reuse it later.
  5. Open Show named contexts to browse, reopen, or adjust saved bundles.

Smart Context Getting Started

Copy from file navigator

Copy a folder in one click

Folder menu - copy contents

Right click any folder, then choose Copy contents to send every note inside to your clipboard.

Copy multiple files

Select multiple notes (Shift/Ctrl/Cmd click), then right click and choose Copy selected notes as context to export them using your Context templates.

Copy folder command

Select folder modal

Or run the command Select folder to copy contents from the command palette and assign a hotkey for one-touch export.

Build a custom context with the Builder

  • Run Smart Context: Open Selector for New Context to open the Builder modal.
  • Type to filter suggestions, press Enter to add notes, and press Right Arrow to switch into block view when you only want a section.
  • Remove single items with the x control or use Clear to reset; watch the total size meter to stay within token limits.
  • Save a bundle by entering a name, then reopen it via Smart Context: Open Management dashboard (show named contexts) view.

Context selector

Learn more about the Context Builder in the detailed guide.

Block selection

Grow the set with connections and links

Use Send results to Smart Context in Smart Connections to convert matches into a context set you can edit in the Builder.

Select link depth modal

When exporting, choose a link depth to automatically include cited sources and related topics alongside your selection.

Export with link depth

  • Trigger an export from the Builder or the Smart Connections link depth modal when you want related notes pulled in automatically.
  • Pick a depth to include linked sources and keep the output organized by the originating note.
  • Re-run with a smaller depth when you need lean context for strict token budgets.

Learn more about the context clipboard features.

Key commands

  • Smart Context: Open Selector for New Context — open the Builder for a fresh set.
  • Smart Context: Copy current to clipboard — fast export of the current selection.
  • Smart Context: Copy entire folder to clipboard — best when your project already lives together.
  • Smart Context: Show named contexts — browse and reopen saved bundles.
  • Smart Context: Help: Show getting started — pull up a quick reference inside Obsidian.

[!TIP] Use Obsidian Settings → Hotkeys → search "Smart Context" to assign shortcuts for your most common actions.

Templates

Open Settings → Community plugins → Smart Context.

Context templates wrap the entire export. The default XML template includes {{FILE_TREE}} to show a hierarchical summary; remove it for a tighter payload.

Item templates wrap each note. Useful variables: {{KEY}} (full path), {{TIME_AGO}} (last modified), and {{LINK_DEPTH}} (depth when including linked notes).

  • Use templates to switch between structured XML, Markdown summaries, or short bullet exports without changing your vault files.
  • Adjust the default copy depth or prompt style in Settings → Context templates when you regularly include linked sources.

Templates only affect the text you copy/export—they do not change your vault files.

Learn more in the context settings reference guide.

Mission-driven

The Obsidian community proved user-aligned software can out-innovate closed platforms. Smart Context embodies that spirit—open-source tools that empower individuals, not gatekeepers. Read about the Smart Principles that guide development.

Private by Design

No data leaves your vault unless you copy it. All parsing, filtering, and token estimates run locally. Use local embedding models or remote APIs—it is your choice.

FAQs

Can I change how the context is formatted?Yes. Adjust the Context and Item templates in **Settings → Community plugins → Smart Context**. Edit variables like `{{FILE_TREE}}`, `{{KEY}}`, and `{{TIME_AGO}}` to match your workflow.
Does it work on mobile?Yes, the Core Smart Context plugin is mobile friendly. **Context Pro**: some features are not compatible with mobile.
What is the Smart Ecosystem? Smart Context is one piece of a larger ecosystem of local first, user aligned tools. I build Smart Plugins to explore new ideas, ship practical workflows, and keep complexity manageable inside Obsidian. Smart Context is the piece that enables Context Engineering inside Obsidian.

Thanks to the Community

Your feedback and support keep the project alive—thank you! 🌴

79%
HealthExcellent
ReviewSatisfactory
About
Collect and clean the notes you need into reusable context bundles and copy them to the clipboard in one click. Build, save, and reopen templated contexts from folders, files, or selected blocks to paste straight into ChatGPT or other LLMs while keeping your data local and private.
AIExportFiles
Details
Current version
3.1.1
Last updated
Last week
Created
Last year
Updates
16 releases
Downloads
18k
Compatible with
Obsidian 1.0.0+
License
OTHER
Report bugRequest featureReport plugin
Author
brianpetrobrianpetro
smartconnections.app
GitHubbrianpetro
  1. Community
  2. Plugins
  3. AI
  4. Smart Context

Related plugins

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

Gemini Scribe

Allows you to interact with Gemini and use your notes as context.

Smart Connections

AI link discovery copilot. See related notes as you write. Lookup using semantic (vector) search across your vault. Zero-setup local model for embeddings, no API keys, private.

Copilot

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

Recent Files

Display a list of recently opened files.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Khoj

An AI personal assistant for your digital brain.

Text Generator

Generate text content using GPT-3 (OpenAI).

Smart Composer

AI chat with note context, smart writing assistance, and one-click edits for your vault.

MCP Tools

Securely connect Claude Desktop to your vault with semantic search, templates, and file management capabilities.