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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agmemory-0.4.2.tar.gz.
File metadata
- Download URL: agmemory-0.4.2.tar.gz
- Upload date:
- Size: 182.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
972994818369e973577f3c082f77e6053c1853f6f783205492b3822c50e82f60
|
|
| MD5 |
4e053bd0d962c05a6c22b7da785a746e
|
|
| BLAKE2b-256 |
51490d27d4c6084a60092236db6d08d3f1196a6aab70970d2b9fe354e51d48c3
|
Provenance
The following attestation bundles were made for agmemory-0.4.2.tar.gz:
Publisher:
publish.yml on RK0429/agentic-memory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agmemory-0.4.2.tar.gz -
Subject digest:
972994818369e973577f3c082f77e6053c1853f6f783205492b3822c50e82f60 - Sigstore transparency entry: 1097925528
- Sigstore integration time:
-
Permalink:
RK0429/agentic-memory@b536bfd053e8492d49ec727e7d28ce31b0a793ba -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/RK0429
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b536bfd053e8492d49ec727e7d28ce31b0a793ba -
Trigger Event:
push
-
Statement type:
File details
Details for the file agmemory-0.4.2-py3-none-any.whl.
File metadata
- Download URL: agmemory-0.4.2-py3-none-any.whl
- Upload date:
- Size: 79.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4de4bb8a8e48fe590c47de30c1a21fdcb9854a5cbc8b721ae7c0900bba8a700a
|
|
| MD5 |
09a039ed461c1f68f76575e999cfc3f9
|
|
| BLAKE2b-256 |
d327168b3c90d1b8ddcc2a9083e3f029a51bc74a14aa3f01f5ef264b179c6ade
|
Provenance
The following attestation bundles were made for agmemory-0.4.2-py3-none-any.whl:
Publisher:
publish.yml on RK0429/agentic-memory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agmemory-0.4.2-py3-none-any.whl -
Subject digest:
4de4bb8a8e48fe590c47de30c1a21fdcb9854a5cbc8b721ae7c0900bba8a700a - Sigstore transparency entry: 1097925600
- Sigstore integration time:
-
Permalink:
RK0429/agentic-memory@b536bfd053e8492d49ec727e7d28ce31b0a793ba -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/RK0429
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b536bfd053e8492d49ec727e7d28ce31b0a793ba -
Trigger Event:
push
-
Statement type: