Skills to set up, query and maintain an Obsidian vault that your Claude Code and Codex sessions are written into automatically (Karpathy's LLM Wiki pattern), plus per-project time reports and a local dashboard.
Andrej Karpathy's LLM Wiki pattern, on autopilot: persistent memory for Claude Code and Codex, written into
Obsidian automatically.
Every coding-agent session you finish becomes part of a wiki: a dated session log, a living page per project,
decisions and lessons, with no "save this" prompts and no manual notes. The wiki is plain Markdown in a git repository, so it syncs across your machines, and every new
Claude Code session starts with the project's current status already in context. A local dashboard shows where
your time went.
Runs by itself. Claude Code hooks and a 5-minute timer pick up every finished session. Nothing to remember.
Session log. Each session becomes an entry in a per-project, per-day file: what was asked, what was done,
decisions and open items. Trivial sessions get a one-line entry.
Living project pages. Status, open items, decisions and "good to know" are rewritten after every session.
Architecture decision records, topic pages and tool pages are opened when a session warrants them.
Pages that stay small. Each section of a project page has a size limit that the script enforces. What does not
fit moves, word for word, to notes pages in the project folder: the LLM only plans which item goes where, the script
moves it, so nothing is lost or reworded. vm consolidate runs once a day, one commit per run.
Memory at session start. A SessionStart hook gives every new Claude Code session a brief of at most 400 words
(status, the top open items, the top pitfalls, in whole sentences) and a map of where the rest is. Agents without
hooks, such as Codex, can print the same text with vm context.
Search for agents.vm search is full-text search over the vault (SQLite FTS5, no extra dependency). It
matches word stems, so önbellek also finds önbelleği, and filters by project, date and page type.
Time tracking. Active minutes per project and day: vm report in the terminal, a local dashboard with charts.
Several machines, one memory. Git sync with a shared ledger, so no session is processed twice. A laptop that
was closed mid-session can hand its last session to an always-on machine.
Source ingest. Drop an article or PDF into 00-Inbox/ or 05-Raw/clippings/; vm ingest writes a summary
page and updates the pages it touches.
Health check.vm lint finds broken links, orphan pages, missing frontmatter and pages over their size limits.
Safe by default. Secrets are redacted before anything reaches the model, commits that contain a secret are
blocked, and the background agent cannot change its own code, config or instruction files.
Light. One Python file using only the standard library. No database server, no always-on daemon.
English or Turkish vault pages, CLI output and dashboard.
Requirements
macOS or Linux
Python 3.9+ and git
Claude Code CLI, logged in (the worker runs claude -p)
Optional: Codex CLI (its sessions are processed too), Obsidian (to browse the vault)
Quick start
git clone https://github.com/yusufkaran/karpathy-llm-wiki-autopilot ~/.vault-memory/src
~/.vault-memory/src/install.sh --vault ~/Vault --lang en --timer
The installer:
Creates the vault from the template if the folder is not a vault yet (no CLAUDE.md), and runs git init.
A new, empty folder is the safe choice.
Copies the CLI, the dashboard and the skill into <vault>/99-Meta/System/.
Writes ~/.vault-memory/config.json and links ~/.vault-memory/bin to the vault's copy of the CLI.
Adds SessionStart, Stop and SessionEnd hooks to ~/.claude/settings.json (after backing it up).
Installs the skill into ~/.claude/skills/.
Marks existing transcripts as already processed, so nothing is imported by surprise.
With --timer, installs a 5-minute timer (launchd on macOS, a systemd user timer on Linux).