Claude Code and Obsidian: See What the Agent Changed

· 7 min read· Русский

An Obsidian vault is a folder of Markdown files, so Claude Code can read and edit it like any project: start it in the vault folder and it rewrites notes directly. The catch is seeing what it did. Obsidian shows you the notes as they are now, not which twelve of them the agent touched an hour ago. Your options are Obsidian's own File recovery snapshots, version history in Obsidian Sync, git through the Obsidian Git plugin, or an app that turns that history into a readable feed, such as X-Filer, our product. Below is what each one shows, what it misses, and how to set the vault up so an agent's bad afternoon is easy to undo. Prices were checked on obsidian.md in November 2026.

Why an agent in your vault needs a history

Running Claude Code in a vault is popular for good reasons: your notes become the agent's long-term memory, a CLAUDE.md at the root tells it how the vault is organised, and it can tidy tags, fix links, summarise sources or draft notes in bulk. Since version 1.12, the Obsidian CLI also lets an agent drive the running app from the terminal.

The risk grows with that power. One prompt can touch dozens of notes, rename files and break links, and it all happens outside Obsidian's editor, so nothing in the app tells you which notes changed. Claude Code's own /rewind brings back files edited in the current session, but not files deleted or moved with terminal commands, and not anything from last week. Guides on the topic agree on the same habit: review the diff after each batch, and keep a real history. Our guide How to undo Claude Code changes covers /rewind in detail.

File recovery: Obsidian's built-in snapshots

Obsidian has a core plugin called File recovery. It is on by default and saves snapshots of each note, by default at least 5 minutes apart, kept for 7 days. Open Settings → Core plugins → File recovery → Snapshots, pick a note and copy back an older version.

It is a good safety net, with limits that matter when an agent is involved:

  • it works note by note: there is no list of everything that changed in the last hour;
  • only .md and .canvas files can be restored, not images, PDFs or the agent's own files;
  • snapshots are local to the device and do not sync, and the plugin's page says it is not a complete backup;
  • edits made while Obsidian was closed may not be caught; snapshots are taken by the app.

Obsidian Sync version history

Obsidian Sync costs $4 per month billed annually or $5 billed monthly. It keeps version history of notes for 1 month on the Standard plan and 12 months on Plus, and older versions of attachments for two weeks. On desktop, the Sync history sidebar shows recent changes across the vault.

If you already pay for Sync, this is the easiest way to roll back a note the agent spoiled. It still shows changes as file versions rather than as "what the agent did in this session", and it does not tell you which edits were yours and which were Claude's.

Git and the Obsidian Git plugin

Git is what developers use with Claude Code, and it works for vaults too. The community plugin Obsidian Git commits, pulls and pushes on a schedule and adds a Source Control view, a History view and side-by-side diffs inside Obsidian. Ask Claude to commit after each task, or let the plugin do it every few minutes, and every agent run becomes a version you can inspect and revert.

Two cautions. The plugin's README calls the mobile implementation "very unstable" and does not recommend it on phones. And git itself speaks its own language — staging, commits, reset, revert — which is fine for developers and a wall for many writers and researchers who came to Obsidian for notes, not version control.

If you go the git route, add .obsidian/workspace.json and .obsidian/workspace-mobile.json to .gitignore: Obsidian rewrites them whenever you move a pane, and they would fill your history with noise.

A project view of the vault, without git words

X-Filer is our product, so weigh this section accordingly. It is a free file manager for Windows, macOS and Linux with a view for projects where an AI agent works. It is not a note-taking app and does not replace Obsidian: keep writing in Obsidian, and use X-Filer to see what the agent did.

  • It recognises the vault as a project as soon as there is a CLAUDE.md or AGENTS.md in it, and shows the agent's instructions, skills and commands as named items.
  • Turn on version history keeps the vault's history with git under the hood, with a .gitignore for system files, and no commands to learn.
  • The feed shows versions by day, marks what is new since your last visit, and says who made each one: Agent or You. Unsaved changes lists what the agent edited since the last saved version.
  • What changed shows a note's removed lines in red and added ones in green. Restore as it was brings a note back, and Revert version undoes a whole run, each as a new version you can undo too.
  • Notes open rendered, and Edit gives you the Markdown with a live preview if you want to fix a line without switching apps.

Limits, honestly: X-Filer does not understand [[wikilinks]], backlinks, the graph or Obsidian plugins, so it shows a renamed note as a changed file, not as fixed links. It will not turn on git inside a folder synced by iCloud Drive, Google Drive or Yandex Disk, because sync clients damage git's files; for a vault in a Google Drive or Yandex Disk folder, the macOS version shows changes by file dates instead, and on Google Drive can restore the drive's own revisions. There is no mobile app yet. Setup is in the version history guide.

Which one should you use

You want Use
To rescue one note you just noticed is wrong File recovery
A month or a year of history and you already pay for Sync Obsidian Sync version history
Full history inside Obsidian, and git does not scare you Obsidian Git
A readable feed of what the agent did, with one-click undo, and no git words X-Filer, next to Obsidian

Whatever you pick, two habits help most: keep a CLAUDE.md that tells the agent which folders it may edit, and ask it to work in batches you can review.

Is X-Filer an Obsidian alternative?

No. Obsidian is a note-taking app: links between notes, backlinks, the graph, canvas, daily notes, a large plugin ecosystem and mobile apps. X-Filer has none of that. It is a file manager with a view of agent projects, and it is useful next to Obsidian when an AI agent edits your vault. If you are looking for another notes app, X-Filer is not it.

FAQ

Can Claude Code edit my Obsidian vault?

Yes. A vault is a folder of Markdown files, so Claude Code started in that folder can read, create and edit notes directly. A CLAUDE.md file at the vault's root tells it how the vault is organised and what it may change.

How do I see what Claude Code changed in my vault?

During a session, use Claude Code's /diff. Afterwards you need a history: Obsidian Sync's version history, git with the Obsidian Git plugin, or an app that reads that history as a feed, such as X-Filer.

Does Obsidian keep old versions of notes?

Yes. The File recovery core plugin saves local snapshots, by default at least 5 minutes apart and kept for 7 days. Obsidian Sync keeps version history for 1 month on Standard and 12 months on Plus.

Should I put my Obsidian vault in git?

If an agent edits it, yes: every run becomes a version you can inspect and undo. Leave .obsidian/workspace.json out of git, and do not put a git repository inside a folder synced by iCloud Drive, Google Drive or Yandex Disk.

Does X-Filer replace Obsidian?

No. Keep writing in Obsidian. X-Filer shows what the agent changed in the vault, compares versions and restores notes, without git commands.

Step-by-step guides

Read next