Near-lossless compaction for the DeepSeek Harness — extends BasicCompactionEngine so each <compacted-summary> ends with an Exact Sources locator block (spill files, touched file paths, seq range), making compacted details recoverable via memory_search / read.
Cross-session core memory for the DeepSeek Harness — workspace-scoped persistent facts (ctx.memoryCore) with a stable system-prompt section (KV-cache safe) and a memory_remember tool.
Hybrid memory search for the DeepSeek Harness — sqlite-vec vector arm + FTS5 lexical arm (RRF fusion) over session events, with local bge embeddings via transformers.js. Provides ctx.memorySearch.
Model-facing memory_search tool for the DeepSeek Harness — hybrid lexical+semantic recall over a session's earlier conversation via ctx.memorySearch, with bounded snippets.
CJK-aware ctx.sessionQuery backend for the DeepSeek Harness — SQLite FTS5 provider with a trigram tokenizer table so Chinese full-text search actually matches (upstream unicode61 does not segment CJK), plus a LIKE fallback for 1-2 character CJK queries.
Tool-result dedup policy for the DeepSeek Harness — replaces byte-identical repeated plain-text tool results with a pointer to the first occurrence (hash-indexed), saving input tokens on long sessions.