Step 3 of 4

Building an Agentic OS

A coding agent as the engine, a vault as memory, local voice, and a tiered router that sends each request to the cheapest thing that can handle it.

12 min read

What if your coding agent weren't just for code? Given access to your notes, calendar, and files - plus a voice interface and a smart router - the same agent becomes a personal operating layer: it plans your day, triages your inbox, researches, and files what it learns. This guide describes that architecture, piece by piece, and the design decisions that keep it fast, cheap, and safe.

The agentic OS architecture#

InterfaceKeyboard, one-click skill buttons, and local voice (speech-to-text in, text-to-speech out)
RouterA decision engine that sends each request to the cheapest tier that can handle it
EngineA coding agent (e.g., Claude Code) with skills, tools, and MCP servers
MemoryAn Obsidian vault of Markdown notes - the durable, human-readable source of truth
Four components. Each is replaceable; the value is in how they connect.

The engine: a coding agent#

A coding agent already has what an assistant needs: it reads and writes files, runs commands, calls APIs through MCP, follows skills, and works in multi-step loops. Pointed at a notes vault instead of a codebase, the same capabilities manage knowledge instead of code.

Memory: a Markdown vault#

An Obsidian vault is plain Markdown files in folders - which makes it ideal agent memory:

  • Readable by both you and the agent, with no database or export step.
  • Linkable with wiki-links, so notes form a graph the agent can traverse.
  • Versionable with git, so every agent edit is reviewable and reversible.
  • Local-first - your data stays on your machine.

Voice: fully local#

Local speech-to-text (e.g., Whisper) turns speech into a request; a small local text-to-speech model (e.g., Kokoro) reads replies back. Keeping both local means no audio leaves your machine and there's no per-minute cost.

Speech-to-text (STT)
Converting spoken audio into written text - Whisper is a popular open model that runs locally with no per-minute cost.
Text-to-speech (TTS)
Converting written text into spoken audio - Kokoro is a lightweight model that runs locally and privately.
MCP
Model Context Protocol - an open standard that lets AI apps connect to external tools and data sources (GitHub, databases, browsers) through a uniform interface.

The router: three tiers#

The router is what makes the system feel instant. Most requests don't need a full agent, so a decision engine classifies each one and sends it to the cheapest tier that can handle it:

RouterClassify the request
  • Tier 1 · Rules'Timer 10 min', 'open today's note' - deterministic, milliseconds
  • Tier 2 · Small modelQuick lookups, short rewrites, simple Q&A
  • Tier 3 · Full agentResearch, planning, multi-step work across files
Routing simple requests away from the full agent cuts typical response time from several seconds to under one.

Skill buttons#

Frequent workflows become one-click (or one-phrase) skills:

Plan Today

Read the calendar, open tasks, and yesterday's notes; propose a time-blocked plan with one clear priority; write it to today's daily note.

Inbox Brief

Summarize unread messages by urgency, draft replies for the routine ones, and flag what needs you personally.

Deep Research

Search, read, and synthesize sources on a question; write a cited research note into the vault and link it to related notes.

Weekly Review

Compare the week's plans to what happened, surface open loops, and draft next week's priorities.

Harvesting finished work#

A /harvest command closes the loop on projects: when one finishes, the agent reads its notes, decisions, and outcomes and writes clean wiki pages - what was built, why, what was learned - linked into the rest of the vault. Knowledge compounds instead of being buried in old project folders.

Guardrails for a personal agent#

An agent with access to your email and files needs clear limits:

  1. 1Read broadly, write narrowly: the agent writes only to folders it owns (see the next guide's folder rules).
  2. 2Drafts, not sends: outgoing messages wait for your approval.
  3. 3Keep the vault in git so every agent change is reviewable and reversible.
  4. 4Keep secrets out of the vault; give tools scoped, revocable credentials.
  5. 5Treat email and web content as untrusted input - it can contain prompt injections.
  6. 6Log what each skill did, so you can audit and tune it.

Papers behind this guide

Further reading

Search Data Science After Dark

Search across prompts, models, papers, guides, and library topics.