Project

memento

active

Shared memory for several AI agents: an authenticated MCP service over Markdown concepts in Git, with rebuildable search.

Overview

memento is an authenticated MCP service over a Git repository of Markdown concepts, written so that several Piclaw instances can share facts without sharing their chats, reminders, credentials or machine-specific notes. It holds knowledge that should outlive a conversation and be useful to more than one agent: where a service runs, why one system replaced another, and how people, projects, machines and services relate.

Agents can search, follow links, read concepts and propose changes; authorised curators review proposals or edit concepts directly. The daemon and its local model workers are written in Go and ship as a non-root, multi-architecture container.

How it works

Concepts have stable IDs, metadata and ordinary Markdown links. Git holds their content and history. control.sqlite records operations, proposals, principals and access activity; derived.sqlite holds search, graph and embedding data that can be rebuilt from the checkout. Routine updates reuse existing embeddings where content is unchanged.

Writes check namespace permissions, the expected revision and an idempotency key before committing and updating indexes, so a retry returns the recorded result instead of making another commit. Curators with write access to every affected path may review their own proposals; the audit trail records both author and reviewer. Trashed concepts can be restored. Purges need explicit confirmation and remove current content and assets while keeping Git history.

FTS5 and graph search work without a model. Optional GTE-small embeddings add semantic ranking, and a fine-tuned 26M-parameter Needle model can propose a read operation that Memento validates before running it. Needle routes run in short-lived Go workers, and on memory-constrained hosts embeddings are computed one concept at a time in a worker that releases model memory after each item. Optional generated answers draw only on concepts the caller may read.

Features

→

Authenticated MCP access

A standalone Go implementation of uMCP's protocol provides Streamable HTTP. Compact discovery exposes the common operations before less-used schemas.

→

Search and inventory

Lexical search, backlinks, graph neighbourhoods and bounded metadata inventory, with optional semantic ranking.

→

Reviewed and direct writes

Agents propose changes; curators can approve, reject or request revisions, and use direct create, patch or rename tools when exposed. Namespace permissions apply to both routes.

→

Trash and recovery

Restore trashed concepts or purge current content with explicit confirmation. Git history, operation journals and backups support recovery.

→

Access management

Administrators manage principals and scoped credentials through the admin UI or role-filtered MCP tools. New credentials are shown once; only verifiers are retained.

→

Recallable asset packs

Versioned ZIP packs attach diagrams, datasets or complete skills to concepts. Manifests, digests and path checks protect recall; Memento does not execute recalled skills.

→

Optional model assistance

Local routing, semantic ranking, cited answers and proposal drafting are optional. Code validates model output and enforces authorisation.

→

Visual debugger

An optional graph view shows links, provenance and proposals. It is disabled by default and unauthenticated when enabled, so keep it on a trusted development network.

Architecture

MCP clients Piclaw · other agents Memento MCP auth · roles · tools Curator writes review / direct · journal Search / router bounded read operations Git knowledge Markdown · history · ZIP Derived indexes search · graph · embeddings rebuild Canonical Git knowledge, rebuildable search and authorised writes

Posts