cd /news/ai-tools/how-i-automated-my-obsidian-vault-wi… · home topics ai-tools article
[ARTICLE · art-16882] src=dev.to pub= topic=ai-tools verified=true sentiment=↑ positive

How I Automated My Obsidian Vault with Claude — It Now Works the Night Shift

A developer built vault-os, an automated system that uses Claude AI to synthesize notes in an Obsidian vault while the user sleeps. The system captures notes via a Telegram bot with tag-based routing and runs a nightly 12-phase PowerShell script that reads the day's captures, synthesizes patterns, writes an evening review, and prepares a morning brief with context for the new day.

read7 min publishedMay 28, 2026

For about two years, I lived inside Obsidian. Daily notes, fleeting thoughts, meeting takeaways, half-formed ideas at 2am, voice memos I'd transcribe by hand. My vault had over 3,000 notes.

And I remembered almost none of it.

Every morning I'd open my laptop and stare at yesterday's daily note, trying to reconstruct where I was. The vault was full — full of captures that were never synthesized, tasks that were never carried forward, ideas that died in a folder called _inbox

. I was doing the work of a knowledge worker but getting none of the compounding returns. Notes went in. Nothing came out.

What made it worse: I knew I was supposed to do the synthesis. Review your notes. Write a morning brief. Connect the dots. But after a full day of work, the last thing I wanted to do was sit down and play editor. So I didn't. And the vault stayed a graveyard.

Here's what I eventually figured out: I wasn't failing at note-taking. I was failing at synthesis — and I was expecting myself to do it at the worst possible time.

Synthesis requires cognitive distance. You need to look at what you captured with fresh eyes. The problem is that "fresh eyes" happen in the morning, and the synthesis work needs to happen after the day is over. That's a structural mismatch, and no productivity system fixes it because it's not a productivity problem.

It's a timing problem. And timing problems are exactly what automation solves.

The thought that changed everything: Claude doesn't get tired at 11pm. It doesn't need cognitive distance — it can read the whole day in one pass and pull out what matters. So I built vault-os to hand that job off.

vault-os has two main jobs: capture anything, anywhere, and synthesize everything while you sleep.

Capture via Telegram bot. I wanted to send notes from my phone without opening Obsidian. The bot uses tag-based routing — anything you send gets sorted into the right section of your daily note automatically. #idea

goes into Content Ideas. #signal

goes into Research Signals. #link

or a bare URL goes into Links to Process. Plain text goes to Captures. Voice messages get transcribed locally and then routed the same way.

Nightly agent at 23:00. A PowerShell script runs 12 phases: it reads your day, runs Claude over your captures, synthesizes patterns, writes an evening review, prepares your morning brief, and carries forward any unfinished tasks. By the time you wake up, your daily note for the new day already has context loaded.

Morning digest API. A REST endpoint serves the morning brief so you can display it anywhere — a home screen widget, a terminal script, a Raycast extension, whatever fits your setup.

The server handles Telegram and the REST API. The core of it is a routing function that decides where each message goes in your daily note:

