Repository navigation
Releases
SynapseVault v2.0.0 — 3-Layer Scopes, Conflict & Env Review Modal, 2D/3D Module Graph, 1-Click Auto-Write & Light/Dark Console
SynapseVault v2.0.0 — Major Milestone Release (100% Backward-Compatible with v1.x)
Lossless Upgrade: Upgrading from
v1.xautomatically migrates SQLite schemav2 -> v5with zero data loss and zero breaking changes to/v1/*HTTP or MCP interfaces. Still 0 required third-party Python dependencies (Python 3.11+ stdlib only) and 0 external CDN assets.
What's New Since v1.1.1
1. 3-Layer Scope Isolation & Modular Memory Packs
- 3-layer scopes (
personal/env:<machine>/project:<slug>): Machine-local proxies, toolchains, and LAN hosts stay inenv:<machine>— shared across local projects on the same machine while strictly isolated across machines viabound_machineRBAC. - Modular Memory Packs: Friendly
display_name, auto-detectedworkspace_path, sample excerpts, and 1-click Unmount / Remount / Rename / Archive / Forget (with hard core protection on whole-personal).
2. 4-Tier Truth Authority & Unified Conflict / Machine-Env Review Modal
- 4-tier authority & conflict-safe recall: Ranks conflicting multi-source facts (
human_verified > code_observed > doc_extracted > agent_inferred), folds activesupersedeschains, and protectscontradictspairs from MMR suppression with[CONFLICT]cues. - Unified 1-by-1 Decision Popup: Surfaces unresolved memory conflicts alongside machine-bound config candidates, highlighting deterministic
★ Default Pickrecommendations,Prev/Nextnavigation with draft preservation,Keep Both, 1-click Resolve All Defaults, and Rollbackable Approve All (batch_audit_log). - Atomic single-transaction conflict resolution deduplicates symmetric
(A->B, B->A)pairs and records cleanconflict_resolverevisions.
3. Auto-Promotion, Bulk Remediation & Adaptive Injection
- Auto-Curator Scope Routing + Leak Guardrail: Promotes general lessons to
personal(pinned=False) while deterministically blocking leaked project slugs, local paths, and private IPs. - Two-Phase Bulk Remediation (
dry_run->confirm_token-> 1-clickrollback_batch) and Dual-Gate Adaptive Injection Cutoff (min_score+min_ratio_to_top).
4. Pure-Canvas 2D / 3D Module-Aware Relation Graph
- Zero-CDN, zero-WebGL dual-mode 2D Plane (convex hull cluster outlines, hover tooltips, anti-overlap labels) and 3D Star Map (4 projection presets, interactive orbit/zoom).
- Module Capsules lock focus by
Scope/Topic/Kind; clickable Node Inspector shows relations, authority, mount state, and neighbor jumps; full Light & Dark Canvas themes.
5. Next-Gen Web Console & Safe Backup-First 1-Click Agent Auto-Write
- Backup-First 1-Click Auto-Write (
⚡ 一键自动写入配置) & Uninstall for Antigravity, Cursor, Claude, Codex, and DeepSeek Harness (dsh): per-agent directory & filename allowlists, symlink/junction fail-closed checks,dry_runpreview, unique.bak-synapsevault-<ts>-<rand>backups, and idempotent merging without overwriting unrelated plugins. - Honest 4-State Connection Lifecycle (
● Live/✓ Written · Restart App/⏳ Awaiting Config/Paused/Not Connected) + 1-click Cancel / Disconnect & Revoke (never deletes imported memories). - Read-Only Session Import Tracking & Anti-Echo Filter: Live
✓ Imported X/Nand per-session✓ Imported/🔄 +K newbadges with 3-layer idempotent deduplication across reconnects, plus stripping of<long_term_memory_context>and[记忆 #N | Top-K]recall echoes. - Light & Dark Theme Toggle, Zero-Flash Smooth CSS Grid Accordions, Memories Module Filter dropdown, streamlined
⋯menus with 1-click🔒 Make Decay-Immune(user_profile), clickableActive/Inboxshortcut pills, and a 9-Step Interactive Spotlight Walkthrough Tour.
6. Security Audits & ARM64 Linux CI
- Hardened across 2 independent adversarial code & security audit rounds (
0P0 remaining). - 63/63
tests/v2unit & architecture-guard tests passing + native ARM64 Linux CI (ubuntu-24.04-arm).
中文更新摘要 (v2.0.0)
- 三层作用域 + 模块化记忆包:
personal/env:<machine>/project:<slug>严格隔离,支持模块友好命名、工作区路径展示、一键卸挂/重挂/归档。 - 高影响决策统一弹窗(记忆冲突仲裁 + 本机环境配置):自动标出
★ 推荐默认,支持⏮ 上一条/⏭ 下一条、保留双方共存、一键按默认裁决全部冲突与可回滚一键允许。 - 备份优先「⚡ 一键自动写入配置」与 4 态诚实连接状态:支持 5 大 Agent 安全预览 +
.bak自动备份 + 一键卸载,明确区分● 已生效/✓ 已写入 · 待重启/⏳ 待粘贴生效/未接入,并支持一键取消接入 / 断开接入(已导入记忆完整保留不丢失)。 - 新一代双主题零闪屏控制台:完整浅色/深色主题(含 2D/3D 纯 Canvas 模块联动图谱)、全站平滑手风琴、按模块精准筛选记忆、
⋯一键🔒 永久保鲜、历史会话✓ 已导入 X/N状态追踪与防回声过滤、顶部活跃记忆/收件箱快捷跳转及 9 步聚光灯交互新手引导。 - 质量保障:历经两轮独立对抗安全审计(
0P0 遗留),63/63 全量单测 + 5 项架构守卫全绿,原生通过 ARM64 Linux CI 兼容验证,100% 无损兼容 v1.x。
SynapseVault v1.1.1 — Customizable Recall Injection Budgets
SynapseVault v1.1.1 — Customizable Recall Injection Budgets
SynapseVault v1.1.1 lets users freely tune the trade-off between per-turn token spend and deep context recall — globally or per Agent client — without editing hook commands or restarting clients.
What's New in v1.1.1
-
Modular Recall Budget Policy (
llm_memory/core/budget.py)- Added 3 built-in presets + full custom tuning stored cleanly inside
governance_policy_v2(zero schema migration required):lean:3items (1pinned guardrail +2MMR),900chars,mmr_lambda=0.65balanced(default):4items (1pinned guardrail +3MMR),1400chars,mmr_lambda=0.72deep:8items (2pinned guardrails +6MMR),3200chars,mmr_lambda=0.78custom:limit1–15,max_guaranteed0–5,max_chars240–8000,mmron/off &mmr_lambda0.05–1.0.
- Precedence chain:
Explicit per-request parameter>Per-client override (e.g. cursor vs claude-code)>Global policy.
- Added 3 built-in presets + full custom tuning stored cleanly inside
-
Lifted 5-Item Recall Packet Cap + Over-Fetch Dedup Fix
- Raised
MAX_PACKET_ITEMSfrom5→15(while preserving the frozendshNode adapterHARD_MAX_ITEMS = 5compatibility boundary). - Fixed edge case where a pinned guardrail item also matched dynamic search and reduced the deduplicated packet by 1 slot.
- Raised
-
Live Inheritance in
hook-inject+ New CLIbudgetCommand & WebUI Controlshook-injectnow inherits the live serverrecall_budgetautomatically whenever--limit/--guaranteed/--max-charsare omitted — change budgets once in WebUI or CLI and every mounted Agent picks it up immediately.- Added HTTP
GET/PUT /v1/config/recall-budget, CLIsynapsevault budget show | set, and an interactive Custom Recall Injection Budget panel in WebUI Settings (ui/web-console/views/settings.js) with preset buttons, live token-cost preview, and per-client overrides.
中文摘要(v1.1.1 核心改进)
- 解除 5 条硬顶,开放
1~15条自定义注入预算:内置 省流(lean: 3 条 / 900 字)、均衡(balanced: 4 条 / 1400 字)、深度(deep: 8 条 / 3200 字) 三档一键预设及全参数自定义(红线位0~5、字符上限240~8000、MMRλ); - 支持全局默认 + 分客户端覆盖:例如给
cursor配省流 3 条、给claude-code配深度 8 条,优先级为「单次传参 > 单客户端覆盖 > 全局默认」; - WebUI + CLI 热切换即时生效:新增 WebUI 设置页注入预算面板(含实时 Token 预估)、HTTP
/v1/config/recall-budget与 CLIsynapsevault budget show/set;hook-inject自动继承服务端实时预算,无需重启或修改客户端 Hook 配置; - 修复置顶去重少补 1 条边界问题,全套跨平台回归测试增至 44 项。
SynapseVault v1.1.0 — MMR Diversity, Guardrails, Recall Traces & Progressive MCP
SynapseVault v1.1.0 — Modular Retrieval, Guardrails, Audit Traces & Progressive Disclosure
SynapseVault v1.1.0 upgrades the core local-first memory engine while strictly preserving zero third-party dependencies (pure Python 3.11+ stdlib), 0 MB idle VRAM, strictly read-only historical log scanning, and the 4-layer unidirectional DAG (<= 550 lines/module AST-guarded).
What's New in v1.1.0
-
MMR Diversity Reranking (
llm_memory/core/rerank.py)- Pure-stdlib Maximal Marginal Relevance (
MMRDiversityReranker, defaultlambda = 0.72, ratio-to-max scale-invariant normalization) prevents near-duplicate paraphrases from crowding out parallel distinct facts under tight Top-3 / Top-4 budgets. - Multi-fact coverage on compound queries jumps from
50.0%(Top-3 no-MMR) to100.0%(+50.0 pp).
- Pure-stdlib Maximal Marginal Relevance (
-
Guaranteed Guardrail Slots (
pin+build_recall_packet+hook-inject)- Pin critical project or personal rules (
synapsevault pin <id>/POST /v1/memories/{id}/pin) so they receive dedicated[PINNED #id vN ...]slots that are never crowded out by dynamic search hits. hook-injectnow routes through/v1/recall-packet, preservingtrace_id, guaranteed guardrail slots, and explicit[#id vN scope/kind @machine/client]provenance tags.
- Pin critical project or personal rules (
-
Persisted Recall Trace Audit Store (
llm_memory/core/recall_trace.py· Schema v3)- Lossless automatic SQLite migration (
schema_version2 -> 3) adds therecall_tracesaudit table recordingtrace_id, client, machine, channel, scope, returned#id vN, per-channel scores, MMR/guardrail flags, degradation reason, and latency. - Inspect traces via
GET /v1/traces,GET /v1/traces/{trace_id}, CLIsynapsevault traces --memory-id <id>, or MCP toolmemory_traces.
- Lossless automatic SQLite migration (
-
3-Layer Progressive Disclosure MCP (
llm_memory/core/progressive.py· 16 MCP Tools)- Expanded standard MCP stdio server from 12 to 16 tools, adding low-token progressive disclosure:
memory_index(Layer 1: ~15-20 tokens/item shortlist)memory_timeline(Layer 2: chronological siblings + 1-hop typed relations)memory_get(Layer 3: batch full-payload + optional revision history fetch)memory_traces(post-mortem recall audit lookup)
- Expanded standard MCP stdio server from 12 to 16 tools, adding low-token progressive disclosure:
-
Bi-Temporal
as_ofQueries & Gentle Decay / Access Reinforcement- Added
event_time,importance,hit_count, andlast_hit_atcolumns with point-in-timeas_ofretrieval (100.0%accuracy on temporal supersession). - Gentle recency decay x logarithmic access boost keeps stale
transientchatter from outranking fresh truths, whilepinned,persona, anduser_profilememories remain immune to decay.
- Added
-
Read-Only Git-Diffable Markdown Mirror (
llm_memory/core/export_md.py)- Deterministic one-way export (
synapsevault export-md --out ./mirror) renders SQLite memories into clean YAML-frontmatter Markdown files +INDEX.mdfor human review, Obsidian browsing, orgit diff, while SQLite stays the single source of truth.
- Deterministic one-way export (
-
Extensible Modular Contracts (
llm_memory/contracts.py)- Expanded Layer 0 swappable
Protocolcontracts from 5 to 8: addedDiversityReranker,RecallTraceStore, andMemoryExporterfor future pluggable upgrades without modifying core domain logic.
- Expanded Layer 0 swappable
-
Honest Dual-Baseline Benchmarks & Advantage Zone Documentation
- Added
python -m eval.benchmark_ablationcomparing SynapseVault v1.1 directly against structured retrieval baselines (Top-10 Unfiltered LexicalandTop-3 Nearest-Neighbor No-MMR), achieving100.0%multi-fact coverage,100.0%guardrail adherence,100.0%bi-temporal accuracy,100.0%trace auditability, and45.4%token savings vs Top-10. - Updated English & Chinese READMEs with a transparent Advantage Zone & Honest Positioning matrix.
- Added
Upgrade Notes
- Automatic lossless migration: Existing
v1.0.0(Schema v2) SQLite databases automatically and safely upgrade to Schema v3 on first launch — zero manual migration steps required.
中文摘要(v1.1.0 核心改进)
在严格守住 纯 Python 3.11+ 标准库(零第三方依赖)、0 MB 空闲显存、只读扫历史不改原文件、四层单向依赖 DAG 与单模块 <= 550 行守卫 的前提下,v1.1.0 带来以下模块化升级:
- MMR 多样性重排:Top-3/4 极窄预算下并列多事实覆盖率从
50.0%提升至100.0%(+50.0 pp),防止近义条目扎堆; - Pinned 红线保障位 +
hook-inject溯源透传:支持synapsevault pin <id>置顶关键项目/个人规则,每轮注入自动带上trace_id、[PINNED #id vN]与[#id vN @machine/client]; - 持久化
recall_traces召回审计表(Schema v2 → v3 无损自动升级):支持按trace_id、客户端或memory_id离线反查每次召回的完整决策细节; - MCP 3 层渐进披露(12 → 16 工具):新增
memory_index/memory_timeline/memory_get/memory_traces; - 双时态
as_of查询与温和衰减强化:支持历史时间点回溯(准确率100.0%),pinned/persona/user_profile豁免衰减; - 只读 Markdown 镜像导出:
synapsevault export-md --out ./mirror一键导出 Git-diff / Obsidian 友好目录; - 8 个可插拔 Layer 0
Protocol协议槽:新增DiversityReranker、RecallTraceStore、MemoryExporter,保留后续平滑升级潜能; - 新增结构化消融评测与 README 优势区间说明:透明区分“相对原始全量历史”与“相对 Top-10 / Top-3 结构化检索基线”(相对 Top-10 再省
45.4%Token)。
SynapseVault v1.0.0 — Initial Public Release
SynapseVault v1.0.0 — Initial Public Release
SynapseVault is a lightweight, local-first, zero-dependency Python 3.11+ unified memory library for multi-Agent AI workflows (Cursor, Claude Code, OpenAI Codex, Antigravity, DeepSeek Harness, and any MCP client).
Key Highlights:
- Multi-Tier Adaptive Retrieval: Tier 0 zero-model default (~17-25 MB RAM, 0 MB VRAM, 100% bilingual Recall@5), optional Tier 1A cloud embeddings with 750ms fallback, and optional Tier 1B local llama-server on-demand backfill (0 MB idle VRAM).
- Three Connection Modes for Every Agent: Mode A (automatic per-turn injection via native bridge or prompt hook), Mode B (standard 12-tool MCP server), or Mode A + B together.
- Strictly Read-Only History Scanner: Auto-discovers local sessions from Antigravity, Codex, DeepSeek Harness, Cursor, Claude Code, and custom folders without modifying source files.
- Optional Full-Auto Loop: Background incremental watcher and OpenAI-compatible LLM auto-curator (off by default for zero idle overhead).
- Built-in Bilingual Web Console (EN / 中文): Agent mount manager, memory search and editing, 2D relation graph, encrypted hot backups, and interactive 4-step quick-start guide.
- Cross-Platform CI Verified: 6/6 passing across Windows, Linux, and macOS (Python 3.11 & 3.12).
中文简介:
- 纯 Python 3.11+ 标准库、零第三方依赖、0 显存开箱即用的多 Agent 本地统一记忆库。
- 支持 Tier 0 / Tier 1A / Tier 1B 三档自适应记忆检索,实测较原始历史日志节省 99.78% Token、检索提速 47 倍、双语 Recall@5 达 100%。
- 所有 Agent 均支持方式 A(每轮自动注入)、方式 B(标准 MCP)及方式 A + B 同时启用,内置中英双语零 CDN 控制台与一键部署提示词。