Skip to content

SuperLocalMemory v4.2.35

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 08:12
Immutable release. Only release title and notes can be modified.
v4.2.35
865a6df

Nothing changes in memory.db, and existing llmcache.db entries remain readable with zero migration needed.

Added

  • Zero-degradation L2 Cache Engine (slm_cache_set, slm_cache_get, slm_optimize_stats):
    • File-backed KV entries (source_path or file:<abs_path> keys) now store an (mtime_ns, size) freshness envelope and register a file:<realpath> invalidation tag automatically. On read, any file modified or removed on disk is auto-evicted immediately and returned as a clean miss (stale_evicted: true) so stale code is never served.
    • Scoped semantic L2 fallback for non-code keys (search:, url:, query:, doc:) at cosine similarity >= 0.92 when semantic caching is enabled or semantic_fallback=True. Strictly disabled for file:, code:, diff:, patch:, ast:, and symbol: keys.
    • Durable KV telemetry (cache_kv_semantic_hits, cache_kv_stale_evictions, tokens_saved_kv, and active keepalive status) persisted in llmcache.db and exposed in slm_optimize_stats and slm cache status.
  • Automatic Edit-Time Cache Invalidation & Pre-Web L2 Cache Check:
    • post_tool_outcome hook now invalidates matching file:<realpath> entries in <1ms whenever any IDE runs Edit, Write, MultiEdit, NotebookEdit, edit_file, write_file, write_to_file, replace_file_content, or multi_replace_file_content (fail-open; no-op when llmcache.db is absent).
    • before_web hook now checks llmcache.db for fresh url: / search: hits alongside recalled memories before issuing a web search or fetch.
  • Configurable 3h / 6h / 9h Cache Keep-Alive (slm cache keepalive 3h|6h|9h|off|status):
    • Extends active L2 entry TTLs across an unbroken 3-hour, 6-hour, or 9-hour work window at zero API cost, auto-expiring cleanly at window end.
    • Optional --upstream-ping flag for proxy-routed Anthropic sessions (slm proxy): tracks active cacheable prefixes in RAM only (never written to disk) and sends minimal 1-token refresh pings before 5m L1 prompt-cache expiry while inside the chosen window, pausing immediately on any upstream error.
  • New /slm-cache Command & Updated slm-cache Skill / slm-optimize-advisor Agent: rebuilt across all 8 editor plugin packages (Claude Code, Codex, Antigravity, Cursor, Copilot, VS Code, Hermes, Muse).

Fixed

  • Antigravity Plugin Full Parity (antigravity-plugin/):
    • Persists session markers under $SLM_DATA_DIR/.agy_session_markers (default ~/.superlocalmemory/.agy_session_markers) with invocationNum > 1 and transcriptPath guards, and no longer deletes markers on Stop (which Antigravity fires after every turn).
    • Emits Antigravity 2.x {"injectSteps": [{"systemMessage": {"systemMessage": ...}}]} instead of legacy ephemeralMessage.
    • Forwards session_id (conversationId), cwd, and normalized Antigravity 2.x + legacy tool names (read_file→Read, write_file→Write, edit_file→Edit, run_command→Bash, search_web→WebSearch, invoke_subagent→Task) to post_tool_outcome, checkpoint, cue, before_web, and stop_outcome (fixing silent "no_session" drops).
    • Returns before_web, cue, and turn-2+ auto_recall context back to Antigravity instead of discarding hook stdout.
    • Expands root hooks.json matchers to cover both Antigravity 2.x and legacy tool names.