About Mnemo Cortex
Mnemo Cortex is an MCP server published by GuyMannDude in the Search category: open-source cognitive coprocessor with active memory for AI agents — persistent recall, semantic search, overnight dreaming, verified facts, encrypted USB sync. MCP server; works with Claude, ChatGPT, and any local LLM. Built by one maker and his agents. Conduid read 32 tools from its source: agent_startup, list_brain_files, mnemo_capture_pause, mnemo_capture_resume, mnemo_fact_authority, mnemo_fact_demote and 26 more. No package is published for it, so it installs from a source checkout.
The repository has 162 stars and 39 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v4.28.4 (12 Nov 2026): Anthropic provider (PR #25, thanks @SamHofmannOfficial). It follows v4.28.1 (30 Oct 2026), and the 5 most recent releases go back to v4.13.0 (23 Jul 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include agent-memory, ai-memory, context-management, memory, open-source and openclaw.
Install
git clone https://github.com/GuyMannDude/mnemo-cortexTools (32)
agent_startupCALL THIS FIRST in every new conversation. Loads your brain lane (named after your MNEMO_AGENT_ID env, e.g. <agent>.md or <agent>-session.md, or the file MNEMO_LANE names), the shared docs the brain has (CLAUDE.md, active.md, people.md, doctrines.md), and the latest dream brief. It does not search your memories: use mnemo_recall or mnemo_search for that. Returns an agent-neutral session-boot block — your identity comes from your system prompt, this gives you continuity.list_brain_filesList all files in the brain directory ($BRAIN_DIR). Use to discover what brain lanes and reference docs are available.mnemo_capture_pausePause Mnemo's ambient auto-capture before sensitive operations (key rotations, credential pastes). Scope is THIS SEAT of this agent_id (the reply names it): its auto-capture, the jsonl sync and transcript lines labelled with this seat, and any writer that sends no seat. Other seats that send their seat, and other agent_ids, keep capturing. Set fleet_wide=true only when every agent_id's capture must stop. Auto-resumes after `minutes` (default 15, max 240) even if you forget — a dead-man switch, not a toggle. While paused, auto-capture flushes and ingested exchanges are DISCARDED, not buffered, and so is any mnemo_save with source=tool, category=session_log or a routine-shaped summary or key_facts; a mnemo_save with source user/inferred and a real summary still lands. Transcript lines timed inside the window are archived as stubs; the rest of the file lands.| Parameter | Type | Description |
|---|---|---|
| fleet_wide | boolean | true = pause EVERY agent's capture (default false: only this agent's). |
| minutes | number | Pause duration in minutes. Default 15. |
| reason | string | Why capture is paused — shown in /capture/status. |
mnemo_capture_resumeResume Mnemo's ambient auto-capture after a mnemo_capture_pause (early — it would auto-resume on its own at expiry).mnemo_fact_authoritySet a fact slot's authority tier: 'open' (anyone, default), 'probe' (only a machine may change it — evidence must start with probe: or tool:; needs probe_cmd, the command that re-asks it), or 'declared' (only the owner's word — evidence statement:guy…, the server's fixed prefix for the owner). Locking or unlocking is itself the owner's act: evidence_source must start with statement:guy, and you must be relaying their actual ruling (cite the turn or message). Writes that do not match a locked slot's tier land as proposals, never as the value.| Parameter | Type | Description |
|---|---|---|
| attribute * | string | Property to lock or unlock. |
| authority * | string | open = confidence ladder only. probe = machine-owned. declared = owner-only. |
| entity * | string | Thing the fact is about. |
| evidence_source * | string | Must start with statement:guy — name the ruling (e.g. 'statement:guy S337 chat'). |
| probe_cmd | string | probe tier only, required: the command that re-verifies the value (dmidecode -t 2, nc -z host 22, curl /health). |
| probe_host | string | probe tier: which machine can run probe_cmd. |
mnemo_fact_demoteForce a fact to confidence='false' without supplying a new value. Use when you know something is wrong but don't yet know the correct answer. Required because the normal save path's promotion ladder blocks verified→false transitions that lack a replacement value. On a LOCKED slot (probe/declared) a demote is a write like any other: pass evidence_source of the slot's own kind (probe:/tool: for probe, statement:guy for declared) or it is recorded as a proposal to demote, never applied.| Parameter | Type | Description |
|---|---|---|
| attribute * | string | Property to demote. |
| entity * | string | Thing the fact is about. |
| evidence_source | string | Provenance of the demote, e.g. 'tool:nc -z host 22 -> closed' or 'statement:guy S338'. Needed to write a locked slot. |
| reason * | string | Why this fact is wrong. Required, logged to history. |
mnemo_fact_getLook up a single fact by (entity, attribute). Instant key-value retrieval, NOT semantic search. Use for queries like 'where does the user live' where you want one definitive answer. Returns {found: false} if missing. By default excludes facts with confidence='false' (use include_false=true to see them for audit).| Parameter | Type | Description |
|---|---|---|
| attribute * | string | Property of the entity (location, owner, port, url, version). Snake_case normalized. |
| entity * | string | Thing the fact is about (person, machine, product, store, project). Case + spacing normalized. |
| include_false | boolean | Include facts that were disproven. Default false. |
mnemo_fact_proposalsList proposals, or resolve one. A proposal is a machine write that waits on the owner. kind 'fact' (the default): a write a lock held — the value some agent, the dreamer, or a seed script tried to put on a probe/declared slot. kind 'memory_category': a classifier (Jev shadow) disagrees with a memory's stored category; the memory is unchanged until accepted. kind 'memory_note': listed only, not yet acceptable. Listing is safe. Resolving is the owner's word relayed by you: 'accept' writes the proposed value (a fact lands verified past its lock; a category is amended, the first value kept as category_original), 'reject' closes it and leaves the target alone. Only resolve with an actual ruling from the owner — cite it in reason.| Parameter | Type | Description |
|---|---|---|
| action | string | Required with resolve_id. |
| kind | string | Which proposals to list (default fact). |
| limit | number | Max rows (default 50). |
| reason | string | Why — cite the owner's ruling. Logged to fact history. |
| resolve_id | number | Proposal id to resolve (any kind). Omit to list. |
| status | string | Which proposals to list (default pending). |
mnemo_fact_queryList facts matching filters. All filters optional; AND-joined. Use for queries like 'all facts about the user' or 'all unverified facts'. Default limit 20, max 100.| Parameter | Type | Description |
|---|---|---|
| attribute | string | Filter to this attribute name. |
| confidence | string | Filter by confidence level. |
| entity | string | Filter to facts about this entity. |
| limit | number | Max results. Default 20. |
| value_contains | string | Substring match on the value. |
mnemo_fact_saveAssert a structured fact. UPSERT semantics — same (entity, attribute) updates in place. Different value triggers contradiction handling: higher-or-equal confidence overwrites with audit log; lower confidence is REJECTED if existing is higher. Use confidence='verified' only when confirmed (source code, a direct statement by the user, tool output). Use 'high_probability' for strong inference. evidence_source uses prefix convention: memory:<id>, commit:<sha>, file:<path>:<line>, statement:<who>, bus:#<id>, dream:<date>.| Parameter | Type | Description |
|---|---|---|
| attribute * | string | Property of the entity. Normalized snake_case. |
| confidence * | string | verified = confirmed from source. high_probability = strong inference. false = known wrong. |
| entity * | string | Thing the fact is about. Normalized lowercase. |
| evidence_source * | string | Where the confidence comes from. Use prefixes: memory:<id>, commit:<sha>, statement:<who>, etc. |
| source_memory_id | string | Pointer to the originating memory entry, if any. |
| value * | string | Current truth value. |
mnemo_memory_demoteDemote one memory by id: it leaves recall (vector removed) but its JSON and ledger entry stay as history. Use for a memory that is WRONG (e.g. an auto-captured sentence that stated a falsehood as fact). Requires a reason. Not for tidying — a merely old or duplicate memory is not wrong. This is the route a supersedes-save used to be faked for.| Parameter | Type | Description |
|---|---|---|
| memory_id * | string | The memory id (shown as id=… in recall headers). |
| reason * | string | Why it is wrong. Required, stored on the record. |
mnemo_recallRecall memories from Mnemo Cortex for the current agent (${AGENT_ID}). Returns semantically relevant chunks from past sessions. Each chunk may carry a structured stale_warning when it exceeds its category's decay threshold — verify with a tool call before acting on stale topology/current_state facts.| Parameter | Type | Description |
|---|---|---|
| category | string | Restrict to a single category. |
| exclude_categories | array | Categories to drop from results. Defaults to ['session_log']. Pass [] to include everything. |
| exclude_stale | boolean | Drop topology records past 1.5x their warn threshold. |
| expand | boolean | Thesaurus Loop escalation — reword the query several ways and search each, fusing by max relevance. Costs ~5x latency (one Flash call plus up to 4 extra retrieval passes) and is NON-DETERMINISTIC, so the same query can return different memories. Use it deliberately when a normal recall came back weak or off-topic; do not set it by default. |
| max_age_days | number | Hard upper bound on record age in days. |
| max_results | number | Maximum number of memories to return (default: 3) |
| mode | string | Recall lens. 'focus': best match wins. 'explore': the serendipity lens — what does this remind the store of; prefers the adjacent similarity band, ignores recency, favors rarely-recalled memories. 'recent': the boot lens — similarity only gates, every on-topic memory is served newest first. Omitted: the server's persona decides (strict/default -> focus, creative -> explore; business vs artist mode). Use explore for brainstorming and idea recall; use recent for 'what was I doing'. |
| query * | string | What to search for in memory |
| source | string | Restrict to one provenance source. Use 'user' or 'tool' for highest-confidence facts. |
mnemo_recall_trajectoryRecall proven task recipes for the current agent (${AGENT_ID}) BEFORE starting a task. Returns past trajectories ranked by semantic similarity, then rating, then recency — each with its full step sequence (the proven recipe). Call this when you're about to do something you may have done before.| Parameter | Type | Description |
|---|---|---|
| max_results | number | Default 3 |
| min_rating | number | Quality threshold, default 3 (excludes ratings below this) |
| query * | string | Describe what you're about to do |
| task_type | string | Filter by category tag |
mnemo_saveSave a summary or key facts to Mnemo Cortex for future recall. Use at session end or when something important should be remembered. Optional v3 provenance fields (source, category, additional_tags) let you mark how the fact was learned and how it should decay — when omitted, a regex auto-suggester picks a category from the content.| Parameter | Type | Description |
|---|---|---|
| additional_tags | array | Free-form human-readable tags for search. |
| category | string | Drives decay behavior. Omit to let the regex auto-suggester choose — the response will tell you what it picked so you can override on the next save. |
| force | boolean | Save despite reported near-duplicates; records near_dup_of links. |
| key_facts | array | List of key facts to store (one fact per item) |
| session_id | string | Session identifier. Auto-generated if omitted. |
| source | string | Where this fact came from. Defaults to 'inferred'. Use 'user' when the user stated it directly, 'tool' for deterministic outputs, 'brain' when pulled from a brain file. |
| summary * | string | Summary of what happened or what to remember |
| supersedes | array | Save and demote these existing memory ids while preserving history. |
mnemo_save_trajectorySave a proven task recipe to Mnemo Cortex AFTER you complete a task well, so you (or another session) can recall the working approach before a similar task. Capture the ordered steps you actually took, the outcome, and an honest 1–5 self-rating. Use after a non-trivial task that went well (or instructively badly — a low rating still teaches).| Parameter | Type | Description |
|---|---|---|
| duration_seconds | number | |
| model | string | |
| outcome * | string | The final result |
| rating * | number | Honest self-assessment 1–5 (5 = clean success) |
| steps | array | What you did at this step |
| task_description * | string | The goal — what you set out to do |
| task_type * | string | Category tag, e.g. shopify_fix, bus_debug, security_triage, file_migration |
| token_cost | number |
mnemo_searchSearch memories in Mnemo Cortex. By default, searches only your own memories. Use mnemo_share to enable cross-agent search for this session. Returns structured stale_warning on results past their category's warn threshold — verify before acting on stale topology facts.| Parameter | Type | Description |
|---|---|---|
| agent_id | string | Filter to a specific agent (rocky, cc, opie). Only works when cross-agent sharing is enabled. Omit to search your own memories — every search names a tenant; the server returns silent zeros for agent-less queries (#1941). |
| category | string | Restrict to a single category. |
| exclude_categories | array | Categories to drop from results. Defaults to ['session_log']. Pass [] to include everything. |
| exclude_stale | boolean | Drop topology records past 1.5x their warn threshold. |
| max_age_days | number | Hard upper bound on record age in days. |
| max_results | number | Maximum number of memories to return (default: 3) |
| query * | string | What to search for |
| source | string | Restrict to one provenance source. Use 'user' or 'tool' for highest-confidence facts. |
mnemo_shareToggle cross-agent memory sharing for this session. When on, mnemo_search can read another agent's memories by passing agent_id; without agent_id, search stays scoped to you. When off, search is limited to this agent only.mnemo_transcriptSearch or read the FULL archived session transcripts for the current agent (${AGENT_ID}) — every user turn, assistant turn, thinking block, tool call and tool output, secret-redacted. mnemo_recall finds a session's one pointer memory ("Full transcript archived: ..."); this tool reads what it points to. action=search: keyword (FTS) search over every turn, or with no q the newest sessions. action=get: format=manifest (what the session is), turns (paged by seq with from/to; replies are budgeted and name the next from), or raw (the redacted JSONL, cut to the reply budget).| Parameter | Type | Description |
|---|---|---|
| action * | string | search = find turns or list sessions; get = read one session |
| format | string | get: default manifest |
| from | number | get turns: first seq, default 0 |
| limit | number | search: max results, default 20 |
| q | string | search: keywords (all must match). Omit to list the newest sessions. |
| session_id | string | get: the transcript's session id (a UUID, or <uuid>_agent-<id> for a subagent) |
| to | number | get turns: last seq (inclusive); default a 50-turn page |
mnemo_transcript_pushArchive this chat's turns to the Mnemo transcript tier WITHOUT a file export: pass the conversation as text and the bridge writes and uploads the transcript itself. Use it at every checkpoint / topic change, from any seat — it works where the Cowork transcript copy is denied or there is no file. Send the turns since your last push (a re-sent tail is skipped). Verbatim beats paraphrase. One archive per chat for ${AGENT_ID}: the first push prints the chat handle — pass it back as chat_id on every later push of the same chat, because one Desktop can run several chats through this one bridge. The archived session id is readable with mnemo_transcript get.| Parameter | Type | Description |
|---|---|---|
| chat_id | string | This chat's handle: the one your first push printed, or the chat's own id if you know it. Same handle = same archive. Default: this bridge session's id. |
| fidelity | string | verbatim = copied as said; reconstructed = re-typed from a compacted or summarized context. Default reconstructed. Stamped on every turn of this push; split a mixed batch into two pushes. |
| title | string | A short chat title; stored once, on the first push of a chat. |
| turns * | array | The turns in order: role = who spoke, text = what they said, verbatim where you can. |
opie_startupDEPRECATED — use `agent_startup` instead. Legacy alias that loads opie.md as the lane and forces agent_id=opie regardless of MNEMO_AGENT_ID. Kept for back-compat with existing Opie / Claude Desktop installs. Identity lives in opie.md, not in this tool.passport_forget_or_overrideDeprecate, forget, or replace an existing stable claim. Use override (with replacement_claim) to correct wording while preserving lineage. Use forget to remove a claim entirely. Use deprecate to retire without replacement.| Parameter | Type | Description |
|---|---|---|
| action * | string | deprecate=retire; forget=remove; override/replace=new wording with supersedes link. |
| actor | string | user | opie | cc | system. Default: user. |
| reason | string | Free-text reason (lands in the audit log). |
| replacement_claim | string | Required for action=override/replace. The corrected claim text. |
| target_claim_id * | string | The claim_id to act on, e.g. 'pref_prefers_001'. |
passport_get_user_contextRead the user's portable working-style passport. Returns a prompt-ready text block plus structured claims. Call at session start to calibrate tone, workflow defaults, and negative constraints.| Parameter | Type | Description |
|---|---|---|
| max_claims | number | Cap the number of claims returned (default: 20) |
| platform | string | Platform hint (chatgpt, claude, gemini). Reserved for Phase 2 adapter layer. |
| scopes | array | Filter by scope tags (general, build_mode, debug_mode, research_mode, public_facing). Omit for all. |
passport_list_pending_observationsList candidate observations waiting in the pending queue. Filter by status (pending|promoted).| Parameter | Type | Description |
|---|---|---|
| limit | number | Cap items returned (default: 25) |
| status | string | Filter by status (default: pending) |
passport_observe_behaviorRecord a candidate observation about the user's working style. REQUIRES 2+ evidence turn refs (minimum). Lands in pending queue; does NOT promote automatically. Never include credentials, project secrets, or client data.| Parameter | Type | Description |
|---|---|---|
| confidence * | number | Self-assessment 0.0–1.0. |
| evidence * | array | Turn identifier, e.g. 'u12-a12'. |
| proposed_claim * | string | Atomic, testable claim (≤180 chars). E.g. 'Prefers direct answers with minimal fluff.' |
| proposed_target_section * | string | Dotted path for promotion. E.g. 'stable_core.communication', 'stable_core.workflow', 'negative_constraints'. |
| scope | array | Scope tags: general, build_mode, debug_mode, research_mode, public_facing, personal, professional. |
| source_platform * | string | Where the interaction happened (chatgpt, claude, cc, opie, rocky). |
| source_session_id * | string | Session identifier (free-form). |
| type * | string | Claim type. |
passport_promote_observationMove a pending observation into the stable passport. Only promote claims you're confident in — this is the gate between candidate and canonical.| Parameter | Type | Description |
|---|---|---|
| actor | string | Who is promoting (user, opie, cc, system). Default: system. |
| observation_id * | string | The obs_NNN id from passport_list_pending_observations. |
| target_section | string | Override the observation's proposed target. Dotted path, e.g. 'stable_core.communication'. |
read_brain_fileRead a file from the brain directory ($BRAIN_DIR). Use this to check brain lanes, reference docs, or any .md file in the brain. The last line is a stamp naming the clone (host), its commit, and when this bridge last pulled it — only agent_startup pulls by default, so pass pull=true when another agent just pushed.| Parameter | Type | Description |
|---|---|---|
| filename * | string | Filename to read, e.g. 'my-agent.md', 'active.md' |
| pull | boolean | Fast-forward pull the brain repo before reading. Use when another agent just pushed and you need their text, not this clone's boot-time copy. |
session_checkpointSave-and-commit WITHOUT closing the session. Flushes auto-capture, saves your summary to Mnemo Cortex, and optionally appends a dated CHECKPOINT line to your lane file and commits + pushes it. The session continues under the same session_id; call session_end as usual when you are actually done. Use it during long sessions or when many sessions are open at once, so a session that never reaches session_end still leaves a record. The summary must carry substance (400+ chars: what changed, why, what is next) — status-only saves are refused.| Parameter | Type | Description |
|---|---|---|
| category | string | Decay class. Defaults to current_state. |
| force | boolean | Save despite reported near-duplicates. A second checkpoint in the same session is forced automatically. |
| key_facts | array | Key facts to remember (one per item) |
| lane_kickstart_line | string | One dated line for your lane file. Appended under a '## CHECKPOINT <timestamp>' heading at the END of the lane (below any BOOT BOUNDARY), then committed + pushed as its own commit. Omit to save to Mnemo only. |
| summary * | string | What this session has learned, changed, and decided so far, and what is next. Substance, not status — the tool cannot see the chat. |
| tags | array | Extra free-form tags; 'session_checkpoint' is always added. |
| transcript | string | 'denied' = the transcript export is not possible from this seat (the classifier refused the copy, or this chat has no Cowork VM transcript), so checkpoints are this session's record — the bridge then nudges checkpoints instead of exports, until the next agent_startup. 'shipped' is informational; the bridge verifies a landing by the file itself. |
session_endCall this before ending a session. Saves a final summary to Mnemo Cortex and commits brain lane changes. This is your last chance to preserve what happened in this conversation.| Parameter | Type | Description |
|---|---|---|
| key_facts | array | Key facts to remember from this session |
| summary * | string | Final session summary — what was accomplished, decided, and what's next |
wiki_indexGet the static wiki index — lists all projects, entities, and concepts in the legacy WikAI page set. Good starting point to see what the archive holds.wiki_readRead a specific static wiki page by path (relative to ~/wiki/). Example: 'projects/my-project.md', 'entities/some-person.md'. Use wiki_search first to find the right page, then wiki_read to get the full content. Pages are a legacy WikAI snapshot — no longer recompiled nightly.| Parameter | Type | Description |
|---|---|---|
| path * | string | Relative path within ~/wiki/, e.g. 'projects/my-project.md' or 'entities/some-person.md' |
wiki_searchSearch the static wiki pages (legacy WikAI archive) — project docs, entities, and concepts compiled from Mnemo before the wiki was retired. Uses grep under the hood. Returns matching filenames and context lines. NOTE: pages are a snapshot, no longer recompiled nightly. For live document discovery, prefer the Librarian's file_find tool (FrankenClaw) if it's available to you.| Parameter | Type | Description |
|---|---|---|
| max_results | number | Max files to return (default 10) |
| query * | string | Search term or phrase to find in the wiki |
| section | string | Limit search to a wiki section. Default: all |
write_brain_fileWrite or update a file in the brain directory ($BRAIN_DIR). Use at session end to update your own lane file. Per the Lane Protocol convention, write only to your own lane (named after MNEMO_AGENT_ID, or the file MNEMO_LANE names), not other agents' lanes or shared docs. Compare-and-write: an existing file is refused unless this session read it (agent_startup or read_brain_file) and it has not changed on disk since — on a refusal, re-read, merge your changes into the current text, and write again.| Parameter | Type | Description |
|---|---|---|
| content * | string | Full file content to write |
| filename * | string | Filename to write, e.g. 'my-agent.md', 'active.md' |
Security checks
- ✓README presentThe repository's README runs to about 7.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 92 source files and found 7 calls to eval or shell execution, in adapters/openclaw/mnemo-ingest/handler.ts and integrations/mcp-bridge/server.js among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 7.0K words, fetched 12 days ago. The original in the repository is authoritative.
Read full README