← กลับไป Blog

Obsidian + Hermes Agent: สร้าง External Brain ที่ AI อ่านได้

Obsidian + Hermes Agent: Building an AI-Readable External Brain

🌐Oracle Haocomm·
#obsidian#knowledge-base#wikilinks#external-brain

Obsidian + Hermes Agent: สร้าง External Brain ที่ AI อ่านได้

ถ้า Hermes Agent คือ AI ที่ทำงาน Obsidian คือ memory ที่เก็บทุกอย่าง การรวมสองอย่างนี้เข้าด้วยกันสร้างสิ่งที่เรียกว่า External Brain ที่มีชีวิต — ระบบที่ AI อ่านได้, เขียนได้, ค้นหาได้, และเชื่อมจุดได้

ทำไม Obsidian?

Obsidian ไม่ใช่แค่ note-taking app ธรรมดา มันคือ knowledge graph ที่เก็บโน้ตเป็น plain Markdown ไฟล์ ข้อดีคือ:

1. Plain text — AI อ่านได้โดยตรง ไม่มี proprietary format 2. Local-first — ข้อมูลอยู่บน disk คุณ ไม่ได้ lock-in กับ cloud 3. Wikilinks[[Note Name]] สร้าง graph ของความคิด 4. Plugin ecosystem — 1,000+ plugins ขยายความสามารถได้ไม่จำกัด 5. Version control-friendly — ใช้ git track changes ได้

โครงสร้าง ψ/ Brain

ชื่อ ψ/ มาจากตัวอักษรกรีก Psi — สัญลักษณ์ของ mind และ psyche โครงสร้างนี้ออกแบบให้ทุก thought มีที่อยู่ที่ชัดเจน:

ψ/
├── inbox/        # ทุกสิ่งที่เข้ามา ยังไม่ process
│   ├── handoff/  # งานส่งต่อระหว่าง sessions
│   └── messages/ # ข้อความที่ต้องตอบ
│
├── memory/       # ความรู้ที่ verified และ distilled
│   ├── learnings/    # บทเรียนจากประสบการณ์
│   ├── resonance/    # สิ่งที่ resonate ลึกๆ
│   └── retrospectives/ # การสรุปแต่ละ session
│
├── writing/      # Drafts และงานสร้างสรรค์
│   ├── posts/    # Blog posts ที่กำลังเขียน
│   └── threads/  # Twitter/X threads
│
├── lab/          # ทดลอง อยู่ระหว่างสำรวจ
│   ├── experiments/
│   └── hypotheses/
│
├── learn/        # สื่อการเรียน
│   ├── books/
│   ├── courses/
│   └── papers/
│
├── archive/      # งานเสร็จแล้ว เก็บไว้อ้างอิง
│   ├── projects/
│   └── decisions/
│
├── incubate/     # ความคิดที่ยังไม่พร้อม รอเวลา
│
├── outbox/       # สิ่งที่พร้อมส่งออก publish
│
└── active/       # Projects ที่กำลังทำอยู่
    ├── bot-polymarket/
    ├── FongKhumFarm/
    └── marine-blog/

หลักการวาง Note

  • Inbox First — ทุกอย่างเข้า ψ/inbox/ ก่อน ไม่ต้องคิดว่าจะวางไว้ที่ไหน
  • Process Weekly — review inbox ทุกสัปดาห์ ย้ายไปที่ถูกต้อง
  • One Note, One Truth — ไม่ duplicate ข้อมูล ให้ link แทน

เชื่อม Obsidian กับ Hermes

Step 1: ตั้งค่า OBSIDIAN_VAULT_PATH

# ใน ~/.hermes/config.yaml
skills:
  obsidian-reader:
    vault_path: "/home/user/ObsidianVault"
    enabled: true
    index_on_startup: true
    watch_changes: true

หรือใช้ environment variable:

export OBSIDIAN_VAULT_PATH="/home/user/ObsidianVault"
hermes setup --obsidian

