faber-memory
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
FaberSEP Memory (@fabersep/memory)
Layer 0 of the FaberSEP engineering context stack (
@fabersep/memory->@fabersep/spec->@fabersep/atlas).
Prefix-cache-first, Git-backed Markdown memory for AI coding agents.
Zero databases. Zero native addons. Zero runtime dependencies. Just plain Markdown files in Git, a deterministic compiled index that keeps your prompt cache warm, a human-approved pre-memory inbox so agents never pollute your rules, and a 3-tool MCP server (memory_search, memory_get, memory_propose).
How It Works (The 2-Minute Mental Model)
If you are new to agent memory systems, here is everything you need to know:
Git is the single source of truth. Every active memory entry is a small Markdown file committed to Git (
HEAD). Uncommitted files are never silently trusted.Three progressive layers (L0 -> L1 -> L2) keep context small and prompt-cache friendly:
L0 (
MEMORY.md): A short, deterministic table of contents compiled from your activeteamandpersonalentries (hard cap: 1,500 tokens). No timestamps, no pending counts, no machine paths — so your LLM prompt cache stays warm turn after turn.L1 (
memory_search): When an agent needs details, it searches your memory with a built-in pure-JS BM25 search tool and gets compact summaries back.L2 (
memory_get): The agent fetches the full Markdown body only for the exact entry it needs.
Agents propose; humans approve (
pre-memory). Active memory is read-only for agents. When an agent learns a new rule or lesson, it callsmemory_propose, which stages a proposal inpre-memory. You review and approve it in one batch — keeping your memory accurate and noise-free.Three scopes:
personal— Your own rules, lessons, and preferences (solo local Git repo, e.g.~/.faber/memory).team— Shared engineering rules in a private team Git repo.project— Optional repo-specific memory in<repo>/.faber/memory/.
Related MCP server: MemoV
Prerequisites
Node.js 20 or newer (
node -vto check)Git (
git --versionto check)
You do not need to install anything globally to try it — npx @fabersep/memory runs the CLI directly.
(If you prefer shorter commands, you can install it globally once with npm install -g @fabersep/memory and use faber-memory instead of npx @fabersep/memory.)
Step-by-Step Quickstart (Solo / Personal Setup)
Follow these 5 steps in order. Each step is safe and reversible.
Step 1: Create your personal memory folder
Run:
npx @fabersep/memory setup ~/.faber/memoryWhat this does:
Creates
~/.faber/memory(you can pick any folder path you like) and initializes a local Git repository on branchmain.Saves your configuration in
~/.faber/memory-state/config.json.
Step 2: Connect your AI coding agent
First, run a dry-run to preview the exact file changes without modifying anything:
npx @fabersep/memory initYou will see a unified diff showing which instruction file and MCP config will be updated for the agents detected on your machine (claude-code, antigravity, cursor).
When the diff looks good, apply it:
npx @fabersep/memory init --applyWhat this does:
Compiles your L0 index first to
~/.faber/memory-state/MEMORY.md.Creates a
.bakbackup of every file it touches.Adds a clearly marked
<!-- faber-memory:start --> ... <!-- faber-memory:end -->block and registers thefaber-memoryMCP server (npx -y @fabersep/memory serve).
Tip: Want to target only specific engines? Pass
--engine:npx @fabersep/memory init --engine claude-code,antigravity --applyWant to revert the wiring cleanly at any time?
npx @fabersep/memory init --undo
Supported Engines & What init --apply Wires
Engine | Instruction File | MCP Config | Notes |
Claude Code |
|
| Native |
Antigravity |
|
| Reads L0 at start + MCP tools |
Claude Desktop | — |
| MCP tools ( |
Cursor | — (GAP) |
| MCP-only |
Codex | — (GAP) | — | MCP-only (manual config) |
Step 3: Import your existing memory files (optional, zero LLM)
Already have Markdown notes, Claude auto-memory files, an AGENTS.md, or Cursor rules? You can import them deterministically without spending any LLM tokens.
Pick the command that matches your source:
# 1. Any folder of Markdown (.md) files
npx @fabersep/memory import --from markdown-dir ./path/to/your/memory
# 2. Existing Claude Code auto-memory folder
npx @fabersep/memory import --from claude-memory ~/.claude/projects/<your-project>/memory
# 3. A single AGENTS.md or CLAUDE.md (split each # / ## heading into its own entry)
npx @fabersep/memory import --from agents-md ./AGENTS.md --split-headings
# 4. Existing Cursor rules
npx @fabersep/memory import --from cursor-rules ./.cursor/rulesWhat this does:
Scans your files, infers frontmatter (
id,type,summary), checks for near-duplicates and hygiene issues (like hardcoded machine paths or secrets), and stages valid items intopre-memory.Nothing becomes active until you approve it in Step 4. (In solo mode, if you trust the whole folder and want to skip manual review, you can add
--approve.)If you imported from
claude-memory, the CLI also prints how to disable Claude's built-in auto-memory ("autoMemoryEnabled": falsein~/.claude/settings.json) so future notes go throughpre-memory.
Step 4: Review and approve staged proposals
Review everything waiting in pre-memory:
npx @fabersep/memory reviewFor each proposal, you will see its scope, type, summary, and full body, and choose:
a— approve (queued for a single batch commit at the end)e— edit the body before approvingr— reject and delete the proposals— skip for now
Once you finish the list, all approved proposals are written to your memory repo, committed in one Git commit, and your L0 MEMORY.md is recompiled automatically.
(Shortcuts: npx @fabersep/memory review --approve-all, npx @fabersep/memory approve <id1> <id2>, or npx @fabersep/memory reject <id>.)
Step 5: Verify everything is healthy
Check your current setup and pending queue:
npx @fabersep/memory statusRun the strict validation check (schema, duplicates, 1,500-token L0 budget, and hygiene rules):
npx @fabersep/memory compile --checkIf both succeed, restart (or start a new session in) your AI coding agent — it now has access to your compiled L0 memory and the 3 faber-memory MCP tools.
Team Mode Setup (Shared Private Git Repo)
If you want to share rules across a team (or across multiple machines via a private Git repo):
# Clone and register your private team memory repo
npx @fabersep/memory setup --team git@github.com:your-org/team-memory.git
# Pull the latest team changes and recompile L0
npx @fabersep/memory syncWhen you approve a team proposal via review or approve:
--submit-mode auto(default): Pushes directly to the team repo's default branch via a clean temporary worktree. If branch protection rejects the push, it automatically falls back to creating a branch and opening a PR.--submit-mode pr: Always submits via a Pull Request (npx @fabersep/memory config set-submit-mode pr).
Everyday Workflow
Once set up, daily use is simple:
During a session: Your agent loads the compact L0 index, searches deeper with
memory_search+memory_get, and proposes new lessons viamemory_propose.Whenever you have a minute: Run
npx @fabersep/memory statusto see pending proposals, thennpx @fabersep/memory reviewto approve or reject them in one batch.In team mode: Run
npx @fabersep/memory syncwhenever you want to pull teammates' updates.
Writing a Memory File by Hand
Memory files are standard Markdown with a small YAML frontmatter block:
---
id: no-broad-process-kill
type: rule
scope: personal
summary: Never run pkill or killall by broad pattern; stop only your own PID or task.
tags: [safety, shell]
---
Never kill processes by broad name patterns like `pkill node` or `killall python`.
Always stop only the specific PID or background task you started.Valid type values: rule, decision, lesson, preference, reference.
After editing or adding a file manually in your memory repo, commit it with Git and run npx @fabersep/memory compile.
Installing Globally or Running from Source
Global npm install (gives you the faber-memory command directly):
npm install -g @fabersep/memory
faber-memory --helpFrom GitHub source (for contributing or local development):
git clone https://github.com/fabersep/memory.git
cd memory
npm install
npm test
npm linkCLI Command Reference
Command | Description |
| Initialize a local solo (personal) memory Git repo. |
| Clone and configure a shared team memory repo. |
| Print current |
| Move a configured memory root while keeping its UUID. |
| Change team approval mode ( |
| Preview, apply (with |
| Compile L0 |
| Fast-forward pull remote updates and recompile L0. |
| Show compiled L0 status, configured roots, warnings, and pending/stale proposals. |
| Interactively approve, edit, reject, or skip pending |
| Approve one or more proposals by ID in a single batch commit. |
| Reject and delete a pending proposal. |
| Deterministically import existing memory into |
| Run the 3-tool stdio MCP server (used by your AI agent's MCP config). |
MCP Tools
The MCP server exposes exactly 3 lean tools (~350 tokens total tool schema):
Tool | Purpose |
| Pure-JS BM25 full-text search across active |
| Fetch the full L2 Markdown body of a specific entry by ID. |
| Stage a new entry or update into |
Documentation & Specs
This repository follows the FaberSEP Spec standard:
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Shared, scoped, reviewable team memory for AI coding agents.
Persistent engineering memory designed to follow developers across coding agents.
One memory for every AI you work with: your rules, notes and decisions in your own Git repo.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceProvides 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- AlicenseNot gradedqualityDmaintenanceProvides a memory layer for AI coding agents with Git-powered version control, enabling automatic tracking of prompts, context, and code diffs.194MIT

robo-cortexofficial
AlicenseAqualityBmaintenanceProvides a git-aware knowledge base for AI coding agents to store and retrieve memories anchored to code changes, with automatic staleness detection.91MIT- AlicenseNot gradedqualityBmaintenanceEnables 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