mnemon-dev/mnemon573

@mnemon-dev/dsh-mnemon

安装并集成完整的记忆存储引擎

AI 分析

适合需要本地数据隔离、自动修剪及记忆留存管理的用户。

套件
@mnemon-dev/dsh-mnemon
版本
0.1.0
授權
Apache-2.0
最近更新
2026年9月12日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mnemon-dev/mnemon

Configuration

Environment VariableDefaultDescription
MNEMON_DATA_DIR~/.mnemonBase data directory
MNEMON_STORE(active file or default)Named memory store for data isolation

Retention:

Environment VariableDefaultDescription
MNEMON_MAX_INSIGHTS1000Active-insight ceiling; 0 disables automatic pruning
MNEMON_AUTO_PRUNE_MIN_AGE24hGrace period before an insight can be auto-pruned; accepts 24h, 7d, or 0

Each automatic deletion is soft, appears in the oplog as a prune operation, and is reported by ID in the triggering command's auto_pruned_ids field.

Embedding (only relevant if using embeddings):

Environment VariableDefaultDescription
MNEMON_EMBED_ENDPOINThttp://localhost:11434Embedding API endpoint
MNEMON_EMBED_MODELnomic-embed-textEmbedding model name
MNEMON_EMBED_PROTOCOL(auto-detect)ollama or openai; auto-detected from an endpoint ending in /v1
MNEMON_EMBED_API_KEY(none)Bearer token for OpenAI-compatible servers (oMLX, vLLM, etc.)
MNEMON_EMBED_DIMENSIONS(native)Optional Matryoshka dimension truncation

The embedding client speaks the Ollama API by default and the OpenAI-compatible embeddings API when the endpoint ends in /v1 (or when MNEMON_EMBED_PROTOCOL=openai is set). OpenAI-compatible servers are normally probed via their models route; servers that do not serve that route (e.g. Voyage AI) are detected via an embeddings round-trip instead. For example, a local server such as oMLX can be configured with:

export MNEMON_EMBED_ENDPOINT=http://127.0.0.1:18000/v1
export MNEMON_EMBED_MODEL=bge-m3-mlx-8bit
export MNEMON_EMBED_API_KEY=sk-... # omit for keyless local servers
mnemon embed --status

A hosted provider such as Voyage AI needs only the endpoint, model, and key:

export MNEMON_EMBED_ENDPOINT=https://api.voyageai.com/v1
export MNEMON_EMBED_MODEL=voyage-3.5
export MNEMON_EMBED_API_KEY=pa-...
mnemon embed --status