---
repo: "mohan-n-swamy/obsidian-second-brain-public"
title: "Obsidian Second Brain — Two-Vault AI Knowledge System"
license: "MIT"
keywords: [obsidian, second-brain, pkm, personal-knowledge-management, para-method, markdown, local-first, ai-agents, knowledge-graph, claude-code]
capabilities:
  - "Ready-to-open dual Obsidian vaults (`vaults/engineering-hub/` and `vaults/knowledge-garden/`) with sample notes, `VAULT-RULES.md`, and `SEARCH.md`."
  - "Golden-ratio warm dark-mode CSS snippets (`golden-ratio-theme.css`, `typed-pages.css`, `footnotes-subtle.css`) ready to toggle in Obsidian Appearance settings."
  - "Native Obsidian `.base` view (`-1.atlas/active-projects.base`) alongside Dataview MOC indices."
  - "Report-only `bin/vault-linter.py` checking dead Dataview queries, folder depth ceilings, unbalanced markers, and PII phone/WhatsApp leaks."
  - "Collision-free `bin/bot-outbox-collect.py` enforcing single-writer safety for background agents."
when_to_use:
  - "A local-first Two-Vault Obsidian starter system built for human clarity and AI agent interoperability — pairing an Active Engineering Hub (`projects.yaml`) with an Evergreen Knowledge Garden (PARA + `-1.atlas` MOCs + `.base` views), golden-ratio CSS typography snippets, a report-only vault linter, and a collision-proof `bot-inbox` outbox."
  - "Single-vault PKM setups collapse once AI coding agents and background bots join the workflow: daily code logs drown evergreen notes, agents grep blindly across thousands of files, folder renames silently break Dataview dashboards, and unattended bots cause sync conflicts. Splitting active engineering from evergreen memory — backed by deterministic YAML registries, a 4-rung discovery cascade, and an append-only bot outbox — keeps both vaults fast, clean, and conflict-free."
inputs_required:
  - "GARDEN_VAULT_PATH: Path to your evergreen Obsidian knowledge vault"
  - "ENGINEERING_VAULT_PATH: Path to your active engineering hub vault"
  - "BOT_OUTBOX_DIR: Staging directory where unattended bots drop new notes"
  - "MAX_HUMAN_FOLDER_DEPTH: Maximum human-opened folder depth enforced by vault-linter.py"
quickstart:
  - "python3 bin/vault-linter.py vaults/knowledge-garden --strict"
  - "pytest -q tests/"
  - "# Open vaults/knowledge-garden and vaults/engineering-hub in Obsidian -> Settings -> Appearance -> CSS Snippets ON"
---

# Obsidian Second Brain — Two-Vault AI Knowledge System — Machine-Readable Agent Guide

A local-first Two-Vault Obsidian starter system built for human clarity and AI agent interoperability — pairing an Active Engineering Hub (`projects.yaml`) with an Evergreen Knowledge Garden (PARA + `-1.atlas` MOCs + `.base` views), golden-ratio CSS typography snippets, a report-only vault linter, and a collision-proof `bot-inbox` outbox.

<problem_patterns>
Single-vault PKM setups collapse once AI coding agents and background bots join the workflow: daily code logs drown evergreen notes, agents grep blindly across thousands of files, folder renames silently break Dataview dashboards, and unattended bots cause sync conflicts. Splitting active engineering from evergreen memory — backed by deterministic YAML registries, a 4-rung discovery cascade, and an append-only bot outbox — keeps both vaults fast, clean, and conflict-free.
</problem_patterns>

<architecture_map>
Key modules and entry points in this repository:
  - `vaults/knowledge-garden/VAULT-RULES.md`: Canonical folder, naming, frontmatter, Shallow Surface, and one-way promotion rules
  - `vaults/knowledge-garden/SEARCH.md`: Four-rung agent discovery cascade
  - `vaults/knowledge-garden/.obsidian/snippets/`: Golden-ratio typography ladder and typed banner CSS snippets
  - `vaults/knowledge-garden/-1.atlas/active-projects.base`: Obsidian Bases table view over `1.field/projects`
  - `vaults/engineering-hub/projects.yaml`: Machine-readable repository and documentation registry
  - `bin/vault-linter.py`: Zero-mutation linter for Dataview queries, folder depth, markers, and PII
  - `bin/bot-outbox-collect.py`: Create-only collector moving bot outputs into `bot-inbox/`
</architecture_map>

<inputs_and_configuration>
Every organization-specific value enters through `.env` (copied from `.env.example`) or external adapter files. No source edit is needed to change organization names, endpoints, database URLs, webhook secrets, or thresholds.
</inputs_and_configuration>

<adaptation_playbook>
When a human asks an AI coding agent to deploy or adapt `obsidian-second-brain-public` into their stack:
  1. Open `vaults/knowledge-garden` and `vaults/engineering-hub` as two vaults in Obsidian and enable the CSS snippets under Settings -> Appearance.
  2. Edit `vaults/engineering-hub/projects.yaml` to list your own repositories and documentation paths.
  3. Schedule `python3 bin/vault-linter.py <vault> --strict` weekly to keep Dataview MOCs and folder depth clean.
  4. Connect `open-brain-public` for hybrid `pgvector` + BM25 MCP search across both vaults.
</adaptation_playbook>

<reference_docs>
- Product Requirements: `docs/PRD.md`
- Working-Backwards PR-FAQ: `docs/PR-FAQ.md`
- High-Level Architecture: `docs/HLD.md`
- Low-Level Interfaces & Runbook: `docs/LLD.md`
- Coding Agent Rules: `AGENTS.md`
</reference_docs>
