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 with mem install-command --remove (from the plugin's mem), or delete the ~/.local/bin/mem* files whose second line is # agent-memory launcher (mem install-command), then install again.

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

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

Built distribution (wheel)

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

Total release size: 1.3 MB

Release files / memory_cli-0.1.0.tar.gz

Download URL memory_cli-0.1.0.tar.gz
Size 788.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b83ed5840dcd671a3597bf0f741ddcb25be688deada633cc53190b7c3d8f068a
BLAKE2b-256 checksum
How to use checksums
1bce97bf960b53b1a7abd0d1fcf23606bb52ef130c824eea396abf4ae07b0b54
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.1.0-py3-none-any.whl

Download URL memory_cli-0.1.0-py3-none-any.whl
Size 471.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba5edc05e8b10ed3be47cc393d0deaa94b6340c20d2b29b4369c317b8d4e9f83
BLAKE2b-256 checksum
How to use checksums
67da8671fd6550c590e39d386e1c27aec297c1c4d4aff74a0a5d36eaf614fb4f
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.1.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.1.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