Skip to content
MemoRizz
GitHubGet started

v0.17.34 · Python 3.10+

The intelligence plane for memory-first agents.

MemoRizz connects persistent memory, models, prompts and reasoning, so your agents recall what matters, reuse experience and make better decisions across sessions.

The Mac app runs the local UI in its own window, and installs MemoRizz on first launch. For macOS 13 or later; the first time, allow it in System Settings › Privacy & Security.

pip install memorizz

MemoRizz in a minute.

The Python SDK, the CLI, the local UI and MCP, and coding agents side by side. 57 seconds, no sound.

See what your agents remember.

The local UI ships with MemoRizz: run memorizz ui. Chat with an agent and see what it recalls, browse every memory it holds, and watch runs, learning and scheduled jobs.

Playground: The Support Assistant recaps a customer's saved sizes and delivery preferences. The Memory panel shows the customer entity it saved and the store-policy document in its knowledge base.Playground: The Support Assistant recaps a customer's saved sizes and delivery preferences. The Memory panel shows the customer entity it saved and the store-policy document in its knowledge base.

The Support Assistant recaps a customer's saved sizes and delivery preferences. The Memory panel shows the customer entity it saved and the store-policy document in its knowledge base.

Memory archive · v1

Take your agents' memory with you.

Export a project or an agent's memory graph to a .memorizz.json file. The format keeps all 13 stores aligned with the memory taxonomy, with explicit links between records and a checksum to check the file's integrity.

Restore to filesystem, MongoDB, Oracle AI Database or Notion through the UI, SDK, CLI, MCP or coding-agent plugins. Agent exports can include delegates, their separate private memories, shared coordination and recorded evolution.

Explore the archive format

One entry in stores.knowledge_base

{
  "id": "dfbde207-859c-4cde-9921-37e959d31ade",
  "data": {
    "memory_id": "harbor-demo",
    "user_id": null,
    "content": "The release owner is Mira."
  }
}
The full archive includes its format version, taxonomy, manifest, stores and SHA-256 checksum. Credentials and embeddings are omitted by default.See the UI walkthrough →

Forgetting mechanism

Memories decay the way Generative Agents forget.

Retrieval ranks every memory by recency since it was last used, the importance it was given when written, and relevance to the query. Recalling a memory keeps it fresh; unused ones sink. Nothing is deleted by ranking alone.

A governed second tier plans a dry run over records whose retention decayed, needs a named approver, and hides them from retrieval with a reversible state. Pinned, verified and cited records are protected, and every suppression can be restored. Tune the decay, weights, importance rater and thresholds globally in Settings or per agent.

Read how forgetting works

Applied on every turn, per candidate set

# Every retrieved candidate, before it enters the prompt (Park et al. 2023)
recency    = 0.995 ** hours_since_last_access
importance = stored 0..1 rating (default 0.5)
relevance  = cosine to the query
score      = normalize(recency) + normalize(importance) + normalize(relevance)

# Selecting a memory counts as a recall: last_accessed_at = now, access_count += 1
Importance comes from a free heuristic or a small model using the paper's prompt. Suppressions are journalled with the approver and plan id and appear on the memory evolution timeline.See the control plane →

Proactive mode

Your agent suggests the next step before you ask.

Switch on prospection and a background loop reads what the agent remembers, the tools it has and the workflows it has saved, and writes down what is likely to happen next and what to do about it. Each prospect cites the memories it came from. Prospects are kept apart from what really happened, so a guess is never recalled as a fact.

The level decides how far it may go on its own. Risk is worked out from how each tool is declared, never by the model, and every pass stays inside a daily token budget.

At every level, anything that sends, deletes or needs approval waits for you.
LevelOn its own
LowProposes the next step and waits for you
MediumAlso runs read-only preparation
HighAlso takes steps it can undo
How the prospection loop works

agent.py

from memorizz import MemAgent

