Skip to content

aiplay/oh-my-brain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Oh-My-Brain Banner

Your Obsidian-powered second brain β€” knowledge management, web clippings, and multi-agent orchestration in one vault.

License Obsidian Node.js Python TypeScript

πŸ‡¨πŸ‡³ δΈ­ζ–‡ζ–‡ζ‘£ Β· Quick Start Β· Features Β· Architecture


πŸ€” What is Oh-My-Brain?

Oh-My-Brain is an opinionated Obsidian vault template for power users who want a single hub for:

  • πŸ“š Personal knowledge β€” notes, memories, and structured thinking
  • βœ‚οΈ Web clippings β€” articles and pages collected from browsers
  • πŸ€– Multi-agent orchestration β€” mount external code repos and coordinate AI agents from one place
  • 🎨 Visual organization β€” color-coded folders with a shared config that travels with your vault

It ships with a custom Obsidian plugin (Oh My Brain) and a one-click setup script β€” clone, run, and you're ready.


✨ Features

πŸ”Œ Oh My Brain Plugin

🎨 Folder Coloring

Right-click any folder β†’ pick from 27 presets or a custom color picker. Colors cascade to child folders. Config is git-tracked so every clone looks the same.

πŸ€– External Agent Management

Mount any local code repository as a vault subdirectory. The repo's CLAUDE.md is symlinked automatically β€” your AI agent context lives alongside your notes.

πŸ”— CLAUDE.md Linking & Sync

Symlinks preferred; auto-falls back to copy when symlinks aren't available. One-click re-sync from command palette or right-click menu.

βš™οΈ Two-Layer Color Config

Shared colors in folder-colors.json (git-tracked) + personal overrides in data.json (gitignored). Just like VS Code's settings model.


πŸ—οΈ Architecture

Vault Architecture

πŸ“‚ Directory tree
oh-my-brain/
β”œβ”€β”€ Brain/                  # Core knowledge: SOUL.md, Memory.md
β”‚   β”œβ”€β”€ SOUL.md             # Agent identity & behavioral constraints
β”‚   └── Memory.md           # Persistent runtime memory & decisions
β”œβ”€β”€ Clippings/              # Web clippings from browsers
β”œβ”€β”€ Skills/                 # Workspace skill definitions
β”œβ”€β”€ Agents/                 # External agent workspaces
β”‚   └── <alias>/
β”‚       └── CLAUDE.md       # β†’ Symlink to external repo's CLAUDE.md
β”œβ”€β”€ Output/                 # Generated reports, slides, images
β”œβ”€β”€ oh-my-brain-plugin/     # Plugin source & setup script
β”‚   β”œβ”€β”€ src/                # TypeScript source code
β”‚   β”œβ”€β”€ folder-colors.json  # Shared color config (git-tracked)
β”‚   └── setup.py            # One-click initialization
β”œβ”€β”€ .obsidian/              # Obsidian internal config
└── CLAUDE.md               # Project guide for AI agents

⚑ How It Works

Workflow Diagram

Oh-My-Brain acts as a central coordinator. Your knowledge, clippings, and external agent workspaces are all visible in one vault. The custom plugin handles folder coloring and repo mounting. AI agents read CLAUDE.md files to understand each workspace's context.


πŸš€ Quick Start

Prerequisites

Tool Version Purpose
Obsidian v1.4.5+ The vault host
Node.js v18+ Build the plugin
Python 3 v3.10+ Run the setup script
Git any Clone the repo

Installation

# 1. Clone the vault
git clone https://github.com/<your-username>/oh-my-brain.git
cd oh-my-brain

# 2. One-click setup β€” builds plugin, downloads dependencies
python oh-my-brain-plugin/setup.py

# 3. Open in Obsidian
#    Obsidian β†’ Open folder as vault β†’ select oh-my-brain/
#    Settings β†’ Community plugins β†’ Disable Restricted mode β†’ Enable plugins
βš™οΈ Setup options
python oh-my-brain-plugin/setup.py --force          # Force rebuild / reinstall
python oh-my-brain-plugin/setup.py --skip-build     # Skip building local plugins
python oh-my-brain-plugin/setup.py --skip-download   # Offline mode, skip remote downloads

Bundled Plugins

Required (auto-installed)

Plugin Source Description
Oh My Brain Local (oh-my-brain-plugin/) Core plugin: folder coloring, agent management, CLAUDE.md linking
Execute Code twibiral/obsidian-execute-code Run code blocks directly in notes (Python, JS, Shell, 20+ languages)

Optional (interactive selection during setup)

Plugin Source Description
Claudian YishenTu/claudian Claude AI chat inside Obsidian (requires API key)
Marp Slides samuele-cozzi/obsidian-marp-slides Markdown β†’ presentation slides
Excalidraw zsviczian/obsidian-excalidraw-plugin Whiteboard diagrams, sketches, and mind maps

πŸ“– Usage

🎨 Folder Coloring

  1. Right-click any folder in the file explorer
  2. Click Set folder color β†’ pick a color
  3. Toggle Apply to children to cascade

Shared vs. Personal: Colors saved to oh-my-brain-plugin/folder-colors.json are shared via git. Personal overrides in plugin data.json are gitignored.

πŸ€– Adding an External Agent

  1. Ctrl+P β†’ Add External Agent
  2. Browse to a local repo
  3. Set an alias and color
  4. The plugin creates Agents/<alias>/ with a symlinked CLAUDE.md

πŸ”„ Syncing CLAUDE.md

  • Single agent: Right-click agent folder β†’ Sync CLAUDE.md
  • All agents: Command palette β†’ Sync all agent CLAUDE.md files

🎨 Color Config System

The plugin uses a two-layer config model β€” think VS Code settings:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  User Layer (data.json)           ← gitignored      β”‚
β”‚  Overrides per-path                                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Shared Layer (folder-colors.json) ← git-tracked    β”‚
β”‚  Defaults for all users                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β–² User wins when both define the same path

Toggle "Use shared colors" in plugin settings to disable the shared layer entirely.


πŸ› οΈ Development

cd oh-my-brain-plugin
npm install
npm run build          # Production build
# Output β†’ .obsidian/plugins/oh-my-brain/

The plugin is built with TypeScript + esbuild. Source lives in oh-my-brain-plugin/src/.


πŸ—‚οΈ Key Files

File Purpose
CLAUDE.md Project guide β€” AI agent reads this for vault context
Brain/SOUL.md Agent identity and behavioral constraints
Brain/Memory.md Persistent agent memory and experience
oh-my-brain-plugin/setup.py One-click vault initialization
oh-my-brain-plugin/folder-colors.json Shared folder color config
oh-my-brain-plugin/src/ Plugin TypeScript source

🀝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

  1. Fork the repository
  2. Create your branch (git checkout -b feature/amazing-feature)
  3. Commit your changes
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ License

MIT Β© Xu Jihui


Made with 🧠 and β˜• β€” powered by Obsidian

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors