Skip to main content

Local-first LLM-driven memory system

Project description

Memoria

Memoria turns raw work context into structured local memory

Local memory for long-running agents.

把零散上下文沉淀成可检索、可审计、可持续更新的工作记忆。

PyPI Python versions CI Release GitHub stars Downloads

Memoria 是一个本地优先、由 LLM 驱动的工作记忆归档器。它把原始笔记、任务上下文、项目决策和 Agent 工作记录整理成 Memory Issue、Memory Chain、Proposal 和可审计的 Patch。

当前版本以 CLI 为主,数据默认保存在本机 SQLite 和 JSONL transcript 中;sleep 整理流程可以离线 mock,也可以调用 OpenAI Responses API。

安装

推荐使用 uv tool installuv 会自动创建隔离环境,不绑定当前项目目录或 shell 里的虚拟环境:

uv tool install memoria-cli
memoria --help

也可以使用 pip;这种方式要求当前 Python 环境已经是 3.11 及以上:

python -m pip install memoria-cli
memoria --help

或者从 GitHub Releases 下载单文件二进制,不需要预装 Python。

快速开始

memoria ingest text "今天决定:Memoria MVP 先做本地 CLI,不做 Web UI。" \
  --title "Memoria MVP direction" \
  --tag memoria \
  --hint "整理成项目决策"

memoria sleep --mock
memoria issue list --json

使用真实 LLM 整理:

export OPENAI_API_KEY="..."
memoria sleep --limit 20 --strictness balanced

文档

完整文档入口见 docs/README.md

中文 English
安装 Installation
快速开始 Quick Start
配置 Configuration
CLI 使用说明 CLI Guide
设计边界 Design Notes
开发者说明 Development

特性

  • Local-first storage with SQLite, JSONL transcripts, zip backups, and local Git backups.
  • Raw text, file, and stdin ingestion.
  • LLM sleep consolidation with deterministic mock mode and OpenAI mode.
  • Tool-assisted memory lookup during LLM consolidation.
  • Transactional MemoryPatch application with patch audit records.
  • Query commands for Memory Issue, Chain, Proposal, Patch, and Sleep jobs.
  • Optional single-file binaries for Linux, macOS, and Windows.

状态

Memoria is early alpha software. The current scope is intentionally narrow: local CLI first, no Web UI, no API server, no MCP server, no cloud sync, and no destructive memory deletion.

Memoria 仍处于 early alpha 阶段。当前范围刻意保持克制:本地 CLI 优先,没有 Web UI、API server、MCP server、云同步,也没有破坏性删除记忆。

开发

python -m pip install -e ".[dev]"
pytest -q
uv build

See Development or 开发者说明 for the full workflow.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memoria_cli-0.1.4.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memoria_cli-0.1.4-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file memoria_cli-0.1.4.tar.gz.

File metadata

  • Download URL: memoria_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memoria_cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 507411cb7d76d8d14dd54aa1a698933302680426b9a5d3af4d27bea31042705a
MD5 284faa80cc6592060563fdbed552d150
BLAKE2b-256 5eba2eb5252a8e98d345d494dc1b65b6655720e9ea2b917517a797501235aa35

See more details on using hashes here.

Provenance

The following attestation bundles were made for memoria_cli-0.1.4.tar.gz:

Publisher: release.yml on SunJun8/memoria

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file memoria_cli-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: memoria_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 35.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memoria_cli-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5cdc05963070bffa38c7b02bdfc4ec581948dd57bf86096d8250247cfacb96b6
MD5 f0b0c93e2d40961c5037de8a8a1301a8
BLAKE2b-256 348f1adb8fb46ab27e6622262d093b4da33f463892df9548fe23421bd0892253

See more details on using hashes here.

Provenance

The following attestation bundles were made for memoria_cli-0.1.4-py3-none-any.whl:

Publisher: release.yml on SunJun8/memoria

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page