Jenkins Chen222 downloadsConnect Obsidian to Pi Coding Agent via the pi-ide protocol: current file, cursor, selection, and edit confirmations.
Connect Obsidian to Pi Coding Agent through the pi-ide protocol.
This plugin lets Pi see Obsidian's current file, cursor, and selected text via /ide. It can also route Pi write / edit tool calls through an Obsidian confirmation dialog before Pi applies the change.
/ide commandopenDiff from Pi-side @ldelossa/pi-idenpm:@ldelossa/pi-idepi in PATHpi install npm:@ldelossa/pi-ide
The plugin checks this on startup. If missing, it shows an install dialog and can run the command for you.
Clone/copy this repository, then build:
npm install
npm run build
Copy these files into your vault:
<vault>/.obsidian/plugins/pi-ide/
main.js
manifest.json
styles.css
Enable Pi IDE in Obsidian Community Plugins.
Then in Pi:
/reload
/ide
Select Obsidian.
This plugin is structured for BRAT. Add the GitHub repository URL in BRAT, then enable Pi IDE.
npm:@ldelossa/pi-ide and prompts to install if absent.<port>.lock files are written. Defaults to ~/.pi/ide.127.0.0.1:<port>.~/.pi/ide/<port>.lock with workspace folders and an auth token.@ldelossa/pi-ide discovers the lockfile and connects with /ide.selection_changed notifications.openDiff and either confirms or rejects the proposed final contents.127.0.0.1 so Pi can connect to Obsidian. It does not connect to any remote service by itself. If the user chooses Install now, the plugin runs pi install npm:@ldelossa/pi-ide, and Pi/npm may access the network to install that package.~/.pi/ide/<port>.lock so Pi can discover the running Obsidian bridge. It also checks ~/.pi/agent/npm/node_modules/@ldelossa/pi-ide/package.json and may run pi list to detect whether the Pi-side package is installed.pi list for detection and, only after explicit user action, pi install npm:@ldelossa/pi-ide to install the Pi-side package.127.0.0.1.For a GitHub release / BRAT build, attach:
main.jsmanifest.jsonstyles.cssFor Obsidian Community Plugins, also maintain versions.json and submit the repository to obsidianmd/obsidian-releases after testing.