Skip to main content
AMFS is GitHub for agent memory, split into two layers. The open-source core gives you the full memory engine with a single-branch repo model — versioning, confidence, outcomes, causal traces, knowledge graph, and a git-like timeline. Pro unlocks the full Git model: branching, merge, pull requests, access control, tags, rollback, cherry-pick, fork — plus multi-tenant SaaS, immutable traces, pattern detection, intelligence, and a dashboard.

At a Glance

┌──────────────────────────────────────────────────────────┐
│                    AMFS Pro (Proprietary)                  │
│                                                          │
│  ┌─ Memory Branching (Git for Agent Memory) ───────────┐ │
│  │  Branches · Merge · PRs · Diff · Access Control      │ │
│  │  Tags/Snapshots · Rollback · Cherry-pick · Fork      │ │
│  │  Branch-Level Permissions (user/team/API key)        │ │
│  │  Sacred Timeline (3D visualization)                   │ │
│  └──────────────────────────────────────────────────────┘ │
│                                                          │
│  ┌─ Multi-Tenant SaaS ─────────────────────────────────┐ │
│  │  Accounts · RBAC · Scoped API Keys · Audit · Quotas │ │
│  │  Row-Level Security · OAuth/OIDC · Rate Limiting     │ │
│  └──────────────────────────────────────────────────────┘ │
│                                                          │
│  ┌─ Immutable Decision Trace Store ────────────────────┐ │
│  │  Durable Causal Chains · Cryptographic Integrity     │ │
│  │  LLM Call Spans · Token/Cost Tracking · Replay       │ │
│  │  Enriched Traces · Error Events · State Diff         │ │
│  │  OpenTelemetry Export · Precedent Search              │ │
│  └──────────────────────────────────────────────────────┘ │
│                                                          │
│  ┌─ Cross-System Ingestion ───────────────────────────┐   │
│  │  Webhooks · HMAC Verification · Deduplication        │ │
│  │  PagerDuty · Slack · GitHub · Jira Connectors        │ │
│  └──────────────────────────────────────────────────────┘ │
│                                                          │
│  ┌─ Automated Pattern Detection ──────────────────────┐   │
│  │  Recurring Failures · Hot Entities · Stale Clusters  │ │
│  │  Confidence Drift · Configurable Alert Rules         │ │
│  └──────────────────────────────────────────────────────┘ │
│                                                          │
│  ┌─ Intelligence Layer ─────────────────────────────────┐ │
│  │  Extraction · Critic · Distiller · Safety · Retrieval │ │
│  │  Learned Ranking · Confidence Calibration · ML Export │ │
│  │  LLM Importance Scoring · TierWorker (background)    │ │
│  │  Auto Entity/Relationship Extraction from Traces     │ │
│  └──────────────────────────────────────────────────────┘ │
│                                                          │
│  ┌─ Dashboard ──────────────────────────────────────────┐ │
│  │  Memory Explorer · Interactive Causal Graph           │ │
│  │  Trace Detail with Enriched Context · Agent Graph     │ │
│  │  Sacred Timeline (3D) · Branch Manager · PR Viewer   │ │
│  │  API Key Console · Audit Viewer · Usage Analytics    │ │
│  │  Cursor plugin (hosted MCP to Pro API)              │ │
│  │  Pattern Detection · Memory Tiers · Snapshots        │ │
│  │  Team Management                                    │ │
│  └──────────────────────────────────────────────────────┘ │
│                                                          │
├──────────────────────────────────────────────────────────┤
│                    AMFS OSS (Apache 2.0)                  │
│                                                          │
│  CoW Engine · Memory Types · Provenance Tiers             │
│  Git-like Timeline (event logging on main branch)        │
│  Branch-Aware Read/Write/List/Search (main default)      │
│  Temporal Queries · Session-Level Causal Explainability   │
│  Enriched Decision Traces · Query/Error Event Tracking    │
│  Composite Recall Scoring · Multi-Scope Search            │
│  Knowledge Graph (auto-materialized edges)               │
│  Hybrid Search (full-text + semantic + composite)         │
│  Tiered Memory (Hot/Warm/Archive) · Priority Scoring      │
│  Frequency-Modulated Decay · Cortex Drift Gate            │
│  ImportanceEvaluator ABC · Progressive Retrieval          │
│  Per-Agent Memory Graph · Agent Activity Timeline         │
│  Connector Framework · CLI · Built-in Connectors          │
│  Webhook Receiver · Adapters (FS, Postgres, S3)           │
│  HTTP/REST API · MCP Server · Python SDK · TS SDK · CLI   │
│  Docker + Helm Charts                                     │
└──────────────────────────────────────────────────────────┘

