# Repository Briefing: Mirix-AI/MIRIX
> Source: https://repoforai.com/repo/Mirix-AI/MIRIX (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Mirix-AI/MIRIX
- **Official Docs / Website**: https://mirix.io/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: B+ (73/100 · Maintenance 31/35 · Adoption 16/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 3,525 ★ total (+0 24h / +5 7d) · 277 forks
- **Topics**: `llm-agents`, `llm-memory`, `memory-agents`, `personal-assistant`
- **When to Use**: Best for: Teams adding persistent memory to an existing agent that needs to recall user facts, retrieve past tool outcomes and reuse task experience across sessions. Skip if: You only need document retrieval, cannot operate PostgreSQL and Redis, or need offline inference without separately validating local generation and embedding endpoints.

## Overview
```text
### Architecture & Core Mechanics
MIRIX separates long-term memory from the agent that serves the user. A client submits user- and session-scoped messages, including tool calls and results, and a configured meta-agent coordinates six specialized memory agents: core, episodic, semantic, procedural, resource and Knowledge Vault. The caller can retrieve relevant memories against a new conversation. The Python stack includes FastAPI, Uvicorn and SQLAlchemy; Docker Compose provisions the API, React dashboard, PostgreSQL with pgvector and Redis Stack.

Optional Neo4j graph memory changes the retrieval path for episodic and semantic memories. It represents entities as anchors and facts as n-ary frames with named roles, each backed by citations to source memory rows. The graph is off by default, so teams can adopt the REST API or Python client without taking on a graph database.

### Key Capabilities & Differentiators
MIRIX supports text, images, voice and screen captures, though screen observation belongs to its earlier desktop-assistant positioning rather than being a prerequisite for API integration. PostgreSQL supports BM25 full-text search alongside vector similarity. The SDK example configures generation and embeddings separately using Google AI, with `gemini-3.6-flash` and `gemini-embedding-001` at 768 dimensions for embeddings. OpenAI and Anthropic SDKs are listed as dependencies, but that alone does not establish which models are supported in each role.

`POST /memory/auto_dream` reviews and consolidates selected memories. `experience` covers episodic, semantic and Knowledge Vault entries, while procedural mode can distill recent sessions for a specified meta-agent. `dry_run` reports what would be processed without applying updates. With graph memory enabled, Auto-Dream refines the graph by default; set `graph_only` to `false` when the run should also process stored memories.

### Trade-offs & Limitations
Compared with a single vector store, MIRIX distinguishes what happened, what is known and what an agent learned to do. That separation is useful when an assistant must recall user facts and reuse prior task experience, but it adds model configuration and consolidation behavior to test. Neo4j adds source provenance for extracted facts at the cost of another datastore and index to operate. Start without it unless provenance or cross-entity retrieval is important to the workload.

Self-hosting puts long-term storage under operator control, not necessarily inference: configured remote providers still process the data sent to them. Budget for model calls as well as database growth, and test whether consolidation preserves important details before allowing it to write. The evaluation names mem0, Graphiti and other baselines across conversational recall and document QA, but supplies no numeric scores to support a comparative ranking.

### Hardware & Deployment Guide
Start with `docker compose up -d --pull always`. The documented local endpoints are the dashboard on port 5173 and API on 8531. Create an API key in the dashboard, export `MIRIX_API_KEY`, and install `mirix-client` for Python integration. The sample uses separately configured remote generation and embedding endpoints, so it does not require local GPU inference and is not an air-gapped setup.

Graph mode requires Neo4j 5.23 or newer; the `graph` Compose profile supplies Neo4j 5.26 with APOC. Set `MIRIX_NEO4J_PASSWORD` and enable `MIRIX_ENABLE_GRAPH_MEMORY`. Fresh databases get the schema at startup, but existing databases require explicit SQL migrations; some concurrent index steps must run outside a transaction. The v0.1.3 release added multi-user support to the SDK and desktop app, while v0.1.6 marked the shift to a standalone memory API for other agents.
```

## Key Capabilities
```text
- Memory model: Six dedicated agents manage core, episodic, semantic, procedural, resource and Knowledge Vault memories.
- Ingestion: `MirixClient.add` accepts session-scoped conversations with tool calls and tool results; `retrieve_with_conversation` retrieves against the current conversation.
- Search: PostgreSQL-native BM25 and vector similarity with pgvector; Redis Stack is provisioned for caching and vector search.
- Provenance: Optional Neo4j hypergraph represents n-ary facts with named entity roles and citations to source memory rows.
- Consolidation: `POST /memory/auto_dream` supports per-component modes, an `experience` mode and `dry_run` inspection without writes.
- Deployment: Docker Compose starts the API, React dashboard, PostgreSQL and Redis Stack; existing schemas need explicit SQL migrations.
```

## Quick Start / Clone
```bash
docker compose up -d --pull always
```
