Skip to main content
Glama
██████╗ ███████╗███╗   ███╗███████╗███╗   ███╗██████╗ ██████╗  █████╗ ██╗     ██╗     
██╔══██╗██╔════╝████╗ ████║██╔════╝████╗ ████║██╔══██╗██╔══██╗██╔══██╗██║     ██║     
██████╔╝█████╗  ██╔████╔██║█████╗  ██╔████╔██║██████╔╝██████╔╝███████║██║     ██║     
██╔══██╗██╔══╝  ██║╚██╔╝██║██╔══╝  ██║╚██╔╝██║██╔══██╗██╔══██╗██╔══██║██║     ██║     
██║  ██║███████╗██║ ╚═╝ ██║███████╗██║ ╚═╝ ██║██████╔╝██║  ██║██║  ██║███████╗███████╗
╚═╝  ╚═╝╚══════╝╚═╝     ╚═╝╚══════╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚══════╝╚══════╝

Universal Zero-Amnesia State Engine & Persistent Memory for AI Coding Agents

Inspired by Manus AI disk persistence, auto-memory-pro token curation, and obra/superpowers universal multi-agent harness architecture.

CI Matrix License: MIT Skill Leaderboard MCP Server Agent Skills Standard Node.js Python Shell Token Savings

Overview • How it Works • Installation • CLI & MCP Tools • Visual Architecture • Two-Tier Memory • Benchmarks • FAQ


Overview

Remembrall is a deterministic, high-efficiency external working memory engine for AI coding agents (Claude Code, Cursor, Codex, Devin, and Antigravity).

By anchoring project state and architectural invariants to a physical disk manifest (.remembrall.md), agents recall completed features, in-progress tasks, and critical rules instantly on Turn 1, eliminating blind recursive directory traversals and reducing prompt token waste by over 80%.


Related MCP server: Sugar

How it Works

Turn 1: User Prompt ("What features are completed?")
  │
  ├─► [Traditional Agent]: Recursively reads 25+ files (20,000+ tokens burned)
  │
  └─► [Remembrall Agent]: Reads .remembrall.md directly (~250 tokens intake)
        ├─ Spots exact feature status and touched files instantly
        ├─ Aligns with Technical Invariants (Jane Street Socratic check)
        ├─ Implements change with zero re-scanning
        └─ Post-flight gate: Syncs state before concluding turn
  1. Pre-flight Recall (Turn 1): Before exploring directories or answering questions about what was built, the agent automatically reads .remembrall.md (~250 tokens). It spots the exact feature and files instantly without re-scanning code.

  2. Deterministic Execution: The agent implements changes guided by known project invariants and constraints.

  3. Post-flight Hard Gate: Before reporting work as finished, the agent updates .remembrall.md with the new status and touched files.

  4. Hierarchical Anti-Bloat: If .remembrall.md reaches 100 lines, older historical features automatically archive into .remembrall.archive.md while consolidating into single-row module summaries in active memory, keeping token intake flat forever.


Visual Architecture Roadmap

Remembrall generates real-time, GitHub-renderable Mermaid architecture diagrams directly from the physical manifest:

flowchart LR
    classDef done fill:#064e3b,stroke:#10b981,stroke-width:2px,color:#ecfdf5;
    classDef wip fill:#78350f,stroke:#f59e0b,stroke-width:2px,color:#fffbeb;
    classDef planned fill:#1e293b,stroke:#64748b,stroke-width:2px,color:#f8fafc;
    
    F_026["F-026: Node.js Zero-Dependency Engine"]:::done
    F_027["F-027: POSIX Shell & Lifecycle Hooks"]:::done
    F_028["F-028: Git Commit Auto-Capture"]:::done
    F_029["F-029: Mermaid Roadmap Visualizer"]:::done
    F_030["F-030: Socratic Pre-Flight Alignment"]:::done
    F_031["F-031: Universal Cross-Agent Bridge"]:::done
    F_032["F-032: GitHub Actions PR State Bot"]:::done
    
    F_026 --> F_027 --> F_028 --> F_029 --> F_030 --> F_031 --> F_032

Generate this live from terminal anytime:

remembrall diagram --format flowchart
remembrall diagram --format gantt

Installation by Harness

Install Remembrall for your primary environment:

1. Antigravity & Gemini CLI

Install Remembrall directly from GitHub:

agy plugin install https://github.com/dkrpl/remembrall

