Skip to main content

Persistent memory system for AI agents — session notes, rolling state, and RAG search

Project description

agmemory

Persistent memory system for AI agents — session notes, rolling state, and RAG search.

Features

  • Session notes: Create structured markdown notes per session with metadata extraction
  • Rolling state: Track focus, open items, decisions, pitfalls across sessions
  • RAG search: BM25+ scoring with field-level weighting, query expansion, fuzzy matching
  • MCP server: Expose all operations as MCP tools for AI agent integration
  • CLI: Full-featured command-line interface

Installation

pip install agmemory

With optional features:

# Japanese tokenization support
pip install agmemory[japanese]

# Dense embedding search
pip install agmemory[dense]

# All extras
pip install agmemory[all]

Quick Start

CLI

# Initialize memory directory
memory init

# Create a session note
memory note new --title "Fix authentication bug"

# Search notes
memory search --query "authentication timeout"

# Show current state
memory state show

# Update state from a note
memory state from-note memory/2026-03-02/1830_fix-authentication-bug.md

MCP Server

Register in your .mcp.json:

{
  "mcpServers": {
    "memory": {
      "command": "memory",
      "args": ["serve"]
    }
  }
}

Or with uvx:

{
  "mcpServers": {
    "memory": {
      "command": "uvx",
      "args": ["agmemory", "serve"]
    }
  }
}

Memory Directory Structure

memory/
├── _state.md              # Rolling state
├── _index.jsonl           # Lightweight search index
├── _rag_config.json       # Search configuration
├── _vocab.json            # Vocabulary cache for fuzzy matching
└── YYYY-MM-DD/
    └── HHMM_slug.md       # Session note

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agmemory-0.5.5.tar.gz (193.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agmemory-0.5.5-py3-none-any.whl (82.4 kB view details)

Uploaded Python 3

File details

Details for the file agmemory-0.5.5.tar.gz.

File metadata

  • Download URL: agmemory-0.5.5.tar.gz
  • Upload date:
  • Size: 193.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agmemory-0.5.5.tar.gz
Algorithm Hash digest
SHA256 5491e268f92204a7924fee5565358cc5081cd0041ac3cd930eb84d17e2faddbb
MD5 9e6d73b102e7bbfa7f5dbad5fca6b0bd
BLAKE2b-256 708be9e0c5518fe5bf01bf6ff28cc49dc03a5efc721d3646bb4ae27f24ea5595

See more details on using hashes here.

Provenance

The following attestation bundles were made for agmemory-0.5.5.tar.gz:

Publisher: publish.yml on RK0429/agentic-memory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agmemory-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: agmemory-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 82.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agmemory-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 38757a7f96880d1143a5da4d79bd1e6851cbeccb03e3e00032d73b044e3c96cf
MD5 3d86e982fa0a4a267b602d03d4dc786f
BLAKE2b-256 cf2dbd3c9484dd85459cdea5cc8b260564ce0e68d937f89f622742475039e98d

See more details on using hashes here.

Provenance

The following attestation bundles were made for agmemory-0.5.5-py3-none-any.whl:

Publisher: publish.yml on RK0429/agentic-memory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page