Tree Ring Memory

Tree Ring Memory is a framework-agnostic, local-first memory lifecycle layer for
AI agents. It helps agents remember useful decisions, warnings, preferences,
and lessons without turning memory into a transcript dump. Fresh memory stays
detailed, older memory compresses into rings, important scars remain visible,
and durable truths become heartwood.
Tree Ring Memory is inspired by the spatial project-memory patterns in
DOX and the evidence-driven improvement loop
in Revolve, with a deliberate nod to
their original creator, Jan Tomášek. This project is
framework-agnostic and does not replace either protocol.
Tree Ring Memory is in protocol-preview status. Current launch links:
Protocol preview history
- v0.1 provided the initial local reference implementation with SQLite storage and no required cloud services.
- v0.2 moved durable behavior into a Rust core.
- v0.3 explored host bindings during the Rust migration.
- v0.4 added Rust-owned JSONL import/export with privacy-preserving defaults across the CLI.
- v0.5 added Rust-owned audit checks for stale, sensitive, low-confidence, supersession, and contradiction candidates.
- v0.6 added Rust-owned deterministic consolidation with idempotent summary records and cautious sensitive-memory handling.
- v0.7 made the public facade Rust-native only and added Rust-owned maintenance for expiry, secret redaction, and FTS repair.
- v0.8 removed Python-owned runtime behavior.
- v0.9 removed tracked Python source, tests, smoke scripts, and the optional CPython extension from the canonical repo.
- v0.10 added a one-line installer plus Rust-native terminal onboarding with animated terminal tree rings.
- v0.11 made the repo fully Rust-native, wired TUI export/consolidation actions, added DOX/Revolve sync adapters, and added agent-framework discovery.
- v0.12 adds a controlled, retained agent-workflow proof with explicit model identity and exact structured-output checks; it reports observed outcomes without claiming a universal memory advantage.
- v0.13 adds same-host multi-agent identities and idempotency, opt-in coordinator authorization for shared writes, a protected-write audit, and a schema-v3 fence for old memory inserts, updates, and deletes.
- v0.14 adds project-local harness activation with receipt-backed readiness, so configured bridges do not imply that an agent has used memory.
- v0.15 adds verified release bootstrap, project-root-aware agent guidance, and scope-preserving CLI updates.
What It Gives Agents
- Explicit local recall with SQLite/FTS storage and no required cloud service.
- Source-linked memories for decisions, scars, lessons, evidence, and durable
project truths.
- Rust-native import/export, audit, consolidation, maintenance, DOX/Revolve
adapters, harness discovery, and terminal UI.
- Same-host multi-agent correlation, scoped recall filters, and idempotent
worker writes through the public CLI.
- Optional coordinator capability enforcement for shared publication and
lifecycle mutations while ordinary workers stay agent-partitioned.
- Evidence artifacts for install size, recall speed, harness readiness, and
recall quality.
- Privacy defaults that block secret-like memory, hide sensitive details, and
keep transcript capture out of scope.
The Rust workspace currently includes:
crates/tree-ring-memory-core: models, validation, sensitivity checks, and recall scoring.
crates/tree-ring-memory-sqlite: schema-compatible SQLite/FTS storage and recall filtering.
crates/tree-ring-memory-cli: native tree-ring CLI.
The public runtime is Rust-native. The Rust CLI and Rust crates own storage,
recall, import/export, audit, consolidation, maintenance, and terminal UI
behavior. There is no tracked root Python package, Python wrapper layer, pytest
suite, Python smoke script, PyO3 crate, or CPython extension.
Screenshots
These are captured from the actual tree-ring tui app running against a local
.tree-ring store populated through the public CLI with 47 memories across
all rings, plus the current certification artifacts.
