OmniMem
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ANTHROPIC_API_KEY | No | Optional. Turns on fact extraction, query expansion and contradiction checks. Without it OmniMem works fully offline. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
OmniMem — Persistent Semantic Memory
Persistent memory across sessions, via the omnimem MCP server. The full
guide is docs/agent-guide.md; this is the working summary.
Before you answer, and before you agree
recall("<query>")before reaching for web search or answering from training data. Adddomain_filter="<kind of work>"when the problem is about a technology rather than this project.Before suggesting or agreeing to any library, tool or approach — including one the human proposes — call
warn_if_abandoned("<name>"). If it warns, say so before going further: "We tried X and abandoned it because Y — try again, or find another way?" Dead ends are dead ends regardless of who proposed them, and re-deriving one costs far more than the check.Fewer results than
top_kis a real answer. Anything below the relevance floor is dropped rather than padding the list, so an empty return means nothing stored is relevant. Say so and move on.A
weak_matchscored in the band where relevant and irrelevant results overlap. Read it, do not build on it, and do not construct a connection between it and your query.
Session start
Call briefing(project="<name>"). It aggregates project context, experience,
stale memories, contradiction warnings and reinstate candidates in one call.
Summarise what came back, and surface any contradiction warnings explicitly
before doing work — they are blockers, not notes. Ask the human which side
holds, then record their answer with check_contradictions(mode="resolve", key_a=..., key_b=..., outcome=..., winner=..., reason=...): they are asked to
confirm it, and the pair stops warning. Outcomes are supersedes (name the
winner), both_valid, both_wrong, false_positive and reopened.
Storing
Call remember() when you reach a decision, fix a non-obvious bug, discover a
constraint or gotcha, or learn a preference. Do not wait to be asked.
Namespaces:
episodic(what happened, the default),knowledge(facts and rules),preference,project.Tag with at least one stack tag (
rust,docker,python) and one intent tag (decision,gotcha,bug-fix,pattern).Pass
licence=when the content is someone else's (restrictedfor paywalled or vendor material,openor an identifier for redistributable), andprovenance="asserted"when the human stated it rather than you concluding it. A later session must be able to tell evidence from your own inference.
Recording experience, especially dead ends
After any non-trivial problem, solved or abandoned:
record_experience(
key="mem:episodic:...",
effort_score=4, # 1 first time, 3 several iterations, 5 near-abandonment
outcome="abandoned", # succeeded | pivoted | abandoned
abandoned_approaches=[{"name": "...", "type": "library", "reason": "..."}],
breakthrough="what finally worked",
lesson="the claim that holds beyond this incident, if there is one"
)Abandoned approaches are not hidden, they are answered back: propose one in a
later session and recall leads with a warning saying what was abandoned, why,
what worked instead, and how firmly to take it. Record dead ends as they happen
with
log_abandoned(key, name, type, reason) rather than waiting for session end.
Bug fixes are always worth a remember(): symptom, cause, fix.
Skills
Compiled procedure for a domain. briefing() suggests them and
find_skills("<query>") finds them; load with get_skill() only after the
human agrees, never silently. Build and change them through
compile_skill(domain, mode="propose"), then mode="write" once they accept.
A person must accept the write: the client asks them, or the result is
awaiting_approval and they accept it in OmniMem's settings panel. On
declined, leave it alone.
Skills are derived output: update the underlying memories, never edit a skill
by hand. See docs/agent-guide.md for promotion, blessing and feed influence.
Session end
Call update_project_state("<project>", current_state=..., notes=...) every
time, without exception, and remember() anything not already stored.
Principles
Check the graveyard before agreeing to anything. What failed is as valuable as what worked.
Prefer
deprioritise(always with areason) overforget. Humans usually mean "stop surfacing this", not "destroy it".Never store secrets, credentials, or personally sensitive data.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| versionA | Return the current OmniMem version. |
| rememberB | Store a memory with automatic dedup. Returns duplicate info if near-match exists; use force=True to override. Pass valid_from when the claim became true at a time other than now ('moved to Lisbon on 1 April'), and valid_to when it has already stopped being true. |
| remember_documentA | Index a long-form document by splitting it into chunks and storing each chunk as a memory. Use this instead of remember() for conversation transcripts, articles, meeting notes, or any content longer than a focused fact. Returns the list of inserted keys plus a shared doc_id so callers can clean up or group them later. |
| recallA | Search memories by semantic similarity. Returns ranked results; abandoned-approach warnings appear first. Every result carries its top_k is a ceiling, not a quota. Results below the relevance floor (RECALL_MIN_SCORE, default 0.15) are dropped instead of padding the list, so fewer results than you asked for — including none — is a normal answer. A result flagged valid_at asks what was true at a time ('where did Sam live last March'); known_at asks what OmniMem believed at a time ('what did we think in March'). Both together ask what was believed then about then. Without them, a memory that has stopped being true still comes back, ranked lower and carrying its valid_to. |
| recall_indexA | Lightweight recall: returns ranked summaries without full content. Use recall_detail() to fetch full content for selected keys. Shares recall()'s relevance floor (RECALL_MIN_SCORE, default 0.15) and
its |
| recall_detailA | Fetch full content for specific memory keys. Use after recall_index() to expand only the entries you need. |
| deprioritiseB | Reduce a memory's visibility without deleting. This is what a person usually means by 'forget that'. Accepts a key or a query; a query acts only on near-exact text (similarity above 0.85), and when nothing is that close the reply names the nearest memory so you can confirm it and call again with its key. |
| archiveA | Archive a memory — excluded from recall but still stored. Accepts a key or a query; a query acts only on near-exact text, and when nothing is that close the reply names the nearest memory to retry by key. |
| reinstateB | Reinstate a deprioritised/archived memory to active state. |
| retagB | Replace or adjust the tags on a memory without re-embedding it. |
| forgetA | Permanently delete a memory. Only for when a person asks for permanent deletion ('permanently delete', 'wipe'); 'forget that' usually means deprioritise. Requires confirm=True; returns preview otherwise. A query acts only on near-exact text; when nothing is that close the reply names the nearest memory to retry by key. |
| suppress_topicB | Suppress a topic — matching memories filtered from recall. |
| unsuppress_topicC | Remove a topic from the suppression list. |
| list_suppressionsB | List all suppressed topics. |
| find_duplicatesC | Scan a namespace for clusters of near-identical memories. |
| healthA | Server health: database status, record and vector counts, model status, uptime. |
| queue_statusA | Check the enrichment queue. Returns the number of pending jobs waiting for background fact extraction. Use this to know when enrichment has finished after a batch ingest — poll until pending reaches 0 before running recall/scoring. |
| dump_to_fileC | Export all memories to a JSON backup file. |
| restore_from_fileA | Restore memories from backup. Default dry_run=True previews without writing. Merges with existing data. |
| list_backupsB | List available backup files, newest first. |
| record_experienceA | Record effort, outcome, dead ends, and breakthroughs for a memory. High-effort successes surface more; abandoned approaches come back as a warning when a later session proposes one of them. |
| log_abandonedC | Append a dead-end approach to a memory's abandoned list. |
| get_experienceC | Return experience data for a memory key. |
| experience_summaryB | Aggregate experience stats: effort, outcomes, graveyard of abandoned approaches, breakthroughs. |
| warn_if_abandonedA | Check if an approach was previously abandoned. Call before suggesting libraries or tools. |
| set_project_contextC | Create or update a project's context (description, stack, goals, state). |
| get_project_contextC | Retrieve full context for a project by name. |
| list_projectsB | List all stored project contexts, deduplicated by project name. |
| compile_project_domainsA | Suggest work-type domains for a project from its stack and its own memories, with the evidence behind each one. Returns a draft by default; pass auto_save=True to store it. |
| update_project_stateB | Update a project's current state and notes without re-embedding. |
| delete_projectA | Bulk delete every memory belonging to a project. Requires confirm=True; returns a preview otherwise. Finds memories by scanning keys directly (no semantic search), so it catches everything — including memories that recall can't surface. Deletes in pipelined batches rather than one call per key. |
| deprioritise_projectA | Bulk deprioritise every active memory in a project (0.2x recall visibility, reversible). Requires confirm=True; returns a preview otherwise. |
| reinstate_projectA | Bulk reinstate every deprioritised or archived memory in a project back to active. Requires confirm=True; returns a preview otherwise. The inverse of deprioritise_project(). |
| compile_project_contextB | Gather all stored memories for a project and compile them into a structured context draft. Use this before set_project_context() to auto-produce or refresh a project's context from its episodic memories, experience data, and abandoned approaches. |
| memory_auditB | Summary of all memories grouped by state. Useful for cleanup. |
| why_did_you_mentionB | Explain why a topic surfaced by searching recall logs. |
| explain_memoryC | Return full metadata for a memory key. |
| end_validityA | Record that a memory stopped being true, when nothing replaces it ('we stopped using Traefik'). valid_to defaults to now. The memory stays believed and recallable, ranked lower and carrying its valid_to; recall with valid_at still finds it for the time it held. When a newer memory replaces it, propose check_contradictions(mode='resolve', outcome='supersedes') instead. |
| reindexA | Rebuild the in-memory vector index from the database. Kept for compatibility with 6.x clients. There is no separate search index any more, so nothing can drift from the records and no phantom entries are ever removed; this reloads the vectors and reports the counts. |
| set_licenceA | Record the redistribution rights of one or more memories. |
| set_provenanceA | Record where one or more memories came from. Use it when the human vouches for a memory ('asserted'), when a memory turns out to be a copy of an external source ('retrieved'), or when something recorded as stated was actually your own inference ('concluded'). Facts extracted from a reclassified memory follow it. Provenance is reported on recall and never changes ranking. |
| check_contradictionsA | Scan for contradictions. Tier 1 (default): fast heuristic. Tier 2 (use_api=True): Claude API verification. mode='resolve' (key_a, key_b, outcome, winner, reason, retire_loser) records how a pair was settled: a person confirms it, and the pair stops warning. supersedes and both_wrong also work on a pair no scan linked, such as a changed value the heuristic can't see (lives in Berlin, then moved to Lisbon). |
| briefingB | Session-start briefing: project context, experience summary, stale memories, knowledge, contradictions, reinstate candidates. |
| recent_knowledgeB | Recent knowledge articles ingested by the RSS worker. Returns knowledge items created within the given lookback window, sorted newest first. Optionally filter by feed name, topics, or licence class — licence='unknown' lists what still needs classifying. |
| compile_skillA | Compile domain procedure from experience and graveyard memories into a loadable SKILL.md. 'propose' (default) returns a reviewable diff; 'write' commits only a previously proposed diff that a person accepts: the client asks them (MCP elicitation), or, if it can't, the result is |
| find_skillsA | Discover compiled skills: ranked skill IDs and descriptions for a query or domain. Load the winner intact with get_skill(). |
| get_skillA | Load a skill whole: the complete SKILL.md body with frontmatter and structure intact, by ID, name, or domain. |
| blessA | Promote a single strong lesson to skill-eligible now, bypassing the reinforcement threshold at the next compile_skill(). |
| promote_knowledgeA | Mark a knowledge item as permanently useful, and optionally skill-eligible for a domain. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 49 tools
Several clusters have genuinely fuzzy boundaries: deprioritise vs archive vs forget vs end_validity vs suppress_topic all reduce or remove a memory's visibility, and deprioritise_project/delete_project/reinstate_project mirror them at project scale. remember vs remember_document vs record_experience and log_abandoned vs record_experience also overlap, though the long descriptions do a reasonable job of steering selection. recall/recall_index/recall_detail are a defensible progressive-disclosure trio rather than redundancy.
The dominant convention is snake_case, but the pattern itself is mixed: many tools are bare verbs or nouns (health, version, remember, recall, forget, archive, reinstate, retag, reindex, bless, briefing), while others are verb_noun (set_licence, set_provenance, compile_skill, get_skill, list_projects). Readable throughout, but an agent cannot reliably infer a tool's name from its intent.
At 49 tools this is well past the point where each tool earns its place for a single memory server; the surface spans memories, projects, skills, knowledge feeds, experience tracking, licences, backups and audit. Several tools are clearly niche (reindex kept only for 6.x compatibility, why_did_you_mention, queue_status, log_abandoned), inflating the count without expanding the core capability.
Coverage is unusually thorough for the inferred domain: memory lifecycle (remember, recall, deprioritise, archive, reinstate, forget, retag), temporal validity, experience recording, project contexts with bulk operations, skill compilation/discovery/loading, knowledge promotion, licence/provenance classification, contradiction resolution and backup/restore. The main gap is that there is no straightforward way to edit a memory's content in place — retag re-embeds nothing and re-remembering with force is the workaround.