Developer Builds Nightly Pipeline to Distill AI Chat Logs into Obsidian Knowledge Base
A developer has built an automated nightly pipeline that extracts the past 28 hours of AI conversation logs from Claude and Codex and appends distilled insights into a structured Obsidian vault. The system runs via launchd on macOS across multiple time slots — 4:55, 8:15, 10:15, and 12:15 — to recover gracefully from sleep interruptions, using a done-marker file to prevent duplicate runs. A key challenge was macOS TCC privacy protection blocking launchd from accessing iCloud-synced folders under ~/Documents, which the developer resolved by storing scripts outside the protected directory and granting Full Disk Access to /bin/bash. The distillation process was split into two separate runs by source to avoid consistent timeouts that occurred when both conversation sets were processed together in a single 40-minute window. Every successful run is backed up with a git commit and push to a private repository, allowing easy rollback if the vault gets corrupted.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in