
Recall
io.github.Polign由 GitHub 帳號 Polign 發布v0.24.0更新於 Oct 30, 2026
Agent memory that keeps every correction, with history and as-of reads. Runs on your database.
概覽
Recall 為 AI 助理提供持久記憶,保留每次更正的歷史並支援按時間點回讀,同時保存可續跑的代理狀態,資料存放在你自己的資料庫中。
- 可以做什麼
- 記住、召回與遺忘關於使用者的事實,每次更正都保留為紀錄而非覆寫
- 檢視記憶歷史、查詢某個過去時刻的認知,並比對兩個時間點之間的變化
- 追溯某項事實的來源、判定規則以及它取代掉的舊值
- 記錄並續跑代理的工作狀態:目標、計畫、進度、對話輪次、指標與進行中的工具呼叫
- 透過 HTTP 為多個代理提供相同操作,每個代理位於獨立命名空間
- 適用情境
- 適合需要跨工作階段、跨程序保留使用者事實與偏好,並想查看認知如何隨時間變化的助理。也適合長時間執行或容易中斷、需要從自身紀錄而非快照續跑的代理。
- 執行需求
- 以本機程序透過 stdio 執行,可用 pip、Homebrew 或 go install 安裝;Python 用戶端需 Python 3.10 以上。預設會在 ~/.local/share/recall 下自動啟動本機資料庫,不需模型或 API 金鑰。若要使用自有儲存,需設定 RECALL_BACKEND 與 RECALL_BACKEND_URL,指向 polign_db、搭配 pgvector 的 PostgreSQL、MongoDB 或 Qdrant;純文字擷取所用的模型需另行設定。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Recall,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Polign Recall
Recall gives an agent memory and state that survive the conversation and the process. Memory is what the agent knows: facts a user stated, with every correction kept, so the agent can say what it believes now, what it believed before, and why. State is where the agent is: its progress, its notes to its next instance, and the tool calls it had in flight, so a run that crashes or moves machines resumes from its own records.
Recall is a Go library, a recall binary that serves the same operations as
MCP tools and as HTTP, and a Python client. It stores everything in a
database you run: polign_db, PostgreSQL, MongoDB or Qdrant. Apache 2.0.
[Recall, mem0 and Zep answering questions about a user whose facts changed over nine months]
One user over nine months, three homes, three employers, three work emails, six questions, Claude Opus 5.5 extracting, answering and judging for all three systems: Recall 18/18, mem0 18/18, Zep 12/18. Tokens to save one message: Recall 3.0k, mem0 12.7k, Zep 14.7k.
The code to the Recall repository.
[QR code for https://github.com/Polign/recall]Install
Then give it to the agent you use:
Add to Cursor ·
Add to VS Code ·
any other MCP host: command recall, arguments mcp -write (details).
With nothing configured, memory lives in a local database in
~/.local/share/recall, started on first use and shared by every agent on the
machine. No model and no API key are needed to start. To keep memory in a
database you already run, see Backends.
What a correction looks like
Every change is kept. Three commands read the record:
Why Recall
- Corrections are records, not overwrites. A new value replaces the old one by a rule you can read, and every answer arrives with what it replaced.
- Any moment is readable.
as_of,historyanddiffsay what the agent believed then and when that changed. - Every answer has a source.
recall explainshows the message a fact came from, the rule that decided it, and its history. - Agents resume from records. A crashed or moved agent gets its working state, recent turns and unfinished tool calls back, not a snapshot.
- Your storage, your rules. Memory lives in a database you already run, and the vocabulary of what gets remembered is yours to define or leave open.
Quickstart
Python 3.10 or later. Save a preference, then correct it:
A second process reads the current value, the history, and what was believed before the correction:
The first client to open ./recall-data starts a local database for it and
later clients share it; the memories stay there after the program exits. A
bare Client() uses ~/.local/share/recall, the memory every agent on the
machine shares. The Python client guide covers the rest:
plain-text memory with a model, forgetting, history, and resuming an agent.
How memory works
A memory is a subject, a predicate and a typed value: user,
prefers_editor, neovim. Predicates live in a registry that says what type
a value has, whether the predicate holds one value or many, and which
predicates it contradicts: dislikes excludes likes, gave_away excludes
owns. A single-valued predicate replaces its value on a new statement; a
multi-valued one accumulates. Forgetting records a withdrawal; nothing is
deleted. Recall ships starter registries
for coding, personal assistant, support, sales and voice agents, and you can
change a registry later without
touching what was already remembered.
You do not have to define predicates. With an open vocabulary the first use of a predicate defines it, and with a model configured the MCP tools take plain text and no predicates appear anywhere:
The model decides how each statement is filed. Once filed, replacement follows
the predicate's rule, every filing is recorded, and a wrong filing is corrected
with one event that every later answer follows. No model reconciles memory on
its own: Recall applies the registry's rules, shows what may conflict, and
lets the agent confirm the rest, so every correction reads back to the rule or
statement that made it. recall mcp -typed serves the typed tools
(remember(subject, predicate, value)) instead. The
developer reference has the details and the
Memory API is the contract.
State
The second half of Recall, with its own contract, docs/state-api-v1.md. An agent writes down where it is as it works, and a new process resumes from those records instead of from a snapshot:
- Working state: goal, plan, progress, focus, decisions, open questions.
- Turns, verbatim, and large tool outputs stored by reference.
- Pointers to where the work lives: a branch, an object key, a process.
- Actions: each tool call that touches the world, recorded before it runs and closed with its result, so a crash between the two is visible and the next resume lists the call as unconfirmed instead of repeating it.
Resume takes a lease on the agent id, so one process acts for an agent at a
time, rebuilds the context within a token budget, and renders it as one
briefing for the model:
In Python, an agent remembers a fact and records where it is, the process is killed, and a new process resumes from the records:
Without defer_lease=True, resume raises lease_held until the crashed
process's lease expires (Python client guide).
The same operations are MCP tools (agent_resume, update_working_state,
record_turn, begin_action, ...) and, on recall serve, HTTP routes at
POST /v1/agent/<verb>. Over HTTP the server holds the lease between
requests: resume returns an epoch and every write carries it, so a stale
process cannot write over its successor. The State API is beta; the records it
writes are stable (STABILITY.md). The
resume example kills an agent mid-task and continues it in
a new process.
Serving many agents
recall mcp is one agent, one process. recall serve is the same memory and
state for many agents over HTTP, each inside the namespace its key names. The
server holds the database credentials; agents hold Recall keys.
Each namespace gets its own collection, so nothing a caller sends can reach
another namespace's records. POST /mcp is MCP over streamable HTTP;
POST /v1/<tool> takes a memory tool's arguments as the body, and
POST /v1/agent/<verb> a state tool's. Any stdio MCP client reaches the
server through recall connect with RECALL_URL and RECALL_API_KEY set.
On Kubernetes a pod needs no key at all. With recall serve -kubernetes, it
posts its projected service account token and gets a short-lived key fixed to
its own agent id, which recall connect and the Python client obtain and
renew by themselves. The Helm chart is charts/recall in
Polign/polign; the
agent-sandbox demo runs it on kind.
Backends
Three settings name the database for every command: -backend, -url and
-key, or the variables above. Everything else, including what each backend
needs and how to add one, is in docs/backends.md.
Benchmark
LongMemEval user-facts subset, 267 questions about a user's own facts, preferences, updates and dates, with Claude Sonnet 5.5 as reader and judge and the upstream prompts:
With word search Recall is even with BM25 overall and behind it on preference
questions (70.0 against 83.3); a model embedder puts it ahead. Recall handed
the reader about 28k tokens per question, against 44k for BM25 and 168k for
the full history. The harness is in eval/longmemeval.
Integrations
Documentation
Developer reference · Memory API contract · State API contract · Backends · Connecting through MCP · Caching memory reads · Exporting and replaying history · What is stable and what is beta · Development guide
Support the project
If Recall kept your agent from acting on a stale fact, a star on this repository helps other people find it. Bugs, questions and ideas go in issues.
License
來源:README.md,提交 e616632
工具
0版本歷史
1- v0.24.0最新Oct 30, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分