By Tespera
Auto-archive Claude Code sessions to your Obsidian vault as a Karpathy-style LLM wiki.
Your Claude Code sessions flow downstream. Alluvium is what settles.
Alluvium auto-archives Claude Code sessions to your Obsidian vault. After each session, it distills the transcript into knowledge — not chat logs — and merges it into your existing topic pages.
You don't save your sessions. Your sessions save themselves.
🟢 v0.1.0 — full Karpathy LLM-Wiki algorithm implemented end-to-end:
wiki-aware ingest (LLM sees existing topics, reuses slugs instead of
minting parallel duplicates), episode filter, alluvium lint for
periodic deduplication, all backed by 327+ unit tests + 18 e2e tests.
Manual install for now (Homebrew formula written but tap not yet
published). See CHANGELOG.md for the full feature
matrix and docs/LLM_WIKI_DOCTRINE.md
for the product philosophy.
# 1. Install (pick one — the Homebrew tap is prepared but not yet published;
# once the v0.1.0 GitHub release lands, `brew tap Tespera/alluvium` will work.
# Until then, build from source.)
cargo install --git https://github.com/Tespera/alluvium
# or, from a local checkout:
git clone https://github.com/Tespera/alluvium
cd alluvium
cargo install --path .
# 2. Configure: vault path, recipe, API key
alluvium init
# 3. Register the Claude Code plugin (init prints this command)
claude plugin install /path/to/alluvium
# 4. (Optional) Backfill the past week of sessions
alluvium replay --since 7d
After that, just keep using Claude Code. Each session ends → distilled
knowledge appears in your vault, integrated into existing topic pages
(not piled up as new files). The LLM reads your wiki's existing-topics
index before extracting facts, so a session about "atomic file writes"
adds to the existing atomic-write page instead of creating a parallel
atomic-file-write / file-atomic-write / 三向-原子写盘 zoo.
Run alluvium status to see recent archives. Run alluvium dry-run to
preview the next distillation without writing. Run alluvium lint
periodically — it scans the wiki for near-duplicate pages that snuck
through and asks the LLM whether to merge them; pass --apply to
actually do it.
Most Claude + Obsidian tools either embed Claude inside Obsidian (you ask it to do things) or expose your vault to Claude via MCP (Claude reads/writes when prompted). Alluvium does neither.
It watches Claude Code sessions end, distills the conversation, and updates a Karpathy-style LLM wiki in your vault.
Passive. No slash command, no sidebar, no "remember to save." Hook-driven; you forget it's there.
Compounding. Each session merges into existing topic pages instead of creating yet another timestamped note. Your knowledge converges instead of accumulating.
.claude-plugin/plugin.json)SessionStart / PreCompact / Stop / SessionEndprompts/*.toml)raw/, wiki/, log.md, index.md)See docs/ for design details.
Alluvium calls the Anthropic API once per Claude Code session. Default model is Claude Haiku 4.5 (cheapest tier).
Rough estimate (default dev-journal recipe, ~50-message session):
| Granularity | Tokens | Cost |
|---|---|---|
| Per session | ~50K input / ~2K output | ~$0.06 |
| Per day (5 sessions) | — | ~$0.30 |
| Per month | — | ~$9 |
Switch to Sonnet (better notes, ~5× cost) or another model in
~/.config/alluvium/config.toml. The verbose recipe roughly doubles cost;
minimalist halves it.
See docs/PRIOR_ART.md. We learned specifically from obsidian-second-brain, claude-obsidian, and cognee-integrations.
Dual-licensed under the MIT License and Apache License 2.0, at your option. This matches Rust ecosystem conventions.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub tespera/alluviumAuto-archive Claude Code sessions to your Obsidian vault as a Karpathy-style LLM wiki.
Claude + Obsidian knowledge companion. Sets up a persistent, compounding wiki vault (Karpathy's LLM Wiki pattern). v1.7 "Compound Vault" + v1.8 methodology modes close 5 of 5 priority gaps from the May 2026 compass artifact. Ships: substrate alignment with kepano/obsidian-skills, default Obsidian CLI transport, hybrid retrieval (contextual prefix + BM25 + cosine rerank per Anthropic's Sept 2024 research), per-file advisory locking for multi-writer safety, pre-commit verifier agent, AND methodology modes (LYT / PARA / Zettelkasten / Generic) for first-class organizational support no other Claude+Obsidian competitor offers. v1.7.x audit closure: every BLOCKER + HIGH + MEDIUM + LOW finding from the v1.7.0 audit is CLOSED or DEFERRED-with-rationale. Optional DragonScale Memory extension (log folds, deterministic addresses, semantic tiling lint, boundary-first autoresearch).
Complete AI coding workflow system. Self-correcting memory + persistent FTS5-indexed research wikis + auto-research loop + multi-LLM council on a single SQLite store. 33 skills, 8 agents, 22 commands, 37 hook scripts across 24 events. Cross-agent via SkillKit.
Make your AI agent code with your project's architecture, rules, and decisions.