An open-source entry in TopGit's GitHub warehouse: zhiwehu/second-brain, 31 stars, Shell. 用 OpenClaw 或 Claude Code 打造第二大脑,让 AI 自动维护你的知识库。
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
You say "save this" → AI processes → Stored in your knowledge base
↓
Raw file saved (images, audio, documents)
↓
AI extracts key information
↓
Classified into PARA (Projects/Areas/Resources/Archives)
↓
Written to wiki + cross-linked + logged
PARA Classification: AI automatically decides where content belongs:
Save this to my second brain: [content]
Save this link to second brain: [URL]
Search my second brain for AI related content
Save that screenshot to second brain
Save today's meeting notes to second brain
./tools/compile_schema.sh --status # check status
./tools/compile_schema.sh --incremental # compile new content only
./tools/compile_schema.sh --full # full recompile
Directory Structure
Second Brain uses a dual-directory architecture:
second-brain-source/ # Source code directory (cloned from GitHub)
├── tools/ # Utility scripts
├── process/ # AI processing templates
├── setup.sh # Installation script
├── upgrade.sh # Upgrade script
└── CLAUDE.md # AI config
~/second-brain/ # Data directory (your second brain)
├── .git/ # Independent git repo (manage with git)
├── wiki/ # Your knowledge base
│ ├── projects/ # Active projects
│ ├── areas/ # Ongoing responsibilities
│ ├── resources/ # Interesting topics
│ ├── archives/ # Completed/archived
│ └── schema/ # Concepts & relationships
├── raw/ # Raw materials (images/audio/files)
└── ... # Copied code files
Key Points:
second-brain-source/ is clean source code, manage with git for your fork
~/second-brain/ is your data, with independent git for your knowledge base
Run setup.sh and it automatically creates your data directory
Git Management:
# Manage your data
cd ~/second-brain
git status
git add .
git commit -m 'Added new content'
git push # Push to your private GitHub/Gitee
# Upgrade source code
cd second-brain-source
git fetch upstream
./upgrade.sh
Obsidian Integration
Use Obsidian to visually browse your wiki:
Open Obsidian
Click "Open Vault" → select ~/second-brain/ (your data directory)
Obsidian will display all .md files in wiki/
Non-markdown files (.sh, images in raw/, etc.) are automatically hidden
Recommended Obsidian plugins:
Dataview — Query wiki data with dynamic tables
Templater — Automated templates
Obsidian Git — Auto-backup to Git (push to your private repo)
Tip: Both OpenClaw/Claude Code and Obsidian work in your data directory (~/second-brain/). OpenClaw manages AI processing, Obsidian provides the visual graph view.
Clip articles while browsing → they go directly to raw/
This makes ingestion much faster — clip first, process later.
Image Download Hotkey
After clipping an article with images:
In Obsidian Settings → Files and links → set "Attachment folder path" to raw/assets/
Bind hotkey: Search "Download" → "Download attachments for current file"
After clipping, press the hotkey → all images download locally
This ensures LLMs can view images directly from local files.
Generate Slides from Wiki
Use Marp to create presentations from wiki content:
Install Marp plugin in Obsidian
Write markdown with Marp syntax
Export to PPT/PDF
Example:
---
marp: true
theme: default
---
# My Presentation
- Point 1
- Point 2
This lets you generate slide decks directly from your accumulated knowledge.
FAQ
Q: Where is my data stored?
A: In ~/second-brain/wiki/ and ~/second-brain/raw/. Your data is managed with an independent git repository, pushable to your private GitHub/Gitee.
Q: Why separate source code and data?
A: This way you can upgrade code without affecting your data. Source code in second-brain-source/, your data in ~/second-brain/.
Q: Do I need to maintain it manually?
A: No. AI automatically updates index and log. Just regularly git push to backup your data.
Q: How is this different from regular notes?
A: Second Brain automatically classifies using PARA, remembers relationships between content, and runs regular health checks.
Q: How do I upgrade?
A: Download the latest source to second-brain-source/, then run ./upgrade.sh. Your wiki/ and raw/ data will not be lost.
Q: What is Schema and when should I compile it?
A: Schema is Layer 3 — it extracts concepts and relationships from your wiki content. Compile when your wiki has accumulated significant content (weekly recommended). Use @compile command or run ./tools/compile_schema.sh --incremental.
Fork & Contribute
Want to stay updated with the latest changes?
If you fork this repo, you can receive updates from the original:
Step 1: Fork on GitHub
Click the "Fork" button on github.com/zhiwehu/second-brain
Step 2: Clone your fork to source directory
git clone https://github.com/YOUR_USERNAME/second-brain.git second-brain-source
cd second-brain-source
TopGit's metadata for zhiwehu/second-brain does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is zhiwehu/second-brain?
zhiwehu/second-brain (zhiwehu/second-brain) is a Shell project on GitHub. From the project's own README: 用 OpenClaw 或 Claude Code 打造第二大脑,让 AI 自动维护你的知识库。
Where do I read more about zhiwehu/second-brain?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/zhiwehu/second-brain is the definitive source.
Read full README in the tab above.
Still deciding about second-brain?
One click hands the question to an AI along with this page — see what it says about second-brain.