hermes-llmwiki
"Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase." — Andrej Karpathy
A Karpathy-native, zero-infrastructure memory provider for Hermes Agent. Turns your local Markdown vault into a compounding knowledge system — no Docker, no cloud, no vector DB.
Why This Exists
Every serious Hermes user hits the same wall: the agent forgets everything between sessions. Existing memory providers either:
- Lock you into a SaaS (Honcho, Mem0, Supermemory)
- Require Docker + Qdrant + Redis (Memory OS)
- Are read-only (hermes-homie-memory)
- Don't follow a structured curation model (Open Second Brain)
hermes-llmwiki is different:
| hermes-llmwiki | Others | |
|---|---|---|
| Karpathy 3-layer architecture | ✅ Native | ❌ |
| AI-First note format | ✅ Optimized for LLM retrieval | ❌ Human-first |
| Zero dependencies | ✅ Python + ripgrep + optional SQLite | ❌ Docker/SaaS |
| Schema configurable | ✅ SCHEMA.md drives your vault |
❌ Fixed structure |
| Write + Read | ✅ Bidirectional | ⚠️ Some read-only |
Karpathy 3-Layer Architecture
┌─────────────────────────────────────────┐
│ Layer 3: Compiled Wiki (Query) │
│ entities/ concepts/ comparisons/ │
│ projects/ queries/ │
│ ↑ LLM curation (nightly) │
├─────────────────────────────────────────┤
│ Layer 2: Chronicle (Daily Notes) │
│ chronicle/daily/YYYY-MM-DD.md │
│ ↑ auto-capture from sync_turn │
├─────────────────────────────────────────┤
│ Layer 1: Raw (Session Exports) │
│ raw/session-{id}.md │
│ ↑ on_session_end / on_pre_compress│
└─────────────────────────────────────────┘
- Layer 1 (Raw): Session dumps, temporary, disposable
- Layer 2 (Chronicle): Daily timeline, append-only, human-readable
- Layer 3 (Compiled): Atomic notes with wikilinks, cross-references, frontmatter — the "source of truth"
Install
# Option 1: pip
pip install hermes-llmwiki
# Option 2: clone to Hermes plugins directory
git clone https://github.com/chancelu/hermes-llmwiki.git ~/.hermes/plugins/hermes-llmwiki
Then activate in ~/.hermes/config.yaml:
memory:
provider: llmwiki
llmwiki:
vault_path: ~/Documents/selfwiki # or your Obsidian vault
Run setup wizard:
hermes memory setup
CLI Commands
hermes llmwiki curate # Manually trigger: daily notes → compiled wiki
hermes llmwiki stats # Vault statistics
hermes llmwiki search "prompt injection" # Search compiled layer
hermes llmwiki health # Dead links, orphans, stale notes
hermes llmwiki export --format json # Export wiki to JSON
AI-First Note Format
Every compiled note follows Karpathy's AI-First Vault Principle:
---
type: concept
name: "Prompt Injection"
date: 2026-07-29
tags: [security, llm]
ai-first: true
confidence: high
sources: ["https://..."]
---
## For future Claude
Prompt injection is an attack where malicious input overrides the LLM's
system instructions. This page is the canonical reference.
## Key claims
- Direct injection: user input contains hidden instructions
- Indirect injection: data from external source carries payload
- Source: OWASP LLM Top 10, 2026 edition
## Related
[[LLM Security]] · [[Jailbreak]] · [[System Prompt Hardening]]
Configuration
Full config reference in CONFIG.md.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hermes_llmwiki-0.1.0.tar.gz.
File metadata
- Download URL: hermes_llmwiki-0.1.0.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0db02c106e194995b4457cb91db5411cd46ac889dc31e3dc4f3338622423f3db
|
|
| MD5 |
2a721edc4d08f328b34bb8b6fb041e0f
|
|
| BLAKE2b-256 |
95a02542bbfa5f7ee1fa1d2ebfe8067f766e5e0b4477a7bafede47ba1cabb65f
|
File details
Details for the file hermes_llmwiki-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hermes_llmwiki-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f20b337f5fec7563bd0102f3ccfef8294bc6310e5b295b9ccfab91e196d1dfc
|
|
| MD5 |
20620a9ac78b5e9da1d0bd9d27d46c34
|
|
| BLAKE2b-256 |
2f9be0f25db0c538b26ebe008e9d9f5b1d35712aaca818881d50dca49e83f136
|