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.
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:
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, askClaude 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 lancedbMac or Linux:
python3 -m venv venv
venv/bin/python -m pip install fastembed lancedbThe 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/notesYou should see Indexed N pieces from .... Only .md files are read, so index folders without secrets only.
Step 3. Try a search
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.
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
# 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
Index a folder of three or four dummy notes first, not your real ones.
Ask a question that uses different words from the note, such as "why did I stop using that appointment software".
Check that the top result is the booking note and that the file name is shown.
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
Notes with no reasons. "Dropped the widget" is findable but useless. Write why.
Indexing secrets. Keep passwords, keys and private customer details out of the folder.
Forgetting to re-index. Version two only knows the notes as of the last index command.
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.
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
Make the notes folder and copy in your project notes.
Add the version one rule and ask one "why did I..." question.
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