You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A vendor-neutral JSON schema for portable AI agent memories.
3
+
**Your AI agent has 6 months of memories in System A. You want to try System B. Without MIF, you lose everything. With MIF:**
4
4
5
-
## The Problem
6
-
7
-
30+ AI memory systems exist — mem0, Zep, Cognee, Letta, basic-memory, shodh-memory, and more. Each stores fundamentally the same data (id, content, timestamp, type, metadata) in incompatible formats. There is no way to move memories between systems.
8
-
9
-
**MIF solves memory portability.** Like vCard for contacts or iCalendar for events — a minimal envelope so memories can move between providers.
10
-
11
-
## What MIF Is
12
-
13
-
- A JSON schema for exporting and importing AI agent memories
14
-
- A minimal core: `id`, `content`, `created_at` — that's it for a valid memory
15
-
- Optional knowledge graph support for systems that track entity relationships
16
-
- Vendor extensions so systems preserve proprietary metadata without polluting the core
17
-
- Privacy/PII redaction built into the export metadata
- Not a specification for how memory systems work internally
22
-
- Not a database format or storage engine
23
-
- Not opinionated about retrieval, embeddings, or ranking strategies
12
+
## What is MIF?
24
13
25
-
## Quick Example
14
+
A vendor-neutral JSON envelope for AI agent memories. Like vCard for contacts or iCalendar for events — a minimal schema so memories move between providers without data loss.
26
15
27
-
A minimal conforming MIF document:
16
+
**3 required fields.** That's it.
28
17
29
18
```json
30
19
{
@@ -39,64 +28,132 @@ A minimal conforming MIF document:
39
28
}
40
29
```
41
30
42
-
A full document can include memory types, entities, embeddings, knowledge graph, vendor extensions, and privacy metadata. See [examples/](./examples/) for complete samples.
31
+
Everything else — memory types, tags, entities, embeddings, knowledge graph, vendor extensions — is optional. Add what you have, ignore what you don't.
32
+
33
+
## Install
34
+
35
+
```bash
36
+
pip install mif-tools # core (zero dependencies)
37
+
pip install mif-tools[validate] # with JSON Schema validation
MIF v2.0 is the first public release. The "v2" numbering reflects internal iterations during development in shodh-memory. There is no public v1 specification.
0 commit comments