nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:fango19961106-dotcom/dsh-knowledge-graph
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Durable knowledge graph plugin for DeepSeek Harness (DSH).
Gives every agent session three model-facing tools backed by one embedded FTS5 database — so lessons, patterns and decisions survive session ends, preset switches and process restarts:
| Tool | Purpose |
|---|---|
kg_remember |
Persist a lesson / pattern / decision / field note / false positive |
kg_search |
BM25 full-text recall across everything ever remembered |
kg_recent |
Newest entries — cheap context refresh at session start |
Extracted from the agent-knowledge-graph architecture (L1 entries → L3 BM25 recall → L4 memory), compressed into a single zero-dependency plugin.
node:sqlite (FTS5, WAL mode, porter tokenizer)~/.local/share/dsh-knowledge-graph/knowledge.db (respects $XDG_DATA_HOME), shared by every session and preset in the profileRequires Node >= 22.5 (for node:sqlite).
# from a checkout
git clone https://github.com/fango19961106-dotcom/dsh-knowledge-graph
cd dsh-knowledge-graph
Then add to a DSH profile (a running dsh is a plugin tree composed of bundles — add this as an out-of-tree plugin):
mkdir -p ~/.dsh/plugins
cp -r . ~/.dsh/plugins/dsh-knowledge-graph
and list it in your profile's cordis.patch.yml:
- insert:
- id: knowledge-graph
name: '~/.dsh/plugins/dsh-knowledge-graph/src/index.ts'
(or install from npm once published: npm i dsh-knowledge-graph, then reference dsh-knowledge-graph by name in the patch file).
kg_remember:
{
"kind": "lesson | pattern | decision | field_note | false_positive",
"title": "One-line imperative summary",
"body": "Self-contained note: what happened, the rule, the evidence",
"tags": ["optional", "keywords"],
"project": "optional-scope"
}
kg_search / kg_recent return ranked hits with «highlighted» snippets (FTS5 snippet()).
node --experimental-strip-types -e "
import('./src/store.ts').then(async m => {
const s = new m.KnowledgeStore('/tmp/kg-test.db');
s.remember('lesson', 'Pin third-party action SHAs', 'Tag-pinned actions can be mutated; @vX tags are moveable refs.', ['supply-chain'], 'dsh-plugin');
console.log(JSON.stringify(s.search('supply chain'), null, 1));
s.close();
})"
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agents、memory。