Skip to content

v0.9.0

Latest

Choose a tag to compare

@michael-denyer michael-denyer released this 10 Nov 01:01
4e96213

Added

  • MEMORY_MCP_EMBEDDING_DEVICE - Pins the torch device for the sentence-transformers
    backend, for example cpu. Leaving it unset lets the library choose, which is the existing
    behaviour. The macOS CI job sets it to cpu because hosted runners advertise an MPS device
    whose shared pool cannot allocate 44 MiB.
  • Hot cache injection through hooks - New memory-mcp-cli hot-cache command prints the hot
    cache to stdout, which Claude Code adds to the conversation. The plugin runs it from
    SessionStart (with --force) and from UserPromptSubmit, so frequently-used memories reach
    Claude with no tool call. Nothing injected them before. MCP resources are reachable only
    through an @ mention or a resource tool, and the old SessionStart hook printed nothing
    Claude could read
  • Per-session injection stamp - The command records a hash of what it printed under
    <db directory>/injected/, so identical text is printed once per session instead of on every
    prompt. --force discards the record and prints regardless, which is what SessionStart
    needs after /clear and /compact

Changed

  • Python 3.11 or newer is required - requires-python is >=3.11, the 3.10 classifier and
    CI job are gone. filelock 4.2.x and dnspython 2.9.x, the releases that fix their open
    security advisories, do not install on 3.10
  • Dependencies upgraded to patched releases - filelock 4.2.10, dnspython 2.9.2,
    fsspec 2026.9.0 and setuptools 84.2.1 close the open Dependabot alerts, and the pending
    Dependabot updates are merged, including fastmcp 4.1.2, authlib 1.9.1 and
    transformers 5.20.2
  • Plugin components moved to the plugin root - commands/, skills/recall-nudge/ and the
    testing resources now sit at the repo root instead of inside .claude-plugin/, which Claude
    Code does not scan for components. No slash command or skill loaded before this
  • Embedding engine is built on first use - Storage.__init__ no longer constructs an
    EmbeddingEngine, so a hook that only reads SQL never touches the model stack
  • Schema version 19 - migrate_v18_to_v19 drops mining_runs, mined_patterns and
    output_log. Existing databases lose the three tables the first time they are opened
  • bootstrap promotes only when asked - --promote is opt-in and --no-promote is the
    default. Bootstrapping a repo used to push every parsed chunk into the hot cache, which buried
    the memories that earned their place through use
  • bootstrap skips CLAUDE.md and .claude/CLAUDE.md - Claude Code already injects both,
    so seeding them duplicated context. The default file list is now README.md, README,
    CONTRIBUTING.md, docs/README.md and ARCHITECTURE.md
  • sentence-transformers is the only embedding provider - It runs on every platform, Apple
    Silicon included. There is no backend to select and no hardware detection at startup. The
    MEMORY_MCP_EMBEDDING_BACKEND setting is gone rather than left to be silently ignored
  • Three slash commands are gone - /memory-mcp:trust and /memory-mcp:consolidate drove only
    removed tools. memory-mcp-cli consolidate still merges similar memories from the command
    line, so consolidation itself is unchanged. /memory-mcp:test-all and the
    commands/resources/testing/ scripts it drove are gone as well, because they walked Claude
    through tools that no longer register
  • Six slash commands now name kept tools only - /memory-mcp:session calls end_session
    and no longer lists, shows or summarizes sessions. /memory-mcp:maintenance runs
    db_maintenance and lost its cleanup and validate subcommands. /memory-mcp:stats
    dropped metrics_status, /memory-mcp:link dropped find_contradictions, and
    /memory-mcp:forget no longer points readers at /memory-mcp:trust. /memory-mcp:test-all
    dropped its trust and contradiction phase and renamed the phases whose tools shrank
  • docs/API.md covers the sixteen kept tools - Every section for a removed tool is gone.
    The EMBEDDING_BACKEND row left the configuration table because there is nothing to select

Fixed

  • Stop hook crashed on real transcripts - log-response assumed a turn's content was
    always a list of typed blocks. Claude Code writes it as a plain string on a large share of the
    transcripts under ~/.claude/projects, and every one of those raised
    AttributeError: 'str' object has no attribute 'get' instead of logging the turn
  • A used memory never reached the next injection - mark_used_memories bumped used_count
    but wrote no retrieval_events row, and the hot cache's recent-recalls and prediction slots
    read that table alone. Both slots were empty on every install
  • Maintenance only ran when a human asked - Demotion and injection-feedback promotion lived
    inside two manual MCP tools. The Stop hook now runs both at the end of each turn, so stale
    memories leave the promoted set on their own
  • The promoted set was capped at the hot cache size - The v0.7 rename split
    hot_cache_max_items from promoted_max_items, but promote_to_hot and the salience
    normalizer kept reading the former, holding 10 promoted memories instead of 20
  • The hot cache ignored the current project - get_hot_cache took no project_id, so its
    promoted slots drew from every project at once. The hook and the MCP resource now pass the
    detected project
  • Both resources logged themselves as hot-cache - memory://promoted-memories now logs
    promoted-memories, so injection analysis can tell the two apart. memory://hot-cache also
    records its hit and miss counts, which only the promoted resource did

