/llm-wiki-autopilot:vault-memoryfrom llm-wiki-autopilot
Reads and writes the user's persistent memory, an Obsidian vault that Claude Code and Codex sessions are distilled into and that git keeps in sync across machines. Saves notes, decisions and lessons from the current session; answers questions about past work, project status and time spent, and searches the vault; opens the local time dashboard; processes new sources; runs the vault health check; installs, upgrades or removes the system. Triggers include "save this to my vault", "remember this", "note this down", "where did we leave off", "what did we do last week on X", "search my memory for X", "tidy the project page", "how much time did I spend on X", "open my work dashboard", "process this source", "vault lint", "why isn't my memory updating", "set up vault memory", "upgrade vault memory".
Ships in llm-wiki-autopilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The user's persistent memory is an Obsidian vault, kept in sync across machines with git.
~/.vault-memory/bin/vm (called vm below). If it does not exist, the system is not installed: go to Setup.vault field in ~/.vault-memory/config.json.CLAUDE.md in the vault root. Read it before writing anything to the vault. If it conflicts with this skill, CLAUDE.md wins.A background worker processes sessions on its own about 20 minutes after they go idle. Use this skill when the user doesn't want to wait, asks something from memory, or wants to install or change the system.
| The user says | Section |
|---|---|
| "Save this session", "put this in my vault" | Process this session now |
| "Remember this: …", a specific piece of content | Write a specific note |
| "Where did we leave off", "what did we do in X" | Answer from memory |
| "How much did I work", "what did I do last week" | Time report |
| "The project page got too long", "tidy my memory" | Consolidate |
| "Open my dashboard" | Dashboard |
| "Process this article / PDF" | Process a source |
| "Check the vault", "lint" | Health check |
| "My memory isn't updating" | Troubleshooting |
| "Set up vault memory", "add this machine", "upgrade", "remove it" | Setup, Upgrade, Uninstall |
Find the session id. The <vault-memory> block added to the context at session start has a "Session id" line.
Run the worker for this session. It can take a minute or two; use a timeout of at least 5 minutes:
~/.vault-memory/bin/vm worker --session <session id>
If no id is available, vm worker --now processes every pending session.
Check what was written and report it:
git -C "<vault path>" log -3 --stat --format='%h %s'
Keep the report short: which pages were created or updated (vault-relative paths) and the push status.
The command processes the session up to this moment. If the session continues, the rest is processed later as a separate entry; running it again never writes the same part twice.
If the user said exactly what to save, don't wait for the worker; write it yourself:
CLAUDE.md. Look for a page on the same subject first (vm search "<word>", then the relevant folder); if there is one, update it. Project knowledge that takes more than one line goes to a page under that project's notes/ folder, with a one-line pointer in the project page's Good to know section.00-Inbox/YYYY-MM-DD <subject>.md.vm sync and report the result.For a project question, read the project page first (02-Projects/PRJ-<name>/PRJ-<name>.md). Its Good to know lines point to the pages under notes/ that hold the detail.
When you don't know where something is, search:
~/.vault-memory/bin/vm search "<word>" [--project <name>] [--since YYYY-MM-DD] [--type session|project|note|adr|topic]
The search matches word stems, so one or two key words work better than a sentence. If nothing useful comes back, search again with a different word. Quote an exact phrase: vm search '"release checklist"'. Open the file a result names and read that section; don't answer from the snippet alone.
For the order of events, read that project's sessions/ files and the lines in log.md that contain | PRJ-<name> |. index.md is the catalog of all pages.
Answer with vault-relative page paths. Don't invent what is not in the vault; if it isn't there, say there is no record. When an older and a newer record disagree, the newer one holds; say so.
If the answer has lasting value (a comparison, an analysis), offer to save it as a page under 04-Resources/Syntheses/.
Never compute time yourself; run the report:
~/.vault-memory/bin/vm report --project <name> --week last --detail
--week this|last, or --from YYYY-MM-DD --to YYYY-MM-DD, or --days 7.--project, every project is listed. The project name matches partially.--detail also lists the session titles for each day. --json gives machine-readable output.Tell the user that this is active time spent with an agent: time without an agent and long gaps between messages are not counted, and parallel sessions are counted separately. For charts and filters, offer the dashboard.
Project pages have size limits, because an agent is shown the page at the start of every session. vm consolidate keeps them within the limits once a day on its own. By hand:
~/.vault-memory/bin/vm consolidate --dry-run # sizes, and the sections that are over their limit
~/.vault-memory/bin/vm consolidate --project <name> # tidy one project now (calls the LLM; allow a few minutes)
Items move word for word to pages under the project's notes/ folder; nothing is deleted except finished - [x] items. Each run is one commit: to undo it, git revert <commit> in the vault, then vm sync.
~/.vault-memory/bin/vm dashboard # http://127.0.0.1:4747, opens the browser
~/.vault-memory/bin/vm dashboard --port 4800 --no-open
It runs in the foreground until stopped; when you start it for the user, run it in the background and give them the address. The page reads the vault live and has an English/Turkish switch. To start it automatically at login: vm install --dashboard.
Follow the "Source processing" steps in CLAUDE.md: read the raw file without changing it, write a summary page under 04-Resources/Sources/, update the pages the source touches, run vm sync. Report which pages you touched. vm ingest does the same for every new file in the inbox folders.
vm lint; the report is written to 99-Meta/Lint/YYYY-MM-DD.md.vm sync and summarize the findings.~/.vault-memory/bin/vm status
~/.vault-memory/logs/worker.log.git status in the vault, remove the value, then run vm sync.git pull --rebase in the vault folder, resolve the conflicting file together with the user, then run vm sync.<vault>/99-Meta/System/bin/vm install --machine <name>.Only when ~/.vault-memory/bin/vm does not exist, or the user asks to set the system up.
Ask the user, in one message:
~/Vault; a new, empty folder is safest).en or tr.Get or update the source:
if [ -d ~/.vault-memory/src/.git ]; then git -C ~/.vault-memory/src pull --ff-only; \
else git clone https://github.com/yusufkaran/karpathy-llm-wiki-autopilot ~/.vault-memory/src; fi
Install:
~/.vault-memory/src/install.sh --vault <path> --lang <en|tr> [--remote <git url>] [--timer]
If this skill was loaded from a plugin (its base directory is under ~/.claude/plugins/), add --no-skill so the skill is not installed twice.
Run vm status and report: vault path, machine name, hooks, timer. Tell the user that sessions are processed about 20 minutes after they go idle, and that sessions from before the installation are not imported unless they run vm backfill --days N (one LLM call per session).
Another machine (the vault already exists on a git remote):
git clone <remote url> ~/Vault
~/Vault/99-Meta/System/bin/vm install --machine <name> --timer
On a laptop that is often closed, vm config capture true sends redacted digests to the remote so an always-on machine can finish them; on that always-on machine, vm config process_remote true.
git -C ~/.vault-memory/src pull --ff-only
~/.vault-memory/src/install.sh --vault <vault path>
~/.vault-memory/bin/vm sync
The installer copies the new scripts, dashboard and skill into the vault and keeps the vault's language and settings. vm sync pushes them, so other machines run the new version after their next pull.
~/.vault-memory/bin/vm uninstall # add --keep-skill to keep this skill
Removes the hooks, the timer, the dashboard service and the installed skill from this machine. The vault and its git history are never deleted.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yusufkaran/karpathy-llm-wiki-autopilot --plugin llm-wiki-autopilot2 skills in this plugin