@unblocklabs/unblock-memory
v0.27.0
Published
Workspace-native memory for OpenClaw, powered by QMD
Readme
Unblock Memory
Long-term memory for OpenClaw and OODA agents. Unblock Memory indexes each agent's
workspace Markdown, and optionally its past conversations, so the agent can find
what it already knows with memory_search and check the source with memory_get.
Results are ranked by how useful each passage is for the question, not only by
keyword or vector similarity.
OODA
OODA core 0.0.4+ loads @unblocklabs/unblock-memory through ooda.plugin.json.
@unblocklabs/ooda-core 0.0.5 or later is recommended for durable outbound delivery
action correlation and automatic RPC cancellation when the HTTP client disconnects.
It registers the bundled skills and indexes workspace memory, knowledge, and
canonical OODA sessions. Recall and Events cover all chat types by default.
Use sessionRecall or corpus and Events settings to narrow access explicitly.
Existing stateDir, indexFile, legacyImport, and embeddings: false settings
still work. The default plugin databases are unblock-memory/qmd.sqlite and
unblock-memory/unblock-memory.sqlite under the OODA state directory. The OODA
transcript database is read-only to the plugin. Use memory_sync_status to
check background projection; memory_diagnostics reports the active settings.
Set wakeDeadlineMs to change the Whisperer budget (default 15,000 ms;
0 leaves it unlimited).
OODA exposes all 21 memory tools, including Curation, Review, and Deep Thought. Steward, extraction, response auditing, Inside Out, and Fleet Commons schedules are off until enabled in the plugin config. One-off runs are available through the daemon without enabling their schedules.
unblock-memory --config ~/.ooda/ooda.json diagnostics
unblock-memory steward status
unblock-memory steward expectations --run
unblock-memory extract run --since 2026-12-01The CLI uses the daemon's private Unix socket and checks the agent ID. It loads
--config, OODA_CONFIG, ./ooda.json, or ~/.ooda/ooda.json, in that order.
--socket is relative to the working directory; api.enabled: false disables
socket access. --timeout-ms 0 leaves the request unlimited. sync run waits
for completion by default; use --no-wait for admission only. Offline commands
are read-only. Use extract report --limit N --after CURSOR to page the report.
Quick start
Requirements: Node.js 22.15+ and OpenClaw 2026.8.1-beta.3 or later.
Use the Node version required by your OpenClaw release.
A decision-model API key enables usefulness ranking. The default endpoint is
https://codex.unblocklabs.ai/v1/decisions (Codex LB → OpenRouter liquid/d1.2-ultra).
Without a key, search returns labeled local leads.
Install once per OpenClaw host, not once per agent:
openclaw plugins install npm:@unblocklabs/unblock-memoryFor usefulness ranking, save your
codex-lbkey in a private file (chmod 600), for example~/.openclaw/secrets/unblock-memory-decisions.env:CODEX_LB_API_KEY="your-key"Merge this into
~/.openclaw/openclaw.json, keeping your other settings.apiKeyFilemust be an absolute path.{ "plugins": { "slots": { "memory": "unblock-memory" }, "entries": { "unblock-memory": { "enabled": true, "config": { "decisionModel": { "apiKeyFile": "/home/you/.openclaw/secrets/unblock-memory-decisions.env" } } } } } }Restart the Gateway, then ask an agent to run
memory_diagnostics:openclaw gateway restart"credential": "available"means the key was found. It does not check that the endpoint accepts the key; a test search does.
By default each agent indexes MEMORY.md, USER.md and memory/**/*.md in its
workspace. The index is built on first use and refreshes in the background when
those files change. QMD, the local search engine, ships inside the package, so
there is nothing else to install or run.
To install from source instead:
openclaw plugins install git:github.com/unblocklabs-ai/unblock-memory.
How it works
The agent writes two queries: keywords for BM25 search and a plain-language question for vector search. Each returns up to ten candidate passages. The decision model scores how useful each complete passage is for the question, and the best ones come back with their source location.
{ "bm25Query": "staging rollout approval", "vectorQuery": "Who approved the staging rollout?" }{
"results": [
{
"path": "qmd://source-3f9a1c2b7d4e/memory/2026-09-14.md",
"startLine": 12,
"endLine": 15,
"snippet": "Priya approved the staging rollout after the load test passed.",
"corpus": "memory",
"score": 0.93
}
]
}The agent then calls memory_get with that path to read the surrounding
context, attribution and dates. Search defaults to 5 results with a usefulness
score of at least 0.7 when judging is available. If ranking is unavailable,
search returns unjudged local leads with a warning; the usefulness threshold
is not applied. Automatic Memory Whisperer hints still require a decision model.
See search and read for every parameter.
What leaves your machine: indexing, embeddings, storage and memory_get run
locally. memory_search sends the search question and candidate passages, with
their paths and dates, to the configured decision endpoint for scoring. Optional decision-model
features send only what their own settings approve; see
decision model data scope.
On by default: search and read over the memory corpus, and a
compaction memory flush: before
OpenClaw compacts a long conversation, the agent is prompted to append lasting
notes to memory/YYYY-MM-DD.md. Turn the flush off with the host's
agents.defaults.compaction.memoryFlush.enabled setting.
Optional features
Everything below is off until you configure it.
| Feature | What it does |
| --- | --- |
| Session indexing | Makes past conversations searchable. Group and channel chats by default; DMs only if you add them. |
| Skill Whisperer | Routes relevant skills into a persistent per-session list. Never runs them. Turns on with a skills corpus; can also route locally. |
| Memory Whisperer | Adds up to three relevant past excerpts before the agent replies. Needs a configured decision endpoint (decisionModel). The default mode: "v2" first asks the decision model whether the turn needs memory at all and which corpora to search, then searches up to three topics copied verbatim from the conversation; mode: "legacy" instead uses a self-hosted query-generation API with local fallback. 5-second turn deadline by default. |
| Safety Whisperer | Reminds the agent not to share sensitive topics, such as one person's salary, with requestors you haven't approved. A prompt-level guardrail, not access control; fails open if the decision endpoint is unavailable. |
| My Turn | Asks the configured decision model (default liquid/d1.2-ultra via Codex LB) whether a group/channel conversation needs this agent's response. Advises NO_REPLY only when silence is clearly favored; the agent keeps the final say. Opt-in; failures leave the turn unchanged. |
| People dossiers | Lets the agent keep a short, evidence-backed note about each person it works with. |
| People Whisperer | Supplies identity, scoped preferences and unexpired lessons on each Slack user turn. Includes private nightly learning and weekly validation by default. |
| People Primer | Gathers evidence for a person's note and reviews proposed notes before they are saved. |
| Session memory extraction | Pulls lasting facts from past conversations, checks each against exact quotes, and can make them searchable. Starts in shadow mode. |
| Clustering and curation | Groups related memories so the agent can spot duplicates and maintain its knowledge. Needs a local analysis worker. |
| Quality and claim review | Flags noisy indexed content and checks whether a claim is supported by its sources. Advisory only. |
| Response audit | Operator-only grading of reply quality and sentiment in approved Slack conversations. |
| Inside Out | Operator-only scores for six emotions in human replies, compared with each person's own weekly baseline, with reports. Never changes memory or prompts. |
Whisperers also need conversation-hook and prompt-injection permissions on the plugin entry; see host controls. Each feature's requirements and failure behavior are listed in feature gates and fallbacks.
| Area | Tools |
| --- | --- |
| Search and read | memory_search, memory_get |
| Sessions | memory_sync_sessions, memory_sync_status |
| Diagnostics | memory_diagnostics |
| Clusters | memory_recluster, memory_list_clusters, memory_fetch_cluster |
| Maintenance | memory_list_maintenance_tasks, memory_update_maintenance_task |
| Review | memory_audit_quality, memory_review_claim, memory_review_cluster |
| People (with people.enabled) | memory_people_inspect, memory_people_update, memory_people_sync, memory_people_prime |
Using memory well
- Search, then read. Check context, attribution and dates with
memory_getbefore relying on a snippet. - Empty results do not prove something never happened. The corpus may not be selected, the threshold may be too high, or sessions may not have synced yet.
- Old memory is not current permission to act.
- Corpora are not access controls. Anyone who can use this agent's tools can search everything indexed for it, so index only what they may all see.
Two skills ship with the package: people-whisperer and memory-curator. Add them to any explicit agent skill allowlist.
Documentation
- Configuration: every setting and default, credentials, host permissions, storage and upgrades.
- Retrieval: search and read, sessions, whisperers, diagnostics, clustering and curation.
- People: dossiers, primer, injection, and pause/delete/restore.
- Session extraction: shadow mode, backfill, thresholds and publishing facts to search.
- Response audit: operator commands, cadence and reports.
Vision
describes where the project is headed. Documents in docs/planning/ are
historical or future designs, not current behavior.
Storage
Each agent's state lives under ~/.openclaw/agents/<agentId>/unblock-memory/:
index.sqlite: the search index. Safe to delete; it rebuilds.unblock-memory.sqlite: people, dossiers, curation and audit history. Back this up.
Upgrading from a version with separate people.sqlite, curation.sqlite or
response-audit.sqlite files? Stop the Gateway and read
migration, backup and rollback
first.
Development
npm install
npm run build
npm test # Node test suite
npm run preflight # full pre-release checkReleases publish to npm from GitHub Releases; see RELEASE.md. Fleet decision model key tooling for source checkouts is described in DECISION-FLEET.md; keep populated key files private.
