Obsidian CLI workflow (two modes: URI vs direct file writes)
How to add notes to Obsidian from scripts and AI agents without opening the app.
built Apr 2026
A second brain the AI can read
how it works
Contrasts obsidian-cli (obsidian:// URI dispatch that silently no-ops if the app is closed) with direct file writes into the iCloud vault folder, which is the reliable agent path.
Technique: A pattern or hard-won lesson, written down so it isn't learned twice.
The code for this one lives in a private repo. This page explains the idea so you can build your own.