function routeMessage(text) {
  const t = text.trim();
  if (/^#(idea|fikir)\b/i.test(t))    return '## Content Ideas';
  if (/^#(signal|research|sinyal)\b/i.test(t)) return '## Research Signals';
  if (/^#link\b/i.test(t) || /^https?:\/\//i.test(t)) return '## Links to Process';
  return '## Captures';
}

Simple regex matching. I added Turkish/Azerbaijani aliases (fikir

, sinyal

) because I switch languages mid-thought constantly. You can extend this to whatever tags your brain uses.

Multi-line messages are handled per-line — if you paste a block of text with five ideas, each line gets routed independently. This matters more than it sounds; it means you can dump a brain dump into Telegram and it lands sorted.

The voice pipeline runs: OGG (Telegram's format) → ffmpeg converts to 16kHz mono WAV → whisper-cli transcribes → text goes through the same routing function. The whole thing is synchronous on my machine and takes about 4 seconds for a 30-second voice memo.

REST endpoints are minimal: GET /morning-brief

returns the prepared brief as JSON, POST /capture

lets other tools push content directly.

I wrote this in PowerShell because it runs as a Windows Task Scheduler job and I didn't want a dependency on a running Node process. The phases are:

The Claude API calls follow a consistent pattern: write the prompt to a temp file, call claude --print

with --max-turns 1

, capture stdout, clean up.

$prompt | Out-File -FilePath $tmpFile -Encoding UTF8
$result = & claude --print --max-turns 1 $tmpFile 2>$null
Remove-Item $tmpFile -ErrorAction SilentlyContinue

I use --max-turns 1

everywhere in the nightly agent because I don't want back-and-forth — I want one focused output per phase. This also keeps costs predictable. A full nightly run on a moderately active day costs me about $0.04.

The daily note template has fixed sections that the automation respects:


## Morning Brief
<!-- written by nightly agent from previous night -->

## Captures
<!-- plain Telegram messages land here -->

## Content Ideas
<!-- #idea tags land here -->

## Research Signals
<!-- #signal tags land here -->

## Links to Process
<!-- #link tags and bare URLs land here -->

## Evening Review
<!-- written by nightly agent at 23:00 -->

During the day, you're just sending messages. The structure fills itself in. The Morning Brief is already there when you open Obsidian. The Evening Review appears after the agent runs. You never touch the note directly unless you want to.

This matters for adoption: if the automation requires you to maintain the structure, you'll break it within two weeks. The structure has to be robust enough to survive a messy day where you just dump text into Telegram without thinking.

I almost used OpenAI Whisper API for transcription. It's easier to set up and the accuracy is excellent. I switched to whisper.cpp for one reason: the content of voice notes.

When you're thinking out loud into your phone, you're not performing. You're rough-drafting decisions, processing frustrations, working through half-formed ideas that you wouldn't put in a document. That content is genuinely private — not in a paranoid way, but in the way that a sketchbook is private. It's your unedited thinking.

Sending that audio to an API means it transits servers you don't control. Running whisper.cpp locally means the audio never leaves your machine. The model is a file on disk (ggml-small.bin

, 466MB), the process runs in a subprocess, and nothing goes over the network.

Accuracy with small

is good enough for most voice notes — I get the occasional mishearing on proper nouns and mixed-language sentences, but the meaning survives. If you mostly dictate in a single language, small

is the right tradeoff. medium

(1.5GB) is noticeably better for multilingual.

Here's what the Morning Brief section looks like on a real morning:

## Morning Brief

Carry-forward: Finish the vault-os README (started yesterday, left at setup section).

Yesterday's thread: Three captures around API cost optimization clustered
with a research signal on context caching. Worth developing.

Content angle ready: "Local-first AI tools" — #idea from Tuesday still
unaddressed, now has supporting signals from two separate sources.

Today's open question: The routing logic handles single-line captures well
but breaks on multi-paragraph pastes. Worth fixing or acceptable?

The brief is not a summary. It's a launch pad. There's a difference: a summary tells you what happened, a launch pad tells you where to start.

Prerequisites: Node.js 18+, PowerShell 7+, Claude CLI authenticated, ffmpeg on PATH, whisper.cpp compiled.

git clone https://github.com/sabahattink/vault-os
cd vault-os
./setup.sh
node dashboard/server.js

For the nightly agent, register scripts/nightly-agent.ps1

as a Windows Task Scheduler job at 23:00:

pwsh -File scripts/install-scheduler.ps1

I'm building this in public. Three things on the roadmap I actually need:

Decision intelligence endpoint. Extract decisions from a date range — not summaries, but actual choices made and the reasoning captured around them.

Weekly synthesis agent. Look across seven days of evening reviews and find the thread — what was I actually working on this week vs. what I said I was working on.

Mobile shortcut integration. An iOS Shortcut that records audio and POSTs directly to the capture endpoint, bypassing Telegram entirely for voice-only workflows.

If you use Obsidian and your vault isn't working for you — not because you're bad at it, but because synthesis is genuinely hard to sustain — vault-os might be worth trying.

GitHub: github.com/sabahattink/vault-os

Star it if it looks useful. Issues and PRs welcome.

Tags: obsidian, productivity, ai, opensource

── more in #ai-tools 4 stories · sorted by recency
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-automated-my-o…] indexed:0 read:7min 2026-05-28 ·