Generated banner for AutoMem
Generated logo for AutoMem

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.
— the description by jack-arturo

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.

Folders
FolderRoleFiles
.githubagent-config9
docsdocs18
scriptsscripts39
teststests78
.railwayfolder2
automemfolder70
benchmarksfolder9
mcp-sse-serverfolder14

The agent reads

The agent writes

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

  1. 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"
  2. 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
  3. 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| Qdrant

If 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
TypeUse caseExample
RELATES_TOGeneral connectionBug report → Related issue
LEADS_TOCausal relationshipProblem → Solution
OCCURRED_BEFORETemporal sequencePlanning → Execution
PREFERS_OVERUser preferencesPostgreSQL → MongoDB
EXEMPLIFIESPattern examplesCode review → Best practice
CONTRADICTSConflicting infoOld approach → New approach
REINFORCESSupporting evidenceDecision → Validation
INVALIDATED_BYOutdated infoLegacy docs → Current docs
EVOLVED_INTOKnowledge evolutionInitial design → Final design
DERIVED_FROMSource trackingImplementation → Spec
PART_OFHierarchical structureFeature → 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.

CycleFrequencyPurpose
DecayDailyExponential relevance scoring (age, access, connections, importance)
CreativeWeeklyREM-like processing that discovers non-obvious connections
ClusterMonthlyGroups similar memories, generates meta-patterns
ForgetOff by defaultArchives 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)

Image: Deploy on Railway

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
ServiceURLPurpose
AutoMem APIhttp://localhost:8001Memory REST API
FalkorDBlocalhost:6379Graph database
Qdrantlocalhost:6333Vector database
FalkorDB Browserhttp://localhost:3000Local 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.py

Requires 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

