lifeos-claude-vault
Obsidian + Claude Code vault template: routed second brain, 49 skills, least-privilege agents and an approval gate
LifeOS
An Obsidian vault template that turns Claude Code into a personal operating system: a routed second brain, 49 skills, a team of least-privilege agents that draft work for you, an approval gate that nothing outbound gets past, and a local dashboard to run it all.
Clone it, fill in a few Context/ files, open the folder in Claude Code, and say "get to work".
Why
Most "AI second brain" setups are a pile of notes plus a chat window. They forget who you are every session, and the moment you let an agent touch email or a calendar there is nothing between it and a mistake you can't take back.
LifeOS treats both problems as architecture. A router file (CLAUDE.md) tells every session who you are and where everything lives, so the agent stops crawling. And autonomy is a per-verb dial written into files: agents research and draft freely, but anything that leaves the vault stops in a folder until you approve it, and only one agent is ever allowed to send.
Features
- Router, not search.
CLAUDE.md(mirrored toAGENTS.mdfor other tools) maps every kind of question to a folder, with a lookup order for vague ones. - The 4 C's. Context (who you are), Connections (live data you fetch, never paste), Capabilities (skills + agents), Cadence (what runs on its own), with a five-level guide to how much machinery each folder actually needs.
- Task pipeline.
10_Inbox → Queue → Active → Pending_Approval → Done. One task per markdown file, the folder is the status, every move appends a timestamped log line. - Ten agents with written allowlists. An orchestrator, three lane agents (school/career, creative, business), a
communicationsagent that is the only one able to send, ascribe, and utility agents including averifierwith BLOCK authority over anything outbound. - Trust Matrix. Every verb in every lane is 🟢 do, 🟡 do within a daily canary cap with receipts, 🔴 propose only, or ⛔ never. Any agent can demote a cell; only you can promote one, and only after ten clean receipts.
- Doctrine ledger. Every real failure becomes a numbered rule plus a fix to the file that caused it. Eleven worked examples ship with the template.
- 49 skills grouped into modules: day planning (
morning-coffee,daily-brief,inbox-brief), knowledge (wiki-ingest,graph-update,grill-me), maintenance (vault-janitor,skills-janitor,cascade), trust (incident,overnight-batch,retro), output (research,content-pipeline,visualize,pdf-guide) and more. Index with trigger phrases:.claude/skills/_Skill Index.md. - Dream Engine. A nightly run analyses the vault on eight dimensions and proposes exactly four improvement cards, vetted by a devil's-advocate agent. It proposes; it never changes anything.
- Source-backed memory. A SessionEnd hook extracts at most ten durable facts per session with a tool-less, schema-constrained model call. Each fact must quote an exact excerpt from a canonical file before
memory_store.pywill promote it intoMEMORY.md. - Mission Control. A local HUD (Python standard library, one HTML file) at
127.0.0.1:4777: one-click whitelisted skill runs, the approval queue with approve/reject, dream cards, launchd job status and Claude Code usage. - Safety hooks. PreToolUse hooks block destructive shell commands and reads of secrets, and log every skill run.
How it works
flowchart LR
subgraph Capture
A[You: desktop, phone, or a note] --> I[10_Inbox]
end
I -->|orchestrator triages| Q[20_Tasks/Queue]
Q -->|lane agent claims| AC[Active]
AC -->|internal work| D[Done]
AC -->|outbound draft| V{verifier}
V -- BLOCK --> AC
V -- PASS --> P[Pending_Approval]
P -->|you set approval: approved| C[communications agent]
C -->|checks ledger + Contact Spine, sends verbatim| D
C --> L[lane ledger + receipt]
subgraph Cadence
B[daily-brief 8:57] -.reads.-> P
DR[Dream Engine 22:15] -.proposes.-> MC[Mission Control]
S[SessionEnd hook] --> M[memory_store.py] --> MEM[MEMORY.md]
end
Every agent runs the same boot sequence before its first task: Context/About Me → Working Preferences → Goals → 00_System/Operating_Principles → Agent_Roster → Skills_Index → the lane's _context.md and voice.md.
Tech stack
- Claude Code (skills, subagents, hooks, headless
claude -p) - Obsidian as the viewer (optional: everything is plain markdown); Smart Connections for local semantic search
- Python 3 standard library (Mission Control server, memory store, capture backend)
- Node.js (hooks)
- macOS launchd for schedules
- Optional:
gws(Google Workspace CLI) for headless Gmail/Calendar, Gmail/Calendar MCP connectors for interactive sessions
Getting started
git clone https://github.com/ianroyes-sys/lifeos-claude-vault my-vault
cd my-vault
claude
-
Tell it who you are. Fill in
Context/About Me.md,Working Preferences.mdandGoals.md(or say "run me-builder" and get interviewed). Rename the three lanes (01_School,02_Creative,03_Business) if they don't fit your life, and fill their_context.md/voice.md. -
Use it. Drop a line in
10_Inbox/and say "triage", or "get to work" for the full cycle. Other starting points: "plan my day", "brief me", "grill me about X", "ingest this". -
Open the dashboard.
bash Cadence/mission-control/start.sh→ http://127.0.0.1:4777 -
Schedule it (optional, macOS).
bash Cadence/launchd/install.shinstalls the daily brief, weekly review and Dream Engine. Headless runs need a long-lived token: runclaude setup-token, then exportCLAUDE_CODE_OAUTH_TOKENor store it in the keychain (see.env.example). Mark each job 🟢 inCadence/Automation Registry.mdonly after its first real fire shows up inOutputs/Logs/. -
Memory capture (optional). Add a global SessionEnd hook in
~/.claude/settings.jsonso every Claude Code session is captured, not only ones started in the vault:{ "hooks": { "SessionEnd": [ { "hooks": [ { "type": "command", "command": "bash /absolute/path/to/my-vault/Cadence/scripts/capture_session.sh" } ] } ] } }
The project-level hooks in .claude/settings.json resolve through $CLAUDE_PROJECT_DIR, so they work wherever you clone the vault. All environment variables are optional and listed in .env.example.
Before raising any trust cell above 🔴, run the security pass at the bottom of 00_System/Automation_Setup.md.
Project structure
CLAUDE.md / AGENTS.md the router every session loads
00_System/ operating principles, agent roster, trust matrix, handoff protocol, doctrine
01_School/ 02_Creative/ 03_Business/ lanes: context, voice, sent-ledger
10_Inbox/ task intake
20_Tasks/ Queue / Active / Pending_Approval / Done / Grants / Expired
Context/ who you are, goals, preferences, business, stack, the 4 C's
Connections/ where live data lives; contact truth for outbound work
Wiki/ distilled knowledge, entered through _Index.md
Knowledge Graph/ entities + typed relationships
Vector Index/ when to keyword-search, read whole files, or search semantically
Projects/ Layer-2 workspaces scaffolded from Templates/Project Template
Calendar/ Maps/ Notes/ Brainstorms/ References/ Other Worlds/ Decisions/ x/
Outputs/ everything AI-generated (briefs, dreams, logs, receipts, memory)
Templates/ daily/weekly/monthly/quarterly/yearly, MOC, BLAST mission, project
Cadence/
Automation Registry.md
scripts/ headless runners, SessionEnd capture, memory store
launchd/ LaunchAgent templates + install.sh
mission-control/ local HUD (server.py + index.html)
.claude/
skills/ 49 skills + _Skill Index.md
agents/ 10 agent definitions with tool allowlists
hooks/ block-dangerous-commands, protect-secrets, log-skill-use
Every top-level folder has a README explaining what goes in it.
Credits
- The 4 C's and five-level framing come from Nate Herk's videos on Claude second brains (links in
References/_References.md). The vault structure and several skill modules (Daily Trident, Sherpa, Rock Tumbler, Chronicler, Janitor, Courier) build on Nick Milo's Linking Your Thinking work. LifeOS is an independent project and isn't affiliated with LYT. - The trust-engineering layer (Trust Matrix, Doctrine, verifier gate, overnight grants) follows the patterns in
Wiki/The Ninety Days Playbook.md. - The
quarterly-retreatskill is ported from AgriciDaniel/compass (MIT). block-dangerous-commands.jsandprotect-secrets.jsare ported from karanb192/claude-code-hooks (MIT, license in.claude/hooks/).
Status
The framework from a vault in daily use since July 2026, with its personal notes, tasks, journals and client material removed. The task pipeline, skills, hooks, memory store and Mission Control run as shipped. The launchd schedules and the gws email path need your own setup, and the agents are tuned for macOS.
Built by Ian Royes
How to Install
- Download the ZIP or clone the repository
- Open the folder as a vault in Obsidian (File → Open Vault)
- Obsidian will prompt you to install required plugins
Stats
Stars
0
Forks
0
Last updated 1mo ago
Categories
Tags