Feature Comparison

CapabilityOSSPro
Core Memory Primitives
Copy-on-Write versioningYesYes
Confidence scoring with outcome back-propagationYesYes
Memory types (fact, belief, experience)YesYes
Type-specific confidence decayYesYes
Provenance tiers (production-validated → manual)YesYes
Temporal queries (history)YesYes
Session-level causal explainability (explain)YesYes
Enriched decision traces (query events, error events, state diff)YesYes
Session timing and per-operation latency trackingYesYes
Per-agent memory graph and activity timelineYesYes
Composite recall scoringYesYes
Multi-scope searchYesYes
Knowledge graph (auto-materialized from writes/outcomes)YesYes
Hybrid search (full-text + semantic + composite scoring)YesYes
Frequency-modulated decay (4-signal model)YesYes
Tiered memory (Hot / Warm / Archive)YesYes
Progressive retrieval (depth)YesYes
Importance evaluator hook (ImportanceEvaluator ABC)YesYes
Cortex drift gate (skip-redundant recompilations)YesYes
LLM importance scoring (3-dimension)Yes
Background tier recomputation (TierWorker)Yes
Git-like Timeline
Event logging (writes, outcomes, reads, briefs) on mainYesYes
Branch-aware read/write/list/search (branch parameter)YesYes
Timeline API endpoint per agentYesYes
MCP amfs_timeline toolYesYes
Memory Branching (Pro)
Create / close / list branchesYes
Diff branch vs. mainYes
Merge branches (fast-forward, ours, theirs)Yes
Branch access control (grant/revoke per user/team/API key)Yes
Access enforcement on non-main read/writeYes
Pull Requests with review workflowYes
Tags / named snapshotsYes
Rollback to tag or timestampYes
Cherry-pick entries across branchesYes
Fork agent memory to a new agentYes
Sacred Timeline (3D interactive visualization)Yes
Connectors
Connector framework (ConnectorABC)YesYes
Connector CLI (amfs connector install/list/remove)YesYes
Built-in connectors (PagerDuty, GitHub, Slack, Jira)YesYes
Webhook receiver (/api/v1/webhooks/{name})YesYes
Adapters & Infrastructure
Filesystem adapterYesYes
Postgres adapter (triggers, LISTEN/NOTIFY)YesYes
S3 adapterYesYes
HTTP/REST API serverYesYes
Docker + Docker Compose + Helm chartsYesYes
MCP server (12 tools)YesYes
SDKs & Clients
Python SDK (full parity)YesYes
TypeScript SDK (full parity)YesYes
CLI toolsYesYes
Framework integrations (CrewAI, LangGraph, etc.)YesYes
Bundled lightweight embedderYesYes
Multi-Tenant SaaS (Pro)
Account-level tenant isolation (RLS)Yes
RBAC (Admin, Developer, User)Yes
Scoped API keys with entity-path permissionsYes
Permissioned inference (scope-filtered search/explain)Yes
OAuth 2.0 / OIDC for dashboard usersYes
Append-only audit loggingYes
Usage quotas + sliding-window rate limitingYes
Immutable Decision Trace Store (Pro)
Durable causal chains across sessionsYes
Cryptographic signing (HMAC-SHA256) and Merkle chain linkingYes
LLM call span tracking (model, tokens, cost, latency)Yes
Write events, tool calls, and agent interaction recordingYes
OpenTelemetry export (GenAI semantic conventions)Yes
Historical explain(outcome_ref)Yes
search_traces / precedent search APIYes
Cross-agent, cross-session trace queriesYes
Cross-System Ingestion
Generic webhook endpoint with HMAC verificationYesYes
Payload deduplication (idempotency)YesYes
Pluggable transform pipeline with pattern matchingYesYes
PagerDuty incident connectorYesYes
Extensible connector framework (ConnectorABC)YesYes
Automated Pattern Detection (Pro)
Recurring failure detection across causal chainsYes
Hot entity detection (disproportionate activity)Yes
Stale cluster detection (unvalidated entries)Yes
Confidence drift detection (outlier entries)Yes
Configurable alert rules with cooldown suppressionYes
Alert callbacks (Slack, PagerDuty, email routing)Yes
Intelligence Layer (Pro)
LLM-driven memory extractionYes
Auto entity/relationship extraction from tracesYes
Automated memory criticYes
Memory distillation & bootstrap setsYes
Memory safety validationYes
Multi-strategy retrieval with learned ranking (RRF + ML)Yes
Learned retrieval ranking from outcome dataYes
Adaptive confidence calibrationYes
Training data export (SFT, DPO, reward model)Yes
Dashboard (Pro)
Memory explorer with interactive causal graphYes
Decision trace explorer with enriched context and causal graphYes
Per-agent memory graph and activity timelineYes
Pattern detection dashboard with severity indicatorsYes
Team & user management with rolesYes
API key management console with scopesYes
Audit log viewer with search/filterYes
Usage analytics & quota monitoringYes
Snapshot capture, compare, and exportYes
Memory Tiers dashboard (distribution, entry browser)Yes
Extended MCP server (Pro tools)Yes

