Branch
unlistedby Nikolas Sapalidis
Embed Branch reasoning trees in your notes. Pick a session from ~/.branch/sessions and render it inline.
branch-obsidian
Obsidian plugin to embed Branch reasoning trees in your notes.
Install
This plugin is not yet on the community store. To install manually:
- Clone this repo or download a release
- Copy
manifest.json,main.js, andstyles.cssinto<your vault>/.obsidian/plugins/branch-ai/ - In Obsidian, enable "Branch" under Settings → Community plugins
Or use BRAT and add this repo URL.
Usage
- Run
branch "your prompt"from your terminal (requires branch-ai) - In Obsidian, open the command palette (Ctrl/Cmd-P) → "Branch: Insert reasoning session"
- Pick a session from the fuzzy list
- The plugin inserts:
```branch-tree session: abc123 ``` - In preview mode the code block renders the full reasoning tree
Settings
- Sessions directory — where Branch CLI saves JSONs (default
~/.branch/sessions) - Viewer URL — used for "Open in viewer" link (default
http://localhost:7432) - Node truncate length — chars per node before "…" (default 200)
Session JSON must match the Branch tree format, and its sessionId must match
the filename (for example, abc123.json). Invalid files are skipped by the picker
and show an error when referenced directly. Viewer URLs must use HTTP or HTTPS.
Privacy
Rendering reads local session files and makes no network requests. Opening
"Open in viewer" navigates your browser to the configured viewer, sending the
session ID in its URL (default http://localhost:7432). The plugin does not upload
the session contents. Note sharing, exports and filesystem access follow your
Obsidian and operating-system configuration.
The default directory contains the local files written by Branch CLI. Keep the viewer URL and sessions directory pointed at locations you trust.
Development
npm ci
npm test
Tests exercise the compiled plugin with temporary session files and a small Obsidian host adapter. They do not install the plugin or access a real vault.
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.