Let Claude find why you made a decision

Ask Claude "why did I drop that tool?" and get the note that answers it, with the file name.

One folder of notesnotes/
  • booking.md
  • launch.md
  • pricing.md
Write the why, not just the fact.
CLAUDE.mdOne rule

Before you say you do not know, search my notes folder first.

Read at the start of every session.

You ask (example)Why did I stop using the booking widget?

It double-booked twice in one week.
booking.md
  1. Put your project notes in one folder, one Markdown file per topic, and write the why. The file names shown are an example.
  2. Add one rule to CLAUDE.md: before saying you do not know, search the notes folder first. Claude reads CLAUDE.md at the start of every session.
  3. When you ask why you dropped a tool, Claude finds the note and answers with the reason and the file name. The question and answer shown are an example.
10 min, or 30 with the upgradeNo code for part one

You need

  • Claude Code
  • Your project notes

You ask Claude "why did I drop that tool three months ago?" It cannot say. Every chat starts fresh, and the reason is sitting in a note somewhere Claude never looks.

Claude Code reads your CLAUDE.md file at the start of every session, plus the files you point it at. Anthropic's memory docs say both memory systems are loaded at the start of every conversation. That is the lever. Tell Claude where your notes live, and tell it to look there first.

This guide has two versions. Start with the simple one. Move to the second only when the first starts missing things.

01 / 05

Version one: one notes folder and one rule

This takes about 10 minutes and needs no tools beyond Claude Code.

Step 1. Put the notes where Claude can reach them

Make one folder for your project notes, for example Documents/notes. One Markdown (.md) file per project or topic is enough. Copy your existing notes in. Leave out anything with passwords or private customer details.

When you write a note, write the why. "Dropped the booking widget in April. It double-booked twice in one week." A decision without a reason is just a fact, and a search can only find what you wrote.

Step 2. Add the rule to CLAUDE.md

CLAUDE.md is the text file Claude Code reads at the start of every session. For rules across all projects it is ~/.claude/CLAUDE.md (on Windows, C:\Users\<you>\.claude\CLAUDE.md). For one project, put a CLAUDE.md in that project's folder. If the file does not exist, create it.

Paste this at the end. Replace the folder path with your own.

The notes rule (version one)
## My notes My project notes live in <full path to your notes folder>. Before you tell me you don't know something about my past work or a decision I made, search that folder first. Search for the key words and try 2 or 3 different words. Read the files that match and quote the file name you used. If you find nothing, say "Nothing found in my notes" and do not guess.
369 characters

Claude Code can already search the contents of your files for words. The rule makes it do that before it gives up.

Step 3. Test it

Start a new session, because CLAUDE.md is read when a session starts. Ask:

Test question
Why did I stop using <a tool you dropped>?
42 characters

Claude should name the note file and quote the reason.

Where word search fails. Ask about the same thing in different words ("appointment software" when your note says "booking widget") and a word search can find nothing. When that starts happening, move to version two.

02 / 05

Version two: search by meaning, free, on your own computer

This takes about 30 minutes and means copying and pasting a few commands.

What it is. A small program reads your notes, turns each paragraph into a list of numbers that captures its meaning, and stores them in a folder on your computer. When you ask a question, it turns the question into numbers too and returns the closest notes, with the file name. The note about the "booking widget" can match a question about "appointment software", because the meaning is close even though the words are not.

The free parts.

  • fastembed makes the numbers on your own computer, with no account or key. Apache-2.0 license.
  • LanceDB stores them in a folder next to the script. Apache-2.0 license.
  • Python 3, which is free. Check with python --version (on a Mac, python3 --version). If you do not have it, ask Claude Code to help you install it.

When it is worth it. When you have enough notes that you forget which file holds what, usually 20 or more.

Everything below uses the small brain.py script in the free download.

Step 1. Set it up once

Copy brain.py into a new folder, for example brain. Open a terminal in that folder and run:

Windows (PowerShell):

python -m venv venv
venv\Scripts\python -m pip install fastembed lancedb

Mac or Linux:

python3 -m venv venv
venv/bin/python -m pip install fastembed lancedb

The first time you index or search, it downloads a small language model once and keeps it on your computer. The install stays inside the venv folder, not on your whole computer.

Step 2. Index your notes

Replace the path with your notes folder. Run this again whenever you add or change notes.

Windows:

venv\Scripts\python brain.py index "C:\Users\you\Documents\notes"

Mac or Linux:

venv/bin/python brain.py index ~/Documents/notes

You should see Indexed N pieces from .... Only .md files are read, so index folders without secrets only.

Windows:

venv\Scripts\python brain.py search "why did I stop using that appointment software"

Mac or Linux:

venv/bin/python brain.py search "why did I stop using that appointment software"

It prints the three closest notes with their file names, even when your note used different words.

Step 4. Point Claude at it

Replace the version one rule in your CLAUDE.md with this. Edit the two paths.

The notes rule (version two)
## My notes My notes are indexed for search by meaning. Before you tell me you don't know something about my past work or a decision I made, run this in the terminal: <full path to brain folder>/venv/Scripts/python <full path to brain folder>/brain.py search "<my question in plain words>" (on Mac or Linux use venv/bin/python). Read the files it cites and quote the file name. If the results do not answer the question, say "Nothing found in my notes" and do not guess. If I have added notes since the last index, tell me to re-run the index command.
551 characters

Ask a real "why did I..." question. Claude should run the search, then answer from the file it names.

03 / 05

What the file looks like

Example note: the kind that gets found
tools.md
# Tools

## Booking widget
Dropped the booking widget in April. It double-booked two customers in one week, and the vendor did not reply for 5 days. Switched to a plain form that emails me.

04 / 05

Test it safely

  1. Index a folder of three or four dummy notes first, not your real ones.

  2. Ask a question that uses different words from the note, such as "why did I stop using that appointment software".

  3. Check that the top result is the booking note and that the file name is shown.

  4. Ask a question the notes cannot answer. Claude should say "Nothing found in my notes".

Where was this tested? The author ran the install, index and search steps on a Windows computer (Python 3.13) with three dummy notes on 8 Nov 2026, and the booking note came back first. Earlier, a fresh Claude run, given the version two rule, searched and cited the right note file. Not tested: the Mac and Linux lines, and a large real notes folder. If a command fails, paste the error into Claude Code and ask it to fix the command.

Common mistakes

  1. Notes with no reasons. "Dropped the widget" is findable but useless. Write why.

  2. Indexing secrets. Keep passwords, keys and private customer details out of the folder.

  3. Forgetting to re-index. Version two only knows the notes as of the last index command.

  4. Trusting the top result. The search always returns the three closest notes, even when none answers. The rule tells Claude to say "Nothing found" when they do not.

  5. Expecting a magic memory. It only finds what you wrote down.

Do I need version two?

Not at first. Version one is one folder and one rule. Move up when you ask in different words than your note used and Claude finds nothing.

Does my data leave my computer?

In version two the numbers are made and stored on your computer. Claude Code itself still reads the notes it opens, the same as any file you point it at.

Will Claude always follow the rule?

Not always. Claude treats CLAUDE.md as context, not enforced settings, so check the file name it quotes.

What if I have no notes yet?

Start writing three lines after each decision: what you chose, what you dropped, and why.

Finish line

What to do next

  1. Make the notes folder and copy in your project notes.

  2. Add the version one rule and ask one "why did I..." question.

  3. Add a one-line "why" to your next three decisions.

Back to all the free guides. Two that pair well with this one: pick up where you left off in Claude Code and five files that teach Claude your business.

You reached the end of the guide