Hosted SaaS Tiers (SenseLab Cloud)

Stripe, subscriptions, and the tenant control plane are implemented in the private SenseLab amfs-internal repository (not in the open-source tree). Self-serve tiers are summarized below; see also Hosted billing & metering.
TierIndicative priceIncluded ops / monthNotes
Free$01KSolo; no team invites; hard cap
Starter$2925KEntry tier; auto top-up near limit (paid)
Pro$14950KProduction agent teams
Teams$449300KOrg scale; lower overage unit / 10K ops
EnterpriseCustomCustomSSO, committed volume, SLA
Ops (hosted): read-like calls typically 1 op, writes 2 ops, commit_outcome 0 ops. The HTTP + MCP mapping lives in the metering guide linked above. Onboarding: Users must choose a plan (including Free) before the dashboard unlocks; paid plans complete Stripe Checkout and activation via webhooks (not browser success URL alone).

OSS Layer — What’s Included

The open-source layer (github.com/raia-live/amfs) provides the full memory primitive: read, write, version, search, and learn from outcomes. It includes a git-like timeline engine, branch-aware operations, a connector framework, composite recall scoring, multi-scope search, a knowledge graph auto-materialized from writes and outcomes, hybrid search (full-text + semantic + composite scoring), tiered memory (Hot/Warm/Archive with progressive retrieval), frequency-modulated decay (4-signal model), and a Cortex drift gate that avoids redundant digest recompilations.

Packages

PackageDescription
amfs-coreCoW engine, models, read tracking, causal tagging, default embedder, tiering (PriorityScorer, TierAssigner), importance (ImportanceEvaluator ABC)
amfs (SDK)AgentMemory class — read, write, list, search, history, timeline, explain, commit_outcome, record_context
amfs-adapter-filesystemJSON-file-based adapter for local development
amfs-adapter-postgresPostgreSQL adapter with PL/pgSQL triggers for outcome propagation and LISTEN/NOTIFY for watch
amfs-adapter-s3Amazon S3 / S3-compatible adapter for cloud-native storage
amfs-http-serverREST API server (FastAPI/Uvicorn) for remote access, branch-aware endpoints
amfs-mcp-serverMCP server exposing 12 tools: amfs_read, amfs_write, amfs_search, amfs_retrieve, amfs_list, amfs_stats, amfs_commit_outcome, amfs_record_context, amfs_history, amfs_explain, amfs_graph_neighbors, amfs_timeline
amfs-cliTerminal tools for inspecting, diffing, snapshotting, and restoring memory
@amfs/sdkTypeScript SDK (full parity with Python: ReadTracker, search, stats, history, explain, recordContext)

Key Primitives

Memory Types — Every entry is classified as fact, belief, or experience, each with its own decay rate:
from amfs import AgentMemory, MemoryType

mem = AgentMemory(agent_id="my-agent")

mem.write("svc", "config", {"pool": 10}, memory_type=MemoryType.FACT)
mem.write("svc", "hypothesis", "Likely N+1", memory_type=MemoryType.BELIEF)
mem.write("svc", "action-log", "Added index", memory_type=MemoryType.EXPERIENCE)
Provenance Tiers — Entries are automatically ranked by quality based on how they were created:
from amfs import ProvenanceTier