agent = MemAgent(
    instruction="You help me plan trips.",
    llm_config={"provider": "openai", "model": "gpt-4o-mini"},
    prospection="low",        # off unless you turn it on
)
agent.run("I fly to Lisbon on 14 March for a conference. No hotel yet.")

for prospect in agent.prospect(force=True):
    print(prospect.title, prospect.score, prospect.source_memory_ids)
    agent.accept_prospect(prospect.prospect_id)   # the agent carries it out
In the playground each prospect shows what it is based on and whether it is read-only or reversible. Approve, snooze or dismiss it, and mark it helpful or not: that tunes what the loop looks at next.

Framework

Everything around the memory, too.

Storage

Persist and isolate

Scope memory by agent, user and conversation. Start on local files, then move to Oracle AI Database, MongoDB, Notion with separate vectors, or any other database through one provider contract.

Retrieval

Ingest and recall

Turn files and folders into a knowledge base with configurable chunking and embeddings, then recall with semantic or hybrid search.

Context

Keep context lean

Deduplicate recalled memories, summarize and compact history, cache prompts, and decide what is kept and what is forgotten.

MetaHarness

One control plane for coding agents

Run tasks through Codex, Claude Code, OpenHands, DeepSeek, pi, Hermes or MemAgent workers, with approvals, workspace isolation, budgets and cancellation.

Learning

Learn from experience

Distil repeated successes into skills and demote the ones that stop working. Fine-tune the models behind memory on your own memories, and swap one in when it beats the one in use.

Proactive

Suggest the next step

Switch on prospection and an agent works out the likely next step from what it remembers, its tools and its saved workflows, citing its sources. At higher levels it takes the step, and anything that sends or deletes still waits for you.

Operations

See every decision

Traces for each model and tool call, usage and cost analytics, and approvals before anything irreversible.

Caching

Call a slow tool once

A tool call cache reuses the result of a repeated call to a tool marked safe to reuse, for the same user, while it is fresh. Tools with side effects always run.

Plugins

Memory for Codex and Claude Code

Each session starts with the project's memories and the last session's summary, every turn is saved, and every session appears in the UI step by step. Both agents share it, locally or on a hosted MCP server.

MetaHarness

Put coding agents side by side.

Give Codex, Claude Code, a MemAgent and other harnesses the same task. MemoRizz runs them at once, then lines up what each one did, how long it took, what it cost and what it answered.

MetaHarness guide
  • Same task, same memory.Every harness gets the same task, limits and memory snapshot, and they run at the same time. Comparisons are read-only.
  • One timeline.Model calls, tool calls, commands and subagents in one lane per harness. Each lane starts when its harness started, so lengths compare directly.
  • Effort marked, judgement yours.The fastest run and the ones with the fewest tokens and actions are flagged. Answers and full trajectories sit side by side for you to judge.
Compare 3 runs: Codex, Claude Code and a MemAgent on the same task, with status, model, time, cost, tokens and actions for each, and a shared timeline of their model calls, tool calls and commands.Compare 3 runs: Codex, Claude Code and a MemAgent on the same task, with status, model, time, cost, tokens and actions for each, and a shared timeline of their model calls, tool calls and commands.
A real run: Codex, Claude Code on Claude Haiku 4.5, and a MemAgent on a local gemma4 model each found the same failing test and proposed the same one-line fix. Claude Code finished first; the MemAgent used the fewest tokens.

From the terminal:

memorizz harness compare "Find the failing test" --harness codex --harness claude-code --harness memagent

Tool call cache

Don't call the same tool twice.

A tool that is safe to reuse opts in. When the same call comes again for the same user, the agent answers from the stored result while it is fresh. MCP tools qualify when their server marks them read-only and idempotent. Anything with side effects always runs.

@governed_tool(cacheable=True, cache_ttl_seconds=600)
def lookup_order(order_id: str) -> dict:
    """Look up an order's status, carrier and dates."""
    return orders_api.get(order_id)

