Give your AI a memory that outlives the chat

By Süleyman Tüysüzoğlu · Updated

Short answer

AI coding tools forget everything when a session ends. Keep a folder of Markdown notes, tell the AI in its instruction file (CLAUDE.md, AGENTS.md or GEMINI.md) to read your project notes before it works and to write down what it did after. Neuralth shows that folder as a living graph and versions every change with Git, so the memory is yours, readable and shared by every model.

Why AI tools forget

Claude Code, Codex, Gemini CLI and GitHub Copilot start every session with an empty context. They do not remember the decision you made last week, the convention you explained yesterday or the task you left half done. Built-in memory features help a little, but they are tied to one vendor, hidden from you and gone when you switch tools.

A plain folder of notes fixes this. The AI reads it at the start, writes to it at the end, and the next session, with any model, picks up where the last one stopped.

How it works

  1. Your notes are the memory. Project goals, decisions, conventions and open tasks live in Markdown files.
  2. The AI reads before it works. A short rule in the tool's instruction file points it at the right notes.
  3. The AI writes after it works. It logs what it changed and records new decisions, linked with [[wikilinks]].
  4. You see and control everything. New notes appear in the Neuralth graph, and every edit is a Git change you can review or undo.

Step 1: Create a vault

Install Neuralth and choose a folder for your notes, for example ~/notes. If you already have an Obsidian vault, open that folder: it works as is. Connect a private GitHub repository if you want every change versioned and synced between computers.

A simple structure that works well for AI memory:

notes/
├── Projects/
│   ├── Website.md                 ← hub: goals, stack, decisions
│   └── Website - Open tasks.md
├── Journal/
│   └── 2026-12-04.md              ← what the AI (and you) did today
├── Decisions/
│   └── Use Astro for the site.md
└── Home.md

Step 2: Write the memory rules

Write the rules once. Keep them short and concrete; the AI follows short rules better than long essays.

# Memory

My notes live in ~/notes (a Neuralth vault, synced with Git).

## Before you start
- Read ~/notes/Projects/<project>.md (goals, decisions, conventions)
- Read ~/notes/Projects/<project> - Open tasks.md

## When you finish
- Add a short log to ~/notes/Journal/<YYYY-MM-DD>.md:
  what you changed, why, and what is left
- Link it to the project with [[<project>]]
- Record new decisions in the project note, not only in the log

## Never
- Never write passwords, API keys or tokens into notes

Step 3: Point each AI tool at your vault

Every tool reads its own instruction file at the start of a session. Paste your rules there, or a single line that says "Read and follow ~/notes/AI rules.md". A global file applies to every project; a project file applies to one repository.

ToolInstruction fileGlobal version
Claude CodeCLAUDE.md in the project~/.claude/CLAUDE.md
OpenAI CodexAGENTS.md in the project~/.codex/AGENTS.md
Gemini CLIGEMINI.md in the project~/.gemini/GEMINI.md
GitHub Copilot.github/copilot-instructions.md or AGENTS.mdSettings in your editor
CursorAGENTS.md or .cursor/rulesUser rules in settings

If the tool runs in a sandbox that only sees the current project, allow it to read your vault folder or add the vault as a second working directory.

Step 4: Watch the brain grow

After a few sessions, open the Graph view in Neuralth. Journal entries link to project hubs, decisions link to the notes that caused them, and you can see at a glance what your AI knows. Because the vault is a Git repository, the Source Control panel shows exactly which notes the AI created or changed. Review them, commit, and push.

Tips that make AI memory work

  • One hub note per project. Goals, stack, decisions and links to everything else. The AI reads this first.
  • Write decisions with the reason. "Use Astro, because the site is mostly static" stops the next session from undoing it.
  • Keep an open tasks list. The AI ticks items off and adds new ones, so nothing is lost between sessions.
  • Log by date. One journal note per day is easy for both you and the AI to find.
  • No secrets in the vault. Passwords, API keys and tokens belong in a password manager, not in notes.

Try Neuralth. It is free.

macOS · Windows · Linux. No account needed.

Download Neuralth

FAQ

More questions

Do I need a plugin or an API key to give my AI access to Neuralth?

No. Neuralth stores notes as plain Markdown files in a normal folder. Any AI tool that can read and write files on your computer can use them directly.

Which file does each AI tool read for instructions?

Claude Code reads CLAUDE.md, OpenAI Codex reads AGENTS.md, Gemini CLI reads GEMINI.md and GitHub Copilot reads .github/copilot-instructions.md. Many tools, including Cursor and Copilot, also read AGENTS.md. Put a short pointer to your vault in that file.

Is it safe to let an AI write into my notes?

Every change is a normal file change, so you can review it in the Source Control panel before you commit, and roll it back from Git history at any time. Keep secrets such as passwords and API keys out of the vault.

Can several AI tools share the same memory?

Yes. The vault is just a folder, so Claude Code, Codex, Gemini CLI and Copilot can all point to the same notes. A decision written down in a Claude session is read by Codex the next day.