Skip to main content

memory-cli

CI

The mem memory engine: a store of notes and lessons you search, curate and keep in git, plus the background commands that settle, capture, corroborate, integrate, research and synthesize it. It is the engine of the Agent-Skills memory plugin for Claude Code and Codex, and works from a terminal on its own.

Status

Alpha (0.1.0), on PyPI. The Agent-Skills memory plugin still bundles its own frozen copy of this engine until it switches to this package.

Requirements

Need Detail
uv installs the commands in an isolated environment
Python 3.12 to 3.15
OS Linux or macOS (Windows is not supported yet)
git the store keeps its history in git

Install

From Command
PyPI uv tool install memory-cli
A checkout uv tool install .

If uv tool install refuses because ~/.local/bin/mem* already exists, those files are launchers an older plugin wrote. Remove them (files with another second line are kept) and install again:

uvx --from memory-cli mem install-command --remove && uv tool install memory-cli

Commands

Command Does
mem memory engine: search and read a store of notes, and write, curate and check it
mem-auto one bounded curation run in the background
mem-capture memory capture from session transcripts: run, auto, sweep, exclude, ack
mem-corroborate a background pass that matches lessons by meaning and keeps one general record of each
mem-integrate joins loose knowledge notes to the parts of syntheses with two cheap read-only sessions each
mem-research answer a question from memory, then (by depth) check notes and the question against the web
mem-settle one bounded settling run in the background
mem-synthesize write syntheses for topics that have none, quietly, one headless session per step

<command> --help lists the options. The background commands run a headless claude or codex session (--runner).

Use from a host plugin

A plugin adapter starts the installed CLI and can pin what it needs:

Variable or command Meaning
mem protocol one JSON line {"version": "0.2.0", "protocols": [1]}; no store access, no writes; 0.1.0 lacks it
MEM_REQUIRE_PROTOCOL=N every entry point exits 78 with one stderr line unless it speaks revision N; unset or empty skips the check
MEM_PLUGIN_ROOT=DIR the plugin folder (must hold hooks/) for the synthesize skill, diagnostics and hooks; else the source tree, else the folder in <state dir>/plugin-root

Development

uv sync --group dev                       # pinned Ruff and basedpyright, pytest
uv tool install pre-commit && pre-commit install   # once per clone: commit checks lint and types, push runs the suite
uv run pytest tests -q -n auto            # full suite; `-m "not slow"` skips the tests that spawn processes
uv run ruff check . && uv run ruff format --check .
uv run basedpyright
uv build                                  # sdist, then the wheel from it

The repository carries its own tool configuration (ruff.toml, pyrightconfig.json, tests/pytest.ini, .pre-commit-config.yaml), so it works the same nested in an Agent-Skills checkout or on its own. The package is flat (memory_cli/ at the root) so a fix ports one to one between this repository and the plugin's copy.

Release

Maintainers. The workflow .github/workflows/release.yml builds once, tests that wheel on Linux and macOS, rehearses an install, and publishes through PyPI Trusted Publishing (environments pypi and testpypi; no tokens).

  1. Rehearse: set version in pyproject.toml to a pre-release (X.Y.ZrcN or X.Y.Z.devN; an index accepts a version only once), merge to main, then run the workflow from main with workflow_dispatch (target: testpypi).
  2. Release: set version to X.Y.Z and the CHANGELOG.md heading to ## [X.Y.Z] - YYYY-MM-DD; merge to main.
  3. Tag vX.Y.Z on that main commit (it must equal the pyproject.toml version) and push the tag. After the tests the publish-pypi job waits for the owner's approval of the pypi environment, then publishes. PyPI is reachable only from a v* tag.

A pull request that touches the workflow, pyproject.toml or tests/packaging/ runs everything except publishing.

License

MIT, see LICENSE.

Metadata

Release files for memory-cli 0.2.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 memory-cli 0.2.0
File Size Uploaded Provenance Actions
memory_cli-0.2.0.tar.gz 791.4 kB With provenance Details for memory_cli-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for memory-cli 0.2.0
File Interpreter ABI Platform Actions
memory_cli-0.2.0-py3-none-any.whl Python 3 none any Details for memory_cli-0.2.0-py3-none-any.whl

Total release size: 1.3 MB

Release files / memory_cli-0.2.0.tar.gz

Download URL memory_cli-0.2.0.tar.gz
Size 791.4 kB
Tags Source
SHA-256 checksum
How to use checksums
94c00bcde66738d362716e2d2cf24ae9a0270619c7814921b7198f45de2e95f6
BLAKE2b-256 checksum
How to use checksums
d7b348828e97a9fb84c8c152ee21bd570c316f6fa0f24550b913f54f7bf71614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / memory_cli-0.2.0-py3-none-any.whl

Download URL memory_cli-0.2.0-py3-none-any.whl
Size 473.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
958a2316d868ba03e716f68bd08db26fc46d3deaa4c7f04deec4eef8a614f7c7
BLAKE2b-256 checksum
How to use checksums
cc9695fda3281b59444f308d60f765db2b680dc52aa996a8ea8c5ba6c85cb8d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for memory-cli 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for memory_cli-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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