Skip to content

AnswerCentral Brain™ setup guide

How do I add long-term memory to Claude Code?

To add long-term memory to Claude Code beyond CLAUDE.md, add Central Brain by NeuroAIgent as a local MCP memory server and call memory_checkpoint at the end of a session; the next session recalls it with memory_recall. Claude Code already carries context three ways: CLAUDE.md instruction files you write, auto memory notes it writes itself, and MCP memory servers that give it an external store. Keep CLAUDE.md for stable coding rules. Use Central Brain when reviewed decisions and reference documents outside the repository must persist and be readable by other assistants such as GitHub Copilot and the ChatGPT desktop app. Basic Memory and Cognee are alternatives with different storage models. A chat ending does not automatically save a Central Brain checkpoint.

Reviewed against current product documentation:

Central Brain by NeuroAIgent combines readable local memory files with search across project documents. It is useful when a coding session depends on decisions, reference PDFs, requirements and earlier work that should remain available after a chat ends. The installation guide covers the installer currently available for your platform.

Central Brain adds an inspectable project store and MCP retrieval workflow to Claude Code, with context your other supported assistants can retrieve too. Claude Code instruction files and auto memory remain separate client features. Keep the project decisions you want to reuse in Central Brain checkpoints and the brief; native memory synchronization is separate from this workflow. Anthropic memory documentation.

1. Prepare one project before connecting Claude Code

Choose a focused project with a few documents whose contents you already know. Select the source folder and a separate prepared-output location in Central Brain. Run preparation and indexing, review failures, then search locally for a distinctive phrase. Confirm the result opens the intended source. This separates file preparation problems from client connection problems.

Keep unrelated clients or engagements in separate projects. A server name such as central-brain-project is only a label; the actual project root determines the memory and files it exposes. Check that root every time you create or duplicate a configuration.

2. Add the generated local MCP configuration

Open the project MCP setup in Central Brain and select Claude Code. Use its generated command or configuration to carry the actual installed executable and project root into the client. Anthropic confirms the local stdio command form below. The executable and root shown here are placeholders: replace both from your app-generated configuration before running it.

The two Central Brain launcher arguments are --run-mcp-stdio and --root. Preserve the argument boundaries and quoting supplied by the app. Run the command from the relevant project directory. Use a project-specific server name when keeping multiple project connections.

claude mcp add --transport stdio central-brain-project -- "<ABSOLUTE_PATH_FROM_CENTRAL_BRAIN>" --run-mcp-stdio --root "<ABSOLUTE_PROJECT_ROOT>"
claude mcp list
claude mcp get central-brain-project

3. Verify the connection and save a first checkpoint

This fresh-session check makes Central Brain persistence visible: inspect the saved decision, then inspect the tool result that retrieves it. Record the result as a setup check for your project.

  1. Open Claude Code and inspect the connection with /mcp. Review the actual tools and any client permission prompts.
  2. Ask Claude to call central_brain_ping and report the project root. Stop and correct the configuration if it identifies another project.
  3. Ask memory_recall for the current project brief and open items. An empty result can simply mean that nothing has been saved yet.
  4. Provide a harmless test decision and ask Claude to save it with memory_checkpoint as a decision. Inspect the saved record.
  5. Begin a fresh session and ask Claude to recall that decision through Central Brain before you supply its contents again.

4. Make recall and checkpointing part of the work

Keep a short instruction in the instruction mechanism your Claude Code version supports. Tell the assistant to verify the project, recall relevant prior decisions, search source files when a claim needs evidence, and checkpoint newly agreed decisions. A request to remember something is useful only when the tool call actually writes it.

Save a concise decision, verified fact, open question, todo or summary rather than an unreviewed transcript. When the record becomes long, review a proposed project brief before using memory_compact. That tool replaces the brief and marks older notes as compacted; it does not delete the original notes.

At session start, call central_brain_ping and verify the project root.
Call memory_recall before answering about earlier project work.
Use semantic_search or search_text for source evidence.
Checkpoint agreed decisions and open items; review important notes with me.

Keep your project connection and memory current

Compare the project root in the generated configuration with the root returned by ping. Then check whether a checkpoint was actually written. A chat closing, compacting or switching models does not automatically create Central Brain memory. If file results are stale, refresh the project in Central Brain and inspect preparation failures.

For a failed connection, check the executable still exists, quote paths containing spaces, preserve each launcher argument, and inspect /mcp status. Keep source access narrow. Local indexing does not make a cloud Claude session offline: the retrieved context is sent to the connected assistant for its answer.

Recover when a recalled decision is out of date

Persistent memory is useful only when the record remains accurate. If a requirement changes, inspect the original source, save a clear correction with the current document version, and review the project brief. Ask the next session to retrieve the revised decision and distinguish it from the superseded note.

Keep stable coding instructions in the client’s supported instruction mechanism. Keep changing project decisions and supporting evidence in the project record. Re-run a known-answer recall after changing the server configuration, moving a project, or restoring a backup; successful connection status alone does not show which facts the assistant can retrieve.

A repeatable decision-persistence check

This is a suggested acceptance exercise, not a recorded benchmark or customer result. A cloud Claude session receives retrieved context even though preparation and the default index remain local.

  1. Create a fictional requirements note stating that a CSV export must preserve the customer_id field. Prepare it and verify a search result against the original.
  2. Ask Claude Code to confirm the Central Brain root, find that requirement and checkpoint the reviewed decision with a source reference.
  3. Start a new session without pasting the requirement. Ask it to recall the export decision and retrieve its supporting source.
  4. Treat this as passed only if you inspect a real recall result and the source supports the decision. A fluent answer alone is not proof of persistence.

Common questions

How do I add long-term memory to Claude Code?

Run claude mcp add central-brain -- "<path to NeuroAIgent.CentralBrain.exe>" --run-mcp-stdio --root "<project folder>", then ask Claude Code to call central_brain_ping. Save decisions with memory_checkpoint; new sessions start with memory_recall. Central Brain by NeuroAIgent stores the notes as plain files on your machine.

How does Central Brain preserve Claude Code project decisions?

Reviewed checkpoints and the project brief keep decisions available to future sessions and other supported clients. This workflow saves deliberate project context; it does not silently import whole chat histories or write into Claude Code native auto memory.

Can Copilot recall a decision saved from Claude Code?

Yes, when both supported clients connect to the same Central Brain project and call its memory tools. Client configuration and capabilities vary.

Where does Central Brain keep the project record?

The local store remains on your chosen storage in the default workflow. A connected AI tool receives the context it retrieves, so approve the provider and workspace settings for that context.

What makes Central Brain a fit for multiple AI coding tools?

It keeps reviewed project decisions and supported reference documents in a project that several supported clients can retrieve over MCP. Use it when that shared project record matters; retain client instruction files for stable coding rules and verify the actual tools and permissions in every client.

Next steps

Sources and review notes