cd /news/ai-tools/how-i-built-lossless-in-place-ai-cha… · home › topics › ai-tools › article
[ARTICLE · art-178405] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

How I built lossless in-place AI chat -> Obsidian sync in Chrome MV3 (zero cloud, no <all_urls>)

A developer released KeepThread v1.4.5, a Chrome MV3 extension that syncs AI chat transcripts from ChatGPT, Claude, Perplexity, DeepSeek, and Gemini into local Obsidian Markdown vaults using the File System Access API with no backend servers and without requesting the <all_urls> permission. The extension preserves handwritten notes, user YAML keys, and tags by wrapping transcripts in HTML comment boundaries and locating notes by conversation_id, and it splits Markdown by top-level, blockquote-nested, and list-nested code fences before normalizing math delimiters so code snippets stay untouched. It also flags partial captures of long virtualized threads as Needs Full Capture and bounds FileSystemDirectoryHandle.queryPermission() checks with a timeout to avoid Windows Chrome handle hangs.

recommendation

Before rewriting AI chat math delimiters, split Markdown by top-level, blockquote-nested, and list-nested code fences so fenced code stays byte-identical, and key synced notes by conversation_id to merge only new turns.

more in playbook: Verifying model output
by read2 min views6 publishedNov 30, 2026
If you use Obsidian as a local Markdown workspace (`raw/` -> `wiki/` or alongside `obsidian-skills`), bringing web conversations from ChatGPT, Claude, Perplexity, or DeepSeek into your vault usually hits three walls:

`[[backlinks]]` (or creates `Note (1).md` duplicates).`\( ... \)` and `\[ ... \]` math delimiters mangles literal `$` or parentheses inside fenced code blocks.

Here is how I solved all three 100% locally inside the browser in KeepThread (v1.4.5 live on Chrome Web Store; also on Microsoft Edge Add-ons)—using the File System Access API with zero backend servers and no <all_urls> permission:

conversation_id Instead of overwriting .md files, each synced note wraps the AI transcript inside HTML comment boundaries while keeping handwritten blocks (<!-- keepthread:notes:start/end --> and trailing notes) plus user-added YAML keys and #tags intact. Even if you rename the note inside your synced folder, KeepThread locates it by conversation_id and merges only the new turns.

Before normalizing ChatGPT/Claude/DeepSeek math delimiters (\[ \] -> $$ $$, \( \) -> $ $) or remapping Perplexity/Gemini footnotes into ## Sources, the parser splits Markdown by top-level, blockquote-nested, and list-nested code fences so code snippets stay 100% untouched.

(If you just want a free, zero-install tool for fixing broken AI math delimiters & <think> tags in the browser, I extracted that parser into a standalone page here: Free AI LaTeX to Obsidian Fixer)

On long virtualized threads, KeepThread compares turn signatures against your existing archive—flagging partial open-tab captures under Needs Full Capture (v1.4.5) instead of letting a shifted scroll window wipe earlier turns. Every FileSystemDirectoryHandle.queryPermission() check is also wrapped in a bounded timeout so Windows Chrome handle hangs never cause infinite spinners.

v1.4.5 Live) Single-thread Markdown & offline image .zip exports are free forever (optional $19 one-time Lifetime Pro, no subscription). Happy to answer any questions about Chrome's File System Access API or Obsidian .base / YAML edge cases!

── more in #ai-tools 4 stories · sorted by recency
── more on @keepthread 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-i-built-lossless…] indexed:0 read:2min 2026-11-30 · —