@detpecca/dsh-llm-wiki
DeepSeek Harness plugin — manage an LLM-Wiki knowledge base from the agent: wiki_search / wiki_read / wiki_stats / wiki_validate / wiki_errorbook / wiki_ingest
AI Analysis
核心用途是让 Agent 能够直接检索和管理本地 LLM-Wiki 知识库。适合需要构建和维护本地知识库的 DSH 用户,必要条件是需通过 pip 安装 Python 引擎 DSH-Wiki。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:detpecca/dsh-llm-wikiREADME
Read the full README ↗🚀 快速开始(给使用者)
总共两条安装命令,不需要克隆任何仓库。
1. 安装 Python 引擎(DSH-Wiki)
pip install git+https://github.com/detpecca/DSH-Wiki.git
### 3. 配置你的知识库路径
安装默认指向 `./wiki`。把实际路径写进 profile 的 `cordis.patch.yml`
(`$DSH_HOME/profiles//cordis.patch.yml`),按 id 覆盖并**重述全部键**:
```yaml
- id: llm-wiki
config:
wikiPath: D:/path/to/your/wiki # 你的知识库根目录
pythonPath: python # 你的 python 可执行文件
cwd: '' # 留空则用 DSH 宿主 cwd(llm_wiki 需可导入)
# —— 以下三项可选:wiki_ingest 的 LLM 配置,显式配置优先于环境变量 ——
llmWikiBaseUrl: https://api.moonshot.cn/v1
llmWikiApiKey: sk-xxx # 或改用环境变量 LLM_WIKI_API_KEY
llmWikiModel: kimi-k2-0711-preview
重启后,wiki_search / wiki_read 等工具即可被 agent 调用。遍历策略(搜索→阅读→跟
链接→充分性检查→作答)由 DSH 的 agent 模型执行,不需要为查询配置第二套 LLM key。
配置项
| 键 | 默认 | 说明 |
|---|---|---|
wikiPath | ./wiki | wiki 根目录(含 index.md) |
pythonPath | python | python 可执行文件 |
cwd | ''(宿主 cwd) | 子进程工作目录;llm_wiki 包需可导入 |
llmWikiBaseUrl | ''(回落环境变量) | ingest 的 OpenAI 兼容端点 |
llmWikiApiKey | ''(回落环境变量) | ingest 的 API key |
llmWikiModel | ''(回落环境变量) | ingest 的模型名 |