Skip to content

Releases

0.9.0: reversible note cleanup for Hermes

Choose a tag to compare

@ashmoonori-afk ashmoonori-afk released this 31 Oct 02:47
63a3452

birkin-mnemosyne 0.9.0

The Hermes Agent memory provider adds birkin_memory_forget and birkin_memory_restore for preview-by-default, reversible note archival without changing recall, ranking, the MCP tool set, or local-only operation.

What's new

  • The Hermes provider adds birkin_memory_forget and birkin_memory_restore, sharing the core archive and restore implementation; both default to preview and move files only when confirm=true.
  • birkin_memory_forget moves an exact target note to _archive/ and returns a vault-relative archive path so birkin_memory_get_note and birkin_memory_restore can address that exact archive file even if another writer later creates a newer same-name note.
  • Mnemosyne.rezone(..., dry_run=True) validates destination collisions and zone caps without changing the file or its index entry, and birkin_memory_restore uses this path for previews.
  • The MCP tool memory_forget keeps its existing allowed=false / unknown slug result for missing notes after moving onto the shared core; Hermes cleanup returns its own not-found error.

Safety and limits

  • birkin_memory_forget, birkin_memory_restore, and birkin_memory_remember run only when both the provider and calling agent context are primary; subagents and other contexts are refused.
  • Target selection requires an exact index key, vault-relative path, or unambiguous stored title; fuzzy matches and ambiguous titles are refused.
  • Forgetting is soft archival, not hard deletion: the file stays under _archive/, remains readable via birkin_memory_get_note, is excluded from ordinary search and lexical prefetch, and keeps its title and slug reserved so birkin_memory_remember still refuses the same title.
  • Protected notes (negative-polarity notes, identity/preference types, and notes that are both filed and linked, including Hermes notes in knowledge/ whose body contains [[wikilinks]]) are refused with allowed=false and archived=false.
  • The curation cap (max(2, ceil(0.20 * active_notes)) and at most active_notes - 1) remains enforced, so the sole remaining active note cannot be forgotten, and destination collisions or refusals leave files intact.
  • Recall, ranking and the MCP tool set are unchanged. The Hermes provider still makes no network calls and needs no API key; the opt-in hosted reranking from 0.8.0 is not reachable from it.

Upgrade

python -m pip install -U "birkin-mnemosyne==0.9.0"
python -m pip install -U "birkin-mnemosyne[mcp]==0.9.0"   # with the MCP server

Hermes Agent users should also install the plugin from the v0.9.0 checkout as described in integrations/hermes/README.md.

Full changes

  • #94 Expose reversible note cleanup in Hermes: #94

0.8.0: opt-in cross-language reranking

Choose a tag to compare

@ashmoonori-afk ashmoonori-afk released this 28 Oct 01:24
4b78ff4

birkin-mnemosyne 0.8.0

Opt-in cross-language reranking raised recall Hit@5 from 298 to 1,028 of 1,432 unseen questions in six languages (3.45x) when a judge is configured; without one, recall stays local and unchanged.

What's new

  • KibitzerAdapter.recall() and the MCP tool memory_kibitzer_candidates rerank automatically when MNEMOSYNE_RERANK_API_KEY is set or a decide client is passed, and report the selector used and any fallback reason.
  • New KibitzerAdapter.select_crosslingual() and birkin_mnemosyne.crosslingual (opengateway_decider, translate_views, RerankError): candidates from the original and translated queries (BM25 and TF-IDF cosine, top 32 each) are scored by a hosted judge, the best five are kept, then ordered by pairwise comparison.
  • MNEMOSYNE_RERANK_TRANSLATOR adds English and Korean query views; MNEMOSYNE_RERANK_TIMEOUT sets seconds per request.
  • Judge requests run up to five at a time, with results kept in input order. select(), search() and the standard-library core are unchanged and never call a model.

Measured result

