Christian Lempa787 downloadsChat with Pi using context from your notes, links, backlinks, tags, and search results.

Chat with Pi in Obsidian using context from your current note, links, backlinks, tags, explicit search results, and selected text.
Thanks to Mario Zechner, the developer of Pi, for building the agent this plugin runs on top of.
Pi Agent is desktop-only and requires Pi coding agent 0.80.0 or newer to be installed separately (last compatibility test: 0.80.7). The upstream package is @earendil-works/pi-coding-agent, from earendil-works/pi-mono:
npm install -g @earendil-works/pi-coding-agent
pi --version
Newer Pi versions may add capabilities that Pi Agent does not use yet. Missing required RPC capabilities produce an upgrade diagnostic; optional capabilities must use an explicit, tested fallback rather than failing silently.
If Obsidian cannot find pi, restart Obsidian after installation so it picks up your updated PATH. For custom installs such as nix-darwin, set Pi executable path in the plugin settings, for example /etc/profiles/per-user/${USER}/bin/pi.
First run checklist:
Tool modes, briefly:
Privacy reminder: prompts, selected text, note content, search excerpts, attachments, and local chat history can be sent to the Pi CLI and then to your configured model provider.
/ autocomplete for Obsidian context commands and /skill:name commands.Open a Markdown note and select text, then choose the Annotations header action to add a change request or question. With no selection, the action toggles block-pick mode; it works in both editing and reading views when Obsidian can map the rendered block to Markdown source. The command palette action Pi Agent: Add or toggle annotation for active note is the keyboard/fallback entry point. Annotations appear on the note, can be navigated, edited, or individually deleted, and are included with the active note in subsequent Pi prompts; detached anchors remain listed until edited or deleted.
Tool modes control which Pi CLI tools are enabled. They are not an operating-system sandbox.
Pi Agent can send note content and selected text to the local Pi CLI, which may forward prompts to configured model providers. See PRIVACY.md for details before publishing or using the plugin with sensitive vaults.
Short version:
chats folder. Pi runtime sessions remain separate under the plugin's local pi-sessions directory.After approval, install from Obsidian's Community Plugins browser.
Download the latest release and copy these files into:
<vault>/.obsidian/plugins/pi-agent/
Required files:
main.js
manifest.json
styles.css
Then enable Pi Agent in Obsidian settings.
Use a dedicated test vault. Do not develop or test plugin changes in your main vault.
npm ci
npm run build
npm run build:check
npm run ci
npm run test:pi -- /path/to/dedicated/test-vault
npm run dev:install -- /path/to/dedicated/test-vault/.obsidian/plugins/pi-agent
test:pi is an opt-in, offline/no-tool/no-session RPC smoke test. It disables discovered extensions, skills, prompt templates, themes, context files, and project approval, then reads local Pi state, models, and commands without sending a model prompt. No provider request is made, so the command does not incur model-provider charges. Then reload Obsidian, or disable and re-enable the plugin.
See TESTING.md for the complete automated and dedicated ObsidianTesting manual checklist. Manual validation is pending until every item is explicitly checked; testing does not create a release.
main.manifest.json, package.json, and versions.json; promote CHANGELOG.md Unreleased entries into the new version section.npm run ci
main.main, for example:git tag 0.0.1
git push origin 0.0.1
The release workflow uses the current CHANGELOG.md entry as release notes, publishes the Obsidian-supported assets, and generates artifact attestations:
main.jsmanifest.jsonstyles.css