QWQcool/dsh-trivium0

dsh-trivium

DSH 进程内图记忆内核插件:基于 TriviumDB 实现每个工作区独立的图记忆,提供实体、偏好和决策的读写与检索工具。

AI 分析

核心用途是为 AI 提供结构化的图关系记忆。适合需要 AI 精确记录和检索实体关联、项目决策等复杂关系网络的研发任务。

包名
dsh-trivium
版本
0.1.0
许可证
MIT
最近更新
2026年8月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:QWQcool/dsh-trivium

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: /.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.