No description
Find a file
2026-01-24 11:05:13 -05:00
assets Update GIF asset for smart context getting started guide 2025-07-05 13:01:50 -04:00
releases feat: update release notes for v2.0.4 with next patch details and modal size fix 2026-01-23 12:21:56 -05:00
src feat: enhance CopyContextModal with styling and grouping metadata for suggestions 2026-01-20 11:39:43 -05:00
.gitignore Refactor file path handling in get_all_open_file_paths and add tests for image path recognition 2025-07-31 13:37:54 -04:00
.npmrc update package/npm since migrating jsbrains to workspace 2025-04-20 18:44:39 -04:00
.scignore - [ ] DO improved: Context getItems sort logic 2025-06-12 16:51:24 -04:00
esbuild.js refactor: simplify release process by removing deprecated functions and streamlining core release logic 2026-01-24 11:05:13 -05:00
GETTING_STARTED.md Add Getting Started guide and installation instructions with accompanying images 2025-07-04 16:11:22 -04:00
LICENSE feat: update LICENSE to reflect new copyright holder and clarify usage restrictions 2025-12-09 17:34:03 -05:00
manifest.json feat: update version to 2.0.4 in manifest.json 2026-01-17 18:02:28 -05:00
package-lock.json 2.0.4 2026-01-17 18:01:17 -05:00
package.json 2.0.4 2026-01-17 18:01:17 -05:00
README.md feat: add instructions for copying multiple notes as context in README 2025-12-17 14:47:14 -05:00
release.js refactor: simplify release process by removing deprecated functions and streamlining core release logic 2026-01-24 11:05:13 -05:00
smart_env.config.js feat: add smart context actions component and integrate with main plugin 2025-12-15 17:46:08 -05:00
styles.css update_styles_css_to_adjust_modal_suggestion_layout_with_flexbox_for_svg_elements 2025-05-14 14:48:09 -04:00

Smart Context

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:

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

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.

  • 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! 🌴