Projects5 min read
Social Bookmark Sync — Plan (deferred)
Auto-sync Reddit saves, X bookmarks (and TikTok favorites later) into Hermes + Obsidian vault. Shared ingest pipeline, script-first, zero-token when idle. Deferred — build routes researched.
- Status
- planned
- Updated
- Topics
- project · sync · reddit · x · tiktok · runbook
Social Bookmark Sync — Plan (deferred)
Goal: every time I save/bookmark something on Reddit, X, or TikTok, it lands automatically in the Obsidian vault (as a capture) and in Hermes's awareness (vault is the source of truth → RAG/Mnemosyne/briefs pick it up). Status: planned, not built (2026-08-09).
Architecture (shared across all three sources)#
One ingest pipeline, pluggable sources:
~/.hermes/scripts/social_sync/
sync.py # CLI: sync --source reddit|x|tiktok
state/reddit_state.json # cursor/dedup state per source (never in vault)
state/x_state.json
state/tiktok_state.json
- Sync writes new items only into
00 Inbox/Social/<Source>/YYYY-MM.md(rolling monthly batch note, append, dedupe by item ID in state). - Cron: script-first (
no_agent) — script runs every 6h, prints nothing when there are no new saves (silent watchdog pattern), prints the new items when there are some. Token cost: $0 when idle; the LLM never runs. - Optional weekly digest cron (agent, cheap): summarizes the week's saves into the Daily Brief. ~2–5k tokens/run on DeepSeek via OpenCode Go ≈ pennies.
- Unsave/delete: not synced (append-only capture; that's fine — it's a journal, not a mirror).
- Triage later from Inbox per vault governance (captures are Inbox's job).
Source 1 — Reddit saved items ⚠️ REVISED 2026-08-09 (OAuth is dead)#
Original plan (OAuth script app) is NOT viable. Reddit's timeline:
- Nov 2025 — Self-service API access closed; "Responsible Builder Policy" + approval process introduced. New apps (even personal script apps) get rejected or ghosted;
reddit.com/prefs/appsoften redirects to a policy page / CAPTCHA loop. u/Watchful1: "Reddit has closed OAuth access unless you get a very specific exception, which personal scripts won't qualify for." - May 30, 2026 — Unauthenticated
.jsonendpoints → 403 everywhere. - Paid scrapers (FetchLayer et al.) don't help — saved items are private; only an authenticated session can read them.
Working routes (both use Ayush's own logged-in session):
- Clone-profile CDP (automated, recommended): APFS-clone the Chrome profile → launch temp Chrome with
--remote-debugging-port→ CDPNetwork.getAllCookies(Chrome 151 ABE makes direct decryption impossible) → drivereddit.com/savedscroll or authenticated fetch with the cookies. Cron-able, no re-login, real-Chrome fingerprint dodges bot challenge. - Hermes automation browser, manual sign-in (one-shot only): sign in once in the visible browser window → agent scrolls
reddit.com/saved→ extract + summarize. No recurring cron — the local browser engine (engine: local) launches with an ephemeral profile; logins die with the engine.
Decision: deferred (2026-08-09) — user chose to note-and-park rather than build either route now.
Source 2 — X bookmarks (cost decision needed) ⚠️#
xurlCLI (official, skill ready) hasxurl bookmarks -n N→/2/users/:id/bookmarks. But reading bookmarks requires a paid X API tier (Basic ≈ $200/mo; Free tier is write-only). That's the real blocker, not tooling.- Options (in order of Ayush's cost preference):
- Semi-automated (default, $0): keep a browser extension / bookmark-export userscript (
x.com/i/bookmarks→ dump JSON) and drop the file into a watched folder; the Hermes ingest side (script reading the folder → vault) is fully automated. Extraction is the only manual step. - Full auto (paid):
xurl auth oauth2(user-side, secrets never in chat) + Basic tier, cronxurl bookmarks -n 100every 6h. Only worth it if bookmark volume justifies $200/mo — it won't for most people; re-evaluate if X becomes a primary research feed.
- Semi-automated (default, $0): keep a browser extension / bookmark-export userscript (
- xurl is not installed yet (
xurl --helpfails). If option 2 is ever chosen:brew install --cask xdevplatform/tap/xurl, then user runs the OAuth setup from the xurl skill (never the agent).
Source 3 — TikTok favorites (deferred, research required) 🔒#
- No official API for favorites (likes/collections). TikTok Takeout covers watch history/comments/posts, not favorites.
- Unofficial endpoints need signed requests (
X-Bogus/msToken) — break constantly, not cron-safe. - Paid mirrors (e.g. TikAPI, ~$50+/mo) exist but are third-party and pricey.
- Decision: defer. If it ever becomes a real want: research current scraping state first, then likely the same semi-automated folder-drop pattern as X option 1 (TikTok has no bulk export — semi-manual screen-scrape or third-party tool into the watched folder). Shared ingest side means zero extra build once Reddit/X exist.
Build order & tasks#
- Phase 1 (REVISED): Reddit via clone-profile CDP — clone → temp Chrome → cookies →
reddit.com/saved→ vault. OAuth path abandoned (policy, 2025-11). - Phase 1:
social_sync/sync.pyreddit driver + state + vault writer (validator-compliant frontmatter) - Phase 1: cron
every 6h,no_agentif scriptable via CDP (needs websocket-client dep), else agent cron - Phase 1: backfill all saves on first run
- Phase 2: X via folder-drop watcher (watched dir + ingest script; extraction manual)
- Phase 3: TikTok — research gate, then same folder-drop pattern
- Optional: weekly saves digest into the Daily Brief
- NOW (2026-10-14): grokbot sweep of X saves — run grokbot through the X saves by this weekend (Oct 18); this is the extraction shortcut for Phase 2.
- NOW (2026-10-14): get the X-saves pipeline going — wire the actual ingest end-to-end (sweep output →
social_sync/sync.pyX driver →00 Inbox/Social/X/), building on the Phase 2 route.
Key files / refs#
- Skills:
reddit-data-retrieval(public history + Arctic Shift),xurl(X API, when creds exist) - Vault destination:
00 Inbox/Social/{Reddit,X,TikTok}/YYYY-MM.md(captures → triage) - Related: YouTube Data Deep Dive (separate one-shot analysis, same Inbox philosophy)