Skip to main content

Engram

Persistent memory for AI agents, backed by SQLite + FTS5.

Install

pip install memorytrace

Optional extras:

pip install "memorytrace[llm]"
pip install "memorytrace[semantic]"
pip install "memorytrace[mcp]"
pip install "memorytrace[full]"

Simple CLI

The default CLI is engram. python -m engram is equivalent.

engram init
engram save "Minseong Jeong is the CTO of Galaxy Corp"
engram find "CTO"
engram who "Minseong Jeong"
engram remember "Minseong Jeong" "Interested in AI and robotics"
engram status

Advanced CLI

Use engram-advanced when you need structured options, JSON output, or a custom DB path.

engram-advanced --db ~/.engram/memory.db search "Galaxy Corp" --max-results 5
engram-advanced --json health

Python SDK

from engram.integrations.sdk import EngramSDK

with EngramSDK() as sdk:
    sdk.start_session("assistant")
    sdk.store("Minseong Jeong is the CTO of Galaxy Corp")
    sdk.add_fact("Minseong Jeong", "Interested in AI and robotics")
    result = sdk.search("Galaxy")
    print(result.to_agent_context())

Source Checkout Compatibility

A repo-local python mem ... wrapper is kept for backward compatibility in source checkouts. It forwards to the same simple CLI as engram, but it is not installed as a packaged console script.

Docs

  • docs/04-usage-guide/01-quickstart.md
  • docs/04-usage-guide/02-claude-code-setup.md
  • docs/01-project-analysis/05-cli-commands.md
  • docs/01-project-analysis/09-setup-guide.md

Metadata

Release files for memorytrace 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for memorytrace 0.5.0
File Size Uploaded
memorytrace-0.5.0.tar.gz 345.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for memorytrace 0.5.0
File Interpreter ABI Platform
memorytrace-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 537.8 kB

Release files / memorytrace-0.5.0.tar.gz

Download URL memorytrace-0.5.0.tar.gz
Size 345.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3b68f2d110f6acc34cf83f1187d67170fba776d3625a4579e6bb1a6f6cbbb45d
BLAKE2b-256 checksum
How to use checksums
0df2d5e9c68e4f8bf177aab6f202b0a54bed2eac4a546751829a56e596aff6e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / memorytrace-0.5.0-py3-none-any.whl

Download URL memorytrace-0.5.0-py3-none-any.whl
Size 192.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf397299587b4f04c5da969519e523c9c8106f9bcff5d8ee73454322567337a2
BLAKE2b-256 checksum
How to use checksums
96849f0e6168377171eb91b578d6a2b081860fc72638683db352143b7b573e56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page