MemoRizz: A Python library serving as a memory layer for AI applications. Leverages popular databases and storage solutions to optimize memory usage. Provides u
MemoRizz: A Python library serving as a memory layer for AI applications. Leverages popular databases and storage solutions to optimize memory usage. Provides u
The intelligence plane for memory-first agents.
Memorizz is a Python framework that connects persistent memory, models, prompts, and reasoning so agents can recall what matters, reuse experience, and make better decisions across sessions.
Documentation · PyPI · Examples · Changelog
Memory is the foundation: retain information, retrieve relevant context, and refine what an agent knows over time.
| Memory | What it gives your agents |
|---|---|
| Episodic | Conversation history, past interactions, and summaries. |
| Semantic | Knowledge bases, entity facts, preferences, and personas. |
| Procedural | Registered tools, recorded workflows, and reusable skills. |
| Short-term | Working context and semantic caching. |
| Shared | A shared workspace for agent coordination and handoffs. |
Explore memory concepts and scope, storage providers, and context efficiency.
Build persistent agents with MemAgent and MemAgentBuilder. Choose
assistant, workflow, or deep_research modes and connect cloud or local
model providers.
Start with the SDK quickstart or the CLI guide.
MetaHarness runs tasks through Codex, Claude Code, OpenHands, or native
MemAgent workers. It carries memory scope and learning evidence across
harnesses while managing permissions, approvals, workspace isolation, budgets,
cancellation, and host-side verification.
Use an external harness for an entire task or let a MemAgent call one as a
specialist tool. Inspect installed adapters with memorizz harness doctor.
See the MetaHarness guide and hands-on examples.
The intelligence plane is the model layer and everything that helps it think: the LLM, prompts, reasoning strategies such as planning, reflection, and tool selection, plus the memory and retrieval that supply context. Its job is decision quality. A bad plan or a hallucinated tool call is an intelligence plane problem.
Memorizz makes memory the foundation of this plane. Its opt-in continual learning loop captures tool workflows and their outcomes, distills repeated successful procedures into reusable skills, retrieves relevant active skills, and monitors their performance. Shadow evaluation and review support skill activation; skills that stop working can be demoted.
The learning control plane adds traceable outcome evidence, bounded retrieval, and reversible forgetting. Together, these capabilities help agents retain, recall, reuse, and refine experience.
Read about continual learning, the learning control plane, and evaluation methods.
Requires Python 3.10+. Install and launch the CLI with a cloud model:
python -m pip install memorizz
export OPENAI_API_KEY="your-key"
memorizzFor a fully local setup, use Ollama.
The installation guide covers uv,
pipx, npm, Homebrew, and optional integrations.
Build a memory-first agent in Python using the same environment:
from memorizz import MemAgentBuilder
agent = (
MemAgentBuilder()
.with_instruction("Remember useful context and use it to help the user.")
.with_llm_config({"provider": "openai", "model": "gpt-4o-mini"})
.with_memory_ids("my-assistant")
.build_and_save()
)
scope = {"memory_id": "my-assistant", "user_id": "alice", "thread_id": "intro"}
with agent.lifecycle(close_memory_provider=True):
agent.run("I work on payments systems.", **scope)
print(agent.run("What did I tell you about my work?", **scope))Memory persists under ~/.memorizz/memory by default. Save agent.agent_id to
restore the agent later.
Source available under PolyForm Noncommercial 1.0.0. See NOTICE. Memorizz is experimental: APIs may change and it has not undergone security hardening for production workloads.
No open issues yet, or sync has not completed.