memory-wiki is a bundled plugin that compiles durable knowledge into a
navigable wiki: deterministic pages, structured claims with evidence,
provenance, dashboards, and machine-readable digests.
It does not replace the active memory plugin. Recall, promotion, indexing, and
dreaming stay owned by whichever memory backend is configured
(memory-core, QMD, Honcho, etc.). memory-wiki sits beside it and compiles
knowledge into a maintained wiki layer.
| Layer | Owns |
|---|---|
| Active memory plugin | Recall, semantic search, promotion, dreaming, memory runtime |
memory-wiki | Compiled wiki pages, provenance-rich syntheses, dashboards, wiki search/get/apply |
memory_searchfor one broad recall pass across whatever corpora are configuredwiki_search/wiki_getwhen you want wiki-specific ranking, provenance, or page-level belief structurememory_search corpus=allto span both layers in one call, when the active memory plugin supports corpus selection
memory-wiki in bridge mode for durable synthesized pages. See the
QMD + bridge mode example under Configuration.
If bridge mode reports zero exported artifacts, the active memory plugin is
not currently exposing public bridge inputs. Run openclaw wiki doctor first,
then confirm the active memory plugin supports public artifacts.
Vault modes
isolated(default): own vault, own sources, no dependency on the active memory plugin. Use this for a self-contained curated knowledge store.bridge: reads public memory artifacts and event logs from the active memory plugin through public plugin SDK seams. Use this to compile the memory plugin’s exported artifacts without reaching into private plugin internals.unsafe-local: explicit same-machine escape hatch for local private paths. Intentionally experimental and non-portable; use only when you understand the trust boundary and specifically need local filesystem access bridge mode cannot provide.
bridge.* config toggle:
- exported memory artifacts (
indexMemoryRoot) - daily notes (
indexDailyNotes) - dream reports (
indexDreamReports) - memory event logs (
followMemoryEvents)
bridge.readMemoryArtifacts is enabled,
openclaw wiki status, openclaw wiki doctor, and openclaw wiki bridge import route through the running Gateway so they see the same active memory
plugin context as agent/runtime memory. If bridge is disabled or artifact
reads are off, those commands keep local/offline behavior.
Vault layout
sources/: imported raw material and bridge/unsafe-local-backed pagesentities/: durable things, people, systems, projects, objectsconcepts/: ideas, abstractions, patterns, policies (also the landing spot for OKF imports)syntheses/: compiled summaries and maintained rollupsreports/: generated dashboards
Open Knowledge Format imports
memory-wiki
turn it into OpenClaw-native concept pages and compiled digests.
- non-reserved
.mdfiles are concept documents - each imported concept requires a non-empty
typefrontmatter field; missingtypeproduces amissing-typewarning and the file is skipped - unknown
typevalues are accepted as generic concepts index.mdandlog.mdare reserved and never imported as concepts- broken or external markdown links are left unchanged
concepts/ so existing compile, search, get, and
dashboard flows see them without a second wiki tree. Each page keeps the
original OKF concept ID, source path, type, resource, tags, timestamp,
and full producer frontmatter. Internal OKF links rewrite to the generated
wiki concept pages and also emit structured relationships entries with
kind: okf-link.
Structured claims and evidence
Pages carry structuredclaims frontmatter, not just freeform text. Each
claim can include id, text, status, confidence, evidence[], and
updatedAt. Each evidence entry can include kind, sourceId, path,
lines, weight, confidence, privacyTier, note, and updatedAt.
This makes the wiki behave like a belief layer, not a passive note dump.
Claims can be tracked, scored, contested, and resolved back to sources.
Agent-facing entity metadata
Entity pages carry generic routing metadata usable for people, teams, systems, projects, or any other entity type:entityType: for exampleperson,team,system,projectcanonicalId: stable identity key across aliases and importsaliases: names, handles, or labels that resolve to the same pageprivacyTier: free-form string;publicis treated as no-review, any other value (for examplelocal-private,sensitive,confirm-before-use) is flagged inreports/privacy-review.mdbestUsedFor/notEnoughFor: compact routing hintslastRefreshedAt: source-refresh timestamp, separate from page edit timepersonCard: optional person-specific routing card (handles, socials, emails, timezone, lane, ask-for, avoid-asking-for, confidence, privacy tier)relationships: typed edges to related pages (target, kind, weight, confidence, evidence kind, privacy tier, note)
reports/person-agent-directory.md, then open
the person page with wiki_get before using contact details or inferred
facts.
Entity page example
Entity page example
Compile pipeline
Compile reads wiki pages, normalizes summaries, and emits stable machine-facing artifacts under:.openclaw-wiki/cache/agent-digest.json.openclaw-wiki/cache/claims.jsonl
Dashboards and health reports
Whenrender.createDashboards is enabled, compile maintains dashboards under
reports/:
| Report | Tracks |
|---|---|
reports/open-questions.md | pages with unresolved questions |
reports/contradictions.md | contradiction note clusters |
reports/low-confidence.md | low-confidence pages and claims |
reports/claim-health.md | claims missing structured evidence |
reports/stale-pages.md | stale or unknown freshness |
reports/person-agent-directory.md | person/entity routing cards |
reports/relationship-graph.md | structured relationship edges |
reports/provenance-coverage.md | evidence class coverage |
reports/privacy-review.md | non-public privacy tiers needing review before use |
Search and retrieval
Two search backends:shared: use the shared memory search flow when availablelocal: search the wiki locally
wiki, memory, all.
wiki_search/wiki_getuse compiled digests as a first pass when possible- claim ids resolve back to the owning page
- contested/stale/fresh claims influence ranking
- provenance labels survive into results
--mode / tool mode param):
| Mode | Boosts |
|---|---|
auto | balanced default |
find-person | person-like entities, aliases, handles, socials, canonical IDs |
route-question | agent cards, ask-for/best-used-for hints, relationship context |
source-evidence | source pages and structured evidence metadata |
raw-claim | matching structured claims; returns claim/evidence metadata |
wiki_search returns
matchedClaimId, matchedClaimStatus, matchedClaimConfidence,
evidenceKinds, and evidenceSourceIds in its details payload. Text output
includes compact Claim: and Evidence: lines when available.
Agent tools
| Tool | Purpose |
|---|---|
wiki_status | current vault mode, health, Obsidian CLI availability |
wiki_search | search wiki pages and, when configured, the shared memory corpus; accepts mode for person lookup, question routing, source evidence, or raw claim drilldown |
wiki_get | read a wiki page by id/path, falling back to the shared memory corpus when shared search is enabled and the lookup misses |
wiki_apply | narrow synthesis/metadata mutations without freeform page surgery |
wiki_lint | structural checks, provenance gaps, contradictions, open questions |
memory_search and memory_get can reach the wiki when the active memory
plugin supports corpus selection.
Prompt and context behavior
Whencontext.includeCompiledDigestPrompt is enabled, memory prompt sections
append a compact compiled snapshot from agent-digest.json: top pages only,
top claims only, contradiction count, question count, confidence/freshness
qualifiers. This is opt-in because it changes prompt shape; it mainly matters
for context engines or prompt assembly that explicitly consume memory
supplements.
Configuration
Put config underplugins.entries.memory-wiki.config:
| Key | Values / default | Notes |
|---|---|---|
vaultMode | isolated (default), bridge, unsafe-local | |
vault.path | default ~/.openclaw/wiki/main | |
vault.renderMode | native (default), obsidian | |
bridge.readMemoryArtifacts | default true | import active memory plugin public artifacts |
bridge.followMemoryEvents | default true | include event logs in bridge mode |
unsafeLocal.allowPrivateMemoryCoreAccess | default false | required to run unsafe-local imports |
unsafeLocal.paths | default [] | explicit local paths to import in unsafe-local mode |
search.backend | shared (default), local | |
search.corpus | wiki (default), memory, all | |
context.includeCompiledDigestPrompt | default false | append compact digest snapshot to memory prompt sections |
render.createBacklinks | default true | generate deterministic related blocks |
render.createDashboards | default true | generate dashboard pages |
Example: QMD + bridge mode
Use this when you want QMD for recall andmemory-wiki for a maintained
knowledge layer. Each layer stays focused: QMD keeps raw notes, session
exports, and extra collections searchable, while memory-wiki compiles
stable entities, claims, dashboards, and source pages.
memory-wiki focused on
compiled pages and dashboards, and prompt shape unchanged until you
intentionally enable compiled digest prompts.
CLI
wiki okf import, wiki apply metadata, wiki unsafe-local import,
wiki chatgpt import / wiki chatgpt rollback, and the full wiki obsidian
subcommand set.
Obsidian support
Whenvault.renderMode is obsidian, the plugin writes Obsidian-friendly
Markdown and can optionally use the official obsidian CLI for status
probing, vault search, opening a page, invoking a command, and jumping to the
daily note. This is optional; the wiki still works in native mode without
Obsidian.
Recommended workflow
Keep the active memory plugin for recall
Recall, promotion, and dreaming stay owned by the configured memory backend.
Use wiki_search / wiki_get when provenance matters
Prefer these over
memory_search when you want wiki-specific ranking or page-level belief structure.Use wiki_apply for narrow syntheses or metadata updates
Avoid hand-editing managed generated blocks.