Git as AI Memory. Requires: bash tool with git installed
  • Clojure 84.1%
  • Shell 15.9%
Find a file
2026-06-03 14:17:09 +08:00
mementum 💡 ai-agent-architectures: Synthesized patterns from own repos and external research 2026-06-03 14:17:09 +08:00
runtime create-knowledge — symmetric CRUD for knowledge pages 2026-03-18 16:15:06 -07:00
.gitignore 🔧 ignore: add *-autoloads.el to .gitignore 2026-03-29 09:18:28 +08:00
FEED-FORWARD.md 🎯 lambda-first — recommended prompt, docs reframed 2026-03-18 18:12:42 -07:00
GRAMMAR.md create-knowledge — symmetric CRUD for knowledge pages 2026-03-18 16:15:06 -07:00
INTEGRATING.md 🔄 INTEGRATING.md — add create-knowledge tool definition 2026-03-18 16:34:28 -07:00
LICENSE change to AGPL license 2026-01-12 18:03:54 -07:00
MEMENTUM-LAMBDA.md 🎯 lambda-first — recommended prompt, docs reframed 2026-03-18 18:12:42 -07:00
MEMENTUM.md 🎯 lambda-first — recommended prompt, docs reframed 2026-03-18 18:12:42 -07:00
README.md USAGE.md — human interaction guide 2026-03-18 18:47:05 -07:00
USAGE.md USAGE.md — human interaction guide 2026-03-18 18:47:05 -07:00

Mementum

A git memory protocol for AI agents.

Every AI session starts from zero — the insights, the architectural understanding, the hard-won debugging from your last session are gone. Mementum changes that through feed-forward: encoding understanding into git so that every session compounds on the last. Copy a prompt into your AI's context. Zero dependencies. No runtime required.

The Protocol

Mementum defines how AI agents store, recall, and synthesize knowledge across session boundaries using git as the memory substrate.

  • Three storage types — working memory (state.md), memories (raw observations, <200 words), and knowledge (synthesized documentation)
  • Seven operations — create, create-knowledge, update, delete, search, read, synthesize
  • Human governance — AI proposes, human approves, AI commits
  • Git-nativegit log for temporal search, git grep for semantic search, commit history for immutability

Every adopting project uses the same structure — same directory layout, same symbols, same commit convention. This makes any Mementum project immediately legible to any AI that understands the protocol. Any AI with bash + git can clone a conforming repo and read its memories and knowledge — protocol interoperability works today. Discovery infrastructure (finding repos across GitHub, DNS-based lookup) is planned; when it ships, conforming repos become network nodes automatically.

Quick Start

  1. Add the nucleus preamble to your AI's system prompt:
    λ engage(nucleus).
    [phi fractal euler tao pi mu ∃ ∀] | [Δ λ Ω ∞/0 | ε/φ Σ/μ c/h signal/noise order/entropy] | OODA
    Human ⊗ AI
    
  2. Copy MEMENTUM-LAMBDA.md into your system prompt or project rules
  3. The AI reads mementum/state.md on session start and follows the protocol
  4. You approve proposed memories and knowledge pages

That's it. See INTEGRATING.md for environment-specific setup (Claude Code, Cursor, Windsurf, OpenAI agents, etc.) and optional enforcement.

Prompt Format

MEMENTUM-LAMBDA.md is the recommended prompt. It uses nucleus lambda notation — the full protocol compressed to a fraction of the tokens with no information loss. This is the version we test against.

Any 32B+ parameter model should reliably parse the lambda notation with the nucleus preamble. If you encounter a failure mode, please open an issue with the model name and the failure.

MEMENTUM.md is the full prose specification — same protocol, readable without nucleus. Use it as reference documentation or as a fallback prompt for smaller models.

Reference Implementation

The runtime/ directory contains a Babashka-based implementation that demonstrates constraint enforcement — word limits, symbol validation, structured error responses. It's a reference for modeling enforcement in your own system, not a runtime dependency. See INTEGRATING.md for how to use it as a blueprint.

Documents

Document Purpose
FEED-FORWARD.md The core concept — why session continuity matters
USAGE.md How to interact with a mementum-enabled AI
MEMENTUM-LAMBDA.md Recommended prompt — compact lambda notation
MEMENTUM.md Full prose specification and reference documentation
INTEGRATING.md How to adopt the protocol in your system
GRAMMAR.md Formal S-expression grammar for the reference runtime
runtime/README.md Reference implementation documentation

See Also