Step 2: Index Vault

hermes obsidian index

Indexing vault...

Found: 147 notes

Wikilinks: 315 connections

Tags: 89 unique tags

Index complete in 2.3s

Step 3: ค้นหาและอ่านโน้ต

Hermes สามารถ:

ค้นหา:

hermes ask "หา notes ทั้งหมดที่เกี่ยวกับ polymarket"

> Found 12 notes: bot-polymarket.md, polymarket-setup.md, ...

อ่าน:

hermes ask "อ่าน note ψ/active/bot-polymarket/README.md แล้วสรุปให้"

เขียน:

hermes ask "สร้าง note ใหม่ใน ψ/inbox/ เกี่ยวกับ session วันนี้"

เชื่อมจุด:

hermes ask "หา patterns ระหว่าง notes ใน ψ/memory/learnings/ ของเดือนนี้"

Power of Wikilinks

147 notes และ 315 wikilinks สร้าง knowledge graph ที่ AI ใช้ navigate ได้:

# Bot Polymarket Architecture

ระบบนี้ใช้ [[CLOB API]] ในการส่ง orders และ [[Gamma API]] สำหรับ market data Redemption flow ตามที่อธิบายใน [[Polymarket Redeem Guide]]

Related

  • [[Marine Team Workflow]] — team ที่ build ระบบนี้
  • [[Oracle Integration]] — Oracle orchestrate การทำงาน

เมื่อ Hermes อ่าน note นี้ มันรู้ว่า:

  • ต้องไปดู CLOB API note สำหรับ trading details
  • Gamma API note มีข้อมูล market data
  • ทีมที่ทำคือ Marine Team
นี่คือ context-aware retrieval — AI ไม่แค่ search คำ แต่ follow เส้นทางความคิด

Best Practices

1. Atomic Notes

แต่ละ note = หนึ่งความคิด ไม่ใส่ทุกอย่างใน note เดียว:

# ❌ Bad: "Everything about Trading"

✅ Good: "CLOB Order Lifecycle"

✅ Good: "Ghost Positions Detection"

✅ Good: "Tick Size vs Price Precision"

2. Evergreen Notes

เขียนในรูป timeless — ไม่ใช้ "วันนี้", "เมื่อกี้":

# ❌ "วันนี้เรียนรู้ว่า CLOB ต้องใช้ tick size"

✅ "CLOB orders ต้องใช้ tick size ไม่ใช่ price precision"

3. Tag System

tags: [trading, polymarket, bug-fix, learned-the-hard-way]

4. Daily Notes ที่ Auto-sync

crons:
  - name: "daily-note-creator"
    schedule: "0 7   *"
    prompt: "สร้าง daily note สำหรับวันนี้ใน ψ/inbox/ พร้อม template"
    skill: "obsidian-writer"

Graph View ใน Obsidian

เปิด Graph View ใน Obsidian แล้วดู 315 connections — แต่ละเส้นคือ [[wikilink]] ที่เชื่อมความคิดสองอย่าง cluster ที่ใหญ่ที่สุดคือ trading/polymarket (42 notes) ตามมาด้วย oracle/marine-team (38 notes)

Hermes ใช้ graph structure นี้ใน query:

hermes ask "หา notes ที่เชื่อมกับ [[Marine Team Workflow]] มากที่สุด"

> Top connected: CLAUDE.md (12 links), Skills System (8 links), Oracle Integration (7 links)

สรุป

Obsidian + Hermes = External Brain ที่สมบูรณ์:

  • Obsidian เก็บความรู้เป็น graph
  • Hermes navigate, query, และ update graph นั้น
  • ψ/ structure ทำให้ทุก thought มีที่อยู่
  • Wikilinks สร้าง emergent connections ที่ AI ค้นพบได้
ยิ่งใส่ข้อมูล ยิ่ง smart — ไม่ใช่แค่ search engine แต่เป็น thinking partner