How to let Claude Code edit 200 Markdown notes — and undo it in one click
Asking an AI agent to rewrite YAML properties across 200 Markdown files with sed or Python usually ends with mangled quotes, invented status values, or overwritten notes. Here is the four-step BaseStudio workflow: schema check, dry run, attributed batch write, and one-click Undo.
Every Obsidian user who connects Claude Code to their vault eventually wants to run a big cleanup:
- “Find every project note whose end date has passed and whose status isn’t Done, and mark it Blocked.”
- “Add the tag
q4-reviewto all 180 client notes with status Active.” - “Rename the
ownerproperty across this folder without breaking my front matter formatting.”
If the agent runs a shell script over 200 .md files directly, a single mistake spreads across your vault instantly — and if you had unsaved or uncommitted changes in five of those notes, reverting is messy.
Here is how to run the exact same 200-note batch through BaseStudio so nothing silent can happen.
Step 1: Point BaseStudio at your vault folder (no conversion)
BaseStudio reads and writes standard Obsidian .base files and plain .md YAML front matter in place. It only touches the specific front-matter keys being updated and leaves your Markdown body and formatting alone.
Install the BaseStudio desktop app (macOS Apple Silicon or Linux), select Install Command Line Tool…, and install the Agent Skill:
npx skills add gabrielbacha/basestudio-agent-kitStep 2: Inspect schema and preview with --dry-run
Before writing a single byte, ask Claude Code to inspect the Base’s columns and preview the bulk update:
# 1. Inspect valid column names, types, and allowed select optionsbasestudio schema ~/Vault/Projects/Projects.base
# 2. Preview the batch edit across matching rows without modifying any filebasestudio bulk-set ~/Vault/Projects/Projects.base \ status="Blocked" tags+=q4-review \ --view "All projects" \ --where status="In progress" \ --as Claude \ --dry-runIf Claude accidentally tries an invalid option like status="Late" when your select column only allows Idea, Planned, In progress, Blocked, Done, BaseStudio refuses the write immediately and prints the allowed options instead of corrupting 200 notes.
Step 3: Apply the batch with attribution
Once the dry-run count and diff look right, run the exact same command without --dry-run:
basestudio bulk-set ~/Vault/Projects/Projects.base \ status="Blocked" tags+=q4-review \ --view "All projects" \ --where status="In progress" \ --as ClaudeIf BaseStudio is open on your screen, every table row, Kanban card, and timeline bar updates immediately — and the Undo menu now shows a single grouped entry:
Claude · Edit 200 records
If BaseStudio is closed, the CLI runs the same engine headless and still saves that grouped Undo entry on disk so it is waiting the next time you open the app.
Step 4: Reverse all 200 notes in one click (or one command)
Realize five minutes later that you filtered the wrong view? Press Cmd+Z / Ctrl+Z in BaseStudio — or run:
basestudio undo ~/Vault/Projects/Projects.baseAll 200 notes revert cleanly to their exact prior front matter. Even better: if you manually edited one of those notes in Obsidian after Claude’s run, BaseStudio detects the file changed since the batch and refuses to overwrite your newer manual edit.
What to watch out for
- Large batches require Pro: BaseStudio Free edits Bases up to 30 records (and is read-only above 30, including from the CLI). For a 200-note vault Base, you will need BaseStudio Pro ($39 launch / $49 regular, one payment, lifetime updates).
- Backup before big vault refactors: Even with shared Undo and revision checks, keeping your vault in git or Obsidian Sync snapshots is good hygiene before any large bulk edit.
Test a simulated Claude batch edit, schema refusal, and Cmd+Z Undo right now in the live browser demo.
Try BaseStudio on your own files — or in the browser first.
Free forever for Bases up to 30 records, with no account and plain Markdown or SQLite files on your disk.