Live data from Hacker News

Obsidian Sync now has a headless client

help.obsidian.md

81–90 of 224 posts

Re: Obsidian Sync now has a headless client

#81
post #77
post #36

Oh! I worked on this project. If anyone has questions, I'll do my best to answer them!

How are sync conflicts handled in the filesystem? Say I write to a file and another client's edit wins and mine is rejected.

The headless Obsidian Sync client works the same way as desktop and mobile clients, see:

https://help.obsidian.md/sync/troubleshoot

- Markdown files: Obsidian Sync merges the changes using Google's diff-match-patch algorithm.

- Other file types: For all other files, including canvases, Obsidian uses a "last modified wins" approach. The most recently modified version replaces earlier versions.

For conflicts in Obsidian settings, such as plugin settings, Obsidian Sync merges the JSON files. It applies keys from the local JSON on top of the remote JSON.

Re: Obsidian Sync now has a headless client

#83
post #17

Also new: Obsidian joins the CLI gang https://help.obsidian.md/cli I’ve been having a lot of fun recently using AI CLIs with Obsidian. No plugins necessary because it’s just a directory tree of markdown files.

I've been using iCloud to sync Obsidian, and have consistently run into the problem that iCloud file container access needs full disk permissions that I don't want to give the agent (or Ghostty). Does everybody use Obsidian's paid sync instead or what? Or SyncThing?

Definitely one of the biggest ROI is to pay for the sync. I regret all years I tried git-based alternatives (it's still useful to have it in git for backup, but not as the main syncing mechanism).

Re: Obsidian Sync now has a headless client

#86
post #17

Also new: Obsidian joins the CLI gang https://help.obsidian.md/cli I’ve been having a lot of fun recently using AI CLIs with Obsidian. No plugins necessary because it’s just a directory tree of markdown files.

I've been using iCloud to sync Obsidian, and have consistently run into the problem that iCloud file container access needs full disk permissions that I don't want to give the agent (or Ghostty). Does everybody use Obsidian's paid sync instead or what? Or SyncThing?

I used iCloud in the past, but found that syncing between a few devices sometimes left my notes in a weird state - sometimes overwritten, missing, etc. I switched some time ago to https://github.com/remotely-save/remotely-save with backblaze and I periodically sync to a git repo for a second backup. No issues since then.

Re: Obsidian Sync now has a headless client

#87
post #17

Earlier quoted context omitted.

I've been using iCloud to sync Obsidian, and have consistently run into the problem that iCloud file container access needs full disk permissions that I don't want to give the agent (or Ghostty). Does everybody use Obsidian's paid sync instead or what? Or SyncThing?

I have been using remotely save and a free bucket from backblaze. It as a s3 compatible api so works using the s3 feature.

I'm doing the same since this is the only method I found I can let my bot access the files, something I couldn't achieve with Obsidian Sync.. until now!

Re: Obsidian Sync now has a headless client

#88
post #70

Nice! I rely on Obsidian a lot for syncing knowledge while working with Claude agents, such as storing research and daily logs to catch up on the prior day’s work. It already works quite well with a custom skill that I build, but this may make the workflow smoother. I also built a cli tool to index embeddings in LanceDB and do semantic search. It helps agents create better internal links between notes. https://github…

How does this affect your token/quota usage?

Re: Obsidian Sync now has a headless client

#89
post #17

Also new: Obsidian joins the CLI gang https://help.obsidian.md/cli I’ve been having a lot of fun recently using AI CLIs with Obsidian. No plugins necessary because it’s just a directory tree of markdown files.

I've been using iCloud to sync Obsidian, and have consistently run into the problem that iCloud file container access needs full disk permissions that I don't want to give the agent (or Ghostty). Does everybody use Obsidian's paid sync instead or what? Or SyncThing?

I use Syncthing (with Synctrain client on iOS) and it works great.

Re: Obsidian Sync now has a headless client

#90
post #17

Also new: Obsidian joins the CLI gang https://help.obsidian.md/cli I’ve been having a lot of fun recently using AI CLIs with Obsidian. No plugins necessary because it’s just a directory tree of markdown files.

I've been using iCloud to sync Obsidian, and have consistently run into the problem that iCloud file container access needs full disk permissions that I don't want to give the agent (or Ghostty). Does everybody use Obsidian's paid sync instead or what? Or SyncThing?

Resilio.
Post reply on HN