How ahronvincegingco/ai-second-brain-toolkit works
Second Brain Toolkit is a local, privacy-focused Obsidian memory engine exposed to AI clients through MCP. Its main workflow explicitly stages user-approved memory, verifies pinned policy and hashes, publishes without overwriting existing notes, then provides scoped, read-only recall. The graph also preserves capture, historical intake, knowledge-graph maintenance, diagnostics, and the synthetic chat-recall transport. Evidence is limited to the README and the supplied source excerpts and index; unsampled relationships are omitted where they are not documented.
Main entry points: publish_memory.py Vault Publisher · migrate.py Candidate Staging · managed_memory.py Managed Recall · chat_recall_http.py Chat Recall Transport
Components 19
Capture and Intake
- Explicit Save
scripts/save_interactive_memory.py - Codex Capture
scripts/capture_outcomes.py - Offline Intake
scripts/migrate.py - Candidate Staging
scripts/migrate.py
Validation and Publication
- Grant and Hash Guard
scripts/selected_memory.py - Vault Publisher
scripts/publish_memory.py - Historical Import
scripts/publish_historical.py - Obsidian Vault
Recall and Access
- Selected Recall
scripts/selected_memory.py - Managed Recall
scripts/managed_memory.py - Read Memory Tool
scripts/read_memory.py - Managed MCP Server
scripts/managed_memory_mcp.py - Chat Recall Transport
scripts/chat_recall_http.py - Owner-Code OAuth
scripts/chat_recall_oauth.py
Knowledge and Operations
- Wiki Memory
scripts/wiki_memory.py - Local Diagnostics
scripts/wiki_health.py - Setup and Validation
scripts/install_toolkit.py
Other components
- AI Chat User
- AI Agent
Connections 18
- AI Chat User → Explicit Save: submits summary
README.md - Explicit Save → Candidate Staging: stages candidate
README.md - Codex Capture → Candidate Staging: stages evidence
scripts/capture_outcomes.py - Offline Intake → Candidate Staging: records intake
scripts/migrate.py - Candidate Staging → Vault Publisher: supplies candidate
scripts/publish_memory.py - Vault Publisher → Obsidian Vault: publishes notes
README.md - Historical Import → Vault Publisher: uses publication
scripts/publish_historical.py - Vault Publisher → Wiki Memory: updates knowledge graph
scripts/publish_memory.py - AI Agent → Managed MCP Server: calls tools
README.md - Managed MCP Server → Managed Recall: delegates recall
scripts/managed_memory_mcp.py - Managed Recall → Obsidian Vault: reads notes
scripts/managed_memory.py - AI Agent → Read Memory Tool: requests recall
README.md - Read Memory Tool → Selected Recall: delegates search
scripts/read_memory.py - Selected Recall → Obsidian Vault: reads pinned notes
scripts/selected_memory.py - Chat Recall Transport → Owner-Code OAuth: uses authorization
scripts/chat_recall_http.py - Chat Recall Transport → Managed Recall: supports recall
scripts/chat_recall_http.py - Setup and Validation → Obsidian Vault: validates setup
scripts/install_toolkit.py - Local Diagnostics → Obsidian Vault: audits health
scripts/wiki_health.py