{"id":51107499,"url":"https://github.com/tespera/alluvium","last_synced_at":"2026-06-24T15:01:03.904Z","repository":{"id":356739079,"uuid":"1233861945","full_name":"Tespera/alluvium","owner":"Tespera","description":"Auto-archive Claude Code sessions to your Obsidian vault as a Karpathy-style LLM wiki. Passive, hook-driven, knowledge converges instead of accumulating.","archived":false,"fork":false,"pushed_at":"2026-05-09T15:04:36.000Z","size":148,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T15:15:32.406Z","etag":null,"topics":["claude-code","claude-code-hooks","claude-code-plugin","karpathy","llm-wiki","obsidian","pkm","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tespera.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T12:59:44.000Z","updated_at":"2026-05-09T15:04:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Tespera/alluvium","commit_stats":null,"previous_names":["tespera/alluvium"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Tespera/alluvium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tespera%2Falluvium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tespera%2Falluvium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tespera%2Falluvium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tespera%2Falluvium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tespera","download_url":"https://codeload.github.com/Tespera/alluvium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tespera%2Falluvium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34737398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","claude-code-hooks","claude-code-plugin","karpathy","llm-wiki","obsidian","pkm","rust"],"created_at":"2026-06-24T15:01:01.835Z","updated_at":"2026-06-24T15:01:03.896Z","avatar_url":"https://github.com/Tespera.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alluvium\n\n\u003e Your Claude Code sessions flow downstream. Alluvium is what settles.\n\nAlluvium 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.\n\nYou don't save your sessions. Your sessions save themselves.\n\n## Status\n\n🟢 **v0.1.0** — full Karpathy LLM-Wiki algorithm implemented end-to-end:\nwiki-aware ingest (LLM sees existing topics, reuses slugs instead of\nminting parallel duplicates), episode filter, `alluvium lint` for\nperiodic deduplication, all backed by 327+ unit tests + 18 e2e tests.\nManual install for now (Homebrew formula written but tap not yet\npublished). See [`CHANGELOG.md`](CHANGELOG.md) for the full feature\nmatrix and [`docs/LLM_WIKI_DOCTRINE.md`](docs/LLM_WIKI_DOCTRINE.md)\nfor the product philosophy.\n\n## Quickstart (v0.1 alpha)\n\n```bash\n# 1. Install (pick one — the Homebrew tap is prepared but not yet published;\n#    once the v0.1.0 GitHub release lands, `brew tap Tespera/alluvium` will work.\n#    Until then, build from source.)\ncargo install --git https://github.com/Tespera/alluvium\n\n# or, from a local checkout:\ngit clone https://github.com/Tespera/alluvium\ncd alluvium\ncargo install --path .\n\n# 2. Configure: vault path, recipe, API key\nalluvium init\n\n# 3. Register the Claude Code plugin (init prints this command)\nclaude plugin install /path/to/alluvium\n\n# 4. (Optional) Backfill the past week of sessions\nalluvium replay --since 7d\n```\n\nAfter that, just keep using Claude Code. Each session ends → distilled\nknowledge appears in your vault, **integrated into existing topic pages**\n(not piled up as new files). The LLM reads your wiki's existing-topics\nindex before extracting facts, so a session about \"atomic file writes\"\nadds to the existing `atomic-write` page instead of creating a parallel\n`atomic-file-write` / `file-atomic-write` / `三向-原子写盘` zoo.\n\nRun `alluvium status` to see recent archives. Run `alluvium dry-run` to\npreview the next distillation without writing. Run `alluvium lint`\nperiodically — it scans the wiki for near-duplicate pages that snuck\nthrough and asks the LLM whether to merge them; pass `--apply` to\nactually do it.\n\n## Concept\n\nMost 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.\n\nIt watches Claude Code sessions end, distills the conversation, and updates a [Karpathy-style LLM wiki](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f) in your vault.\n\n**Passive.** No slash command, no sidebar, no \"remember to save.\" Hook-driven; you forget it's there.\n\n**Compounding.** Each session merges into existing topic pages instead of creating yet another timestamped note. Your knowledge converges instead of accumulating.\n\n## Architecture\n\n- Installed as a [Claude Code Plugin](https://docs.claude.com/en/docs/claude-code/plugins) (`.claude-plugin/plugin.json`)\n- 4 hooks: `SessionStart` / `PreCompact` / `Stop` / `SessionEnd`\n- Distillation via Anthropic API with externalized prompt templates (`prompts/*.toml`)\n- Vault layout follows Karpathy's LLM Wiki pattern (`raw/`, `wiki/`, `log.md`, `index.md`)\n- Single Rust binary, distributed via Homebrew\n\nSee [`docs/`](docs/) for design details.\n\n## Cost\n\nAlluvium calls the Anthropic API once per Claude Code session. Default model\nis **Claude Haiku 4.5** (cheapest tier).\n\nRough estimate (default `dev-journal` recipe, ~50-message session):\n\n| Granularity         | Tokens                       | Cost      |\n| ------------------- | ---------------------------- | --------- |\n| Per session         | ~50K input / ~2K output      | **~$0.06** |\n| Per day (5 sessions) | —                           | **~$0.30** |\n| Per month           | —                            | **~$9**   |\n\nSwitch to Sonnet (better notes, ~5× cost) or another model in\n`~/.config/alluvium/config.toml`. The `verbose` recipe roughly doubles cost;\n`minimalist` halves it.\n\n## Prior art\n\nSee [`docs/PRIOR_ART.md`](docs/PRIOR_ART.md). We learned specifically from `obsidian-second-brain`, `claude-obsidian`, and `cognee-integrations`.\n\n## License\n\nDual-licensed under the [MIT License](LICENSE-MIT) and [Apache License 2.0](LICENSE-APACHE), at your option. This matches Rust ecosystem conventions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftespera%2Falluvium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftespera%2Falluvium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftespera%2Falluvium/lists"}