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.1

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.1
File Size Uploaded Provenance Actions
memory_cli-0.2.1.tar.gz 792.7 kB With provenance Details for memory_cli-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.3 MB

Release files / memory_cli-0.2.1.tar.gz

Download URL memory_cli-0.2.1.tar.gz
Size 792.7 kB
Tags Source
SHA-256 checksum
How to use checksums
94682c8ed5783f86c0125c8464d892b2653e88492b2d217410f45c2f4275fcfd
BLAKE2b-256 checksum
How to use checksums
a99d5f7130106515effc03a85d840c6bdd0e0acc1636d09e349a8db83d790c3b
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 30, 2026.

Transparency log

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

Download URL memory_cli-0.2.1-py3-none-any.whl
Size 473.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5729947b2ebb9419056d52a91af82f6919e97295697238fd131ecb93d8ae171
BLAKE2b-256 checksum
How to use checksums
0ef8f42633d139a2a26701bc7b8e606fa1cd09f7cf918d812ed939acad323582
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 30, 2026.

Transparency log

Security for memory-cli 0.2.1

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.1.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 30, 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