Skip to main content
Glama

npm tests License: Apache-2.0

One memory for every AI coding agent you use, on every machine you use it. Agents propose, you approve, Git keeps it.


Why it exists

AI coding agents remember things now. Claude Code writes its own memory files, Antigravity keeps its own knowledge, Cursor has rules. But each one remembers for itself, on one machine.

FaberSEP Memory started from a common setup: several AI tools on a workstation, plus agents running unattended on a server. Without a shared layer, a rule settled with one tool stays unknown to the others, and every machine drifts on its own. FaberSEP Memory gives all of them one memory: a rule approved once is known to every tool on every machine, and nothing becomes a rule without the owner's approval.

Related MCP server: MemoV

How it differs from an agent's built-in memory

Built-in agent memory

FaberSEP Memory

Who can read it

The one tool that wrote it

Claude Code, Antigravity, Codex, Cursor, Claude Desktop

Where it lives

One machine

A Git repo you can clone to any machine, a server included (read-only there)

Who writes it

The agent, silently

What you tell it to remember is saved at once; what the agent decides on its own waits for your approval

History and undo

Usually none

Every change is a Git commit

Recover an overwritten instruction file

Depends on the tool

Restore a saved local version with one command

Team use

Not shareable

Optional private team repo

Context loading

Depends on the agent and its memory layout

A startup index capped at ~1,500 tokens by default, with details fetched on demand

If you use one tool on one machine and are happy with its memory, you don't need this.

Suppose an agent overwrites your global Claude instructions. At the next session, FaberSEP Memory tells the agent to let you know. It kept the earlier file on your machine. Run faber-memory restore claude-code, review the changes, and confirm to bring it back.

How memory scales

A local test compared loading every rule from one Markdown file with loading FaberSEP's startup index and tools. Counts are estimated memory tokens.

Stored rules

Full Markdown

FaberSEP at startup

FaberSEP with one lookup

20

1,376

977

2,261

100

6,926

2,156

3,666

300

20,876

2,156

4,233

At 300 rules, FaberSEP used about 90% less at startup and 80% less with one lookup. At 20 rules, loading the full file used fewer tokens than starting FaberSEP and doing one lookup. Direct keyword queries found the right rule first in all five cases at every size. At 300 rules, none of the five paraphrases found it in the top five. Method and benchmark results

What init changes, and how your agent finds it

There is no background service and no account. faber-memory is a CLI plus a small MCP server that your AI tool starts by itself (stdio) when a chat opens.

faber-memory init does three things:

  1. Creates your memory folder at ~/.faber/memory: plain Markdown notes in a Git repo.

  2. Adds one marked block to each tool's global instruction file. For Claude Code, in ~/.claude/CLAUDE.md:

    <!-- faber-memory:start -->
    @/Users/you/.config/faber-memory/state/MEMORY.md
    Use the faber-memory MCP tools: memory_search and memory_get for the details behind these lines; when you learn a durable rule, decision, lesson or preference, call memory_propose (the user approves it later; never edit memory files directly). When the user explicitly asks you to remember something, call memory_propose with source "user" and their exact words in user_quote; it is saved at once.
    <!-- faber-memory:end -->

    MEMORY.md is a short index compiled from your notes, so the agent knows what exists from the first message.

  3. Registers the MCP server faber-memory in each tool's MCP config. It gives the agent three tools: memory_search, memory_get and memory_propose. Agents can only propose; they never write active memory.

Tool

Instruction file

MCP config

Claude Code

~/.claude/CLAUDE.md

~/.claude.json

Antigravity

~/.gemini/GEMINI.md

~/.gemini/config/mcp_config.json

Cursor

none

~/.cursor/mcp.json

Claude Desktop

none

claude_desktop_config.json (--engine claude-desktop)

Codex (CLI and app)

~/.codex/AGENTS.md

~/.codex/config.toml

Every touched file gets a .bak backup. init prints one line per tool; init --details shows each file change, init --preview shows what would change first, and init --undo removes the block and the MCP entry and leaves your notes alone. Details: Connecting engines.

Get started

You need Node.js 20+ and Git.

npm install -g @fabersep/memory
faber-memory init      # add --preview to see the changes first
faber-memory doctor    # every line should say PASS

Open a new chat and tell your agent something it would otherwise get wrong, for example "In this project we run the tests with make test. Remember that." Because you asked, it is saved at once, and the agent tells you how to undo it (faber-memory undo <id>).

When the agent learns something on its own (say, from a failed build), it only proposes a memory. Approve those in the review page:

faber-memory web       # local review UI on 127.0.0.1 (or: faber-memory review)

Either way, any connected tool knows it from its next new chat.

Already have rules in AGENTS.md, CLAUDE.md or Cursor rules? Import them; they go through the same review.

More than one machine

Your memory is a Git repo, so push it to a private remote and clone it elsewhere:

faber-memory remote add git@github.com:<you>/<private-repo>.git   # on your main machine
faber-memory setup --read-only <repo-url>                          # on a server that runs agents
faber-memory init                                                  # then connect that server's agents

A read-only host pulls on start and serves the same memory to its agents; proposals and approvals stay on your main machine. See Personal remote and a second machine.

Teams

Connect a private team repo and one approved rule reaches every teammate, whatever tool each person uses. See Team mode.


Learn more

Free and open source, runs on your computer, no account or API key. Part of FaberSEP.

License

Apache-2.0

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides persistent memory for AI coding assistants, storing and retrieving architectural decisions, patterns, and solutions across sessions using semantic search, while also offering git integration for commit messages and code expertise mapping.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a memory layer for AI coding agents with Git-powered version control, enabling automatic tracking of prompts, context, and code diffs.
      194
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to persist project memory across sessions by compiling decisions, progress, and pitfalls into git-linked, evidence-backed entries. It lets clients add, query, inject, scan for stale, check assertions on, and compute ROI of those memories over stdio.
      MIT