Antigravity automatically discovers gemini-extension.json and loads GEMINI.md as an always-on memory protocol.


2. Claude Code

Install via Claude plugin marketplace:

/plugin marketplace add dkrpl/remembrall
/plugin install remembrall@remembrall-marketplace

3. Cursor & Windsurf

Add Remembrall to your MCP configuration (~/.cursor/mcp.json or .codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "remembrall": {
      "command": "python",
      "args": ["path/to/remembrall/.agents/skills/remembrall/scripts/mcp_server.py"]
    }
  }
}

Cursor also automatically loads AGENTS.md and .cursor-plugin/plugin.json.


4. Universal NPM / Agent Skills Standard (Codex, Devin, OpenCode)

npx skills add dkrpl/remembrall --skill remembrall -g

5. One-Line POSIX Shell Installer (Linux / macOS)

curl -fsSL https://raw.githubusercontent.com/dkrpl/remembrall/main/scripts/install.sh | bash

6. Native Dual-Engine CLI (Node.js & Python)

Remembrall is built with zero-dependency dual engines:

Node.js (Native Vanilla Engine):

node bin/remembrall.js status
node bin/remembrall.js ui --port 4242

Python (Native Engine & MCP):

pip install -e .
remembrall status
remembrall ui
remembrall semantic "login auth"
remembrall simulate --turns 20

Two-Tier Memory Architecture

To completely eliminate both token bloat and historical information loss, Remembrall utilizes a two-tier storage model:

Memory Tier

Storage File

Token Budget

Purpose

L1 Active Memory

.remembrall.md

Strict < 120 lines (~900 tokens)

High-speed daily agent navigation and active status tracking

L2 Cold Storage

.remembrall.archive.md

Unlimited

Permanent historical archive created automatically during pruning

When remembrall prune triggers at 100 lines:

  1. Older completed features collapse into single-row module summaries in active L1 memory.

  2. The original individual records, commit dates, and notes are appended to .remembrall.archive.md.

  3. Zero historical details are ever lost.

  4. The remembrall query command automatically searches both L1 Active and L2 Archive tiers simultaneously, tagging results with [L1 Active] or [L2 Archive].


Interactive Web Dashboard (remembrall ui)

