Skip to main content

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

hermes_llmwiki-0.1.1.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hermes_llmwiki-0.1.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file hermes_llmwiki-0.1.1.tar.gz.

File metadata

  • Download URL: hermes_llmwiki-0.1.1.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for hermes_llmwiki-0.1.1.tar.gz
Algorithm Hash digest
SHA256 14ed8825dd557c6895280d21bac43f2967e47f7819dd803d3f5402dc98c69625
MD5 f3fe322864c513a0b16d5e9ea336e32b
BLAKE2b-256 199e5f072116f1f804c418fe4c09e3fd9b7579c48be0853886a2be4ed43156d8

See more details on using hashes here.

File details

Details for the file hermes_llmwiki-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hermes_llmwiki-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for hermes_llmwiki-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 287fb67f8bfaffecaca91ee3526ca17151e41145bcd34da8777f5dedea2226b4
MD5 8a9628a5b2c434da43c1aa110a4caa7f
BLAKE2b-256 798edb1af7ca9a72ea821e4eb4e844c577a4def626ebb4377225ab553dcbc6c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page