Back to home@QWQcool

dsh-trivium

In-process graph memory kernel for DeepSeek Harness, backed by TriviumDB.

Stars
0
Language
JavaScript
Created
Aug 19, 2026
Updated
Aug 19, 2026
GitHub repo

Introduction

dsh-trivium

In-process graph memory kernel for DeepSeek Harness, backed by TriviumDB.

One .tdb file per workspace. No extra server. MIT license.

进程内图记忆:按节点和边记,按需读。钉死 @deepseek-ai/dsh@0.1.0-rc.6

Status

P0 (in progress) — plugin skeleton, four tools, short map on session start.
Extraction, Settings UI, and auto-recall are not in this stage. See PLAN.md.

Tools

ToolRole
ctx_findHybrid / keyword search + edge paths (L0 only)
ctx_readFull payload by node id
ctx_rememberExplicit write (entity / preference / decision / experience)
ctx_linkDirected labelled edge

Default: no per-step auto-recall. Session start injects a short map (budget ~400 tokens).

Install (when testing against local DSH)

This repo is not copied into DeepSeek_Harness. Link it into the web profile:

cd dsh-trivium
npm install
node scripts/link-dsh.mjs

Restart dsh web, pick a workspace, then ask the agent to ctx_remember and ctx_find.

Manual equivalent:

dsh plugin --profile web add /absolute/path/to/dsh-trivium

Memory file: <workspace>/.dsh/trivium.tdb.

Layout

lib/index.js     Cordis apply: tools + session-start inject
lib/store.js     TriviumDB open / insert / search
lib/schema.js    Node types and edge labels
lib/tools.js     ctx_* tools
scripts/link-dsh.mjs
PLAN.md

License

MIT. TriviumDB itself is Apache-2.0 and remains a dependency.