ClientModeSetup
Claude Desktop, Cursor, Claude Code, Codex, Copilot, AntigravityLocal MCP bridgenpx @verygoodplugins/mcp-automem setup
ChatGPT (developer mode), Claude.ai web/mobile, ElevenLabs AgentsRemote MCP (HTTPS)docs/MCP_SSE.md
Anything elseDirect REST APIdocs/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=auto re-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 Entity nodes (IDENTITY_SYNTHESIS_ENABLED) are gated off while people-entity word-pair noise is addressed (#181).

Docs, community, and license

Setup

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

Operations

Community

Sibling repos

MIT licensed. Deploy anywhere. No vendor lock-in.

INSTALLATION.md

Installation & Deployment Guide

Complete setup instructions for AutoMem across all environments.

Table of Contents

  • Prerequisites

  • Quick Start

  • Deployment

    • Railway (Recommended)

    • Docker Compose (Local)

    • Bare API (Development)

  • Configuration

  • API Reference

  • Migration

  • Testing

  • Troubleshooting


Prerequisites

  • Python 3.10+ (the codebase supports 3.10 and newer; local bootstrap is standardized on 3.12)

  • Docker & Docker Compose (for bundled stack)

  • Railway CLI (optional, only needed if you prefer the terminal over the dashboard): npm i -g @railway/cli


Quick Start

# Clone repository
git clone https://github.com/verygoodplugins/automem.git
cd automem

# Create virtual environment (standardized on Python 3.12 for local dev)
make install
source .venv/bin/activate  # On Windows (WSL or Git Bash): same command; native cmd: .venv\Scripts\activate.bat; PowerShell: .venv\Scripts\Activate.ps1

# Start all services (FalkorDB + Qdrant + API)
make dev

make install looks for python3.12 first (and a few common install locations), then falls back to python3 if it is already 3.12. It exits with an error only when no Python 3.12 interpreter can be found. Override the interpreter with the AUTOMEM_PYTHON environment variable (accepts a bare command name or an absolute path).

Services:

  • API: http://localhost:8001

  • FalkorDB: localhost:6379

  • Qdrant: localhost:6333

  • FalkorDB Browser (official local graph UI): http://localhost:3000

/viewer is not the local FalkorDB browser. It redirects/bootstraps to a standalone graph viewer only when GRAPH_VIEWER_URL is configured.

Optional Enhancement:

Install spaCy for richer entity extraction:

pip install spacy
python -m spacy download en_core_web_sm

Deployment

What is Railway? Cloud hosting platform (like Heroku, but modern) where your AutoMem service runs 24/7 in containers.

Cost breakdown:

  • ✅ $5 free credits for 30-day trial (no credit card required)

  • ✅ ~$0.50/month typical AutoMem usage after trial

  • ✅ $1/month minimum if you use less than that

  • ✅ No image-build cost — services pull pre-built Docker images from GitHub Container Registry, so you only pay Railway compute


Should You Deploy to Railway?

✅ Deploy to Railway if you:

  • Use multiple devices - Access same memories from laptop, desktop, mobile

  • Collaborate with a team - Share memories across team members

  • Want always-on availability - Don't want to start Docker containers daily

  • Need remote access - Use AI tools on tablet/phone without local services

  • Value simplicity - Set it once, forget about it

🏠 Stick with local if you:

  • Work on one machine - Don't need cross-device sync

  • Privacy first - Keep all memories on your hardware

  • Have Docker skills - Comfortable managing local services

  • Prefer zero cost - No cloud bills, just local compute

  • Developing/testing - Local is faster for iteration

<!-- Screenshot placeholder: docs/img/railway-services.png — Railway dashboard showing the production service group (automem, automem-graph-viewer, mcp-automem, qdrant, falkordb). Capture once and host in-repo so this stops depending on a fragile GitHub user-attachment URL. -->

Screenshot pending: Railway services dashboard image will be added at docs/img/railway-services.png once captured.


Option A: One-Click Deploy ⭐ (Fastest)

Image: Deploy on Railway

What this does:

  • Creates the core Railway services from pre-built Docker images:

    • automem ← ghcr.io/verygoodplugins/automem:stable

    • mcp-automem ← ghcr.io/verygoodplugins/mcp-automem:stable

    • qdrant ← qdrant/qdrant:latest

    • falkordb ← falkordb/falkordb:latest

  • The standalone graph viewer is a companion service to add after the core deploy:

    • automem-graph-viewer ← ghcr.io/verygoodplugins/automem-graph-viewer:stable

  • Sets up persistent storage and volumes

  • Generates secure API tokens (AUTOMEM_API_TOKEN, ADMIN_API_TOKEN)

  • Configures internal networking (FALKORDB_HOST, FALKORDB_PORT)

  • Generates public domain automatically

After clicking:

  1. Sign in with GitHub (if not logged in)

  2. Review environment variables

  3. Add VOYAGE_API_KEY for the recommended voyage-4 embeddings (OpenAI is supported as the API fallback)

  4. Click "Deploy"

  5. Wait ~60 seconds for deployment to complete ✅

Next: Skip to Get Your AutoMem URL below to get your endpoint.


How Updates Work

Once deployed, your Railway services pull updates automatically — no git push, no rebuild on every commit:

ServiceImageUpdate cadence
automemghcr.io/verygoodplugins/automem:stableAuto-redeploy nightly
automem-graph-viewerghcr.io/verygoodplugins/automem-graph-viewer:stableAuto-redeploy nightly
mcp-automemghcr.io/verygoodplugins/mcp-automem:stableAuto-redeploy nightly
qdrantqdrant/qdrant:latestAuto-redeploy nightly
falkordbfalkordb/falkordb:latestAuto-redeploy nightly

The :stable tag always points at the most recent vX.Y.Z release tag. New releases ship through release-please — when a release PR is merged to main, GitHub Actions builds the image, publishes the new version (v0.16.0, v0.16, v0), and re-points :stable. See CHANGELOG.md for the release history.

Want to ship faster than nightly? In Railway, click the service → Deployments → Deploy latest to pull :stable immediately.

Want to pin a specific version? Edit the service's image (Settings → Source → Image) from :stable to :v0.16.0 (or any published vX.Y.Z). Roll back the same way.

Using the legacy MCP image path? ghcr.io/verygoodplugins/automem/mcp-sse-server:stable is dual-published from the same workflow and tracks the same release tags — existing deployments keep working without changes.


Option B: Manual Setup (Advanced)

<details> <summary><b>Need more control? Click to expand manual deployment steps</b></summary>

Step 1: Prerequisites
# Install Railway CLI
npm i -g @railway/cli

# Log in
railway login

# (Optional) Initialize project
railway init
Step 2: Provision FalkorDB
  1. Create new Railway service:

    • Image: falkordb/falkordb:latest

    • Add persistent volume (critical for data persistence)

  2. Note the internal connection details (shown in service settings)

  3. Optional: Set REDIS_PASSWORD for authentication

Railway automatically exposes:

  • REDIS_HOST

  • REDIS_PORT

  • REDIS_PASSWORD

Reference these in AutoMem config via ${{service.<name>.internalHost}}

Step 3: Deploy AutoMem from the published Docker image
  1. Create a new Railway service from the AutoMem image:

    • In Railway → + New → Deploy from Docker image

    • Image: ghcr.io/verygoodplugins/automem:stable

    • (Optional) pin a specific version with :v0.16.0 instead of :stable

    • Add a public domain: Settings → Networking → Generate Domain

  2. Configure environment variables:

    VariableDescriptionRequired
    AUTOMEM_API_TOKENAuth token for all client calls✅ Yes
    ADMIN_API_TOKENToken for admin/enrichment endpoints✅ Yes
    FALKORDB_HOSTInternal hostname of FalkorDB service✅ Yes
    FALKORDB_PORTFalkorDB port (usually 6379)✅ Yes
    VOYAGE_API_KEYRecommended API key for voyage-4 embeddingsRecommended
    OPENAI_API_KEYOpenAI-compatible embedding fallbackOptional
    EMBEDDING_PROVIDERProvider selection (auto prefers Voyage)auto
    FALKORDB_PASSWORDPassword if set on FalkorDBIf enabled
    QDRANT_URLQdrant Cloud endpointOptional
    QDRANT_API_KEYQdrant API keyIf using Qdrant
  3. Verify deployment:

    curl https://your-automem.up.railway.app/health

    Expected: {"status": "healthy"} 503 = FalkorDB connection issue (check host/port/password)

  4. (Optional) Add the MCP bridge service the same way:

    • Image: ghcr.io/verygoodplugins/mcp-automem:stable

    • Set AUTOMEM_API_URL to the internal URL of automem (e.g. http://automem.railway.internal:8001)

    • Set AUTOMEM_API_TOKEN to the same token as the API service

    • Generate a public domain so cloud AI clients (ChatGPT, Claude.ai, ElevenLabs) can reach it

Step 4: Add the Graph Viewer companion service
  1. Create a new Railway service from the Graph Viewer image:

    • In Railway → + New → Deploy from Docker image

    • Image: ghcr.io/verygoodplugins/automem-graph-viewer:stable

    • Add a public domain: Settings → Networking → Generate Domain

  2. Wire the API service to the viewer domain:

    Set these on the automem API service, then redeploy/restart the API:

    GRAPH_VIEWER_URL=https://your-viewer.up.railway.app
    VIEWER_ALLOWED_ORIGINS=https://your-viewer.up.railway.app
  3. Leave database and private-network credentials off the viewer service.

    The viewer is browser-side UI. It calls the public AutoMem API URL supplied by /viewer bootstrap (?server=<automem-origin>) or by the token prompt. Railway private domains such as *.railway.internal only work for service-to-service traffic and cannot be reached by a user's browser.

    The standalone viewer service normally needs no Railway variables. Do not set VITE_API_TARGET, VITE_BASE, or VITE_ENABLE_HAND_CONTROLS in production. VITE_API_TARGET is only for the local Vite dev proxy, VITE_BASE is not a supported variable, and hand controls are controlled by the UI at runtime.

Get Your AutoMem URL
  1. Click on your automem service (the API, not FalkorDB)

  2. Go to "Settings" tab

  3. Scroll to "Networking" → "Public Networking"

  4. Click "Generate Domain" (if not already generated)

  5. Copy the URL - looks like: automem-production-abc123.up.railway.app

✅ Save this URL! You'll need it for connecting your AI tools.

</details>


What You Just Built
flowchart TB
    subgraph devices [Your AI Tools]
        Laptop[💻 Laptop]
        Desktop[🖥️ Desktop]
        Mobile[📱 Mobile]
        Tablet[📱 Tablet]
    end

    subgraph railway [Railway Cloud - Your Free Tier]
        direction TB

        Domain[Public Domain<br/>your-url.up.railway.app<br/>HTTPS Port 443]
        ViewerDomain[Viewer Public Domain<br/>viewer-url.up.railway.app<br/>HTTPS Port 443]

        subgraph services [Services]
            API[AutoMem API<br/>Flask Service<br/>Internal Port 8001]
            Viewer[Graph Viewer<br/>React/Three.js<br/>Static Service]
            MCP[MCP Bridge<br/>Remote Clients]
            FalkorDB[(FalkorDB<br/>Graph Database<br/>Port 6379)]
            Qdrant[(Qdrant<br/>Vector Store<br/>Port 6333)]
            Volume[Persistent Volume<br/>Data Storage]
        end

        Domain -->|Routes to| API
        ViewerDomain -->|Routes to| Viewer
        API -->|/viewer bootstrap| ViewerDomain
        Viewer -->|Browser API calls public domain| Domain
        MCP -->|Internal API calls| API
        API -->|Internal networking| FalkorDB
        API -->|Internal networking| Qdrant
        FalkorDB -->|Mounts| Volume
    end

    Laptop -->|HTTPS| Domain
    Desktop -->|HTTPS| Domain
    Mobile -->|HTTPS| Domain
    Tablet -->|HTTPS| Domain

    Cloud[☁️ Access from anywhere<br/>Any device, anytime]

    devices -.->|Always available| Cloud
    railway -.->|24/7 uptime| Cloud
Verify Deployment

Test that everything works:

# Replace with YOUR Railway URL
curl https://automem-production-abc123.up.railway.app/health

Expected response:

{ "status": "healthy", "falkordb": "connected" }

Got an error?

  • 503 Service Unavailable = FalkorDB can't connect. Check:

    • FALKORDB_HOST is set to falkordb.railway.internal or ${{FalkorDB.RAILWAY_PRIVATE_DOMAIN}}

    • FalkorDB service is running (green dot in Railway dashboard)

    • Persistent volume is mounted at /data

  • 401 Unauthorized = You're trying a protected endpoint. /health should work without auth.

Next Steps
  1. Store first memory:

curl -X POST https://your-automem.railway.app/memory \
  -H "Authorization: Bearer $AUTOMEM_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":"First memory from Railway","importance":0.7}'
  1. Connect your AI tools - Use your Railway URL in:

    • AutoMem MCP Client

    • Remote MCP for ChatGPT/Claude.ai/ElevenLabs: see docs/MCP_SSE.md

    • Claude Desktop, Cursor, Claude Code, etc.

  2. Set up monitoring (optional): See Health Monitoring Guide

👉 Full Railway Guide - Advanced configuration, monitoring, troubleshooting 👉 Post-Deploy Checklist - Step-by-step verification


Docker Compose (Local)

Run complete stack locally:

# Start all services
make dev

# Or manually with docker compose
docker compose up -d

docker-compose.yml includes:

  • AutoMem Flask API (port 8001)

  • FalkorDB (port 6379)

  • Qdrant HTTP and gRPC (ports 6333 and 6334)

  • FalkorDB Browser via FalkorDB built-in UI (port 3000)

FalkorDB, its browser, and both Qdrant ports bind to 127.0.0.1 by default. AutoMem reaches the databases over the Docker network, so this does not change connections between containers. The AutoMem API port keeps its existing binding.

To make the database ports available on a different host address, explicitly set AUTOMEM_DB_BIND_ADDRESS when starting Compose. For IPv6, use brackets (for example, [::1]). Binding to 0.0.0.0 exposes the database ports on every IPv4 interface; secure them with authentication and network controls before doing so. Localhost binding limits network exposure but does not authenticate local users. Use Docker Engine 28 or newer: older Docker releases have a localhost-publishing limitation.

Existing local installs: Updating the checkout alone does not change running containers. After updating docker-compose.yml, recreate the two database services to apply the new bindings. This briefly interrupts database connections but keeps the named data volumes:

docker compose up -d --no-deps falkordb qdrant

Check docker compose ps and the AutoMem /health endpoint afterward. The guided installer's existing-server update rebuilds the API only, so it does not apply these database bindings by itself.

Stop services:

make stop
# Or: docker compose down

Bare API (Development)

Run API without Docker (requires external FalkorDB):

# Activate virtual environment
source .venv/bin/activate

# Set connection details
export FALKORDB_HOST=localhost
export FALKORDB_PORT=6379
export PORT=8001

# Optional: Qdrant configuration (pick one)
export QDRANT_URL=http://localhost:6333    # Full URL (Qdrant Cloud or explicit)
# export QDRANT_HOST=localhost             # OR just hostname (auto-constructs URL)
# export QDRANT_API_KEY=your_key           # Only needed for Qdrant Cloud

# Run API
python app.py

Without Qdrant, semantic vector storage is unavailable. With Qdrant and EMBEDDING_PROVIDER=auto, AutoMem tries configured Voyage, OpenAI, explicitly configured Ollama, and then local FastEmbed. For Railway, configure Voyage rather than depending on the FastEmbed fallback.


Configuration

Environment Variables

AutoMem loads configuration from:

  1. Process environment

  2. .env in project root

  3. ~/.config/automem/.env

Core Settings
VariableDescriptionDefault
PORTAPI server port8001
FALKORDB_HOSTFalkorDB hostnamelocalhost
FALKORDB_PORTFalkorDB port6379
FALKORDB_PASSWORDFalkorDB password (if auth enabled)unset
FALKORDB_GRAPHGraph database namememories
Authentication
VariableDescriptionDefault
AUTOMEM_API_TOKENRequired for all endpoints except /healthunset (required)
ADMIN_API_TOKENRequired for /admin/* and enrichment controlsunset (required)

Client authentication methods (in order of preference):

  1. Authorization: Bearer <token> header

  2. X-API-Key: <token> header

  3. ?api_key=<token> query parameter

Admin operations additionally require X-Admin-Token: <admin_token> header.

Vector Search (Optional)
VariableDescriptionDefault
QDRANT_URLQdrant Cloud endpoint (takes precedence over QDRANT_HOST)unset
QDRANT_HOSTQdrant hostname for self-hosted (auto-constructs http://host:port)unset
QDRANT_PORTQdrant port (used with QDRANT_HOST)6333
QDRANT_API_KEYQdrant authentication (if API-key auth is enabled)optional
QDRANT_COLLECTIONQdrant collection namememories
VECTOR_SIZEEmbedding dimension1024
EMBEDDING_PROVIDEREmbedding provider selectionauto
EMBEDDING_MODELOpenAI embedding modeltext-embedding-3-small
VOYAGE_API_KEYVoyage API key (Voyage provider)unset
VOYAGE_MODELVoyage model (Voyage provider)voyage-4
OPENAI_API_KEYAPI key (OpenAI or compatible provider)unset
OPENAI_BASE_URLCustom endpoint for OpenAI-compatible providersunset
OLLAMA_BASE_URLOllama endpoint for intentional local/self-hosted usehttp://localhost:11434
OLLAMA_MODELPulled Ollama embedding modelnomic-embed-text

👉 New to Qdrant? See the Qdrant Setup Guide for setup options (self-hosted on Railway or Qdrant Cloud).

Upgrade safety: VECTOR_SIZE_AUTODETECT=true (default) adopts an existing collection dimension to avoid a startup mismatch. It does not migrate vectors: changing embedding provider or model requires recreating the collection and re-embedding, even when both models are 1024d.

The recommended setup is Voyage (voyage-4) at 1024d. If Voyage is unavailable, an OpenAI-compatible provider is the API fallback. Use FastEmbed only for intentional local/self-hosted deployments; its 1024d cloud fallback can add roughly 4 GB RSS and materially increase hosting cost.

Enrichment Pipeline
VariableDescriptionDefault
ENRICHMENT_MAX_ATTEMPTSRetry limit for failed enrichments3
ENRICHMENT_SIMILARITY_LIMITNumber of semantic neighbors5
ENRICHMENT_SIMILARITY_THRESHOLDMin cosine score for SIMILAR_TO0.8
ENRICHMENT_IDLE_SLEEP_SECONDSSleep when queue empty2
ENRICHMENT_FAILURE_BACKOFF_SECONDSBackoff between retries5
ENRICHMENT_ENABLE_SUMMARIESAuto-generate summariestrue
ENRICHMENT_SPACY_MODELspaCy model for entitiesen_core_web_sm
Consolidation Engine
VariableDescriptionDefault
CONSOLIDATION_DECAY_INTERVAL_SECONDSDecay cycle frequency3600 (1 hour)
CONSOLIDATION_DECAY_IMPORTANCE_THRESHOLDMin importance to process (empty = all)0.3
CONSOLIDATION_CREATIVE_INTERVAL_SECONDSCreative association cycle3600 (1 hour)
CONSOLIDATION_CLUSTER_INTERVAL_SECONDSClustering cycle21600 (6 hours)
CONSOLIDATION_FORGET_INTERVAL_SECONDSForgetting cycle86400 (1 day)
Search Scoring (Advanced)
VariableDescriptionDefault
RECALL_RELATION_LIMITMax related memories per result5
SEARCH_WEIGHT_*Custom scoring weightsSee app.py defaults

API Reference

Authentication

All endpoints except /health require authentication via:

  • Authorization: Bearer <AUTOMEM_API_TOKEN> (recommended)

  • X-API-Key: <AUTOMEM_API_TOKEN>

  • ?api_key=<AUTOMEM_API_TOKEN>

Admin endpoints additionally require:

  • X-Admin-Token: <ADMIN_API_TOKEN>


Endpoints
GET /health

Check service health.

Response:

{
  "status": "healthy",
  "falkordb": "connected",
  "qdrant": "connected"
}

POST /memory

Store a new memory.

Request Parameters:

FieldTypeRequiredDescription
contentstring✅ YesMemory content (min 1 char)
tagsarrayNoTags for categorization (e.g., ["decision", "database"])
importancefloatNoImportance score 0.0-1.0 (default: 0.5)
typestringNoMemory classification (default: auto-classified)
confidencefloatNoConfidence in type 0.0-1.0 (default: 0.9 if type provided, auto-computed otherwise)
metadataobjectNoCustom metadata (any JSON object)
timestampstringNoISO 8601 timestamp (default: current time)
embeddingarrayNoVector embedding (auto-generated if omitted; default 1024d with voyage-4)
t_validstringNoISO timestamp when memory becomes valid
t_invalidstringNoISO timestamp when memory expires
updated_atstringNoISO timestamp of last update (default: timestamp)
last_accessedstringNoISO timestamp of last access (default: updated_at)

Valid Memory Types:

  • Decision - Strategic or technical decisions

  • Pattern - Recurring approaches or best practices

  • Preference - User/team preferences

  • Style - Code style or formatting preferences

  • Habit - Regular behaviors or workflows

  • Insight - Key learnings or realizations

  • Context - General contextual information (default)

Request Example:

{
  "content": "Chose PostgreSQL over MongoDB for ACID compliance",
  "type": "Decision",
  "confidence": 0.95,
  "tags": ["database", "architecture"],
  "importance": 0.9,
  "metadata": {
    "source": "architecture-meeting",
    "alternatives": ["MongoDB", "MySQL"],
    "deciding_factors": ["ACID", "team_expertise"]
  },
  "timestamp": "2025-09-16T12:37:21Z"
}

Response: 201 Created

{
  "status": "success",
  "memory_id": "uuid-generated-id",
  "stored_at": "2025-09-16T12:37:21Z",
  "type": "Decision",
  "confidence": 0.95,
  "qdrant": "stored",
  "embedding_status": "generated",
  "enrichment": "queued",
  "metadata": {...},
  "timestamp": "2025-09-16T12:37:21Z",
  "updated_at": "2025-09-16T12:37:21Z",
  "last_accessed": "2025-09-16T12:37:21Z"
}

Notes:

  • Explicit type preferred: Send type when you know the classification for immediate, accurate categorization

  • Auto-classification fallback: Omit type to let enrichment pipeline classify based on content

  • Embedding auto-generation: Service generates vectors through the configured provider; auto prefers Voyage, then OpenAI, configured Ollama, FastEmbed, and finally placeholders

  • Timestamp defaults: All time fields default to current UTC time if not provided

  • Background enrichment: Entity extraction and relationship building queued automatically

  • Type validation: Invalid types return 400 Bad Request with list of valid options

  • IDs are server-generated: Clients cannot set id; AutoMem always assigns a UUID to prevent collisions/overwrites.


GET /recall

Retrieve memories using hybrid search.

Query Parameters:

ParameterDescriptionExample
queryFull-text search stringdatabase migration
embeddingVector (comma-separated, dimension matches VECTOR_SIZE)0.12,0.56,...
limitMax results (1-50)10
time_queryNatural time phrasestoday, last week, last 7 days
startISO timestamp (lower bound)2025-09-01T00:00:00Z
endISO timestamp (upper bound)2025-09-30T23:59:59Z
tagsTag filters (multiple allowed)slack, decision
tag_modeany or allany (default)
tag_matchprefix or exactprefix (default)
contextHigh-level context labelcoding-style, preference
languageExplicit language hintpython, typescript
active_pathActive file path (used to infer language/context)/Users/jack/project/app.py
context_tagsComma or list of tags to prioritizecoding-style,python
context_typesMemory types to prioritizeStyle,Preference
priority_idsSpecific memory IDs to treat as anchorsuuid-1,uuid-2

Examples:

# Hybrid query with tags
GET /recall?query=handoff&tags=slack&tag_mode=any

# Semantic search only
GET /recall?embedding=0.12,0.56,...&limit=10

# Time-based recall
GET /recall?query=database&time_query=last%20month

# Tag prefix matching (matches slack:*, slack:U123:*, etc.)
GET /recall?tags=slack&tag_match=prefix

# Require all tags
GET /recall?tags=deployment&tags=success&tag_mode=all

Response:

{
  "status": "success",
  "results": [
    {
      "id": "memory-uuid",
      "match_type": "vector",
      "final_score": 0.82,
      "score_components": {
        "vector": 0.64,
        "tag": 0.5,
        "recency": 0.9,
        "exact": 1.0
      },
      "memory": {
        "content": "...",
        "tags": ["deployment"],
        "importance": 0.9,
        "timestamp": "2025-09-16T12:37:21Z"
      }
    }
  ],
  "time_window": {
    "start": "2025-09-01T00:00:00+00:00",
    "end": "2025-09-30T23:59:59+00:00"
  },
  "tags": ["slack"],
  "count": 5,
  "context_priority": {
    "language": "python",
    "context": "coding-style",
    "priority_tags": ["coding-style","python"],
    "priority_types": ["Style","Preference"],
    "injected": false
  }
}

When no context hints are provided, recall behaves exactly as before (hybrid vector/keyword/tags/time). Context hints simply boost and, if needed, inject style/preference memories relevant to the active file; see docs/API.md for full details.


PATCH /memory/<id>

Update an existing memory.

Request: (all fields optional)

{
  "content": "Updated content",
  "tags": ["new-tag"],
  "importance": 0.95,
  "metadata": { "updated": true }
}

Notes:

  • Changing content triggers automatic re-embedding

  • Partial updates supported (only send fields to change)


DELETE /memory/<id>

Delete a memory from both FalkorDB and Qdrant.

Response:

{
  "status": "success",
  "message": "Memory deleted successfully"
}

GET /memory/by-tag

Filter memories by tags.

Query Parameters:

  • tags - One or more tags (multiple tags params or comma-separated)

  • limit - Max results per page (default 20, max 200)

  • offset - Zero-based page offset (default 0)

Example:

GET /memory/by-tag?tags=deployment&tags=success&limit=20&offset=0

Returns the current page of most important/recent memories matching any requested tag, plus pagination metadata (limit, offset, has_more).


DELETE /memory/by-tag

Delete all memories matching any requested tag.

Query Parameters:

  • tags - One or more tags (multiple tags params or comma-separated)

Example:

DELETE /memory/by-tag?tags=deployment&tags=success

Returns a success payload with deleted_count.


POST /associate

Create a relationship between two memories.

Request:

{
  "memory1_id": "uuid-source",
  "memory2_id": "uuid-target",
  "type": "RELATES_TO",
  "strength": 0.8
}

Authorable Relationship Types:

  • RELATES_TO - General connection

  • LEADS_TO - Causal (bug→solution)

  • OCCURRED_BEFORE - Temporal sequence

  • PREFERS_OVER - User/team preferences

  • EXEMPLIFIES - Pattern examples

  • CONTRADICTS - Conflicting approaches

  • REINFORCES - Supporting evidence

  • INVALIDATED_BY - Outdated information

  • EVOLVED_INTO - Knowledge evolution

  • DERIVED_FROM - Source relationships

  • PART_OF - Hierarchical structure

System-generated / internal relationship types:

  • SIMILAR_TO - Semantic neighbors created automatically

  • PRECEDED_BY - Temporal links created automatically

  • DISCOVERED - Internal consolidation edge with kind=explains|shares_theme|parallel_context

Response:

{
  "status": "success",
  "message": "Association created successfully"
}

GET /enrichment/status

Check enrichment pipeline health.

Response:

{
  "status": "healthy",
  "pending": 5,
  "in_flight": 2,
  "last_success": "2025-10-01T12:34:56Z",
  "last_error": null,
  "workers": 1
}

POST /enrichment/reprocess

Re-queue memories for enrichment (requires admin token).

Request:

{
  "ids": ["memory-id-1", "memory-id-2"],
  "force": true
}

Headers Required:

  • Authorization: Bearer <AUTOMEM_API_TOKEN>

  • X-Admin-Token: <ADMIN_API_TOKEN>


POST /admin/reembed

Regenerate embeddings in batches (requires admin token).

Request:

{
  "batch_size": 32,
  "limit": 100
}

Example:

curl -X POST https://your-automem.railway.app/admin/reembed \
  -H "Authorization: Bearer $AUTOMEM_API_TOKEN" \
  -H "X-Admin-Token: $ADMIN_API_TOKEN" \
  -d '{"batch_size": 32, "limit": 100}'

Perfect for migrations or after updating embedding model.


Migration

For the current migration-script catalog, safety classification, and CLI flags, see scripts/README.md. Follow the migration runbook below for the required backup and validation sequence.

From MCP SQLite Memory Service

Use the migration helper to transfer memories from legacy MCP SQLite:

# Preview migration (dry-run)
python scripts/migrate_mcp_sqlite.py --dry-run

# Run migration with custom settings
python scripts/migrate_mcp_sqlite.py \
  --db /path/to/sqlite_vec.db \
  --automem-url https://your-automem.railway.app \
  --api-token "$AUTOMEM_API_TOKEN" \
  --limit 1000 \
  --sleep 0.1

Options:

  • --db - SQLite database path (auto-detected on macOS/Linux/Windows if omitted)

  • --automem-url - AutoMem endpoint (default: http://localhost:8001)

  • --api-token - API token (uses AUTOMEM_API_TOKEN env var if not specified)

  • --limit - Max memories to migrate

  • --offset - Skip first N memories

  • --sleep - Delay between batches (seconds)

  • --dry-run - Preview payloads without sending

What Gets Migrated:

  • ✅ Content, tags, importance, metadata

  • ✅ Timestamps preserved

  • ✅ Legacy metadata stored under metadata.legacy

  • ✅ Batch processing with progress tracking

Start with --dry-run to inspect, then rerun without it to execute.


Testing

AutoMem includes comprehensive test coverage across three modes:

Unit Tests (Default)
make test
  • No external services required

  • Uses in-memory stubs

  • Fast execution

  • Filtered warnings (see pytest.ini)

Integration Tests (Local Docker)
make test-integration
  • Automatically starts Docker services

  • Runs full integration suite

  • Creates/updates/deletes with unique UUIDs

  • Cleans up after itself

  • Requires Docker and Railway CLI

Live Server Tests (Railway)
make test-live
  • Tests against live Railway deployment

  • Requires Railway CLI and project linkage

  • Interactive confirmation before running

  • Use ./test-live-server-auto.sh for CI

Manual Integration Testing:

# Custom endpoint
AUTOMEM_RUN_INTEGRATION_TESTS=1 \
  AUTOMEM_TEST_BASE_URL=https://your-automem.railway.app \
  AUTOMEM_ALLOW_LIVE=1 \
  AUTOMEM_TEST_API_TOKEN=$AUTOMEM_API_TOKEN \
  AUTOMEM_TEST_ADMIN_TOKEN=$ADMIN_API_TOKEN \
  make test

# Local with auto Docker management
AUTOMEM_RUN_INTEGRATION_TESTS=1 \
  AUTOMEM_START_DOCKER=1 \
  AUTOMEM_STOP_DOCKER=1 \
  make test

Environment Variables:

  • AUTOMEM_TEST_BASE_URL - Override default http://localhost:8001

  • AUTOMEM_ALLOW_LIVE=1 - Required for non-localhost endpoints

  • AUTOMEM_TEST_API_TOKEN / AUTOMEM_TEST_ADMIN_TOKEN - Auth tokens

See TESTING.md for complete testing documentation.


Troubleshooting

Common Issues
401 Unauthorized
  • Cause: Missing or incorrect API token

  • Fix: Ensure AUTOMEM_API_TOKEN matches client's header/query param

  • Check: Look for Authorization: Bearer <token> in request

503 Service Unavailable / FalkorDB is unavailable
  • Cause: Cannot connect to FalkorDB

  • Fix: Verify FALKORDB_HOST and FALKORDB_PORT are correct

  • Check: Test connection: redis-cli -h $FALKORDB_HOST -p $FALKORDB_PORT ping

  • Railway: Ensure FalkorDB service is running and internal hostname is correct

Embedding dimension mismatch
  • Cause: Incorrect embedding dimension

  • Fix: Supply a vector matching VECTOR_SIZE or omit field entirely

  • Note: Service generates placeholder if embedding omitted

Qdrant Errors (Logged but Non-Blocking)
  • Behavior: API continues working; vector search disabled

  • Fix: Check QDRANT_URL and QDRANT_API_KEY configuration

  • Logs: Inspect application logs for specific Qdrant error messages

  • Fallback: FalkorDB operations continue normally

Enrichment Not Processing
  • Check: GET /enrichment/status for queue health

  • Causes:

    • Worker thread crashed (check logs)

    • spaCy model not installed (pip install spacy)

    • Memory already enriched (check metadata.enriched_at)

  • Fix: Force reprocess: POST /enrichment/reprocess with memory IDs

Consolidation Not Running
  • Check: Application logs for scheduler errors

  • Verify: Interval environment variables are valid integers

  • Test: Manually trigger (requires code modification for testing)

Debug Mode

Enable detailed logging:

# Development
export FLASK_ENV=development
export LOG_LEVEL=DEBUG
python app.py

# Production (Railway)
# Set LOG_LEVEL=DEBUG in environment variables
Health Checks
# Basic health
curl https://your-automem.railway.app/health

# Enrichment status
curl https://your-automem.railway.app/enrichment/status \
  -H "Authorization: Bearer $AUTOMEM_API_TOKEN"

# Test memory storage
curl -X POST https://your-automem.railway.app/memory \
  -H "Authorization: Bearer $AUTOMEM_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"content":"Test memory","importance":0.5}'

Support


License

MIT License - See LICENSE file for details.

273 files · 249 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 network
  • AGENTS.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 times
  • CLAUDE.md: Adds short summaries, timestamps (`enriched_at`), and per-run metrics under `metadata.enrichment`.
  • CLAUDE.md: # Run tests
  • CLAUDE.md: make test-integration # Starts services and runs integration tests
  • CLAUDE.md: make test-live # Same as above via Makefile
  • CLAUDE.md: JIT_ENRICHMENT_ENABLED=true # Run entity/summary extraction inline on recall for unenriched memories
  • CLAUDE.md: Install spaCy locally to improve entity extraction:
  • CLAUDE.md: pip install spacy
  • CLAUDE.md: python -m spacy download en_core_web_sm
  • CLAUDE.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
GitHub avatar of jack-arturojack-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