Research harness, October 25, 2026 (PR #91). Hit@5 counts questions with at least one labeled relevant note among the first five candidates. The baseline is the existing local select() with max_items 5.

Unseen six-language holdout, 1,432 questions Baseline With reranking
Hit@5 298 1,028
Hit@5, equal-language average 20.8% 71.8%

Ratio 3.45x, grouped 95% interval 3.14-3.81. Every language and its native-language subset passed the preregistered no-decline rule. Before scoring, two source questions whose translations failed the quality check were removed with all their copies (8 cases per arm), leaving 1,432 of 1,440 questions.

The package reproduces the study: replaying all 58,498 saved holdout judge answers through this package's code gave the same five notes in the same order for 1,432 of 1,432 questions, with every request byte-identical. Retrieval itself is not covered by that replay: the package uses its own tokenizer, while the study used the research retrievers.

Known weak spot (PR #90, historical Hit@2 floors on the original cases): on Korean MIRACL (213 questions) the pairwise step lowers the result from 142 to 137, still above the floor of 107. It stays because the method without it failed the SciFact floor (215 against 224 of 300); with it, SciFact scores 231. The earlier 2,400-question result in PR #90 reused questions while the method was chosen, so it is selection evidence only.

Cost, speed and privacy

  • Off unless MNEMOSYNE_RERANK_API_KEY is set or a decide client is passed. The generic OPENGATEWAY_API_KEY does not turn it on.
  • Without a key nothing leaves the machine: recall() returns the local BM25 ranking and logs one warning per adapter. MNEMOSYNE_RERANK=off (also 0, false, no) or recall(rerank=False) turns it off with no calls and no warning.
  • When on, each query sends the query and note excerpts (the note description up to 200 UTF-16 units plus an excerpt of up to 1,500 code points) to the hosted judge, plus two translation requests when a translator is configured.
  • Estimated cost: about $0.0081 of judge spend per query on average (token-count estimate from the research harness, not an invoice), plus the translation requests. Estimated latency: about 4 s per query with five requests in flight (from request timings, not an end-to-end measurement).
  • A missing key, network error, timeout or malformed response falls back to the local BM25 ranking with one warning, never a partial rerank.

Upgrade

python -m pip install -U "birkin-mnemosyne==0.8.0"
python -m pip install -U "birkin-mnemosyne[mcp]==0.8.0"   # with the MCP server

Full changes

  • #90 Opt-in cross-language recall reranking: #90
  • #91 Rerank recall automatically when a judge is configured: #91

0.7.2: retain same-stem notes

Choose a tag to compare

@ashmoonori-afk ashmoonori-afk released this 15 Oct 08:22
f91aeac

birkin-mnemosyne 0.7.2

This release fixes same-stem index collisions. Markdown notes in different
folders remain searchable even when they share names such as index.md or
README.md. The core still needs no runtime dependency, embedding model or API key.

What changed

The newest file keeps the bare filename stem. Every other same-stem file gets
its vault-relative path without .md as a key; a root file uses ./name.
Equal modification times retain the existing lexicographic path tie-break.
Source paths and bytes are unchanged. Index refresh tracks writes, winner
deletion and renames. Existing hidden-file, cache, symlink and archive rules remain.
Accepted curation operations stay bound to their original files when keys change.
MCP mutations return the current key of the written or moved file, including
near-duplicate candidates, and reads/writes credit the actual accessed note.

Only this indexing fix is included. An experimental ranking correction and
taxonomy features are not part of 0.7.2.

Public round-two measurements

The fixed corpus contains 20,000 public documents, including 6,500 Korean
documents. Existing questions were reused, not regenerated. The primary
heldout endpoint is any-known-gold recall@2: at least one accepted source in the
first two results. Gold includes generator-source documents and alternatives
accepted by existing source-bound evidence. Baseline is main c6a289f.

Heldout slice Questions Baseline hits Slug-fix hits
Overall 1,011 270 (26.71%) 537 (53.12%)
Korean 822 220 (26.76%) 407 (49.51%)
English 189 50 (26.46%) 130 (68.78%)
At least one gold already indexed 470 270 (57.45%) 274 (58.30%)
All known gold previously dropped 541 0 263 (48.61%)

Overall gain: +26.41 percentage points, with 274 paired gains and seven losses.
Development overall improves from 231/524 to 263/524, but its already-indexed
known-gold slice declines from 231/405 to 224/405 (-1.73 points).
Using only generator-source matches, the already-indexed development slice
declines from 220/399 to 204/399 (-4.01 points). These losses are not hidden by
the overall gain.

Generator-source heldout recall@2 improves from 255/1,011 to 519/1,011.
The closed-discovery sensitivity subset improves from 156/431 to 286/431.
"Closed" means no unresolved alternative in the existing candidate list, not
an exhaustive semantic audit of the corpus.

The index grows from 8,292 to 20,000 notes and from 16.51 MB to 32.70 MB.
One-pass heldout query p50/p95 on Linux are 9.01/21.94 ms before and
28.62/84.55 ms after. These observed times are not a production SLA.

Statistical limitation and owner decision

The 69 preselected independent source anchors have 28 gains and no losses:
exact two-sided McNemar p=7.450580596923828e-9. The all-case paired p-value is
descriptive because questions share source families.

The preregistered whole-family overall and language confidence intervals were
not computable: some language/category strata contain only one independent
source family. That criterion was not passed. On October 15, 2026 at 15:14 KST,
the owner explicitly decided to ship the indexing fix on the paired evidence,
waiving this interval criterion while retaining the engineering release checks.

The question set was reused and ancestor heldout aggregates had already been
seen. Alternative-answer coverage remains incomplete; NONE semantics and
downstream task correctness were not established. These results measure
retrieval, not semantic answer accuracy, universal improvement, or complete
recovery of every previously found note. Only aggregate results from the public
corpus are reported here.

Install

python -m pip install "birkin-mnemosyne==0.7.2"
# Optional MCP server:
python -m pip install "birkin-mnemosyne[mcp]==0.7.2"

The bundled plugin is 0.2.3 and pins core 0.7.2. Existing installations are not
upgraded automatically.

v0.7.1

Choose a tag to compare

@ashmoonori-afk ashmoonori-afk released this 13 Oct 20:01
8ebfd19

birkin-mnemosyne 0.7.1

This release brings visible nested Markdown folders into ordinary recall and
publishes the terminal inspection commands that previously required a checkout.
The core remains dependency-free and needs no model or API key to store or
search notes.

Nested folders without moving your notes

  • Discover visible Markdown recursively, including nested imports and folders
    with spaces or Unicode names. Hidden files, cache directories, symlinks and
    Windows reparse points remain excluded.
  • Use complete relative parent paths for zones, labels, INDEX routing, startup,
    curation and MCP. Archive preserves the original subpath; checked journal
    undo restores exact original paths and bytes.
  • Resolve duplicate filename stems by newest modification time, with a warning
    and deterministic POSIX-path tie-break. Existing stem-based interfaces remain.
  • Keep archived descendants out of active search and curation, including
    case-variant archive names. Linked mutation destinations are refused.

Read memory from the terminal

  • mnemosyne search, list and show return the same JSON fields as their MCP
    counterparts without recording use or changing usage ranking.
  • Repeat --label namespace:value to require all labels before ranking or
    pagination. list reports label counts for the complete eligible set.
  • mnemosyne --version matches the package version. mnemosyne undo uses the
    checked journal for init, fold and review transactions.
  • Commands share --vault, then MNEMOSYNE_VAULT, then the server's default
    vault; init keeps its current-directory fallback. Quoted ~ paths expand.

Reliability

Supported source extensions are case-insensitive without renaming originals.
Corrupt INDEX state reports errors without inventing orphan classifications.
Related links respect actual Markdown section boundaries, long filenames use
short atomic staging names, and startup calls accept omitted paths when a scoped
handoff or other startup source exists. Invalid MCP vaults report errors without
corrupting protocol output.

Install

python -m pip install "birkin-mnemosyne==0.7.1"
# Optional MCP server:
python -m pip install "birkin-mnemosyne[mcp]==0.7.1"

The bundled Hermes plugin is 0.2.2 and pins core 0.7.1. Use the documented
Hermes plugin manager; do not install directly into a managed Hermes environment.
The OpenClaw example also pins core 0.7.1. Neither instruction upgrades an
existing host automatically.

Nested discovery does not imply an accuracy improvement. Existing public
measurements, their separate corpora and their limitations remain unchanged.
Private real-corpus recall results are not part of this release.

birkin-mnemosyne v0.7.0

Choose a tag to compare

@ashmoonori-afk ashmoonori-afk released this 12 Oct 02:31
08e518d

birkin-mnemosyne 0.7.0

  • Cross-session project/task handoff memory through Python, CLI and MCP, with
    immutable checkpoints, complete scoped startup reads, checked retention and
    opt-in Hermes lifecycle capture (#79).
  • Editable note/data labels with deterministic offline suggestions, reversible
    annotation, lossless external imports and label-filtered search (#80).
  • First-run vault onboarding, complete task-bound INDEX reads, topic maps and
    drift warnings.
  • Filesystem-safe review merge/undo and installed-wheel CLI provenance fixes.
  • Updated English and Korean documentation and benchmark results.

Install: python -m pip install birkin-mnemosyne==0.7.0

Release commit: 08e518d31bb71e5e8c530a5a0f8930c5f194b300.
Real-corpus recall tuning is deferred to 0.7.1; this release makes no 9/10
top-1 recall claim.

birkin-mnemosyne v0.6.0

Choose a tag to compare

@ashmoonori-afk ashmoonori-afk released this 10 Oct 01:36
259d949

birkin-mnemosyne v0.6.0

A tiny, dependency-free note memory for agents. This release adds an opt-in always-loaded memory INDEX: a compact "when X, read Y" map that is always in the agent's startup context, while the detailed documents stay in ordinary Markdown files that are opened only when needed. It also adds a lossless way to split a large note into topic documents. The default install still depends on nothing but the Python standard library, and a vault that does not opt in sees no INDEX behaviour (one review-journal change reaches every vault; see Upgrade notes).

Install

pip install birkin-mnemosyne            # core, standard library only
pip install "birkin-mnemosyne[mcp]"     # MCP server (mnemosyne-mcp)
pip install "birkin-mnemosyne[semantic]"

Python 3.10 or newer.

New

  • Always-loaded memory INDEX (#58). MemoryIndex(vault).register(trigger, document) adds a durable trigger -> document route, stored in .mnemosyne-memory-index/index.json, separate from Markdown notes and from the rebuildable search cache. Every entry is included in every always-loaded surface (the startup reader, the VaultMemory digest, MCP initialization and memory_startup_read, the Hermes system prompt): no top-k, TTL, token budget or summarization in the library drops an entry (hosts must keep the INDEX when they compact their own context). Over its token budget (default 2,000, estimated as UTF-8 bytes / 4) the INDEX warns and still returns every entry. Invalid state, or a missing index.json once the feature is enabled, raises MemoryIndexError instead of looking like an empty index. MemoryIndex.open(query) reads the complete matching documents (exact trigger, then lexical trigger match, then the existing BM25 search) and reports which route matched.
  • MCP tools for the INDEX (#59, #60): memory_index_register, memory_index_read, memory_open_trigger, memory_index_check and memory_index_split. There is no tool that removes or clears INDEX entries.
  • Required-INDEX guard (#59): mnemosyne-mcp --require-memory-index (or MNEMOSYNE_REQUIRE_MEMORY_INDEX=1), MemoryIndex(..., required=True) and StartupReader(..., require_index=True) fail when the INDEX marker itself is missing, so a host notices if the INDEX disappears across a restart.
  • Lossless note splitting (#60): split_note(), the memory_index_split tool and mnemosyne-index split split one named Markdown note into topic documents along its sections, without summarizing. Preview is the default and writes nothing; the preview and the applied report both list every original line with its topic document and line. apply writes the topics, registers a route for each, checks that the topics reconstruct the original bytes exactly, writes a coverage receipt with each topic's original byte range under .mnemosyne-memory-index/splits/, and keeps the original through the review journal (undo with memory_review_undo or undo_receipt). Existing destination files are never overwritten. Applying needs a filesystem that supports hard links; without them it fails before the source note is changed.
  • Integrity check (#60): check_index(), memory_index_check and mnemosyne-index check report notes without a route, routes whose document no longer reads, and broken coverage receipts. Read-only.
  • New command mnemosyne-index (standard library only) with check and split.
  • Hermes plugin (#59): the system prompt includes the complete INDEX, and birkin_memory_get_note also opens the exact document path an INDEX entry names.

Measured results and an honest cost note

From docs/memory-index-results.md (#61), with a frozen protocol and reproducible runner:

  • On a large synthetic corpus, the complete startup context drops from 45,128 to 1,781 tokens (o200k_base), with all 30 routes present and all 155,749 source bytes reconstructing exactly.
  • Two separately authored frozen question sets (GPT-6.1 Sol and Claude Opus, 12 questions each, on small fixtures) stay at 12/12 correct before and after. This is preserved accuracy, not an accuracy gain; task accuracy on the large synthetic corpus was not measured.
  • On small documents the INDEX can cost more. On the tiny question fixtures, the INDEX plus the opened document costs more tokens than simply loading the small original note for 12/12 GPT-authored questions and 7/12 Claude-authored questions. The measured win is startup cost on a large memory; for a handful of small notes the INDEX can cost more, which is why it stays opt-in and nothing is migrated automatically.

Upgrade notes (behaviour changes)

  • The INDEX changes nothing for a vault that does not opt in. The feature is enabled only when .mnemosyne-memory-index/ exists (created by the first register or an applied split). Without it, startup, digest and search behave as in 0.5.0.
  • Review journal (all vaults, #60, #64): an in-place note rewrite through the review journal (the surviving note of a consolidation merge, and restoring it with memory_review_undo) now moves the current file into .mnemosyne-reviews/<transaction>.sources/, keeps it there permanently, and publishes the new bytes through a hard link. The note is briefly absent during that handoff. On a filesystem without hard links (for example exFAT or FAT) a merge now fails with transaction rolled back and leaves every note as it was; in 0.5.0 it succeeded there. Undoing a merge there (including one committed by 0.5.0) also fails, with recovery required, and can leave the retired note restored while the survivor keeps its merged text; run such an undo on a filesystem with hard-link support. Keep vaults on a filesystem with hard-link support (APFS, ext4, NTFS) to use merge; restoring merge on other filesystems is tracked in #65.
  • Once a vault opts in, the INDEX is added to startup reads, the digest, MCP initialization instructions and the Hermes system prompt, and StartupReader.read([]) with no paths is allowed. A broken or missing index.json in an opted-in vault makes those reads fail loudly. The complete INDEX must fit the startup reader's 1 MiB bound; above that the read fails rather than trimming it.
  • memory_capacity / capacity_report() gain an always_loaded block (enabled, index_entries, estimated_tokens, max_tokens, over_budget, estimator), and INDEX budget warnings are added to warnings. Existing fields keep their meaning. For an opted-in vault over the INDEX budget, that warning also appears as capacity_warning on memory_remember and makes memory_review_questions include its capacity block.
  • StartupBundle and the memory_startup_read result gain estimated_tokens.
  • The dev extra now requires pytest>=8.4.

Fixes

  • A merge that cannot publish its rewrite (for example without hard links) rolls back cleanly instead of leaving the surviving note only in the journal's capture directory; an undo that cannot publish copies the captured note back in place and reports recovery required (#64).
  • The release workflow's wheel test step can import the memory INDEX benchmark again (#63).

Documentation and tests

  • Usage guide docs/memory-index-guide.md, design docs/memory-index-design.md, results docs/memory-index-results.md, benchmark protocol and runner under benchmarks/memory_index/ (#58, #61).
  • New tests for the INDEX, its MCP tools, the CLI, migration and the benchmark arithmetic. CI still runs 21 jobs on Linux, macOS and Windows.

Not changed

  • No new runtime dependency; the core still uses only the standard library.
  • Search ranking, note format and the index cache format are unchanged; existing vaults need no migration.

Full changelog: v0.5.0...v0.6.0

birkin-mnemosyne v0.5.0

Choose a tag to compare

@ashmoonori-afk ashmoonori-afk released this 09 Oct 04:39
7ebaee7

birkin-mnemosyne v0.5.0

A tiny, dependency-free note memory for agents. This release adds protected-memory capacity management, opt-in search-time query expansion, user-confirmed consolidation and a complete startup reader, and fixes a long list of correctness, safety and performance issues found in an independent review of 0.4.0. The default install still depends on nothing but the Python standard library.

Install

pip install birkin-mnemosyne            # core, standard library only
pip install "birkin-mnemosyne[mcp]"     # MCP server (mnemosyne-mcp)
pip install "birkin-mnemosyne[semantic]"

Python 3.10 or newer.

Upgrade notes (behaviour changes)

Read these before upgrading a long-lived vault or an agent integration.

  • memory_review_questions no longer returns full note bodies (#53). Each note now carries path, title, sha256, sources, body_preview (first 300 characters) and body_chars. Agents that read first.body / second.body must call memory_get_note for the full text.
  • Zone names are validated, not slugged (#47). VaultMemory.write_note(zone=...) now raises ValueError for _archive, Unicode, spaced, underscored, leading-dash or over-long zone names, and for a new zone once 24 zones exist. inbox (any case, padded) maps to the vault root. rezone and search(zone=...) use the same normalisation, so rezone now also accepts padded or upper-case names such as " DevOps ", and search(zone=...) matches the normalised name or the folder name exactly as given.
  • Rezone, archive and restore refuse to overwrite an existing file at the destination (#29). memory_forget can now report archived: false with allowed: true when the move is refused.
  • Identity and startup readers refuse hidden paths (#38): memory_identity_read, memory_startup_read and memory_startup_verify no longer read dot-files or dot-folders (for example .env, .git/config, .mnemosyne-reviews/), including through symlinks. Error messages from these readers and from the review tools no longer contain absolute filesystem paths (#38, #51); memory_get_note can still include one when a note file cannot be read.
  • Dense zone links are bounded (#32): a plan that moves notes into a zone links each moved note to at most 10 zone-mates (at most 500 links per plan) instead of linking every pair in the zone. memory_curate reports the expansion as dense_links.
  • Frontmatter strings are quoted (#54): new writes store title, sources and tags as double-quoted values, and values like 1e3, 007, nan, true are kept as strings. Old notes keep parsing as before; see #54 for two documented edge cases with backslashes in old quoted values.
  • Rewrites keep tags and expiry (#46) when the caller omits tags / ttl_days. In the Python API, pass tags=[] or ttl_days=0 to clear them; over MCP, memory_remember with an empty tag list keeps the existing tags.
  • File modes and durability (#33): rewritten notes keep their permission bits (they were forced to 0600), new files follow the umask, and every atomic write is fsynced (one extra fsync per write).
  • Search sees outside edits up to 2 s later (#16): search() rescans the vault at most once per 2 s. Writes made through the library are visible at once; call refresh() to see an outside edit immediately.
  • Index cache writes are coalesced (#52): after a single-note write or rezone the index cache is saved at most once per 2 s; pending changes are written by the next write after that, flush(), refresh() / rebuild(), the end of deferred_save() or at exit. After a crash it is rebuilt from the note files; no note data is lost.
  • A corrupt .mnemosyne-dynamics.json is quarantined (#36) as .mnemosyne-dynamics.json.corrupt-<timestamp> with a warning instead of being silently overwritten. Recording an access now takes the vault lock and re-reads the dynamics file (about +0.8 ms per call at 300 notes).
  • Invalid capacity budgets stop the MCP server at start (#55): an invalid MNEMOSYNE_MAX_PROTECTED_NOTES, MNEMOSYNE_MAX_VAULT_BYTES or matching CLI flag exits with code 2.
  • Semantic mode re-embeds once (#39): the default model is now pinned to a fixed revision, so an existing .mnemosyne-vectors.npz built without a recorded revision is rebuilt once on first use. Nothing is downloaded for that rebuild.
  • NFD titles resolve to their NFC note (#34): slugs are NFC-normalised; existing NFD-named and hand-made files stay reachable and are not renamed.

New

  • Protected-memory capacity (#55): a read-only memory_capacity MCP tool reports active notes, protected notes and vault bytes against a budget (MNEMOSYNE_MAX_PROTECTED_NOTES, default 1000; MNEMOSYNE_MAX_VAULT_BYTES, default 100 MiB; or --max-protected-notes / --max-vault-bytes). Over budget, memory_remember adds a capacity_warning and memory_review_questions offers keep/retire questions for the oldest, least-used protected notes. Nothing is deleted automatically; a retire archives the note through the review journal and memory_review_undo restores it byte-exactly.
  • Search-time query expansion (#18), opt in per search: Mnemosyne.search(..., expansions=...), VaultMemory.search(..., expansions=...) and the optional synonyms / keywords / related / note_line parameters of memory_search. The index is unchanged and needs no backfill. Without expansions, ranking is identical to 0.4.0. Benchmark numbers and their limits (model-written questions and expansions, one writer's code-switched Spanish/German slices below the core) are in benchmarks/retrieval/RESULTS.md.
  • User-confirmed consolidation (#19): memory_review_questions / memory_review_apply / memory_review_undo ask the user about duplicate, overlapping or conflicting notes, apply only explicit answers, keep provenance in a journal under .mnemosyne-reviews/ and allow exact undo.
  • Complete startup reader (#20): memory_startup_read / memory_startup_verify read MODE, handoff, persona and JSON material losslessly with verifiable coverage.
  • Kibitzer-shaped recall adapter (#21): memory_kibitzer_candidates.
  • External adapters (#22): an OpenClaw Agent Plugins bundle (integrations/openclaw) and a Hermes MemoryProvider plugin (integrations/hermes, Python 3.11+). The Hermes plugin pins birkin-mnemosyne==0.5.0; the OpenClaw README installs birkin-mnemosyne[mcp]==0.5.0.

Fixes

  • Rezone no longer silently destroys an older same-named file in the target zone (#29).
  • Two processes sharing a vault no longer erase each other's usage history (#36).
  • The Windows vault lock waits like the POSIX lock instead of failing after about 10 s of contention (#30).
  • Hand-made titles such as My Note.md round-trip through get_note / write_note instead of creating a duplicate; memory_remember(mode="create") never overwrites a file the index has not seen (#34).
  • Review tools keep working when a note is not valid UTF-8 or has a non-numeric version; such notes are reported in skipped (#35).
  • get_note's fallback and purge_expired no longer reach into hidden folders such as .trash/ or nested folders the index never shows (#48).
  • Titles containing newlines can no longer break a note's header (#54).
  • add_link tolerates a non-numeric stored confidence (#46).
  • The codex curation provider keeps its temporary CODEX_HOME in the system temp dir instead of creating .omo/tmp (with a credentials copy) in the current directory (#28).
  • The Hermes plugin declares an exact pin and a quarantine exemption for this package only (#24).

Performance

  • search() at 10,000 notes: p50 37 ms -> 1.5 ms, from scanning the vault at most once per 2 s (#16).
  • Single-note writes no longer rewrite the whole compressed index each time (#52); document-length totals are maintained incrementally (#26: about 1-2 % median gain on insert/edit and under 1 % on delete, with five of six p95 tails slightly worse in the original measurement).
  • Review discovery is bounded above 50,000 candidate pairs, and memory_review_apply resolves an answer without rescanning the vault (#53). Vaults under the budget get exactly the same questions as before; above it, some lower-ranked pairs are not offered.
  • Curation plans save the index once per plan (#32).

Documentation, tests and CI

  • README: complete MCP tool and settings reference (#42), every file Mnemosyne keeps in a vault and which are safe to delete (#43), which test suites need extras or network (#45), the Hermes Python 3.11 floor (#41), absolute links so the PyPI page works (#56), upstream contributions (#25), README install lines use the PyPI package (#15).
  • CI tests Python 3.10, 3.12 and 3.14 (core) and 3.10 and 3.13 (MCP and semantic extras) on Linux, macOS and Windows, 21 jobs in all (#44; macOS MCP leg #18). The vault-lock exclusion test now also runs on Windows (#17).
  • The release workflow now checks the wheel version against pyproject.toml and the tag, installs the wheel into a fresh venv and runs the test suite against it before publishing (#40).
  • Version pins across packaging files are kept aligned by a test (#31); round-4 tests skip cleanly outside a git checkout (#37); round-4 evaluation protocol and status (#23).

Not changed

  • No new runtime dependency; the core still uses only the standard library.
  • Index cache format unchanged; existing vaults need no migration.
  • Default-mode ranking without expansions is unchanged from 0.4.0 (apart from search seeing outside edits up to 2 s later).

Full changelog: v0.4.0...v0.5.0

birkin-mnemosyne v0.4.0

Choose a tag to compare

@ashmoonori-afk ashmoonori-afk released this 30 Sep 07:39
3dd7e23

birkin-mnemosyne v0.4.0

A tiny, dependency-free note memory for agents. This release makes search work in more languages, shrinks the index, and adds an opt-in semantic mode. The default install still depends on nothing but the Python standard library.

Install

Not on PyPI yet. Install this release from GitHub:

pip install https://github.com/ashmoonori-afk/birkin-mnemosyne/releases/download/v0.4.0/birkin_mnemosyne-0.4.0-py3-none-any.whl
# or
pip install "git+https://github.com/ashmoonori-afk/birkin-mnemosyne@v0.4.0"

Python 3.10 or newer.

What got better

Measured on the project's own multilingual benchmark (160 fictional notes in six languages, padded to 1,000 and 10,000 notes; questions written independently by three model authors; the test questions were frozen before any tuning). Numbers below are MRR on the frozen test split at 10,000 notes, v0.3.0 -> v0.4.0, default mode.

questions by English Korean Japanese Chinese Spanish German
all three authors 0.523 -> 0.568 0.569 -> 0.559 0.061 -> 0.782 0.000 -> 0.764 0.599 -> 0.673 0.590 -> 0.681
gpt-6.1-sol 0.436 -> 0.496 0.631 -> 0.613 0.061 -> 0.826 0.000 -> 0.777 0.495 -> 0.609 0.510 -> 0.622
claude-fable-5.1 0.564 -> 0.621 0.499 -> 0.493 0.061 -> 0.759 0.000 -> 0.770 0.650 -> 0.756 0.605 -> 0.749
claude-opus-5.5 0.569 -> 0.588 0.577 -> 0.570 0.061 -> 0.763 0.000 -> 0.746 0.653 -> 0.653 0.655 -> 0.671

All v0.4.0 figures and the "all three authors" row are in benchmarks/retrieval/RESULTS.md. The per-author v0.3.0 figures were measured with the same benchmark and the same frozen questions on the v0.3.0 code.

  • Japanese and Chinese notes are now searchable. v0.3.0 could not find them at all.
  • English, Spanish and German improve for every question author (Spanish is unchanged for one author).
  • The index cache is 79 % smaller (15.8 MB -> 3.3 MB at 10,000 notes) with identical rankings.
  • Footprint of the default mode at 10,000 notes on an Apple M1: about 35 ms per search (p50), about 0.3 s to start, 138 MB peak memory, 0.18 MB installed.

What did not get better

  • Korean in the default mode is slightly lower than in v0.3.0 (MRR 0.569 -> 0.559 at 10,000 notes; lower for all three authors). The loss is on questions that mix Korean and English. Three ways to win it back were measured and none is shipped, because each one made another kind of question worse; the numbers are in benchmarks/retrieval/RESULTS.md.
  • Questions worded differently from the note are still weak in the default mode (paraphrase MRR 0.205 at 10,000 notes).

New: optional semantic mode (opt-in, not the default)

pip install the [semantic] extra, run python -m birkin_mnemosyne.semantic once to prepare the model (about 530 MB download), and turn the mode on with Mnemosyne(vault, semantic=True) or MNEMOSYNE_SEMANTIC=1.

  • At 10,000 notes it lifts MRR in every language (English 0.568 -> 0.604, Korean 0.559 -> 0.608, Japanese 0.782 -> 0.816, Chinese 0.764 -> 0.782, Spanish 0.673 -> 0.681, German 0.681 -> 0.708) and paraphrases from 0.205 to 0.262. Exact keyword lookups are unchanged.
  • It costs about 21-23 MB more memory while searching, about 61 MB more while indexing, and starts in 0.38 s at 10,000 notes (0.31 s without it).
  • It is not the recommended default. The bar was "no slice worse than the default mode", and the frozen test split misses it: Chinese at 10,000 notes loses one question in the top five (R@5 0.822 -> 0.815), one author's Spanish questions and two authors' Chinese questions dip, and Japanese questions that mix in English lose rank at every size. All of it is listed in RESULTS.md.

Also in this release

  • A reproducible retrieval benchmark (benchmarks/retrieval/) with per-language, per-author results and the rejected ideas written down.
  • CI on Linux, macOS and Windows for the default install, the MCP extra and the semantic extra.