entry = mem.read("svc", "pattern")
if entry.provenance_tier == ProvenanceTier.PRODUCTION_VALIDATED:
    print("Validated by production outcomes")
Temporal Queries — Retrieve the full version history of any entry:
versions = mem.history("svc", "retry-pattern", since=last_week)
Causal Explainability — See which entries were read and how they connect to outcomes:
chain = mem.explain()

Pro Layer — What’s Added

The Pro layer wraps the OSS layer — it never replaces it. All Pro features read from and write to the same memory store using the same adapters and SDK.

Memory Branching — Git for Agent Memory

The defining Pro feature. While OSS provides the git-like timeline engine (event logging on main), Pro adds the full branching model — branches, merge, pull requests, access control, tags, rollback, cherry-pick, and fork. Agents create isolated branches to experiment, then merge changes back into main after review.

Memory Branching Deep Dive

Full documentation on branches, merge strategies, pull requests, access control, tags, rollback, cherry-pick, fork, and the Sacred Timeline visualization.

Multi-Tenant SaaS Foundation

The foundation for running AMFS as a hosted service. Every API request is authenticated, authorized, scoped, and audited. Includes account-level Postgres RLS isolation, three-role RBAC (Admin/Developer/User), scoped API keys with entity-path permissions, and sliding-window rate limiting.

Multi-Tenant SaaS

Account isolation, RBAC, scoped API keys, OAuth/OIDC, audit logging, rate limiting, and usage quotas.

Immutable Decision Trace Store

The OSS explain() works within the active session and captures enriched trace data (query events, error events, session timing, state diffs). Pro builds on this with persistent, cryptographically signed, immutable traces — the full causal chain is queryable forever. Includes LLM call span tracking with token/cost analytics and OpenTelemetry export.

Decision Trace Store

Durable causal chains, cryptographic integrity, LLM call spans, precedent search, and OpenTelemetry export.

Cross-System Ingestion

Automatically ingest events from external systems into AMFS memory. The connector framework transforms raw events into AMFS write() or record_context() operations, with HMAC verification, deduplication, and pluggable transforms.

Cross-System Ingestion

Webhook ingester, connector framework, and built-in connectors for PagerDuty, Slack, GitHub, and Jira.

Automated Pattern Detection

Continuously analyze your memory store to surface recurring patterns, anomalies, and risks — before they become incidents. Detects recurring failures, hot entities, stale clusters, and confidence drift with configurable alert rules and cooldown-based suppression.

Pattern Detection

Pattern types, severity levels, alert rules, cooldown suppression, and callback routing.

Intelligence Layer

LLM-powered tools for memory quality and retrieval: extraction (raw text → structured operations), memory critic (toxic/stale/contradictory detection), distiller (compact stores into bootstrap sets), safety validator (pre-write guardrails), multi-strategy retrieval with learned ranking, adaptive confidence calibration, and training data export (SFT, DPO, reward model).

Intelligence Layer

Extraction, critic, distiller, safety, retrieval, ML ranking, calibration, and training data export.

Dashboard

A web dashboard (Next.js 15 + React 19) for exploring memory, visualizing decisions, and managing your AMFS deployment.
PageDescription
OverviewAccount-wide stats, recent activity, health indicators, live SSE status
EntitiesBrowse entities, view entries with confidence badges, version history, provenance details
TracesEnriched trace cards with causal entries, external contexts, query/error events, session timing, outcome badges, and search/filter
Trace DetailFull trace view with interactive causal graph (D3), timeline, entry snapshots, and state diff
AgentsPer-agent overview with memory graph, activity, and Git Repository section
IncidentsIncident timeline with causal chain drill-down
PatternsDetected pattern dashboard with severity indicators and resolution tracking
TeamsTeam CRUD with member management (admin, developer, viewer roles)
SnapshotsMemory snapshot capture, comparison, and JSON export
API KeysKey management console with scopes, rate limits, expiry, and usage
Audit LogSearchable, filterable log of all state-changing operations
Usage & QuotasQuota progress bars, request metrics, top agents/entities breakdown
Pro ToolsRetrieval playground, critic panel, distiller view, calibration dashboard, training data export

Dashboard Guide

