JohnXu22786/memory-vault0

dsh-memory-vault

dsh.bundle bridge that exposes the memory-vault Python CLI as DeepSeek Harness tools

包名
dsh-memory-vault
版本
1.0.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JohnXu22786/memory-vault

Usage Tips

  • What to store: project decisions and their reasons, pitfalls hit, user preferences, common commands and conventions, experiment conclusions
  • When to retrieve: at the start of a new session, when a task arrives with insufficient context, when a historical topic comes up
  • Don't over-store: stable engineering rules belong in AGENTS.md-style documents; memory is meant to hold "context that grew out of real work"

Configuration

The config file defaults to /config.json (JSON); VAULT_* environment variables can override it; command-line arguments take the highest precedence. A full example is in config.example.json.

SectionKeyDefaultDescription
databasedir~/.memory-vaultdata directory
embeddingproviderlocallocal (built-in hash) / sentence (sentence-transformers) / api (OpenAI-compatible)
embeddingmodelper providersentence defaults to all-MiniLM-L6-v2; api defaults to text-embedding-3-small
embeddingdims128local embedding dimensions
embeddingapi_url / api_key / api_modelemptyapi provider endpoint; keys support env://VAR, file:///path forms
searchkeyword_weight / semantic_weight0.4 / 0.6dual-channel fusion weights (auto-clamped to 0~1)
searchrecency_days180time-decay half-life (days), 0 disables
searchtop_k8default number of results
curationdedup_threshold0.92write-time dedup similarity threshold
curationdedup_modemergemerge into the existing record / skip keeping the original
curationcluster_threshold0.78tidy clustering threshold
curationmin_cluster2minimum cluster size
curationdigest_member_chars600characters retained per member record in the summary
webhost / port127.0.0.1 / 8988web interface listen address
webtokenemptywhen set, all /api/* requests must carry Authorization: Bearer (the UI prompts and remembers it on first request; ?token= query param also supported)

Environment variables: VAULT_DIR, VAULT_CONFIG, VAULT_EMBED_PROVIDER, VAULT_EMBED_MODEL, VAULT_EMBED_DIMS, VAULT_EMBED_API_URL, VAULT_EMBED_API_KEY, VAULT_EMBED_API_MODEL, VAULT_KW_WEIGHT, VAULT_SEM_WEIGHT, VAULT_RECENCY_DAYS, VAULT_TOP_K, VAULT_DEDUP_THRESHOLD, VAULT_DEDUP_MODE, VAULT_CLUSTER_THRESHOLD, VAULT_MIN_CLUSTER, VAULT_DIGEST_MEMBER_CHARS, VAULT_WEB_HOST, VAULT_WEB_PORT, VAULT_WEB_TOKEN.