Launch a sleek dark-mode local web dashboard in your browser (http://localhost:4242):

┌─────────────────────────────────────────────────────────────────────────────┐
│  Remembrall State Engine                                [+ Register Feature]│
├─────────────────────────────────────────────────────────────────────────────┤
│ [32 Features Tracked]  [83% Token Savings]  [49/120 Lines]  [HEALTHY]       │
├─────────────────────────────────────────────────────────────────────────────┤
│ > [Search features or files...]          [Filter: All | Done | WIP | Planned]│
│                                                                             │
│  ID    Feature Name                   Status   Files               Actions  │
│  F-026 Node.js Zero-Dependency Engine [DONE]   bin/remembrall.js   [View]   │
│  F-028 Git Commit Auto-Capture        [DONE]   scripts/capture.sh  [View]   │
│  F-029 Mermaid Roadmap Visualizer     [DONE]   scripts/diagram.sh  [View]   │
│  F-030 Socratic Alignment Protocol    [DONE]   skills/align/       [View]   │
└─────────────────────────────────────────────────────────────────────────────┘

Empirical Benchmarks

Empirical simulation benchmark across 20 conversation turns on a 15-feature codebase:

Metric

Traditional Agent (Brute Force)

Remembrall Engine (Direct Recall)

Advantage

Cumulative Tokens

210,000 tokens

35,860 tokens

82.92% Token Reduction

Tool Invocations

4 - 8 tools per turn

1 tool (read_file / MCP)

4x - 8x Faster

LLM Generation Delay

~3,500 seconds

~597 seconds

~48 Minutes Saved

Hallucination Risk

~37.5% failure rate

0.0% (Deterministic state)

Grounded on Disk


Complete CLI & MCP Tools Reference

Command

Equivalent MCP Tool

Description

remembrall install-merge-driver

-

Configures Git 3-way semantic merge driver to prevent table conflicts

remembrall merge-driver %O %A %B

-

Resolves merge conflicts across team branches and parallel agents

remembrall gatekeeper [--strict]

-

CI & pre-push gatekeeper enforcing zero memory drift and schema health

remembrall scopes

-

Discovers and aggregates scoped manifests across monorepo packages

remembrall init-scope <DIR>

-

Initializes a scoped sub-module manifest for monorepo microservices

remembrall repair

-

Self-healing auto-repair for corrupted tables, missing pipes, or invalid statuses

remembrall ui

-

Launches local dark-mode interactive web dashboard on :4242

remembrall capture

-

Auto-captures latest Git commit metadata directly into feature row

remembrall align <ID>

-

Runs Socratic pre-flight invariant verification (Jane Street style)

remembrall bridge --target <agent>

-

Generates cross-agent memory bridge (cursor, claude, codex)

remembrall diagram

-

Renders live Mermaid flowchart or Gantt roadmap diagram

remembrall sync

-

Detects unrecorded modified files and memory drift

remembrall semantic "<term>"

remembrall_semantic_search

TF-IDF cosine similarity & bilingual concept vector search

remembrall query "<term>"

remembrall_query

Unified two-tier search across L1 active manifest and L2 cold archive

remembrall simulate --turns <N>

-

Runs empirical benchmark calculating exact token & latency savings

remembrall export --format <fmt>

-

Exports manifest as changelog, github-issues, release-notes, or json

remembrall status

remembrall_status

Returns line count, token usage, health check, and feature stats

remembrall add --id <ID> --name "<N>"

remembrall_add_feature

Appends a new feature row safely

remembrall set <ID> <STATUS>

remembrall_set_feature

Updates an existing feature's status (PLANNED, WIP, DONE), files, or notes

remembrall prune

remembrall_prune

Automatically consolidates older DONE features into L2 archive

remembrall validate

-

Enforces strict table formatting and <120 lines limit

remembrall install-hooks

-

Installs automated Git pre-commit validation hook

remembrall init

-

Scaffolds a new .remembrall.md manifest


Frequently Asked Questions


Multi-Harness Architecture & Layout

.
├── bin/
│   └── remembrall.js                          # Native zero-dependency Node.js CLI executable
├── scripts/
│   ├── install.sh                             # One-line POSIX shell installer
│   ├── setup-agent.sh                         # Multi-harness agent onboarding wizard
│   ├── start-dashboard.sh                     # Dashboard shell runner
│   ├── align.sh                               # Socratic pre-flight alignment runner
│   ├── bridge.sh                              # Cross-agent memory bridge runner
│   ├── capture.sh                             # Git commit auto-capture runner
│   ├── diagram.sh                             # Mermaid diagram generator runner
│   ├── prune.sh                               # Anti-bloat archive & prune runner
│   ├── export.sh                              # Multi-format state exporter runner
│   ├── sync-state.sh                          # Memory drift detector runner
│   └── verify.sh                              # Full health verification runner
├── .gitattributes                             # GitHub Linguist language balance configuration
├── .remembrall.md                             # Physical active project state manifest (L1)
├── .remembrall.archive.md                     # Permanent cold-storage historical archive (L2)
├── gemini-extension.json                      # Antigravity & Gemini CLI extension manifest
├── GEMINI.md                                  # Antigravity always-on memory instructions
├── AGENTS.md                                  # Universal agent protocol (Devin, Cursor, Codex)
├── package.json                               # Universal npm & node plugin descriptor
├── pyproject.toml                             # Python package & CLI console entrypoints
├── mcp_config.json                            # Model Context Protocol configuration
├── plugin.json                                # Open marketplace & plugin manifest
├── README.md                                  # Production masterpiece documentation
├── CHANGELOG.md                               # Standardized version changelog
├── LICENSE                                    # Official MIT license
├── .gitignore                                 # Git ignore definitions
├── .claude-plugin/                            # Claude Code official marketplace packaging
│   ├── plugin.json
│   └── marketplace.json
├── .cursor-plugin/                            # Cursor IDE plugin descriptor
│   └── plugin.json
├── .codex-plugin/                             # OpenAI Codex plugin descriptor
│   └── plugin.json
├── hooks/
│   ├── pre-commit                             # Git pre-commit shell script
│   ├── pre-commit.ps1                         # Git pre-commit PowerShell script
│   ├── post-commit                            # Git post-commit drift check
│   └── SessionStart                           # Claude Code session lifecycle hook
├── hooks.json                                 # Antigravity lifecycle event hooks
├── src/remembrall/                            # Distribution runtime engine
│   ├── __init__.py                            # Safe dynamic Python package loader
│   ├── engine.js                              # Zero-dependency vanilla ES engine
│   ├── index.d.ts                             # Official TypeScript declarations
│   ├── dashboard.html                         # Dark-mode dashboard template
│   ├── index.js                               # Plugin entrypoint
│   ├── cli.py                                 # Safe console CLI bridge
│   └── mcp.py                                 # Safe console MCP bridge
├── skills/
│   ├── remembrall/
│   │   ├── SKILL.md                           # Universal Agent Skills standard format
│   │   └── scripts/                           # Localized skill shell scripts
│   ├── remembrall-align/
│   │   └── SKILL.md                           # Socratic alignment sub-skill
│   ├── remembrall-bridge/
│   │   └── SKILL.md                           # Cross-agent memory bridge sub-skill
│   ├── remembrall-setup/
│   │   └── SKILL.md                           # Setup wizard sub-skill
│   └── remembrall-handoff/
│       └── SKILL.md                           # Instant handoff sub-skill
├── .agents/
│   ├── rules/
│   │   └── remembrall.md                      # Always-on pre/post flight rule
│   └── skills/
│       └── remembrall/
│           ├── SKILL.md                       # Comprehensive workflow guide
│           ├── scripts/                       # Core Python engine implementations
│           ├── templates/                     # Project scaffold templates
│           └── references/                    # Deep technical reference guides
├── .github/workflows/
│   ├── ci.yml                                 # Multi-OS matrix CI pipeline (Linux, Windows, macOS)
│   └── pr-comment.yml                         # Automated PR state bot workflow
└── tests/
    ├── test_remembrall.py                     # Python CLI unit tests
    ├── test_node_engine.test.js               # Node.js engine unit tests (11/11 PASS)
    ├── test_mcp_server.py                     # MCP Server unit tests
    ├── test_semantic.py                       # Semantic search tests
    ├── test_exporter.py                       # Exporter tests
    ├── test_simulation.py                     # Simulation benchmark tests
    ├── test_dashboard.py                      # Dashboard UI tests
    └── run-all-tests.ps1                      # Complete test orchestrator (31/31 PASS)

License

MIT License © 2026 dkrpl. Free for open-source and commercial use.

Available Tools

6 tools
remembrall_add_featureC

Register a new feature into the persistent memory manifest.

Inputs: files (required), title (required), notes, status.

remembrall_pruneB

Automatically consolidate historical completed features to keep token count low (<120 lines).

Inputs: threshold.

remembrall_queryB

Search active project memory for features, files, notes, and architectural findings by keyword.

Inputs: query (required), limit.

remembrall_set_featureB

Update an existing feature status, touched files, or notes by feature ID.

Inputs: id (required), files, notes, status.

remembrall_statusB

Inspect active project memory manifest, line counts, token usage, and feature counts.

Inputs: manifest_path.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 6 tools

    Disambiguation4/5

    The two search tools (remembrall_query keyword vs remembrall_semantic_search TF-IDF/synonyms) are the only pair with overlapping intent, but the descriptions make the distinction explicit. Status, add_feature, set_feature, and prune each target a clearly different operation on the memory manifest.

    Naming Consistency4/5

    All six tools share a consistent snake_case `remembrall_` prefix, and most follow an action-oriented pattern (add_feature, set_feature, semantic_search, query). Minor deviation: bare `status` and `prune` lack an object noun, but the set remains highly readable and predictable.

    Tool Count5/5

    Six tools is well-scoped for a persistent project-memory server: inspect, search (two modes), register, update, and consolidate. Each tool earns its place with no filler or redundant entries.

    Completeness4/5

    The surface covers read (status/query/semantic_search), create (add_feature), update (set_feature), and maintenance (prune), forming a coherent lifecycle. Minor gap: no explicit delete/remove-feature or get-by-ID operation, though prune partially covers cleanup and set_feature allows status changes.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding agents to read and write persistent, local-first memory across sessions and projects, with semantic search, global guidelines, and optional autonomous task execution.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Gives AI coding agents persistent, local-first memory so they can store, semantically search, and recall decisions, preferences, error patterns, and cross-project guidelines directly during a session. It also optionally queues tasks for autonomous execution against that same memory.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding agents to store and retrieve persistent project and cross-project memories via semantic search, so decisions, preferences, error patterns, and guidelines survive across sessions. Optionally supports autonomous task execution built on the same local-first knowledge store.
      -