agent = MemAgent(tools=[lookup_order], tool_cache=True)
Eight support tickets on local qwen2.5:7b, averaged over two rounds
MeasureNo cacheTool cache
Real API calls84
Queue time36.6 s28.6 s
Correct answers8 of 88 of 8
How the cache decides
The harness Compare view with two MemAgents on the same task: the one with a tool cache took 2 of 3 tool calls from its cache and finished first.
The same MemAgent with and without a tool cache, compared in the UI. With the cache, the order lookup and shipping quote came back in under 0.1 s; live parcel tracking ran in both. 18.2 s against 24.5 s.

Computer use

Let agents operate the apps on your Mac.

An agent reads any app's window as a numbered outline of its buttons, fields and text, then clicks, types, presses keys and scrolls by number. It reads text, not pixels, so it works with any tool-calling model, local ones included.

Actions reach the app in the background, so you keep working in another one and your typing never lands in the agent's app. Reading is free; every action waits for your approval. Each run is kept as workflow memory, step by step with screenshots, so you can see what the agent did and repeated procedures can become skills.

Read the desktop control guide
# The macOS extra, then Accessibility for the app you run MemoRizz in
uv tool install --python 3.12 "memorizz[desktop]"
memorizz desktop doctor --ask

# One MCP connection, one tool per action; restart the chat to use it
memorizz desktop connect
memorizz

> Open Calculator and work out 12 × 7.
A local MCP server driven through macOS Accessibility. Apps that hide their content, such as Notion's desktop app, are better reached through their own MCP server.See MCP connections →

Codex + Claude Code

One project, two coding agents, one memory.

With the MemoRizz plugin, Codex and Claude Code share each project's memory. Codex fixes a bug and saves why; Claude Code, in a new session, explains the change without reading the diff. Every session also shows up in the UI as a run, with each command, tool call and file change, so you can compare them.

Install it in Claude Code, straight from GitHub:

claude plugin install memorizz --marketplace RichmondAlake/memorizz

Or install both plugins with MemoRizz:

memorizz plugin install codex
memorizz plugin install claude-code
memorizz ui    # Harnesses: every session, step by step
Two sessions on a small checkout project, one after the other
SessionCodexClaude Code
Asked toFix the failing testExplain why points use int()
MemorySaved what it changed and whyRead the summary, searched the fact
Took53 s · 6 commands13 s · $0.05
See each session's trajectory
The harness Compare view with a Codex plugin session and a Claude Code plugin session side by side: models, time, cost, tokens, actions and a timeline of their steps.
A real run. Codex fixed the rewards bug (int, not round) and saved why. Claude Code, in a new session, explained it from Codex's session summary and the saved fact. Both sessions, compared in the UI.

Quickstart

An agent that remembers, in a few lines.

Without a provider, memory persists to ~/.memorizz/memory. Point the same code at Oracle AI Database, MongoDB or any other database of your choice when you deploy.

Python SDK quickstart

agent.py

from memorizz import MemAgentBuilder

agent = (
    MemAgentBuilder()
    .with_name("Support memory")
    .with_instruction("Answer concisely; use prior context when relevant.")
    .with_llm_config({"provider": "openai", "model": "gpt-4o-mini"})
    .with_memory_ids("support-demo")
    .build()
)

scope = {
    "memory_id": "support-demo",
    "user_id": "user-42",
    "thread_id": "thread-1",
}
agent.run("I prefer Python examples.", **scope)

# A later turn recalls the preference.
print(agent.run("How should you show me code?", **scope))
agent.close()

Integrations

Bring your models, stores and agents.

Models
OpenAIAnthropicAzure OpenAIOllamaHugging FaceMLX
Memory stores
Local filesMongoDBOracle AI DatabaseNotion
Coding agents
CodexClaude CodeOpenHandsDeepSeekpiHermes
Interfaces
Python SDKCLILocal UIMCP serverCodex & Claude Code plugins