Full walkthrough of every dashboard page, the Agent Git Repository section, and the Sacred Timeline.

Architecture

┌─────────────────────────────────────────────────────────────┐
│                        Agent / IDE                          │
└────────────────────────────┬────────────────────────────────┘

              ┌──────────────┴──────────────┐
              ▼                             ▼
   ┌─────────────────┐          ┌───────────────────────────┐
   │  MCP Server OSS │          │  MCP Server Pro            │
   │  (12 tools)     │          │  (12 + 8 tools)            │
   └────────┬────────┘          │                           │
            │                   │  Branching Layer:         │
            │                   │  Branches · Merge · PRs   │
            │                   │  Access Control · Tags    │
            │                   │  Rollback · Fork          │
            │                   │                           │
            │                   │  Multi-Tenant Layer:      │
            │                   │  Auth · RBAC · RLS        │
            │                   │  Scopes · Audit · Quotas  │
            │                   │  Rate Limiting             │
            │                   │                           │
            │                   │  Decision Traces:         │
            │                   │  Recorder · Store · Search │
            │                   │                           │
            │                   │  Ingestion Layer:         │
            │                   │  Webhooks · Connectors    │
            │                   │  PagerDuty · Slack · etc. │
            │                   │                           │
            │                   │  Pattern Detection:       │
            │                   │  Detector · AlertManager  │
            │                   │                           │
            │                   │  Intelligence Layer:       │
            │                   │  Critic · Distiller        │
            │                   │  Safety · Retrieval        │
            │                   │                           │
            │                   │  ML Layer:                │
            │                   │  Ranking · Calibration    │
            │                   │  Training Data Export     │
            │                   └─────────────┬─────────────┘
            │                                 │
            └──────────┬──────────────────────┘

            ┌─────────────────┐
            │   AgentMemory   │  ← Python / TypeScript SDK
            │   (CoW Engine)  │
            │   + Timeline    │  ← Git-like event log
            └────────┬────────┘

           ┌─────────┼─────────┐
           ▼         ▼         ▼
      Filesystem  Postgres    S3
       Adapter    Adapter   Adapter
The Pro API layer wraps AgentMemory and CoWEngine with authentication, tenant isolation, scope enforcement, rate limiting, and audit logging — all backed by Postgres RLS for defense-in-depth.

When to Use Which

ScenarioRecommendation
Single developer, local memoryOSS
Small team sharing via PostgresOSS
CI/CD outcome trackingOSS
Remote HTTP API accessOSS
S3-based cloud storageOSS
Git-like timeline (event logging on main branch)OSS
Branch-aware read/write (main branch only)OSS
Create branches and share memory selectivelyPro (branching)
Branch access control per user/team/API keyPro (branching)
Merge branches, resolve conflictsPro (branching)
Pull request workflow for memory changesPro (branching)
Rollback memory to a point in time or tagPro (branching)
Fork agent memory to new agentsPro (branching)
Sacred Timeline 3D visualizationPro (dashboard)
Multi-tenant SaaS with account isolationPro
Scoped API keys per agent/toolPro
Compliance audit loggingPro
Enriched decision traces with error/query events and session timingOSS
Per-agent memory graph and activity timelineOSS
Immutable, cryptographically signed tracesPro
LLM call span tracking with token/cost analyticsPro
OpenTelemetry export for existing observability stacksPro
Auto entity/relationship extraction from tracesPro
Precedent search (“how did we handle similar situations?”)Pro
Auto-ingest PagerDuty/Slack/GitHub eventsPro (connectors)
Detect recurring failure patterns automaticallyPro (pattern detection)
Alert on stale memory or confidence driftPro (alert manager)
Need memory quality auditing at scalePro
Want LLM-driven extraction from conversations/logsPro
Onboarding new agents with curated knowledgePro (bootstrap sets)
Compliance or safety requirements for memory writesPro (safety validator)
Advanced retrieval across large storesPro (multi-strategy + learned ranking)
Retrieval that improves as outcomes accumulatePro (ML layer)
Need optimized confidence multipliers per entityPro (adaptive calibration)
Want to fine-tune agents on your decision historyPro (training data export)
Team dashboard for non-technical usersPro (dashboard)

Getting Started

OSS Quick Start

Install with pip install amfs and start writing memory in minutes.

Pro Access

Contact us at raia.live for Pro access and setup instructions.