dsh-plugin-rag
已验证dsh-plugin-rag · v0.1.1 · MIT
Local knowledge base RAG for DeepSeek Harness -- index project files and search for relevant context
安装
dsh plugin add dsh-plugin-rag 用 dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南。
源码
标签
说明文档
dsh-plugin-rag
Local knowledge base RAG for DeepSeek Harness.
What it does
Indexes project files (markdown, code, configs) and provides keyword search to find relevant context. No external APIs or embedding models needed -- pure local TF-IDF search.
Install
dsh plugin --profile your-profile add dsh-plugin-rag
CLI
# Search for relevant files
rag "authentication" ./src
# Show index stats
rag --index ./src ./docs
What gets indexed
- Markdown (.md, .txt)
- Code (.ts, .js, .py, .rs, .go, .java, .c, .cpp)
- Config (.json, .yaml, .toml, .env)
- Docs (.html, .xml, .sql, .graphql)
Skips: node_modules, .git, dist, build, pycache
Configuration
- id: rag
name: dsh-plugin-rag
config:
indexPaths: ['.']
maxResults: 3
maxBytes: 4096
enableInjection: true
How it works
- Scans directories for text files
- Builds a keyword index (TF-IDF scoring)
- Injects index stats into system prompt
- Agent uses CLI to search when needed
No embedding models, no external APIs, no heavy dependencies.
License
MIT -- YYTbit