Keeps a read-only copy of a Fold memory space's notes in your vault.
An Obsidian plugin that keeps a copy of a Fold memory space's notes in your vault, so you can read, search and browse what your agents have learned with Obsidian's graph, backlinks and search. Turn on sending, and your edits and new notes go back to Fold.
It copies a space's notes, the inbox/ and managed/ folders, and nothing else: never the space's reference documents or its guidance files.
fold:read is enough to copy notes. To send your edits too, give it fold:write.https://.You can also open Fold memory in Obsidian's community directory.
To install it by hand instead, put main.js and manifest.json from the latest release in the vault's .obsidian/plugins/fold-memory/ folder, then enable it under Community plugins. On macOS and Linux, .obsidian is hidden: show hidden files to see it.
fold, paste your token as the Secret, and add it. Obsidian keeps the token in its own secret storage.The Space setting says whether the plugin reached Fold: "Connected" and how many spaces your token reaches, or what is wrong, such as an address that is not https://, a token Fold refused, or a token that reaches no spaces. It asks again as soon as you change the address or the token, so you never need to close the settings to see. A new address is first only checked, without your token, and the setting says whether it is Fold's web app; select Connect to send your token there and list your spaces. Until you do, nothing is sent to that address, not even by a sync, so half of an address, typed on the way to the whole one, never receives your token.
The notes then arrive, and the status bar at the bottom shows how many the vault holds. Until then it says "Fold: not set up", "Fold: not connected" or "Fold: choose a space".
The address, the token's name, the chosen space and whether sending is on are kept on this device only, never in the vault. A vault can be synced or shared, so nothing in it ever decides where your token goes, what it reads or what it sends. On another device, you enter them again.
managed/, the notes Fold has filed, and inbox/, new notes waiting to be filed. Browse them as you would any notes, with search, links, backlinks and the graph view.With Send edits to Fold on:
inbox/, and it is saved to the space's inbox at the same path, for Fold to file like any other note. Contribute access is enough for this. The plugin makes an empty inbox/ folder if the vault has none.name (local edit).md, so you can bring it across.managed/ stays here, since Fold files notes there itself. If Obsidian updates links when you rename a note, the notes it changes count as your edits.managed/ reaches Fold only where Fold accepts edits to managed notes. Otherwise Fold refuses it, the plugin says why, and your edit stays here.On a space's page, Fold's web app links to Obsidian. The plugin then asks you to confirm, naming the space and its organisation as Fold reports them to you, and connects this vault to it only if you do. A space connected this way starts with sending off.
The link names only the space: it never sets Fold's address or your token. So set the plugin up first. If it has no address or token yet, the link opens its settings instead. A vault that already holds a space's notes is never switched by a link.
name (local edit).md. If Fold removes a note you edited, or refuses your edit, your copy stays.inbox/ folder it makes when sending is on..obsidian/, or a name Windows cannot hold.Notes are what other people and agents wrote. Obsidian does not run scripts in a note, but some plugins do: Dataview's JavaScript queries run a dataviewjs block in a note, and Templater can run a note's template code. Keep such plugins off in a vault that holds a space you do not fully trust.
With sending on, what you write goes to the space, where its agents and the people who share it read it. If another sync tool, such as Obsidian Sync, brings changes into the vault, they count as your edits and are sent with your token.
A copy stays on your disk after your access to a space ends. The plugin stops updating it, and the notes remain.
Obsidian's network requests follow a redirect to another host and carry your token with them, and a plugin cannot stop that. Fold never redirects, so enter Fold's address exactly, never an address that forwards somewhere else.
The plugin reads Fold's two addresses, one for reading and one for writing, from the web app's settings at /config.json, without your token. Fold's query address, which version 0.1 asked for, still works, but only for copying.
pnpm install, then pnpm test runs the unit tests and pnpm build writes dist/main.js and dist/manifest.json.
From 0.1.1, GitHub Actions builds each release from its tag and attests what it built. To check that a release's main.js came from this repository: gh attestation verify main.js --repo 1p-dev/fold-obsidian.
MIT. See LICENSE.