Skip to content

Latest commit

Β 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Hermes Second Brain

A compound knowledge system that grows itself.

Obsidian vault Β· Knowledge graph Β· Hermes Agent automation

License: MIT Python 3.10+ Node.js 20+


✨ What is this?

A self-growing second brain built on four components:

Component Role
πŸ“ Obsidian Markdown knowledge base (vault)
πŸ”— Graphify Wikilinks β†’ interactive knowledge graph
πŸ§‘β€πŸ’» Claude Code Director β€” orchestrates complex tasks
πŸ€– Hermes Agent Executor β€” collects, ingests, automates via cron

Key idea: Claude Code delegates, Hermes executes. The system runs 24/7 on a server β€” accessible from Discord or CLI.


πŸ“‚ Structure

Clone to ~/system/ and the directory is the system. No extra config needed.

hermes-second-brain/
β”œβ”€β”€ second-brain/                 # Obsidian vault
β”‚   β”œβ”€β”€ CLAUDE.md                 # Claude Code instructions
β”‚   β”œβ”€β”€ .hermes.md                # Hermes project context
β”‚   β”œβ”€β”€ raw/                      # Raw materials (never modify)
β”‚   β”‚   β”œβ”€β”€ inbox/                #   Unprocessed items
β”‚   β”‚   β”œβ”€β”€ articles/             #   Web articles
β”‚   β”‚   β”œβ”€β”€ papers/               #   Research papers
β”‚   β”‚   └── notes/                #   Manual notes
β”‚   β”œβ”€β”€ wiki/                     # Curated knowledge base
β”‚   β”‚   β”œβ”€β”€ concepts/             #   Concept documents
β”‚   β”‚   β”œβ”€β”€ entities/             #   Entity documents
β”‚   β”‚   β”œβ”€β”€ sources/              #   Source summaries
β”‚   β”‚   └── synthesis/            # Integrated analysis
β”‚   └── graphify-out/             # Knowledge graph output
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ wiki-graph.py             # Wiki β†’ graph generator
β”‚   └── wiki-lint.py              # Consistency checker
β”œβ”€β”€ hermes/skills/                # Hermes Agent skills
└── kor/README.md                 # ν•œκ΅­μ–΄ 버전

πŸš€ Quick Start

# 1. Clone
git clone https://github.com/Burgunthy/hermes-second-brain.git ~/system

# 2. Knowledge graph
python3 ~/system/scripts/wiki-graph.py

# 3. Hermes Agent
python3 -m venv ~/system/.venv && source ~/system/.venv/bin/activate
pip install git+https://github.com/NousResearch/hermes-agent.git playwright
npx playwright install chromium

# 4. Copy skills
cp -r ~/system/hermes/skills/* ~/.hermes/skills/

Open ~/system/second-brain/ as an Obsidian vault and you're set.

πŸ”§ Full setup (systemd service, Claude Code, env vars)

Claude Code

second-brain/CLAUDE.md tells Claude Code to delegate to Hermes:

cd ~/system/second-brain
claude

Hermes Config

Edit ~/.hermes/config.yaml:

  • model.default β†’ your preferred model
  • terminal.cwd β†’ ~/system/second-brain
export DISCORD_BOT_TOKEN="***"
export OPENAI_API_KEY="***"

systemd (always-on)

# Create ~/.config/systemd/user/hermes-gateway.service, then:
systemctl --user daemon-reload
systemctl --user enable --now hermes-gateway

πŸ”„ How It Works

  Collect                Ingest                Query
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Articles  │──┐    β”‚  Extract     β”‚       β”‚          β”‚
β”‚ Papers    β”‚  β”œβ”€β”€β”€β”€β–Ά  concepts   β”œβ”€β”€β”€β”€β”€β”€β–Άβ”‚  Wiki    β”‚
β”‚ Notes     β”‚β”€β”€β”˜    β”‚  entities   β”‚       β”‚  Search  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚
                   β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”
                   β”‚ Knowledge   β”‚
                   β”‚ Graph       β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Ingest pipeline: raw/ β†’ extract concepts & entities β†’ wiki/ β†’ update index & log β†’ refresh graph.

Document Metadata

Every wiki document uses this frontmatter:

---
title: Document Title
type: concept | entity | source_summary | synthesis
related: "[[RelatedDoc1]] [[RelatedDoc2]]"
sources: raw/file-path.md
created: 2026-04-22
updated: 2026-04-22
---

⏰ Automation

Cron jobs run automatically via Hermes Agent:

Schedule Job Description
Daily 4 AM daily-ingest Scan raw/inbox/ β†’ ingest to wiki β†’ refresh graph
Sun 5 AM weekly-lint Run wiki-lint.py consistency checks
Mon 9 AM weekly-summary Summarize last week's wiki changes
hermes chat -q "create cronjob: daily-ingest, 0 4 * * *, ingest raw/inbox/ to wiki/ and refresh graph, deliver: discord"

πŸ“œ Rules

  • raw/ β€” never modify (preserve originals)
  • wiki/ β€” log all changes in wiki/log.md
  • wiki/index.md β€” always keep up to date

πŸ“„ License

MIT


About

🧠 AI-powered compound knowledge system β€” Build a self-growing second brain with Hermes Agent + Obsidian + LLM Wiki

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages