Skip to content
Conduit

skill

agent-memory

A standalone, local-first persistent memory module for Google Antigravity agents.

rolfmadsen/agent-memorycommunitylistedunreviewed

Set up

Skills are installed by placing their folder where your agent loads skills.

The download comes from github.com/rolfmadsen/agent-memory itself, not from our server, so what you get is exactly what its author published.

Install instructions come from the README

Skills do not use an MCP config. Follow the steps in the README below.

README

synced Oct 23, 2026

Federated AI Memory System

A local-first, editor-agnostic persistent memory system for AI coding agents. Works with any AI tool — Google Antigravity, Zed + Ollama, Claude Desktop, Cursor, or custom scripts.

The Problem

AI coding agents lose context between sessions. They understand what they're looking at now, but forget the why — architectural decisions, hard-fought bug solutions, and established conventions. And when you switch editors or AI tools, all that knowledge stays locked in one silo.

The Solution

A federated two-tier memory system that gives every AI agent persistent, searchable, hallucination-resistant memory:

  • Project Memory (.agent/memory-bank/) — Project-specific decisions, versioned in git
  • Global Brain (~/.agent/brain/) — Cross-project knowledge shared across all your workspaces
  • Guardrails — Confidence scoring, staleness detection, and contradiction warnings
┌─────────────────────────────────────────────────────┐
│           AI Agent (Any Editor, Any Model)           │
├─────────────────────────────────────────────────────┤
│              MCP Server  ·  CLI Bridge               │
├─────────────────────────────────────────────────────┤
│     Federation Router (query both, merge, rank)      │
├──────────────────────┬──────────────────────────────┤
│   Project Memory     │      Global Brain             │
│   .agent/memory-bank │      ~/.agent/brain           │
│   (git-versioned)    │      (machine-local)          │
└──────────────────────┴──────────────────────────────┘

Features

  • Editor-Agnostic: MCP server works in Zed, Antigravity, Claude Desktop, Cursor. CLI works everywhere.
  • Two-Tier Federation: Project-specific + cross-project memories, queried in parallel, merged intelligently.
  • Anti-Hallucination Guardrails: Confidence scoring (0.0–1.0), staleness detection (90-day threshold), contradiction warnings, near-duplicate detection.
  • Local-First & Private: Embedded LanceDB — no API keys, no cloud, no subscriptions.
  • Git-Friendly: Parquet export for version-controlled team sharing.
  • Full Lifecycle: Save → Query → Update → Verify → Promote → Deprecate → Archive.
  • Provenance Tracking: Every memory records who created it, when, from which conversation, and in which project.

Quickstart

1. Installation

cd /path/to/your/project
curl -sO https://raw.githubusercontent.com/rolfmadsen/agent-memory/refs/heads/main/install.sh
chmod +x install.sh
./install.sh

2. Editor Setup

Zed + Ollama (MCP)

Add to Zed's settings.json:

{
  "context_servers": {
    "memory-brain": {
      "command": "uv",
      "args": ["run", "/path/to/project/.agent/skills/memory-manager/mcp_server.py"],
      "env": {
        "MEMORY_PROJECT_ROOT": "/path/to/project"
      }
    }
  }
}

Google Antigravity (MCP + CLI)

Add to ~/.gemini/antigravity/mcp_config.json:

{
  "mcpServers": {
    "memory-brain": {
      "command": "uv",
      "args": ["run", ".agent/skills/memory-manager/mcp_server.py"],
      "env": { "MEMORY_PROJECT_ROOT": "." }
    }
  }
}

Also add the CLI allow-list prefix for slash commands:

uv run .agent/skills/memory-manager/bridge.py

Claude Desktop (MCP)

Add to ~/.config/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "memory-brain": {
      "command": "uv",
      "args": ["run", "/path/to/project/.agent/skills/memory-manager/mcp_server.py"],
      "env": { "MEMORY_PROJECT_ROOT": "/path/to/project" }
    }
  }
}

VS Code (Cline / Roo Code / Continue)

  1. Open the Cline/Roo Code Settings (plug icon).
  2. Click Configure to open cline_mcp_settings.json.
  3. Add the server definition:
{
  "mcpServers": {
    "memory-brain": {
      "command": "uv",
      "args": ["run", "/absolute/path/to/project/.agent/skills/memory-manager/mcp_server.py"],
      "env": { "MEMORY_PROJECT_ROOT": "/absolute/path/to/project" }
    }
  }
}

Cursor (MCP)

  1. Go to Settings ⮕ Features ⮕ MCP Servers.
  2. Click + Add Server.
  3. Name: memory-brain, Type: command.
  4. Command: uv run /absolute/path/to/project/.agent/skills/memory-manager/mcp_server.py.

[!IMPORTANT] Path Resolution: Always use absolute paths for the mcp_server.py and MEMORY_PROJECT_ROOT when configuring MCP servers globally (e.g., in Cline, Cursor, or Claude Desktop). This ensures the agent can find the memory bank regardless of your current workspace.

Any Other Agent (CLI)

Any agent that can execute shell commands can use the CLI directly:

uv run .agent/skills/memory-manager/bridge.py query --query "search term" --scope all

3. Usage

Save a memory

uv run .agent/skills/memory-manager/bridge.py save \
  --text "Always use OAuth 2.1 for auth in this project" \
  --type decision --scope project --confidence 0.9 --tags "auth,security"

Query memories

uv run .agent/skills/memory-manager/bridge.py query --query "authentication" --scope all

Check health

uv run .agent/skills/memory-manager/bridge.py status

Promote to global brain

uv run .agent/skills/memory-manager/bridge.py promote --id <memory_id>

4. Workflows

CommandDescription
/syncArchive the current session's learnings to project memory
/promoteDistill project learnings into the global brain
/auditHealth check: flag stale memories, resolve contradictions

Architecture

Files

FilePurpose
memory_core.pyCore DB operations, schema, migration
guardrails.pyValidation, confidence gating, staleness, contradiction detection
federation.pyTwo-tier routing, merge, promote, conflict resolution
bridge.pyCLI entry point (universal)
mcp_server.pyMCP adapter (Zed/Antigravity/Claude Desktop)

Memory Schema

FieldTypeDescription
idstringSHA-256 hash
textstringThe memory content
memory_typestringdecision / learning / bug / pattern / convention / warning
scopestringglobal / project / module
confidencefloat0.0–1.0 confidence score
statusstringactive / superseded / deprecated / archived
tagsstringComma-separated tags
source_typestringconversation / commit / manual / import
source_refstringConversation ID, commit SHA
source_projectstringProject name
created_bystringAgent identity
last_verifiedstringISO timestamp (for staleness detection)
created_atstringISO timestamp

License

GNU General Public License v3.0 — see LICENSE for details.

↑↓ navigate openesc close