home / localmind

$ claude # reading CLAUDE.md, INDEX.md, NOW.md

Give Claude Code a memory you actually own.

LocalMind is a free, open source pattern for turning a folder of plain Markdown notes into Claude Code's long-term memory. Three files tell it the rules, where things live and what matters right now, so every session starts already caught up.

~/vault: /onboard
Setting up a new vault: Claude Code reads the three files, then /onboard interviews you and fills them in.

01 // the problem

Every session starts from zero.

Close a Claude Code session and it forgets your project, your priorities and the decisions you made last week. The next session begins with you explaining it all again, or with the assistant guessing from file names and timestamps.

Most AI tools answer this with a memory feature stored on the vendor's servers. You can't easily read it, you can't diff it, and it stays behind when you change tools. LocalMind keeps that memory in a folder you control instead, written in the same Markdown you already take notes in.

02 // how it works

Three files, each with one job.

They change at different speeds and get read for different reasons, so they live apart. Claude Code loads CLAUDE.md automatically, and its @ imports pull in the other two.

  • rules // changes rarely

    CLAUDE.md

    What's off-limits, how to file new notes, editing conventions and the memory policy. Small enough to read in full at the start of every session.

  • map // changes occasionally

    INDEX.md

    Where things live, described by folder purpose and naming pattern. New notes that follow a pattern never need their own entry, so the map stays accurate as the vault grows.

  • focus // rewritten often

    NOW.md

    Current situation and priorities, short and dated. Rewritten whenever things change, so an old updated: date is a visible warning that context is stale.

Using Codex, Cursor or another assistant? A one-page AGENTS.md points it at the same three files in the same order, so there's still only one place to edit each rule.

03 // why localmind

Memory you can open, check and keep.

The pattern is deliberately small. Everything it does is visible in a text editor.

  • ownership

    Your data stays yours

    Memory lives in plain-text files on your machine, in your own git repo. It outlasts a closed account, a new tool or a vendor rewriting its memory feature.

  • portability

    No lock-in

    Any AI tool that can read a file can use it. The vault you build today still works if you move to a different assistant next year.

  • audit

    Every fact is checkable

    If the assistant acted on something wrong, you can see exactly which file it read and when that file last changed.

  • scale

    Grows with you

    Start with a handful of daily notes and one project. Add folders, years of notes or a whole team without changing the three files' jobs.

  • life

    Works beyond work

    The same vault can hold a reading list, home projects or health notes next to project decisions, under the same rules and protections.

  • privacy

    Secrets stay off-limits

    Name sensitive files once in CLAUDE.md and back it with a Claude Code deny rule, so Claude Code refuses to open them.

04 // quickstart

Set up a vault in a few minutes.

  1. Copy the template into a new or existing vault, including the hidden .claude/ folder.
  2. Run /onboard in Claude Code. It asks about your vault one question at a time and writes the answers into the three files, or fill in the placeholders by hand.
  3. Add any off-limits files to .claude/settings.json as deny rules.
  4. Start a session. Claude Code reads the rules, the map and your priorities before you type a word.
bash
$ git clone https://github.com/mikmorley/localmind.git
$ cp -r localmind/template/. ~/vault/
$ cd ~/vault && claude
> /onboard

Copying into an existing vault overwrites files with the same name, such as .gitignore. Back those up first and merge by hand.

05 // in practice

Recall a decision. Update a priority. Keep going.

Once the vault is set up, memory becomes part of the conversation. Ask what was decided and Claude Code finds it. Tell it something changed and it rewrites NOW.md to match, so tomorrow's session starts from today's reality.

The repo includes a fully worked example vault for a fictional team, with daily notes, a project with its decision log, a meeting, a runbook and a personal reading list sitting side by side.

~/vault: claude
An ongoing session: Claude Code recalls a project decision, updates NOW.md, then does the same for a personal note.

06 // privacy and secrets

Two layers between the AI and your private notes.

An instruction in CLAUDE.md is a convention, and a model can be talked past a convention. A deny rule in .claude/settings.json is enforced by Claude Code itself, for its own file tools and for shell commands that name the file.

.claude/settings.json
{
  "autoMemoryEnabled": false,
  "permissions": {
    "deny": [
      "Read(./SECRETS.md)",
      "Edit(./SECRETS.md)",
      "Read(./private/**)",
      "Edit(./private/**)"
    ]
  }
}

Turn on Claude Code's sandbox (/sandbox) and the same deny paths apply at the OS level to every shell command, which closes the gap left by indirect reads like grep -r. It's still a backstop: the best place for live credentials is outside the vault.

autoMemoryEnabled: false switches off Claude Code's separate auto-memory folder, so the vault stays the single source of truth instead of competing with a second memory you'd also have to check.

07 // scope

What LocalMind isn't.

  • An Obsidian plugin or theme. It's plain Markdown and YAML frontmatter, so Obsidian is optional.
  • A note-taking app. Keep using whatever editor you like.
  • An automated agent system. The three files and their rules are the whole pattern. The onboarding skill and the opt-in extras, such as a hook that warns when NOW.md goes stale, are conveniences you can skip.

08 // faq

Questions about LocalMind.

Do I need Obsidian to use it?

No. The vault is plain Markdown and YAML frontmatter, and it works the same in Obsidian, a plain text editor or nothing at all. There are no plugins, Dataview queries or app-specific syntax.

Does it work with AI tools other than Claude Code?

Yes. AGENTS.md points tools that look for one, such as Codex and Cursor, at the same three files. Deny rules in .claude/settings.json only apply inside Claude Code, so with other tools the off-limits list is a request they're asked to honour, not an enforced block.

Where is my data stored?

In plain-text files on your own machine, in your own folder or git repo. Nothing is sent to a separate memory service.

Why three files instead of one?

Rules, structure and priorities age at different rates. Merge them and either the rules get buried under status updates, or the status goes stale because nobody wants to edit the file that also holds the rules. Separate files let each one stay as short as its job needs.

Is it free?

Yes. LocalMind is open source under the MIT licence. Issues and pull requests are welcome on GitHub. If it saves you time, you can optionally buy me a coffee.

// get started

Stop re-explaining your project.

Clone the repo, copy the template and run /onboard. Your next Claude Code session starts where the last one left off.

LocalMind is free and open source. If it saves you some re-explaining, a coffee is a kind way to say thanks.

Buy me a coffee