Removed

  • SessionStart no longer runs bootstrap - The hook now prints the hot cache instead.
    First-run seeding from project docs is a manual memory-mcp-cli bootstrap, and the once-a-day
    learning-loop staleness warning that bootstrap --quiet echoed no longer reaches the session
  • Pattern mining - src/memory_mcp/mining.py, storage/mining_store.py,
    storage/output_logging.py and server/tools/mining.py are gone, along with the
    log_output, mining_status, review_candidates, approve_candidate, reject_candidate,
    bulk_reject_candidates and run_mining MCP tools, the
    memory-mcp-cli log-output and memory-mcp-cli run-mining commands, and the
    hooks/memory-log-response.sh script. Mining produced zero patterns in every recorded run,
    it promoted straight into the hot cache without the promotion gates, and it inflated its own
    access counts through recall(). Promotion now follows whether an injected memory was used
  • Learning-loop observability - src/memory_mcp/probe.py, storage/mining_runs.py, the
    memory-mcp-cli hook-check command, the Learning Loop section of memory-mcp-cli status
    and its learning_loop JSON key, the once-a-day staleness warning, and the dashboard's
    /mining page with its health banner all existed to watch mining. Nothing is left to watch
  • NER entity extraction - extract_entities_ner lived in mining.py. transformers stays
    in the dependency list because sentence-transformers needs it
  • Mining settings - MEMORY_MCP_MINING_ENABLED, MEMORY_MCP_MINING_MIN_PATTERN_LENGTH,
    MEMORY_MCP_MINING_AUTO_APPROVE_ENABLED, MEMORY_MCP_MINING_AUTO_APPROVE_CONFIDENCE,
    MEMORY_MCP_MINING_AUTO_APPROVE_OCCURRENCES, MEMORY_MCP_NER_ENABLED,
    MEMORY_MCP_NER_CONFIDENCE_THRESHOLD, MEMORY_MCP_LOG_RETENTION_DAYS,
    MEMORY_MCP_LOOP_WARNINGS_ENABLED and MEMORY_MCP_WARN_MISSING_HOOK no longer exist
  • Mining storage methods - log_output, get_recent_outputs, upsert_mined_pattern,
    get_promotion_candidates, get_mined_pattern, delete_mined_pattern,
    update_pattern_status, expire_stale_patterns, record_mining_run, get_loop_health,
    cleanup_old_logs and decay_unused_mined_memories are gone. run_full_cleanup no longer
    returns patterns_expired, logs_deleted, mined_memories_demoted or
    mined_memories_floored
  • Memory Analyst agent - agents/memory-analyst.md is gone. Its report leaned on the mining
    and learning-loop views, and the same health picture is in memory-mcp-cli status and the
    dashboard. The MinedPattern and PatternStatus model types and the record_mining metrics
    helper go too, all three unreachable once the pipeline left
  • Thirty-three MCP tools - find_contradictions, get_contradictions,
    mark_contradiction, resolve_contradiction, preview_consolidation, run_consolidation,
    recall_with_fallback, recall_by_tag, metrics_status, unlink_memories,
    relationship_stats, run_cleanup, validate_embeddings, db_info, embedding_info,
    audit_history, db_rebuild_vectors, access_patterns, predict_next, warm_cache,
    predictive_cache_status, retrieval_quality_stats, validate_memory, invalidate_memory,
    get_trust_history, seed_from_text, seed_from_file, get_sessions, get_session,
    get_session_memories, cross_session_patterns, set_session_topic and summarize_session
    no longer register. Sixteen tools remain: remember, recall, forget, list_memories,
    memory_stats, hot_cache_status, promote, demote, pin, unpin, mark_memory_used,
    link_memories, get_related_memories, end_session, bootstrap_project and
    db_maintenance. Fifteen Storage methods that lost their last caller go too, along with
    ContradictionsMixin. get_trust_history stays, because adjust_trust still writes
    trust_history on every trust change and nothing else reads that table
  • MLX embedding support - The mlx-embeddings dependency, the mlx optional extra in
    pyproject.toml and the MLXEmbeddingProvider class are gone, along with the auto and
    mlx values of the embedding backend selection

Fixed

  • Apple Silicon import crash - is_mlx_available() caught only ImportError, so the
    AttributeError that transformers 5.13 raises through mlx_lm killed the server, the CLI
    and every hook at import time on every Apple Silicon machine. Any failure in the MLX import
    chain now means MLX is unavailable, logs one warning naming the exception type, and falls
    back to the sentence-transformers backend. A new test-macos CI job covers this path, which
    the Ubuntu-only matrix never ran.