Stefan193 downloadsMultilingual context routing for AI workflows in Obsidian.
Multilingual, token-aware context routing for Obsidian and AI assistants.
Prepare compact local context packs so AI tools can inspect fewer notes before they answer.

Context Prism turns an Obsidian vault into a local retrieval layer. It ranks notes related to the active file, explains why they were selected, estimates avoided context, and copies a compact Markdown pack that can be pasted into ChatGPT, Claude, Codex, Antigravity, Cursor, or any assistant that benefits from focused context.
Nothing is sent to external services. The index is built locally from Markdown files through the Obsidian plugin API.
Trying Context Prism? I am collecting 3-minute retrieval feedback on whether it surfaces the notes you would actually give to an AI assistant.

For a text-only walkthrough with fictional notes, see the synthetic demo.
multilingual, en, es, fr, de, it, ptAI assistants often waste context by reading too many notes before discovering which files matter. Context Prism moves that discovery step into the vault:
The result is a more controlled workflow for large vaults, multilingual notes, and AI-assisted knowledge work.
Context Prism combines TF-IDF cosine similarity with BM25-style term scoring. Titles, headings, aliases, metadata, and note bodies are weighted separately so strong structural signals can rank without turning every repeated template phrase into a match. Metadata can also boost candidates through shared area, topics, and tags.
If metadata creates noisy matches in a vault, disable Use metadata ranking or lower Metadata weight in settings.
After installing and enabling Context Prism:
Copy AI context pack for current note from the command palette. This copies a stricter high-confidence subset of the ranked candidates.Review AI context pack for current note, inspect the wider ranked list, include or exclude candidates, then copy the selected pack.The review modal is temporary and local to the current note snapshot. It shows paths, snippets, ranking reasons, estimated full-note tokens, estimated context-pack contribution, selected pack tokens, and estimated avoided context. It can also copy a privacy-preserving feedback report for ranking issues without including note bodies or snippets by default. Direct-copy packs are intentionally stricter than the review list to reduce accidental context noise.
After updating to a version with major workflow changes, Context Prism shows a one-time "What's new" modal inside Obsidian. You can reopen it later with Show what's new in Context Prism.
For manual linking, run Review link suggestions for current note, select the useful candidates, and insert them under the configured footer heading.
Use settings to adjust the suggestion limit, indexed languages, included or excluded folders, metadata ranking, and metadata weight.
Context Prism is built around practical retrieval quality: the important question is whether it surfaces the notes you would actually give to an AI assistant.
Feedback is especially useful when it covers:
If you try the plugin, please leave 3-minute retrieval feedback. The most useful answer is whether Context Prism surfaced the notes you would have copied manually into an AI assistant.
For bugs, feature requests, or longer ranking reports, open an issue through GitHub Issues. For ranking feedback, prefer small synthetic examples or redacted note excerpts that show the retrieval problem clearly.
Context Prism defaults to multilingual, which removes common stopwords across supported language profiles. For more precise ranking, configure Index languages in settings:
en
es
en, es
fr, de, it
multilingual
The current language layer is lexical and Unicode-aware. It is designed for local retrieval, not translation or semantic embedding.
Use Node.js 20.19 or newer. Node.js 22 LTS is recommended.
npm install
npm run dev
Production validation:
npm run typecheck
npm test
npm run build
npm audit
Copy these files into <vault>/.obsidian/plugins/context-prism/:
main.jsmanifest.jsonstyles.cssReload Obsidian and enable Context Prism under Community plugins.
manifest.json, package.json, and versions.json.npm run typecheck, npm test, npm run build, and npm audit.manifest.json.main.js, manifest.json, and styles.css.Pushing a matching version tag can run the release workflow and attach those assets automatically.
Context Prism reads Markdown files through the local Obsidian API and stores settings in the plugin data file. It does not make network requests, collect analytics, or send note content outside the vault.
MIT