Catalog PyPI
Back to packageRELEASE DETAILS

0.23.2

PyPI

agmemory

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

agentaimcpmemorymodel-context-protocolragsession-notes
Published26 Apr 2026
Direct dependencies6
Transitive dependenciesNot calculated

README

Version 0.23.2 documentation

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"]
    }
  }
}

Upgrading

After upgrading the package, reconnect the MCP server to pick up new tool parameters and schema changes. In Claude Code, run /mcp and select reconnect; other MCP hosts may require restarting the server process.

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 10

Native requirements
6 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
click
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
click>=8.1.0runtime
mcp
Environment
{
  "extras": "cli",
  "marker": null,
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
mcp[cli]>=1.0.0runtime
numpy
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
numpy>=1.26.0; extra == "all"runtime
sentence-transformers
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
sentence-transformers>=2.2.0; extra == "all"runtime
sudachidict-core
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
sudachidict-core>=20240716; extra == "all"runtime
sudachipy
Environment
{
  "extras": "",
  "marker": "extra == \"all\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
sudachipy>=0.6.8; extra == "all"runtime
numpy
Environment
{
  "extras": "",
  "marker": "extra == \"dense\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
numpy>=1.26.0; extra == "dense"runtime
sentence-transformers
Environment
{
  "extras": "",
  "marker": "extra == \"dense\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
sentence-transformers>=2.2.0; extra == "dense"runtime
sudachidict-core
Environment
{
  "extras": "",
  "marker": "extra == \"japanese\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
sudachidict-core>=20240716; extra == "japanese"runtime
sudachipy
Environment
{
  "extras": "",
  "marker": "extra == \"japanese\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
sudachipy>=0.6.8; extra == "japanese"runtime

Distribution files

2 collected
agmemory-0.23.2-py3-none-any.whl

bdist_wheel · 142.08 KB · Python py3

Source file
agmemory-0.23.2.tar.gz

sdist · 364.19 KB · Python source

Source file

Repository

PENDING
rk0429/agentic-memory

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:15 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:537c2cff87616a9f1c044729c24f7ea55ff0a09962fd96a8b0176d72cfc859dd

Other collected versions

View all collected versions →