SETUP 001 · comment VAULT · 2026-11-02

A vault that maintains itself

My notes vault turned into a junk drawer. Now two small scripts tidy it every night at midnight, for free, and only ever add.

ONE REAL NIGHT

40 fixes

~30 srun time

0AI calls

$0cost

The problem

My Obsidian vault turned into a junk drawer: broken links, untagged notes, notes I could never find again. Cleaning it by hand never stuck.

The setup

Two plain Python scripts run one after the other every night at midnight. A scheduler (I use n8n on a small home server; cron works too) starts them.

  1. Tags and links (add-only). The first script reads each note’s folder and topic and adds the matching tags and a “Related” link to the right index note. It only ever adds lines; it never deletes or rewrites what you wrote.
  2. Health check. The second script looks for broken wikilinks, notes with no title, missing frontmatter and missing cover images. It fixes the safe things itself (a missing title, a missing cover image) and writes everything else, like broken links, into a report note for you to fix.

One real night

Measure Result
Notes touched 18
Small fixes 40 (28 cover images, 12 title icons)
Broken links flagged for me 8
Run time about 30 seconds
AI calls 0
Cost $0

Build your own, step by step

  1. Write down your rules first: which folder means which tag, and which index note each folder links to. The scripts just apply these.
  2. Start with a dry run. Have both scripts print what they would change, and read that list for a week.
  3. Make the first script add-only. Append tags and links; never delete or rewrite a line.
  4. Fix only what’s safe in the health check, and put the rest in a report note you check once a week.
  5. Back up before the first real run, and keep the vault in sync or version control.
  6. Schedule it for a time you’re not editing (midnight works), with cron or n8n.
  7. Keep it free: no AI calls are needed for any of this.

Comment VAULT on the reel and the DM sends you straight back to this page.

From the reel

Reel frame: at midnight the notes tidy into a gridReel frame: tags and links added between related notes, add-onlyReel frame: the health checklistReel frame: one real night's receipt