Agentra LabsAgentra Labs DocsPublic Documentation

AgenticMemory

V3: Immortal Architecture

V3 adds a complete append-only, content-addressed storage layer with BLAKE3 integrity chains.

New in v0.4.0 — Memory that never dies.

V3 adds a complete append-only, content-addressed storage layer with BLAKE3 integrity chains. Your agent's memory is now cryptographically tamper-proof, multi-client, and designed to last 20 years.

Core Capabilities

  • Immortal Log — Append-only storage with BLAKE3 integrity chains. Never deletes. Never modifies.
  • Five Indexes — Temporal, semantic, causal, entity, and procedural. Find anything instantly.
  • Tiered Storage — Hot, Warm, Cold, Frozen. 20 years of memory in approximately 500 MB.
  • Ghost Writer — Auto-syncs to Claude, Cursor, Windsurf, and Cody. Zero configuration.
  • Smart Retrieval — Multi-index fusion with token budgeting. Perfect context assembly.
  • Crash Recovery — WAL with CRC32 checksums. Survives anything.

Multi-Client Support

V3 is built for all AI agents, not just one.

ClientAuto-Sync LocationStatus
Claude Code~/.claude/memory/V3_CONTEXT.mdFull support
Cursor~/.cursor/memory/agentic-memory.mdFull support
Windsurf~/.windsurf/memory/agentic-memory.mdFull support
Cody~/.sourcegraph/cody/memory/agentic-memory.mdFull support

The Ghost Writer detects which clients are installed and syncs memory context to all of them simultaneously. No configuration required — if the parent directory exists, the memory file is created and kept up to date.

Architecture Overview

+-------------------------------------------------------------+
|                     YOUR AI AGENT                           |
|           (Claude, Cursor, Windsurf, Cody)                  |
+----------------------------+--------------------------------+
                             |
                  +----------v----------+
                  |      MCP LAYER      |
                  |   Tools + Resources |
                  +----------+----------+
                             |
+----------------------------v--------------------------------+
|                        V3 ENGINE                            |
+--------------+--------------+--------------+----------------+
| Immortal Log | 5 Indexes    |Tiered Storage| Ghost Writer   |
| (append-only)| (T/S/C/E/P)  | (H/W/C/F)   | (multi-client) |
+--------------+--------------+--------------+----------------+
                             |
                  +----------v----------+
                  |     .amem FILE      |
                  |    (your memory)    |
                  +---------------------+

The Five Indexes

Each index serves a different query pattern. Together they cover any way an agent might need to recall information.

IndexPurposeExample Query
TemporalFind by time"What happened yesterday?"
SemanticFind by meaning"Everything about contracts"
CausalFind decision chains"Why did we choose Rust?"
EntityFind by file or person"All changes to main.rs"
ProceduralFind workflows"Steps to deploy"

Tiered Storage

Memory ages through four tiers automatically. Recent context stays fast; historical context stays accessible at reduced cost.

TierAgeAccess TimeStorage
HotLess than 24 hoursLess than 1 msMemory
WarmLess than 30 daysLess than 10 msDisk
ColdLess than 1 yearLess than 100 msCompressed
FrozenForeverLess than 1 sArchive

V3 MCP Tools

AgenticMemory V3 exposes 13 MCP tools for AI agents.

Capture Tools (5)

ToolDescription
memory_capture_messageCapture user/assistant messages
memory_capture_toolCapture tool calls with input/output
memory_capture_fileCapture file operations
memory_capture_decisionCapture decisions with reasoning
memory_capture_boundaryCapture session boundaries (compaction, etc.)

Retrieval Tools (3)

ToolDescription
memory_retrieveSmart context assembly with token budgeting
memory_resurrectRestore full state at any timestamp
memory_v3_session_resumeLoad context for session continuation

Search Tools (3)

ToolDescription
memory_search_temporalSearch by time range
memory_search_semanticSearch by meaning/text
memory_search_entitySearch by file/person/entity

Stats Tools (2)

ToolDescription
memory_v3_statsStorage and index statistics
memory_verify_integrityCryptographic integrity verification

MCP Resources (6)

Resource URIContent
memory://v3/session/contextFull session context
memory://v3/session/decisionsRecent decisions
memory://v3/session/filesFiles modified
memory://v3/session/errorsErrors resolved
memory://v3/session/activityRecent activity
memory://v3/statsStorage statistics

Auto-Capture Middleware

V3 includes an auto-capture middleware that intercepts MCP tool calls and automatically records context without requiring explicit save calls.

  • Message capture: User and assistant messages stored with role and token counts
  • Tool capture: Tool calls with inputs, outputs, and duration
  • File operation detection: Automatically detects file operations from tool names
  • Boundary events: Session start, compaction, and context window management

Migration from V2

V3 is fully backward compatible. Your V2 .amem files continue to work.

# V3 is enabled via feature flag in 0.4.0+
cargo build --features v3

# No migration command needed — it just works
AspectV2V3
Session contextManual memory_session_resume callsAuto-injected via Ghost Writer
Capture scopeDecisions and facts onlyEverything captured
Client supportSingle-client (Claude)Multi-client (Claude, Cursor, Windsurf, Cody)
RecallSummary-basedFull procedural chains
IntegrityBasicBLAKE3 cryptographic chains

Philosophy

AgenticMemory V3 is built on three principles:

  1. Capture everything — Do not filter at write time. Every token matters.
  2. Index smart — Five specialized indexes for any query pattern.
  3. Zero friction — One install command. Works forever. No configuration.

The result: AI agents that never forget, never lose context, and can recall any moment from any session.