Configuration
Basic Options
| Option | Default | Description |
|---|
path | (required) | Path to SQLite memory database |
openAt | startup | When to open: startup, first-query, never |
maxRecallCount | 10 | Max memories to recall per session |
decayRate | 0.02 | Decay constant (higher = faster decay) |
journalMode | wal | SQLite journal mode |
Scheduler Options
| Option | Default | Description |
|---|
schedulerEnabled | true | Enable periodic maintenance |
schedulerDecayIntervalMs | 3600000 | Decay interval (ms), default 1h |
schedulerConsolidateIntervalMs | 21600000 | Consolidation interval (ms), default 6h |
Context Explosion Prevention Options
| Option | Default | Description |
|---|
maxContextTokens | 4000 | Max tokens for memory context injection |
smartPrioritization | true | Enable smart memory prioritization |
enableCompression | true | Enable memory compression |
Soul Options
| Option | Default | Description |
|---|
enableSoul | true | Enable global Soul injection |
soulPath | ~/.dsh/soul.md | Custom Soul file path |
Semantic Embedding Options (optional)
| Option | Default | Description |
|---|
embeddingEnabled | false | Enable semantic (vector) recall via local embedding server |
embeddingUrl | http://127.0.0.1:8765 | Embedding server base URL |
embeddingModel | BAAI/bge-small-zh-v1.5 | Model name (must match the server) |
embeddingWeight | 0.7 | RRF fusion weight for semantic results (0–1) |
To use semantic recall, start the bundled embedding server first: