AutoMem
Memory framework
First committed by jack-arturo
Published in verygoodplugins/automem. Publisher page
827 GitHub stars
What it is
Long-term memory for AI assistants. Graph + vector store that recalls decisions, relationships, and context across sessions.
AutoGineer overview, from the brain’s own files
AutoMem is a memory service designed to provide AI assistants with persistent, long-term recall. By combining a graph database (FalkorDB) for structured relationships and a vector database (Qdrant) for semantic search, it enables agents to retrieve not just similar snippets, but the context and reasoning behind past decisions. It supports a wide range of AI tools via the Model Context Protocol (MCP) and a REST API, allowing a single memory store to be shared across multiple platforms like Claude, Cursor, and GitHub Copilot. The system includes automated consolidation cycles to manage memory relevance and importance over time, ensuring that the agent's knowledge base remains efficient as history grows.
How it works
Memory model: Hybrid
AutoGineer overview, from the brain’s own files
AutoMem operates as a service with two primary storage layers: FalkorDB for storing memories as nodes with typed relationships, and Qdrant for storing vector embeddings. When an AI client requests a recall, the system performs a hybrid query that combines semantic similarity, graph traversal, and temporal alignment to rank results. A background enrichment pipeline and consolidation engine process memories to maintain relevance, while the MCP bridge allows various AI agents to interact with the memory service locally or remotely.
| Folder | Role | Files |
|---|---|---|
| .github | agent-config | 9 |
| docs | docs | 18 |
| scripts | scripts | 39 |
| tests | tests | 78 |
| .railway | folder | 2 |
| automem | folder | 70 |
| benchmarks | folder | 9 |
| mcp-sse-server | folder | 14 |
The agent reads
- docs/COMPARISON.md evidence: README.md
The agent writes
- benchmarks/EXPERIMENT_LOG.md evidence: AGENTS.md
- docs/ evidence: AGENTS.md
Requirements
Runtimes: Python
Databases: FalkorDB, MongoDB, PostgreSQL, Qdrant, Redis, SQLite
API keys (by name): ADMIN_API_TOKEN, AUTOMEM_API_TOKEN, AUTOMEM_TEST_ADMIN_TOKEN, AUTOMEM_TEST_API_TOKEN, CLASSIFICATION_API_KEY, OPENAI_API_KEY, OPENROUTER_API_KEY, QDRANT_API_KEY, VOYAGE_API_KEY
Works with: Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Kiro, OpenCode, Amp, Cline, JetBrains Junie, Devin (ex-Windsurf)
Set it up
This brain runs code automatically: 1 script. Review Makefile before opening the folder in Claude Code. No step below turns a hook on for you.
Makefile:echo "🔧 Setting up development environment..."; bash scripts/bootstrap_dev.sh; echo "✅ Virtual environment ready!"; echo "💡 Run 'source .venv/bin/activate' to activate"
- Not scanned by AutoGineerThe author’s README also describes installing it from a clone of its repository. Read its install section: AutoGineer did not scan that path. https://github.com/verygoodplugins/automem/blob/1a7ba1a6afe69835f62ad7f6013e33301d1ab83e/README.md#run-it
First committed by jack-arturo. Published in verygoodplugins/automem. Licence: MIT License.
Usage
AutoGineer overview, from the brain’s own files
- Connect local AI tools like Claude Desktop or Cursor to the AutoMem service via the MCP bridge.
- Use the REST API to programmatically store decisions, preferences, and project context.
- Query the memory service to retrieve the reasoning behind past technical choices or project milestones.
- Deploy the memory service on local infrastructure or cloud platforms like Railway for persistent agent access.
- “Why did we choose PostgreSQL?”
- The agent retrieves the decision node, the rationale, and the considered alternatives, providing the context behind the architectural choice.
- “What are our current preferences for message queues?”
- The agent traverses the graph to identify the relationship between Kafka and RabbitMQ, surfacing the team's preference for 'boring technology'.
Documentation by jack-arturo
<p align="center"> <img src="https://automem.ai/img/G_Vd7EYWYAM_3SF.jpeg" alt="AutoMem" width="600" /> </p>
<p align="center"> <a href="https://www.npmjs.com/package/@verygoodplugins/mcp-automem"><img src="https://img.shields.io/npm/v/@verygoodplugins/mcp-automem?label=mcp-automem" alt="npm version" /></a> <a href="LICENSE"><img src="https://img.shields.io/github/license/verygoodplugins/automem" alt="License" /></a> <a href="https://automem.ai/discord"><img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white" alt="Discord" /></a> <a href="https://x.com/automem_ai"><img src="https://img.shields.io/badge/X-@automem__ai-000000?logo=x&logoColor=white" alt="X" /></a> <a href="https://automem.ai/benchmarks"><img src="https://img.shields.io/badge/LoCoMo%20(AMB)-85.1%25-success" alt="LoCoMo on the neutral Agent Memory Benchmark" /></a> <a href="benchmarks/EXPERIMENT_LOG.md#results"><img src="https://img.shields.io/badge/LongMemEval%20full-87.0%25-blueviolet" alt="LongMemEval full on AutoMem's internal harness: 87.0%" /></a> <a href="https://automem.ai/benchmarks"><img src="https://img.shields.io/badge/BEAM%2010M%20(AMB)-57.4%25-success" alt="BEAM 10M on the neutral Agent Memory Benchmark" /></a> <a href="https://railway.com/deploy/automem-ai-memory-service?referralCode=VuFE6g&utm_medium=integration&utm_source=github&utm_campaign=generic"><img src="https://img.shields.io/badge/Deploy%20on-Railway-0B0D0E?logo=railway&logoColor=white" alt="Deploy on Railway" /></a> </p>
<p align="center"> <strong>Long-term memory for AI assistants — fast, private, and yours.</strong> </p>
AutoMem
AutoMem gives your AI a memory that survives the chat.
Save the decisions, preferences, notes, and context that matter. The next time you open Claude, Cursor, Codex, ChatGPT, or another connected assistant, it can bring back the right details instead of making you repeat yourself.
Ask, “Why did we choose PostgreSQL?” and AutoMem can return the decision, the alternatives you considered, the principle behind it, and the work that followed — not just a pile of similarly worded snippets.
Why AutoMem feels different
No LLM call in the middle of recall. AutoMem looks up memories directly through its graph and vector index. That keeps normal retrieval fast and avoids an extra generative-LLM charge every time your assistant needs context. It still uses embeddings — from Voyage, OpenAI, or a local provider — and optional enrichment can add more structure over time.
More than vector search. A vector match finds something similar; AutoMem also records typed relationships between memories. It can follow the connections between a decision, its rationale, and its consequences, so your assistant has a better chance of returning the why, not only the words it recognizes.
One memory across your tools. Use the local MCP bridge with Claude Desktop, Cursor, Claude Code, Codex, Copilot, and more. For cloud agents, Remote MCP connects the same service to ChatGPT Developer Mode, Claude.ai, and ElevenLabs over HTTPS. Your memory is not locked to one chat app.
Own the data and the setup. Run AutoMem locally with Docker, on your own infrastructure, or as a small Railway service group. It exposes both MCP and a REST API, so it fits into the tools and workflows you already use.
Proven where long context gets hard
On the independent Agent Memory Benchmark's BEAM long-context tests, AutoMem scored 57.4% at 10 million source tokens while giving the answerer an average of only ~2.6–4.8k retrieved tokens. That is the kind of efficiency that lets memory stay useful as an agent's history grows.
The full picture — test setup, raw outputs, methodology, historical runs, and reproduction commands — is in automem.ai/benchmarks and benchmarks/EXPERIMENT_LOG.md.
How it works
AutoMem combines two storage layers behind a single API:
FalkorDB stores memories as nodes with 11 typed relationships between them. The graph is the canonical record.
Qdrant stores an embedding for every memory. Recall is a hybrid query — semantic similarity, graph traversal, temporal alignment, tag overlap, and importance — ranked by a 9-component score.
flowchart TB
subgraph service [AutoMem Service Flask]
API[REST API<br/>Memory Lifecycle]
Enrichment[Background Enrichment<br/>Pipeline]
Consolidation[Consolidation<br/>Engine]
Backups[Automated Backups<br/>Optional]
end
subgraph storage [Dual Storage Layer]
FalkorDB[(FalkorDB<br/>Graph Database)]
Qdrant[(Qdrant<br/>Vector Database)]
end
Client[AI Client] -->|Store/Recall/Associate| API
API --> FalkorDB
API --> Qdrant
Enrichment -->|11 edge types<br/>Pattern nodes| FalkorDB
Enrichment -->|Semantic search<br/>1024-d vectors| Qdrant
Consolidation --> FalkorDB
Consolidation --> Qdrant
Backups -.->|Optional| FalkorDB
Backups -.->|Optional| QdrantIf Qdrant is unavailable, the graph still serves recall in a degraded mode. If FalkorDB is down, the API returns 503 — the graph is the source of truth.
Multi-hop bridge discovery
Ask "why boring tech for Kafka?" and AutoMem doesn't just match the word "Kafka". It traverses the graph from the seed memories to find the bridge that connects them:
Seed 1: "Migrated to PostgreSQL for operational simplicity"
Seed 2: "Evaluating Kafka vs RabbitMQ for message queue"
Bridge: "Team prefers boring technology — proven, debuggable systems"
Both seeds carry an EXEMPLIFIES edge to the bridge memory. AutoMem ranks the bridge above the seeds and surfaces it in the recall response, so the assistant answers with your reasoning, not isolated facts. Tune via expand_relations, relation_limit, and expansion_limit on GET /recall.
11 authorable relationship types
| Type | Use case | Example |
|---|---|---|
RELATES_TO | General connection | Bug report → Related issue |
LEADS_TO | Causal relationship | Problem → Solution |
OCCURRED_BEFORE | Temporal sequence | Planning → Execution |
PREFERS_OVER | User preferences | PostgreSQL → MongoDB |
EXEMPLIFIES | Pattern examples | Code review → Best practice |
CONTRADICTS | Conflicting info | Old approach → New approach |
REINFORCES | Supporting evidence | Decision → Validation |
INVALIDATED_BY | Outdated info | Legacy docs → Current docs |
EVOLVED_INTO | Knowledge evolution | Initial design → Final design |
DERIVED_FROM | Source tracking | Implementation → Spec |
PART_OF | Hierarchical structure | Feature → Epic |
Three more edge types are added automatically by the enrichment pipeline and consolidation engine: SIMILAR_TO, PRECEDED_BY, and DISCOVERED.
Memory consolidation, neuroscience-inspired
AutoMem implements biological memory consolidation cycles. Wrong rabbit holes fade naturally. Important memories with strong connections strengthen over time.
| Cycle | Frequency | Purpose |
|---|---|---|
| Decay | Daily | Exponential relevance scoring (age, access, connections, importance) |
| Creative | Weekly | REM-like processing that discovers non-obvious connections |
| Cluster | Monthly | Groups similar memories, generates meta-patterns |
| Forget | Off by default | Archives low-relevance memories (<0.2), deletes very old (<0.05) |
Tune intervals via CONSOLIDATION_*_INTERVAL_SECONDS. See docs/ENVIRONMENT_VARIABLES.md.
For more on the recall scoring formula, enrichment internals, and how AutoMem differs from RAG and pure vector databases, see docs/COMPARISON.md.
Research foundation
AutoMem implements techniques from peer-reviewed memory research:
HippoRAG 2 (Ohio State, 2025) — graph + vector hybrid for associative memory
A-MEM (2025) — Zettelkasten-inspired dynamic memory organization
MELODI (DeepMind, 2024) — gist-based memory compression
ReadAgent (DeepMind, 2024) — episodic memory for context extension
Full writeups, findings, and how AutoMem implements each → docs/RESEARCH.md.
Run it
Railway (60 seconds)
Recommended Railway projects run AutoMem as a small service group: automem (the API), automem-graph-viewer (the standalone UI), falkordb (graph), qdrant (vectors), and mcp-automem (the MCP bridge for ChatGPT, Claude.ai, and ElevenLabs). Services use pre-built Docker images and auto-redeploy on :stable, so Railway does not spend compute rebuilding source.
→ Full setup: INSTALLATION.md
Docker Compose (local)
git clone https://github.com/verygoodplugins/automem.git
cd automem
make dev| Service | URL | Purpose |
|---|---|---|
| AutoMem API | http://localhost:8001 | Memory REST API |
| FalkorDB | localhost:6379 | Graph database |
| Qdrant | localhost:6333 | Vector database |
| FalkorDB Browser | http://localhost:3000 | Local graph inspection UI |
Database and browser ports bind to localhost by default; the API binding is unchanged.
→ Full setup: INSTALLATION.md
Python (development)
make install
source .venv/bin/activate
PORT=8001 python app.pyRequires Python 3.10+ (3.12 recommended). → INSTALLATION.md
Contributing: feature PRs target the develop branch. main only moves via validated release merges, so users deploying from main (e.g. Railway auto-deploys) see one deploy per release instead of one per PR.
Connect your AI
| Client | Mode | Setup |
|---|---|---|
| Claude Desktop, Cursor, Claude Code, Codex, Copilot, Antigravity | Local MCP bridge | npx @verygoodplugins/mcp-automem setup |
| ChatGPT (developer mode), Claude.ai web/mobile, ElevenLabs Agents | Remote MCP (HTTPS) | docs/MCP_SSE.md |
| Anything else | Direct REST API | docs/API.md |
The MCP bridge is published as @verygoodplugins/mcp-automem. It handles client-specific config (rules files, hooks, templates) and proxies to your AutoMem service — local or Railway.
Direct API call:
import requests
token = "your-automem-api-token"
requests.post(
"https://your-automem.railway.app/memory",
headers={"Authorization": f"Bearer {token}"},
json={
"content": "Chose PostgreSQL over MongoDB for ACID compliance",
"type": "Decision",
"tags": ["database", "architecture"],
"importance": 0.9,
},
)Screenshots
<!-- CAPTURE CHECKLIST — replace each placeholder image once captured: 1. docs/img/graph-recall.png — FalkorDB browser at http://localhost:3000 showing a memory node with multiple typed edges visible (PREFERS_OVER, EXEMPLIFIES, RELATES_TO). Proves the graph is real. 2. docs/img/claude-recall.png — Claude Desktop conversation where the assistant cites a recalled memory inline, with the AutoMem MCP tool call visible in the trace. 3. docs/img/railway-services.png — Railway dashboard showing the production service group (automem, automem-graph-viewer, mcp-automem, qdrant, falkordb). A version exists as a GitHub user-attachment in INSTALLATION.md; capture a clean version and host it in-repo. Until each PNG exists, the table cells will render as broken-image icons on GitHub. -->
Screenshots will be added once the referenced in-repo image assets are available.
Known limitations
AutoMem is pre-1.0 and honest about its rough edges. The active ones for recall quality:
Tags are a hard gate, not a soft boost. Tags filter before scoring, so a memory missing the queried tag won't surface even on a perfect semantic match. Within a tag scope, high-importance off-topic memories can still over-rank — mitigated by the opt-in
RECALL_RELEVANCE_GATE, not yet on by default (#130).Temporal and preference updates. Recall doesn't yet reliably prefer the newest version of a conflicting fact, or fully resolve multi-session preference updates. The
RECALL_RECENCY_BIAS=autore-rank helps temporal-intent queries but stays opt-in pending broader validation (#158, #159).The MCP SSE bridge doesn't forward
state_mode. The HTTP recall API supports it; the SSE proxy doesn't pass it through yet (#172).Entity-node synthesis is experimental and off by default. First-class
Entitynodes (IDENTITY_SYNTHESIS_ENABLED) are gated off while people-entity word-pair noise is addressed (#181).
Docs, community, and license
Setup
Installation guide — Railway, Docker, development
Qdrant setup — vector database configuration
Environment variables — full reference
API and integration
API reference — endpoints, scoring, enrichment
Remote MCP — ChatGPT, Claude.ai, ElevenLabs
Migrations — embedding dimensions, 0.16.0 data migrations, MCP SQLite import
Research and comparison
Research foundation — papers and how AutoMem implements them
Comparison — vs. RAG, vector DBs, building your own
Benchmark history — internal LoCoMo / LongMemEval harness runs + the neutral AMB (BEAM + Core-3) summary
AMB head-to-head + reproducibility — neutral Agent Memory Benchmark results and the
AUTOMEM_REPRODUCE.md"run it yourself" recipe
Operations
Scripts — maintenance, migration, recovery, and eval tooling, by lifecycle
Testing guide — unit, integration, benchmarks
Community
automem.ai — official site
Discord — community chat
X / @automem_ai — updates
YouTube / @AutoJackBot — tutorials
GitHub issues — bugs and feature requests
Sibling repos
mcp-automem— universal MCP bridge / install funnelautomem-evals— exploratory recall-quality labautomem-graph-viewer— standalone graph visualization
MIT licensed. Deploy anywhere. No vendor lock-in.
CLAUDE.md
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
AutoMem is a Flask-based memory service that provides durable memory storage for AI assistants using FalkorDB (graph database) for relationships and Qdrant (vector database) for semantic search. The service gracefully degrades when Qdrant is unavailable, ensuring graph operations always succeed.
Development Commands
# Setup environment
make install # Create .venv, install deps, and keep venv -> .venv
source .venv/bin/activate
# Development
make dev # Start full stack (FalkorDB + Qdrant + API) via Docker
make stop # Stop local containers (keep volumes)
make test # Run pytest test suite (unit tests only)
make test-integration # Run all tests including integration tests (starts Docker)
make test-live # Run integration tests against live Railway server
make logs # Follow Flask API logs
make clean # Clean up Docker containers/volumes
# Benchmarking
make test-locomo # Run LoCoMo benchmark against local server
make test-locomo-live # Run LoCoMo benchmark against Railway server
# Recall Quality Lab (data-driven scoring tests)
make lab-clone # Clone production data to local Docker
make lab-queries # Generate test queries from local data
make lab-test CONFIG=baseline # Run recall test with a config
make lab-compare CONFIG=fix_v1 BASELINE=baseline # A/B compare configs
make lab-sweep PARAM=SEARCH_WEIGHT_VECTOR VALUES=0.20,0.30,0.40,0.50
# Code quality
black . # Format Python code
flake8 # Lint Python code
# Testing specific features
pytest # Run all tests
pytest tests/test_app.py -v # Run with verbose output
pytest -k test_store_memory # Run specific test by name
pytest tests/test_consolidation_engine.py::TestMemoryConsolidator # Run test class
# Deployment
make deploy # Deploy to Railway
make status # Check deployment statusAPI Endpoints
The automem/api module registers all HTTP routes as Flask blueprints—there are no routes in app.py (it only wires the app together via register_blueprints). It exposes ~31 distinct paths across these blueprint modules: memory, recall, graph, entity, admin, backup, enrichment, consolidation, stream, viewer, and health.
Core Memory Operations
POST /memory- Store a memory with content, tags, importance, metadata, and optional embeddingGET /recall- Recall memories via text search, vector similarity, time range, and tagsPATCH /memory/<id>- Update existing memory (content, tags, importance, metadata)DELETE /memory/<id>- Remove memory from both graph and vector storesGET /memory/by-tag- Filter memories by tags with importance/recency scoring
Relationship Management
POST /associate- Create relationships between memories (11 types available)
Consolidation & Analysis
POST /consolidate- Trigger memory consolidation tasks (decay, creative, cluster, forget, full)GET /consolidate/status- Check consolidation scheduler status and last run timesGET /startup-recall- Retrieve memories for startup contextGET /analyze- Analyze graph statistics and memory patterns
Enrichment
GET /enrichment/status- Inspect queue depth, worker state, and throughput metricsPOST /enrichment/reprocess- Force reprocessing of specific memories (requiresX-Admin-Token)
Health
GET /health- Service health check with database connectivity status
Architecture
Data Flow
Flask API (port 8001) - Request validation, orchestration, authentication
FalkorDB (port 6379) - Graph storage for Memory nodes and relationship edges
Qdrant (optional, port 6333) - Vector search for semantic similarity (dimension depends on embedding provider; see
VECTOR_SIZE)Consolidation Engine - Background processing for memory maintenance
FalkorDB Browser (local, port 3000) - FalkorDB built-in Web UI for local graph inspection
Memory Consolidation Engine
The consolidation.py module implements biological memory patterns:
Decay - Daily exponential relevance updates (
CONSOLIDATION_DECAY_INTERVAL_SECONDS=86400; fractional-day math keeps shorter intervals meaningful)Creative - Discovers hidden associations during "REM-like" processing (weekly,
604800s)Clustering - Semantic grouping to compress related memories (monthly,
2592000s)Forgetting - Archives low-importance memories (disabled by default;
CONSOLIDATION_FORGET_INTERVAL_SECONDS=0)
Scheduling is managed by ConsolidationScheduler with configurable intervals via environment variables.
Enrichment Pipeline
Queue-backed worker consumes
EnrichmentJobs created on each memory write and optional reprocess calls.Extracts entities (tools/projects/people/organisations/concepts) using spaCy when available, otherwise regex heuristics, and writes them to metadata plus entity tags (
entity:<type>:<slug>).Adds short summaries, timestamps (
enriched_at), and per-run metrics undermetadata.enrichment.Establishes temporal (
PRECEDED_BY) and semantic (SIMILAR_TO) edges, including symmetric cosine scores from Qdrant.Detects recurring patterns per memory type, strengthens shared
Patternnodes, and links memories viaEXEMPLIFIESrelationships with key terms.Metrics exposed at
GET /enrichment/statusinclude processed counts, last success/error, queue depth, and inflight jobs.
Relationship Types
AutoMem supports 11 relationship types with optional properties:
# Original core relationships
RELATES_TO # General relationship
LEADS_TO # Causal relationship
OCCURRED_BEFORE # Temporal relationship
# Enhanced PKG relationships
PREFERS_OVER # Preference relationship (context, strength, reason)
EXEMPLIFIES # Pattern example (pattern_type, confidence)
CONTRADICTS # Conflicting information (resolution, reason)
REINFORCES # Strengthens pattern (strength, observations)
INVALIDATED_BY # Superseded information (reason, timestamp)
EVOLVED_INTO # Evolution of knowledge (confidence, reason)
DERIVED_FROM # Derived knowledge (transformation, confidence)
PART_OF # Hierarchical relationship (role, context)Memory Type Classification
Memories are classified into types for better organization:
Decision- Strategic choices and rationalesPattern- Recurring behaviors and approachesPreference- User preferences and settingsStyle- Coding/writing style patternsHabit- Regular practices and workflowsInsight- Learned insights and discoveriesContext- Environmental and project contextMemory- Default base type
Embedding Generation
AutoMem uses a provider pattern with multiple embedding backends:
Provider Priority (Auto-Selection)
Voyage AI (
voyage:voyage-4) - IfVOYAGE_API_KEYis setRecommended provider for new deployments: multilingual quality with a generous free tier; see Voyage pricing for current limits and rates
High-quality embeddings with flexible model family (voyage-4, voyage-4-large, voyage-4-lite)
Supports output dimensions: 256, 512, 1024, 2048
Requires network and API key
OpenAI / OpenAI-compatible (
openai:text-embedding-3-small) - IfOPENAI_API_KEYis setAPI fallback when Voyage is not configured
Semantic embeddings via API, truncated to
VECTOR_SIZEvia Matryoshka (OpenAI native only)If
VECTOR_SIZE> 1536, auto-upgrades totext-embedding-3-large(setEMBEDDING_MODEL=text-embedding-3-largeto silence)Supports any OpenAI-compatible endpoint via
OPENAI_BASE_URL(OpenRouter, LiteLLM, vLLM, Azure, etc.) for both embeddings and classification/enrichment LLM callsThe
dimensionsparameter is only sent to OpenAI's own API; omitted for third-party providers
Ollama (
ollama:nomic-embed-text) - IfOLLAMA_BASE_URLorOLLAMA_MODELis configuredFully local, easy model swapping
Requires running Ollama server
Use
ollama pull bge-m3, thenOLLAMA_MODEL=bge-m3withVECTOR_SIZE=1024for local/self-hosted multilingual BGE-M3
FastEmbed (
fastembed:BAAI/bge-base-en-v1.5) - Local ONNX modelGood quality semantic embeddings
No API key or internet required (after first download)
Downloads ~210MB model to
~/.config/automem/models/on first use768 dimensions (default), also supports 384 and 1024 dim models
Local/self-hosted only: its 1024d cloud fallback can consume roughly 4 GB RSS and raise hosting cost substantially
Placeholder (
placeholder) - Hash-based fallbackDeterministic vectors from content hash
No semantic meaning, last resort only
Upgrade safety: VECTOR_SIZE_AUTODETECT=true (default) only adopts an existing collection dimension. It does not make vectors from different models compatible: any provider or model change requires recreating the Qdrant collection and a full re-embed, including a swap between two 1024d models. To enforce strict dimension matching, set VECTOR_SIZE_AUTODETECT=false.
Provider Configuration
Control via EMBEDDING_PROVIDER environment variable:
auto(default): Try Voyage → OpenAI → Ollama (only when configured) → FastEmbed → Placeholdervoyage: Use Voyage only (fail if unavailable)openai: Use OpenAI only (fail if unavailable). Also works with OpenAI-compatible providers whenOPENAI_BASE_URLis set.ollama: Use Ollama only (fail if unavailable)local: Use FastEmbed only (fail if unavailable)placeholder: Use placeholder embeddings
Graph writes always succeed even if vector storage fails (graceful degradation).
Module: automem/embedding/ provides EmbeddingProvider abstraction with implementations: VoyageEmbeddingProvider, OpenAIEmbeddingProvider (also handles compatible providers), OllamaEmbeddingProvider, FastEmbedProvider, PlaceholderEmbeddingProvider.
Testing
Tests use pytest with a DummyGraph fixture to mock FalkorDB operations:
# Set environment variable to disable conflicting plugins
export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
# Run tests
pytest # All unit tests
pytest tests/test_app.py::test_recall -v # Single test with verbose
pytest -k "consolidat" # Tests matching pattern
pytest --tb=short # Shorter traceback format
# Integration tests (requires Docker services)
make test-integration # Starts services and runs integration tests
AUTOMEM_RUN_INTEGRATION_TESTS=1 pytest tests/test_integration.py -v
# Live server testing (requires Railway deployment)
./test-live-server.sh # Tests against deployed Railway instance
make test-live # Same as above via MakefileTest files:
tests/test_app.py- Core API endpoint teststests/test_consolidation_engine.py- Memory consolidation logic teststests/test_enrichment.py- Entity extraction and enrichment teststests/test_integration.py- Full stack integration tests (requires Docker)tests/test_api_endpoints.py- Comprehensive API endpoint teststests/benchmarks/locomo/- LoCoMo benchmark suite for long-term memory evaluation
Environment Configuration
Key variables (create .env or ~/.config/automem/.env):
# Core services
FALKORDB_HOST=localhost # Graph database host
FALKORDB_PORT=6379 # Graph database port
FALKORDB_GRAPH=memories # Graph name
QDRANT_URL= # Vector database URL — Qdrant Cloud (optional)
QDRANT_HOST= # OR hostname for self-hosted Qdrant (e.g. "qdrant" on Railway)
QDRANT_PORT=6333 # Port for self-hosted Qdrant (used with QDRANT_HOST)
QDRANT_API_KEY= # Qdrant Cloud API key (optional, not needed for self-hosted)
QDRANT_COLLECTION=memories # Collection name
VECTOR_SIZE=1024 # Embedding dimensions (1024 for voyage-4 or Ollama bge-m3, 768 for small, 3072 for large)
VECTOR_SIZE_AUTODETECT=true # Adopt existing collection dim on startup (false = fail on mismatch)
# API configuration
PORT=8001 # API port
AUTOMEM_API_TOKEN= # Required for authentication
ADMIN_API_TOKEN= # For admin endpoints
# Embedding configuration
EMBEDDING_PROVIDER=auto # auto|voyage|openai|ollama|local|placeholder
VOYAGE_API_KEY= # Recommended for new cloud deployments
VOYAGE_MODEL=voyage-4
OPENAI_API_KEY= # For OpenAI or compatible provider (optional)
OPENAI_BASE_URL= # Custom endpoint for OpenAI-compatible APIs used by embeddings and classification/enrichment (optional)
OLLAMA_BASE_URL= # Intentional local/self-hosted Ollama endpoint
OLLAMA_MODEL= # e.g. bge-m3 (requires `ollama pull bge-m3`)
# Consolidation intervals (seconds)
CONSOLIDATION_DECAY_INTERVAL_SECONDS=86400 # 1 day (default)
CONSOLIDATION_DECAY_IMPORTANCE_THRESHOLD=0.3 # Only skip truly low-importance items
CONSOLIDATION_BASE_DECAY_RATE=0.01 # Daily decay rate (0.01 ≈ 69-day half-life)
CONSOLIDATION_IMPORTANCE_FLOOR_FACTOR=0.3 # Min relevance = importance * this (floor)
CONSOLIDATION_CREATIVE_INTERVAL_SECONDS=604800 # 1 week (default)
CONSOLIDATION_CLUSTER_INTERVAL_SECONDS=2592000 # 1 month (default)
CONSOLIDATION_FORGET_INTERVAL_SECONDS=0 # Disabled by default (set to enable)
# Enrichment controls
ENRICHMENT_MAX_ATTEMPTS=3 # Retry attempts before giving up
ENRICHMENT_SIMILARITY_LIMIT=5 # Neighbour links via Qdrant
ENRICHMENT_SIMILARITY_THRESHOLD=0.8 # Minimum cosine to link memories
ENRICHMENT_IDLE_SLEEP_SECONDS=2 # Worker sleep when idle
ENRICHMENT_FAILURE_BACKOFF_SECONDS=5 # Backoff between retries
ENRICHMENT_ENABLE_SUMMARIES=true # Toggle automatic summary creation
ENRICHMENT_SPACY_MODEL=en_core_web_sm # spaCy model for entity extraction
# JIT enrichment (lightweight inline enrichment during recall)
JIT_ENRICHMENT_ENABLED=true # Run entity/summary extraction inline on recall for unenriched memories
# Search scoring weights (all floats, see docs/ENVIRONMENT_VARIABLES.md)
SEARCH_WEIGHT_VECTOR=0.35 # Semantic similarity via Qdrant
SEARCH_WEIGHT_KEYWORD=0.35 # Keyword/TF-IDF matching
SEARCH_WEIGHT_METADATA=0.35 # Metadata sidecar match score
SEARCH_WEIGHT_RELATION=0.25 # Graph relationship boost
SEARCH_WEIGHT_TAG=0.20 # Tag overlap scoring
SEARCH_WEIGHT_EXACT=0.20 # Exact phrase in metadata
SEARCH_WEIGHT_IMPORTANCE=0.10 # Memory importance score
SEARCH_WEIGHT_RECENCY=0.10 # Decay per SEARCH_RECENCY_* (default: linear over 180 days)
SEARCH_WEIGHT_CONFIDENCE=0.05 # Memory confidence score
SEARCH_WEIGHT_RELEVANCE=0.0 # Experimental — consolidation decay relevance; 0.0 = no-op (off by default)
SEARCH_WEIGHT_TEMPORAL=0.1 # Relative-recency bonus, only when recency_bias re-rank runs
RECALL_RECENCY_BIAS=off # Recency re-rank default: off|on|auto (per-request recency_bias param overrides)
# Memory content limits
MEMORY_CONTENT_SOFT_LIMIT=500 # Auto-summarization trigger (chars)
MEMORY_CONTENT_HARD_LIMIT=2000 # Hard rejection limit (chars)
MEMORY_AUTO_SUMMARIZE=true # Enable/disable auto-summarization
MEMORY_SUMMARY_TARGET_LENGTH=300 # Target summarized length (chars)
# Sync configuration (background FalkorDB ↔ Qdrant consistency)
SYNC_CHECK_INTERVAL_SECONDS=3600 # Check interval (1 hour)
SYNC_AUTO_REPAIR=true # Auto-fix inconsistenciesInstall spaCy locally to improve entity extraction:
pip install spacy
python -m spacy download en_core_web_smMigration Tools
Migrating from the legacy MCP SQLite store, upgrading to 0.16.0 (entity nodes, tag prefixes, relevance rescore), or changing embedding dimensions? The runbook is docs/MIGRATIONS.md; the scripts are cataloged in scripts/README.md.
Utility Scripts
The scripts/ directory holds all maintenance, migration, recovery, and
evaluation tooling. scripts/README.md is the canonical
catalog — every script, grouped by lifecycle (routine / one-time / recovery /
dev / bench / lab), with usage and links to deep-dive docs. Update the catalog
rather than re-listing scripts here.
Agents most often reach for:
browse_memories.py— read-only FalkorDB + Qdrant browser (search/inspect/stats/diagnose); never modifies data.backup_automem.py/restore_from_backup.py— snapshot and restore both stores.
Deep dives: docs/MIGRATIONS.md (migrations),
docs/MONITORING_AND_BACKUPS.md (backup/recovery),
docs/RECALL_QUALITY_LAB.md (the lab/ recall-tuning harness).
Benchmark Ownership
Official benchmark claims, baselines, and release-gating benchmark flows stay in
automem.Exploratory eval work such as ruleset sweeps, seeded corpora, scenario authoring, and cross-agent/back-end comparisons belongs in
automem-evals.External eval repos should use the local service contract documented in
docs/EVALS_CONTRACT.md.
Local vs Railway Workflow
Typical Development Flow
Local Development - Make changes and test with
make devUnit Tests - Verify with
make testIntegration Tests - Validate with
make test-integrationDeploy to Railway - Push changes with
make deployLive Validation - Test deployed instance with
make test-liveBenchmarking - Validate performance with
make test-locomo-live
When to Use Each Environment
Local (Docker Compose):
Feature development and debugging
Rapid iteration without deployment delays
Testing consolidation/enrichment behavior
Privacy-focused work (data stays local)
Cost-free development
Railway (Cloud):
Production deployment for 24/7 availability
Multi-device access (laptop, desktop, mobile)
Team collaboration with shared memory
Testing real-world latency and performance
Integration with remote AI tools
Testing Against Railway
Before deploying breaking changes, test against your Railway instance:
# Set Railway environment variables
export AUTOMEM_TEST_URL=https://your-app.railway.app
export AUTOMEM_TEST_API_TOKEN=your_token
export AUTOMEM_TEST_ADMIN_TOKEN=your_admin_token
# Run integration tests against Railway
./test-live-server.shKey Implementation Patterns
Memory IDs are UUIDs stored in both databases for cross-referencing
Timestamps are normalized to UTC ISO format
Recall scoring combines vector similarity, keyword match, tag overlap, and recency
Authentication supports Bearer token, X-API-Key header, or query parameter
Graph operations are atomic with automatic rollback on errors
Vector store errors are logged but don't block graph writes
Consolidation runs in background threads without blocking API requests
Enrichment pipeline processes memories asynchronously with automatic retries
273 files · 249 not served here
- .cursorignore (not served here)
- .dockerignore (not served here)
- .env.example (not served here)
- .flake8 (not served here)
- .gitattributes (not served here)
- .github/workflows/backup.yml (not served here)
- .github/workflows/benchmarks-dispatch.yml (not served here)
- .github/workflows/ci.yml (not served here)
- .github/workflows/docker-build-mcp-automem.yml (not served here)
- .github/workflows/docker-build.yml (not served here)
- .github/workflows/docs-dispatch.yml (not served here)
- .github/workflows/mcp-parity.yml (not served here)
- .github/workflows/release-please.yml (not served here)
- .github/workflows/semantic-pr-title.yml (not served here)
- .gitignore (not served here)
- .nixpacksignore (not served here)
- .pre-commit-config.yaml (not served here)
- .python-version (not served here)
- .railway/backup-falkordb.sh (not served here)
- .railway/falkordb.Dockerfile (not served here)
- .secrets.baseline (not served here)
- AGENTS.md
- ATTRIBUTION.md
- AUTOGINEER-RUNS.md
- CHANGELOG.md
- CLAUDE.md
- Dockerfile (not served here)
- INSTALLATION.md
- LICENSE
- Makefile (not served here)
- README.md
- app.py (not served here)
- automem/__init__.py (not served here)
- automem/analytics/__init__.py (not served here)
- automem/analytics/runtime_helpers.py (not served here)
- automem/api/admin.py (not served here)
- automem/api/auth_helpers.py (not served here)
- automem/api/backup.py (not served here)
- automem/api/consolidation.py (not served here)
- automem/api/enrichment.py (not served here)
- automem/api/entity.py (not served here)
- automem/api/graph.py (not served here)
- automem/api/health.py (not served here)
- automem/api/memory.py (not served here)
- automem/api/recall.py (not served here)
- automem/api/runtime_bootstrap.py (not served here)
- automem/api/runtime_memory_routes.py (not served here)
- automem/api/runtime_recall_routes.py (not served here)
- automem/api/stream.py (not served here)
- automem/api/viewer.py (not served here)
- automem/app_helper_bindings.py (not served here)
- automem/backup.py (not served here)
- automem/classification/__init__.py (not served here)
- automem/classification/memory_classifier.py (not served here)
- automem/config.py (not served here)
- automem/consolidation/entity_dedup.py (not served here)
- automem/consolidation/identity_synthesis.py (not served here)
- automem/consolidation/runtime_bindings.py (not served here)
- automem/consolidation/runtime_helpers.py (not served here)
- automem/consolidation/runtime_routes.py (not served here)
- automem/consolidation/runtime_scheduler.py (not served here)
- automem/embedding/__init__.py (not served here)
- automem/embedding/fastembed.py (not served here)
- automem/embedding/ollama.py (not served here)
- automem/embedding/openai.py (not served here)
- automem/embedding/placeholder.py (not served here)
- automem/embedding/provider.py (not served here)
- automem/embedding/provider_init.py (not served here)
- automem/embedding/runtime_bindings.py (not served here)
- automem/embedding/runtime_helpers.py (not served here)
- automem/embedding/runtime_pipeline.py (not served here)
- automem/embedding/voyage.py (not served here)
- automem/enrichment/__init__.py (not served here)
- automem/enrichment/runtime_bindings.py (not served here)
- automem/enrichment/runtime_helpers.py (not served here)
- automem/enrichment/runtime_orchestration.py (not served here)
- automem/enrichment/runtime_queue_bindings.py (not served here)
- automem/enrichment/runtime_worker.py (not served here)
- automem/runtime_environment.py (not served here)
- automem/runtime_wiring.py (not served here)
- automem/search/runtime_keywords.py (not served here)
- automem/search/runtime_recall_helpers.py (not served here)
- automem/search/runtime_relations.py (not served here)
- automem/service_runtime.py (not served here)
- automem/service_runtime_bindings.py (not served here)
- automem/service_state.py (not served here)
- automem/stores/graph_store.py (not served here)
- automem/stores/runtime_clients.py (not served here)
- automem/stores/vector_payload.py (not served here)
- automem/stores/vector_store.py (not served here)
- automem/sync/accounting.py (not served here)
- automem/sync/runtime_bindings.py (not served here)
- automem/sync/runtime_worker.py (not served here)
- automem/utils/__init__.py (not served here)
- automem/utils/entity_extraction.py (not served here)
- automem/utils/entity_quality.py (not served here)
- automem/utils/graph.py (not served here)
- automem/utils/scoring.py (not served here)
- automem/utils/tags.py (not served here)
- automem/utils/text.py (not served here)
- automem/utils/time.py (not served here)
- automem/utils/validation.py (not served here)
- benchmarks/EXPERIMENT_LOG.md (not served here)
- benchmarks/baselines/health_baseline.json (not served here)
- benchmarks/baselines/locomo-mini_baseline.json (not served here)
- benchmarks/baselines/postmerge-20261022.json (not served here)
- benchmarks/baselines/pr266-tag-prefix-20261021.json (not served here)
- benchmarks/postmortems/.gitkeep (not served here)
- benchmarks/postmortems/2026-03-11_issue74_entity_expansion_precision.md (not served here)
- benchmarks/postmortems/2026-03-11_pr80_enhanced_recall.md (not served here)
- benchmarks/postmortems/2026-03-12_issue79_priority_ids_fetch.md (not served here)
- consolidation.py (not served here)
- docker-compose.yml (not served here)
- docs/AGENT_TEMPLATE.md
- docs/API.md
- docs/BENCHMARK_JUDGE_POLICY.md
- docs/COMPARISON.md
- docs/ENVIRONMENT_VARIABLES.md (not served here)
- docs/EVALS_CONTRACT.md
- docs/HEALTH_MONITORING.md
- docs/MCP_SSE.md
- docs/MCP_TRANSPORT_PARITY.md
- docs/METADATA_BEHAVIOR.md
- docs/MIGRATIONS.md
- docs/MONITORING_AND_BACKUPS.md
- docs/QDRANT_SETUP.md
- docs/RAILWAY_DEPLOYMENT.md
- docs/RECALL_QUALITY_LAB.md
- docs/RESEARCH.md
- docs/TESTING.md
- docs/img/qdrant-configuration.jpg (not served here)
- mcp-sse-server/Dockerfile (not served here)
- mcp-sse-server/README.md (not served here)
- mcp-sse-server/package-lock.json (not served here)
- mcp-sse-server/package.json (not served here)
- mcp-sse-server/parity/clients.js (not served here)
- mcp-sse-server/parity/fake-automem.js (not served here)
- mcp-sse-server/parity/normalize.js (not served here)
- mcp-sse-server/parity/scenarios.js (not served here)
- mcp-sse-server/railway.json (not served here)
- mcp-sse-server/server.js (not served here)
- mcp-sse-server/test/parity.test.js (not served here)
- mcp-sse-server/test/recall-parity.test.js (not served here)
- mcp-sse-server/test/server.test.js (not served here)
- mcp-sse-server/test/sse-sessions.test.js (not served here)
- pyproject.toml (not served here)
- pytest.ini (not served here)
- railway.json (not served here)
- railway.toml (not served here)
- requirements-dev.txt (not served here)
- requirements.txt (not served here)
- run-integration-tests.sh (not served here)
- scripts/Dockerfile.health-monitor (not served here)
- scripts/README.md (not served here)
- scripts/audit_relevance.py (not served here)
- scripts/automem_watch.py (not served here)
- scripts/backfill_tag_prefixes.py (not served here)
- scripts/backup_automem.py (not served here)
- scripts/bench/analyze_locomo_results.py (not served here)
- scripts/bench/compare_branch.sh (not served here)
- scripts/bench/compare_configs.sh (not served here)
- scripts/bench/compare_results.py (not served here)
- scripts/bench/health_check.py (not served here)
- scripts/bench/ingest_and_snapshot.sh (not served here)
- scripts/bench/restore_and_eval.sh (not served here)
- scripts/bootstrap_dev.sh (not served here)
- scripts/browse_memories.py (not served here)
- scripts/cleanup_memory_types.py (not served here)
- scripts/deduplicate_qdrant.py (not served here)
- scripts/deploy_check.sh (not served here)
- scripts/health_monitor.py (not served here)
- scripts/lab/clone_production.sh (not served here)
- scripts/lab/configs/baseline.json (not served here)
- scripts/lab/configs/issue78_archive_filter.json (not served here)
- scripts/lab/configs/issue78_combined.json (not served here)
- scripts/lab/configs/issue78_relevance_weight.json (not served here)
- scripts/lab/create_test_queries.py (not served here)
- scripts/lab/lab_corpus.py (not served here)
- scripts/lab/lab_metrics.py (not served here)
- scripts/lab/repair_entity_tags.py (not served here)
- scripts/lab/run_recall_test.py (not served here)
- scripts/lib/common.sh (not served here)
- scripts/migrate_entity_nodes.py (not served here)
- scripts/migrate_mcp_sqlite.py (not served here)
- scripts/reclassify_with_llm.py (not served here)
- scripts/recover_from_qdrant.py (not served here)
- scripts/reembed_embeddings.py (not served here)
- scripts/reenrich_batch.py (not served here)
- scripts/rescore_relevance.py (not served here)
- scripts/restore_from_backup.py (not served here)
- scripts/run_longmemeval_watch.sh (not served here)
- test-live-server-auto.sh (not served here)
- test-live-server.sh (not served here)
- test-locomo-benchmark.sh (not served here)
- test-longmemeval-benchmark.sh (not served here)
- tests/benchmarks/backends.py (not served here)
- tests/benchmarks/core_adapter/evaluate.js (not served here)
- tests/benchmarks/judge_policy.py (not served here)
- tests/benchmarks/judge_preflight.py (not served here)
- tests/benchmarks/longmemeval/__init__.py (not served here)
- tests/benchmarks/longmemeval/analyze_results.py (not served here)
- tests/benchmarks/longmemeval/configs.py (not served here)
- tests/benchmarks/longmemeval/diagnose_failures.py (not served here)
- tests/benchmarks/longmemeval/evaluator.py (not served here)
- tests/benchmarks/longmemeval/test_analysis.py (not served here)
- tests/benchmarks/longmemeval/test_answer_prompt.py (not served here)
- tests/benchmarks/longmemeval/test_diagnose_failures.py (not served here)
- tests/benchmarks/longmemeval/test_evaluator.py (not served here)
- tests/benchmarks/longmemeval/test_longmemeval.py (not served here)
- tests/benchmarks/results/compare_issue74_entity_precision_20260311.json (not served here)
- tests/benchmarks/results/compare_issue79_priority_ids_20260311.json (not served here)
- tests/benchmarks/results/compare_pr80_bm25_only_f10_judge_off.json (not served here)
- tests/benchmarks/results/compare_pr80_judge_off_20260311.json (not served here)
- tests/benchmarks/results/compare_pr80_judge_on_20260311.json (not served here)
- tests/benchmarks/results/longmemeval_baseline_5_4mini_20260425_223943.json (not served here)
- tests/benchmarks/results/longmemeval_baseline_5_4mini_20260425_223943.jsonl (not served here)
- tests/benchmarks/test_locomo.py (not served here)
- tests/benchmarks/test_multihop_quick.py (not served here)
- tests/conftest.py (not served here)
- tests/contracts/test_error_contract.py (not served here)
- tests/contracts/test_routes_contract.py (not served here)
- tests/lab/conftest.py (not served here)
- tests/lab/test_lab_corpus.py (not served here)
- tests/lab/test_lab_metrics.py (not served here)
- tests/lab/test_run_recall_test.py (not served here)
- tests/support/__init__.py (not served here)
- tests/support/fake_graph.py (not served here)
- tests/test_admin_http_regressions.py (not served here)
- tests/test_api_endpoints.py (not served here)
- tests/test_app.py (not served here)
- tests/test_backup_endpoint.py (not served here)
- tests/test_benchmark_backends.py (not served here)
- tests/test_benchmark_env_loading.py (not served here)
- tests/test_benchmark_result_analyzer.py (not served here)
- tests/test_classification_stats.py (not served here)
- tests/test_consolidation_collection.py (not served here)
- tests/test_consolidation_engine.py (not served here)
- tests/test_content_size.py (not served here)
- tests/test_context_tag_separator.py (not served here)
- tests/test_docker_compose_port_security.py (not served here)
- tests/test_embedding_integrity.py (not served here)
- tests/test_embedding_providers.py (not served here)
- tests/test_embedding_runtime_helpers.py (not served here)
- tests/test_enrichment.py (not served here)
- tests/test_enrichment_circuit.py (not served here)
- tests/test_enrichment_concurrent_updates.py (not served here)
- tests/test_enrichment_worker.py (not served here)
- tests/test_entity_identities.py (not served here)
- tests/test_entity_quality.py (not served here)
- tests/test_falkordb_backup_export.py (not served here)
- tests/test_health_monitor.py (not served here)
- tests/test_identity_config.py (not served here)
- tests/test_integration.py (not served here)
- tests/test_keyword_score_normalization.py (not served here)
- tests/test_locomo_benchmark_script.py (not served here)
- tests/test_locomo_cat5_judge.py (not served here)
- tests/test_locomo_speaker_extraction.py (not served here)
- tests/test_longmemeval_benchmark_script.py (not served here)
- tests/test_makefile_targets.py (not served here)
- tests/test_memory_type_validation.py (not served here)
- tests/test_memory_vector_payloads.py (not served here)
- tests/test_metadata_recall_search.py (not served here)
- tests/test_prefix_tag_filters.py (not served here)
- tests/test_recall_artifact_exclusion.py (not served here)
- tests/test_recall_entity_extraction.py (not served here)
- tests/test_recall_overfetch.py (not served here)
- tests/test_recover_from_qdrant.py (not served here)
- tests/test_repair_entity_tags.py (not served here)
- tests/test_runtime_qdrant_init.py (not served here)
- tests/test_service_runtime.py (not served here)
- tests/test_stream_events.py (not served here)
- tests/test_structured_logging.py (not served here)
- tests/test_vector_size_safety.py (not served here)
Advantages
- Avoids redundant LLM calls during recall by using direct graph and vector index lookups. evidence: README.md
- Records typed relationships between memories to surface the 'why' behind decisions rather than just isolated facts. evidence: README.md
- Provides a unified memory store accessible across multiple different AI tools and chat applications. evidence: README.md
Limitations
- Tags act as a hard filter, meaning memories without the queried tag are excluded even if they are semantically relevant. evidence: README.md
- The system does not yet reliably resolve conflicting facts or prioritize the newest version of information automatically. evidence: README.md
- The MCP SSE bridge currently lacks support for passing through state_mode configurations. evidence: README.md
Security
Risk level: Medium risk
This brain runs
Git hooks (8)
.pre-commit-config.yaml:pre-commit hooks from https://github.com/psf/black at 24.4.2 (contributor tooling: runs only after pre-commit install)· uses the network.pre-commit-config.yaml:pre-commit hooks from https://github.com/pycqa/isort at 5.13.2 (contributor tooling: runs only after pre-commit install)· uses the network.pre-commit-config.yaml:pre-commit hooks from https://github.com/pycqa/flake8 at 7.1.1 (contributor tooling: runs only after pre-commit install)· uses the network.pre-commit-config.yaml:pre-commit hooks from https://github.com/compilerla/conventional-pre-commit at v3.2.0 (contributor tooling: runs only after pre-commit install)· uses the network.pre-commit-config.yaml:pre-commit hooks from https://github.com/pre-commit/pre-commit-hooks at v4.6.0 (contributor tooling: runs only after pre-commit install)· uses the network.pre-commit-config.yaml:pre-commit hooks from https://github.com/Yelp/detect-secrets at v1.5.0 (contributor tooling: runs only after pre-commit install)· uses the network.pre-commit-config.yaml:bash -c 'PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 ./venv/bin/pytest tests/ --ignore=tests/benchmarks --ignore=tests/test_integration.py -x -q'.pre-commit-config.yaml:bash -c 'command -v coderabbit >/dev/null 2>&1 || { echo "coderabbit CLI not installed, skipping"; exit 0; }; coderabbit review --type committed --plain'
Agent instructions that run or fetch something (39)
AGENTS.md:`make install`: Create `.venv` (and symlink `venv -> .venv`) and install dev deps.AGENTS.md:`make dev`: Start local stack via Docker (FalkorDB, Qdrant, API).AGENTS.md:`make test`: Run unit tests (fast, no services).AGENTS.md:`make test-integration`: Start Docker and run full integration tests.AGENTS.md:`make fmt` / `make lint`: Format with Black/Isort and lint with Flake8.AGENTS.md:`make bench-eval BENCH=locomo-mini`: Run snapshot-based benchmark (~2 min).AGENTS.md:`make deploy` / `make status`: Deploy/check Railway.AGENTS.md:Quick health: `curl :8001/health`.· uses the networkAGENTS.md:Run `pre-commit install` and `make fmt && make lint` before committing.AGENTS.md:Unit tests: `make test`.AGENTS.md:Integration: `make test-integration` (requires Docker).AGENTS.md:| Tier | Benchmark | Command | Runtime | Cost | When to use | |------|-----------|---------|---------|------|-------------| | 0 | Unit tests | `make test` | 30s | free | Every change | | 1 | LoCoMo-mini (2 convos, 304 Qs) | `make bench-eval BENCH=locomo-mini` | 2-3 min | free / ~$0.20 …[+355 chars]AGENTS.md:`make bench-eval BENCH=locomo-mini CONFIG=baseline` — eval from snapshot (~2 min).AGENTS.md:`make bench-compare BENCH=locomo CONFIG=<name> BASELINE=baseline` — A/B compare two configs.AGENTS.md:`make bench-compare-branch BRANCH=<branch>` — compare a branch against baseline.AGENTS.md:`make bench-ingest BENCH=locomo` — ingest + snapshot (run once per embedding change).AGENTS.md:`make bench-health` — recall health check (score distribution, entity quality, latency).AGENTS.md:Run `make bench-eval BENCH=locomo-mini` on `main` to confirm the current baseline.AGENTS.md:Run the same eval on the branch.AGENTS.md:Promote to `make bench-eval BENCH=locomo` (full) before merge.AGENTS.md:`benchmarks/snapshots/` — Qdrant/FalkorDB snapshot data (gitignored, regenerate with `make bench-ingest`).AGENTS.md:`benchmarks/results/` — per-run result JSONs (gitignored).AGENTS.md:release-please and GHCR `:stable` then run on `main`.CLAUDE.md:`GET /consolidate/status` - Check consolidation scheduler status and last run timesCLAUDE.md:Adds short summaries, timestamps (`enriched_at`), and per-run metrics under `metadata.enrichment`.CLAUDE.md:# Run testsCLAUDE.md:make test-integration # Starts services and runs integration testsCLAUDE.md:make test-live # Same as above via MakefileCLAUDE.md:JIT_ENRICHMENT_ENABLED=true # Run entity/summary extraction inline on recall for unenriched memoriesCLAUDE.md:Install spaCy locally to improve entity extraction:CLAUDE.md:pip install spacyCLAUDE.md:python -m spacy download en_core_web_smCLAUDE.md:**Local Development** - Make changes and test with `make dev`CLAUDE.md:**Unit Tests** - Verify with `make test`CLAUDE.md:**Integration Tests** - Validate with `make test-integration`CLAUDE.md:**Deploy to Railway** - Push changes with `make deploy`CLAUDE.md:**Live Validation** - Test deployed instance with `make test-live`CLAUDE.md:**Benchmarking** - Validate performance with `make test-locomo-live`CLAUDE.md:# Run integration tests against Railway
Install scripts (1)
Makefile(make install):echo "🔧 Setting up development environment..."; bash scripts/bootstrap_dev.sh; echo "✅ Virtual environment ready!"; echo "💡 Run 'source .venv/bin/activate' to activate"
- Medium risk: runs-git-hook-remote-exec (.pre-commit-config.yaml:9)
- Medium risk: runs-git-hook-remote-exec (.pre-commit-config.yaml:16)
- Medium risk: runs-git-hook-remote-exec (.pre-commit-config.yaml:23)
- Medium risk: runs-git-hook-remote-exec (.pre-commit-config.yaml:30)
- Medium risk: runs-git-hook-remote-exec (.pre-commit-config.yaml:38)
- Medium risk: runs-git-hook-remote-exec (.pre-commit-config.yaml:50)
- Medium risk: runs-instruction-instruction-network (AGENTS.md:23)
- Low risk: network-instructions (.pre-commit-config.yaml:2)
- Low risk: network-instructions (CLAUDE.md:299)
- Low risk: network-instructions (Makefile:91)
- Low risk: scripts-present (scripts/bootstrap_dev.sh)
Attribution and licence
- First committed by
jack-arturo
- Publisher
- Very Good Plugins (Community)
- Source
- verygoodplugins/automem · commit 1a7ba1a
- Licence
- MIT License (files served here)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- jack-arturo, mikemikimike, zackkatz, dexhunter
AutoGineer is not affiliated with or endorsed by jack-arturo or Very Good Plugins.
Install from source
249 of its files are not served here, so there is no ZIP. verygoodplugins/automem at 1a7ba1a