Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ANTHROPIC_API_KEYNoOptional. 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

  1. recall("<query>") before reaching for web search or answering from training data. Add domain_filter="<kind of work>" when the problem is about a technology rather than this project.

  2. 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.

  3. Fewer results than top_k is 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.

  4. A weak_match scored 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 (restricted for paywalled or vendor material, open or an identifier for redistributable), and provenance="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 a reason) over forget. 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

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 licence and provenance. When any result's licence is still unknown, a trailing entry with result_type 'licence_notice' (no key) lists them so the human can classify.

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 weak_match scored inside the band where relevant and irrelevant results genuinely overlap on this model. Read it, but do not build on it and do not go looking for a connection to the query: if it is not obviously about what you asked, it isn't.

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 weak_match flag, so top_k is a ceiling and a short or empty result set is a real answer. Takes recall()'s valid_at and known_at.

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.

Args:
    key: Memory key to attach experience to.
    effort_score: 1-5 (1=trivial, 3=moderate, 5=battle-hardened).
    outcome: 'succeeded', 'pivoted', or 'abandoned'.
    iterations: Number of attempts.
    abandoned_approaches: List of dicts with 'name', 'type', 'reason'.
    breakthrough: What finally worked, on this occasion.
    gotchas: Caveats to watch for.
    lesson: The generalisable claim this work taught, if there is one:
        a rule that holds beyond this incident, e.g. "a test fake must
        reproduce the real server's divergent behaviour, not its docs".
        Leave it out when nothing transfers. Skill compilation prefers
        it over the breakthrough.
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.

Domains are what makes cross-project recall work: once projects declare
them, recall(domain_filter='python') searches every Python project at
once. They share the compiled-skill vocabulary, so the same names reach
find_skills() and get_skill().

Suggestions are merged with any domains the project already declares —
this never removes one.
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.

Like delete_project but non-destructive: memories stay stored and searchable,
just heavily down-weighted in recall. Undo the whole project with
reinstate_project(). Only memories currently in the active state are changed;
already-deprioritised or archived ones are reported under `already_inactive`.
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.

The state counts always cover the whole store; the per-memory ``entries``
list is paginated so a large store doesn't return thousands of rows at once.
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.

Give either specific keys, or a feed_name to classify every article
ingested from that RSS feed at once. Use it when recall reports results
with an unknown licence and the human can say where the content stands,
or to correct a wrong classification. Facts extracted from a classified
memory take the same licence automatically.
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 awaiting_approval and they accept it in OmniMem's settings window. declined means nothing was written; don't ask again. There is no silent-commit path.

The compiled skill is build output: derived from raw memories, never
hand-edited. To change domain guidance, update the underlying memories
(record_experience, log_abandoned, bless) and recompile.
find_skillsA

Discover compiled skills: ranked skill IDs and descriptions for a query or domain. Load the winner intact with get_skill().

Returns only skills that clear the relevance floor (SKILL_MIN_SCORE,
default 0.25), so an empty list is a real answer — it means nothing
stored covers this work, not that discovery failed. Each entry carries a
`confidence` of 'high' or 'low'; don't load a 'low' one without reading
its description first.
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().

The human-accept gate at compile time is still the safety net — bless
only pre-qualifies the lesson, it does not write to any skill.
promote_knowledgeA

Mark a knowledge item as permanently useful, and optionally skill-eligible for a domain.

Without a domain: clears the expires_at field so the item is never
auto-archived by maintenance. Use this when an RSS-ingested article turns
out to be genuinely valuable.

With a domain: additionally marks the article skill-eligible — the next
compile_skill() for that domain compiles it into the skill's Reference
section, citing the article. Promotion is the vetting step (an article
carries no experience signal, so a human marking it eligible substitutes
for reinforcement); the compile itself still runs the propose-and-accept
gate. Expiry is cleared too — an article feeding a skill must not
auto-archive underneath it.

When the article contains discrete guidance (a "5 things to avoid" list,
a best-practice post), read it first and pass the items as rules — each
becomes its own stance-prefixed bullet in the Reference section instead
of one summary line. Extraction happens here, under human review, never
at compile time, so compilation stays deterministic. Re-promote with an
edited list to revise; rules=[] reverts to the single summary rule.

Args:
    key: The memory key (e.g. mem:knowledge:01ABC...).
    domain: Skill domain to make this article eligible for (e.g.
        'python'). Aliases resolve the same way as compile_skill.
    demote: With domain, remove that domain from the article's
        skill-eligibility instead of adding it.
    rules: With domain, extracted rules from the article, each
        {"kind": "do"|"watch"|"dont"|"note", "text": "..."} (max 20,
        400 chars each). Review them with the human before promoting.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.1/5.0

Scored across 49 tools

Disambiguation3/5

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.

Naming Consistency3/5

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.

Tool Count2/5

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.

Completeness4/5

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.

Maintenance

ActivityActive
ResponsivenessNo recent community issues