返回目录

distill-kura

编辑精选维护状态: 活跃

lna-lab/distill-kura

蒸留蔵 — distilled long-term memory for agents: recall by meaning, writing gated by evidence, one kura per agent mode. Ships as a DeepSeek Harness plugin and an MCP server.

前往 GitHub
$ git clone https://github.com/lna-lab/distill-kura && cd distill-kura

40

星标

5

Fork

Python

语言

MIT

许可证

2026-08-21

创建于

2026-09-03

最近推送

面向智能体的蒸馏式长期记忆:按语义召回、按证据门控写入,每种智能体模式对应一个 kura。原生 DeepSeek Harness 插件,无需向量数据库、嵌入模型或框架。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-09-04

许可证

MIT

01它能帮你完成什么?

  • Give each DeepSeek Harness agent preset its own persistent memory store

    A separate kura store per agent mode, recalled by meaning, so a preset change switches what the agent remembers

    DSH users running multiple agent presets who want mode-scoped long-term memory

  • Write agent knowledge without poisoning the store

    Memories distilled and poured only after an evidence gate (class, candidate, judge), not blind accumulation

    Builders who want durable, auditable agent memory instead of unchecked assertions

02如何接入 DeepSeek Harness?

前置条件

  • Python 3.11+ — no third-party dependencies (`[dev]` adds only pytest)
  • Node.js 20+ — required only for the DSH plugin
  • An OpenAI-compatible model endpoint answering `POST <url>/chat/completions`

安装步骤

  1. 01

    $ git clone https://github.com/lna-lab/distill-kura && cd distill-kura

  2. 02

    pip install -e . # or just run: python3 -m distill_kura.cli

  3. 03

    cp kura.example.toml kura.toml # edit: one model endpoint is enough to start

  4. 04

    kura init main --path ~/kura/main # create an empty store

  5. 05

    kura serve # http://127.0.0.1:8085

验证接入成功

  • curl -s -X POST localhost:8085/recall -H 'content-type: application/json' \

03DSH 适配与能力边界

DSH 适配原生运行时

Loads as a native DeepSeek Harness plugin through `@deepseek-ai/dsh-tools` `defineTool`, exposing `kura_*` tools bound to a preset's memory store.

  • Semantic recall (recognition)

    a question, or a named memorypicked memory slugs plus their [[link]] neighbourhood as context

  • Evidence-gated writing

    a journal of agent eventsnew memories poured only after class → candidate → gate → judge

  • Per-mode memory stores

    an agent preset / modea bound kura store; a preset change switches the active memory

  • Ships as DSH plugin, MCP server, HTTP service, Python library

    any hostthe same engine behind a DSH plugin, MCP, HTTP (:8085) or import

04适合谁?何时不该用?

适合

  • DSH users running multiple agent presets who want mode-scoped long-term memory
  • Builders who want durable, auditable agent memory instead of unchecked assertions

不适合

  • Requires an OpenAI-compatible `POST <url>/chat/completions` model endpoint; the API key is read from an environment variable you name, never stored in config.

05兼容性、维护与安全提示

  • The DSH plugin needs Node.js 20+; the core engine is Python 3.11+ with no third-party dependencies.
  • Requires an OpenAI-compatible `POST <url>/chat/completions` model endpoint; the API key is read from an environment variable you name, never stored in config.
  • Standard library only — no vector database, no embeddings, no framework; recognition uses a small local model over the whole index in one prompt.
2026-08-212026-09-03作者未说明

Active repo (master), MIT licensed, no tagged release as of 2026-09-03.

06常见问题

如何把 distill-kura 接入 DeepSeek Harness?

它作为原生 DSH 插件通过 `@deepseek-ai/dsh-tools` 的 `defineTool` 加载,暴露绑定到预设仓库的 `kura_*` 工具。在预设中指定一个仓库,切换预设即可切换整个记忆体。

没有嵌入模型,召回是怎么做到的?

整个索引(每条记忆一行)放进一次提示,由小模型识别与问题相关的记忆;命中具名记忆则是确定性命中。README 称约 500 条记忆的索引约 6k token。

记忆写入安全吗?

写入受证据门控:日志先分类、生成候选、通过 GATE,再经撰写、草稿、评判,最后才倒入;不会把朴素断言直接记成事实。

运行需要什么环境?

Python 3.11+ 且无第三方依赖;仅 DSH 插件需要 Node.js 20+;以及任意兼容 OpenAI 的模型端点(`POST <url>/chat/completions`)。

08数据与来源

  • 作者声明github.com63743c3ebde7…

    Ships as a [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin,

  • 作者声明github.com63743c3ebde7…

    DSH switches **persona and tools** by agent preset. distill-kura switches **memory** by

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-04。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。