Claude starts every session knowing nothing about my projects. Its built-in memory is a handful of short notes per project. My real memory is a wiki: hundreds of linked Markdown notes, one set per project, plus pages on general lessons that apply across all of them. Claude keeps it up to date itself, and every session reads from it. It also holds my task board, so the work and the reasons behind it sit side by side.

Setup

  1. Install obsidian-wiki. It's a set of skills based on Andrej Karpathy's "LLM wiki" idea: rather than searching raw documents every time, Claude digests what it learns into linked notes once and keeps them current. Run its setup.sh and point it at a folder (or an existing Obsidian vault). The two skills used everywhere are wiki-query (search the wiki and answer from it) and wiki-update (write what this project has taught into the wiki).

  2. Make checking the wiki a standing rule. In the global ~/.claude/CLAUDE.md:

    - Check the wiki before assuming, asking, or reading code. When a project,
      tool, workflow, or concept comes up, or before reading a project's source
      to understand it, use the wiki-query skill first. Fall back to asking me
      or reading code only if the wiki doesn't cover it.
    - Update the wiki without being asked. When a piece of work is finished
      (committed, or applied and confirmed by me) and it produced something
      worth knowing in three months (a decision and its why, a changed rule,
      a lesson learned), run the wiki-update skill as the last step and say in
      one line what it recorded. Skip it for questions and trivial fixes.
    
  3. Add a reminder at the moment it matters. A rule in CLAUDE.md is easy to skip once Claude is busy, so a hook reminds it the first time it opens a file in each session, and then stays quiet:

    #!/usr/bin/env bash
    # PreToolUse hook, matcher "Read|Grep|Glob": nudge once per session.
    input=$(cat)
    session_id=$(printf '%s' "$input" | jq -r '.session_id // "unknown"')
    marker="${TMPDIR:-/tmp}/claude-wiki-first-${session_id}"
    [ -e "$marker" ] && exit 0
    touch "$marker"
    cat <<'JSON'
    {"hookSpecificOutput":{"hookEventName":"PreToolUse","additionalContext":"Reminder: before reading project code to understand it, check the wiki first with the wiki-query skill. Ignore this if you already have, or if this isn't a code-understanding task."}}
    JSON
    

    It adds a note to Claude's context and blocks nothing.

  4. Give Claude a real search engine. Once a wiki grows past a few hundred pages, searching for exact words starts to miss things. qmd indexes the folder on my own computer, mixing keyword and meaning-based search, and Claude reaches it through its MCP server. One tip: if queries time out on a Mac, turn off qmd's re-ranking step. Results come back in seconds and are no worse.

  5. Write back once per batch, not once per task. The workflow's wrap-up step runs wiki-update a single time after the merges, so the wiki records one account of the batch instead of a pile of near-duplicates.

Tasks live in the wiki too

Each task is a Markdown note with a little structured data at the top:

---
type: task
title: Undo after deleting a chapter restores the wrong text
status: todo        # inbox, todo, doing, waiting, deferred, done, ignored
priority: 2
project: my-app
labels: [type/bug, topic/undo]
description: Pressing undo right after a delete brings back the previous chapter.
---
  • Agents never edit these by hand. A small command-line tool is the only thing that reads or writes them (next, list, add, set, comment). A hand-edited note with broken formatting silently drops off the board. The tool also keeps reads cheap: "what's next" costs one command, not a page of notes loaded into Claude's context.
  • Status says what's happening. The workflow sets a task to doing when it starts and moves it on when it finishes. Anything waiting on me carries one label saying what I need to do, and testable work always uses the same one, so I look in a single place.
  • "Never do this" is a task too. Rejected ideas are kept as ignored tasks and shown every time Claude plans new work, so it stops proposing them.
  • History stays on the task. The note left for me to test, my reply, and anything deliberately left undone are added as comments. Weeks later, the task still says what was checked and why.

Lessons

  • Name pages after the lesson. "Widen the query instead of reverting state" or "Ask rules outrank allow rules" will be found by a future session searching for the problem. "What happened on Tuesday" won't.
  • Old notes are claims, not facts. Notes written by older, weaker models were often guesses. Before relying on one, Claude checks when it was written and tests it against today's code.
  • Ask what will matter in three months. Decisions and why they were made, things that went wrong and what fixed them, and anything you'd have to search the web for again belong in the wiki. Changelogs and summaries of the code don't, because the code and its history already hold them.
Loading SilverBullet…